summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandrashekhar Urkeri2019-10-04 13:39:52 -0500
committerPraneeth Bajjuri2019-10-09 15:50:07 -0500
commit9688dfcd2fc9c4c2f30ea2587400a00e8184d3f7 (patch)
tree35b67e1651fda81a39585191643d0b8811d7fe61
parent5332223dc2ef61f2732e8d8443701df9e1378a84 (diff)
downloaddevice-ti-j721e-9688dfcd2fc9c4c2f30ea2587400a00e8184d3f7.tar.gz
device-ti-j721e-9688dfcd2fc9c4c2f30ea2587400a00e8184d3f7.tar.xz
device-ti-j721e-9688dfcd2fc9c4c2f30ea2587400a00e8184d3f7.zip
j721e: Enable Audio playback and record support on J7
Added audio HAL libraries and xml files. Added tinyalsa tools for verifying the audio playback and record. Acked-by: Vishal Mahaveer <vishalm@ti.com> Acked-By: Misael Lopez Cruz <misael.lopez@ti.com>
-rw-r--r--device-common.mk28
-rw-r--r--manifest.xml13
2 files changed, 36 insertions, 5 deletions
diff --git a/device-common.mk b/device-common.mk
index 550bcfc..18246bc 100644
--- a/device-common.mk
+++ b/device-common.mk
@@ -41,10 +41,14 @@ PRODUCT_COPY_FILES += system/core/rootdir/init.zygote64_32.rc:root/init.zygote64
41 41
42# Audio 42# Audio
43PRODUCT_PACKAGES += \ 43PRODUCT_PACKAGES += \
44 android.hardware.audio@2.0-impl \ 44 android.hardware.audio@4.0-impl \
45 android.hardware.audio@2.0-service \ 45 android.hardware.audio@2.0-service \
46 android.hardware.audio.effect@2.0-impl \ 46 android.hardware.audio.effect@4.0-impl \
47 android.hardware.soundtrigger@2.0-impl \ 47 android.hardware.audio.effect@2.0-service \
48 android.hardware.soundtrigger@2.1-impl \
49 android.hardware.soundtrigger@2.0-service \
50 audio.r_submix.default \
51 libaudio-resampler \
48 52
49# USB 53# USB
50PRODUCT_PACKAGES += \ 54PRODUCT_PACKAGES += \
@@ -105,6 +109,24 @@ PRODUCT_PACKAGES += \
105 Launcher3 \ 109 Launcher3 \
106 WallpaperPicker \ 110 WallpaperPicker \
107 111
112USE_XML_AUDIO_POLICY_CONF := 1
113PRODUCT_COPY_FILES += \
114 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
115 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
116 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
117
118PRODUCT_COPY_FILES += \
119 hardware/ti/j721e/audio/primary/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
120 hardware/ti/j721e/audio/primary/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/primary_audio_policy_configuration.xml \
121 hardware/ti/j721e/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml
122
123PRODUCT_PACKAGES += \
124 tinymix \
125 tinyplay \
126 tinycap \
127 tinypcminfo \
128 SoundRecorder
129
108$(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk) 130$(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)
109 131
110# Include hardware projects (HALs) 132# Include hardware projects (HALs)
diff --git a/manifest.xml b/manifest.xml
index ad2d2d5..8cee0c4 100644
--- a/manifest.xml
+++ b/manifest.xml
@@ -51,7 +51,7 @@
51 <hal format="hidl"> 51 <hal format="hidl">
52 <name>android.hardware.audio</name> 52 <name>android.hardware.audio</name>
53 <transport>hwbinder</transport> 53 <transport>hwbinder</transport>
54 <version>2.0</version> 54 <version>4.0</version>
55 <interface> 55 <interface>
56 <name>IDevicesFactory</name> 56 <name>IDevicesFactory</name>
57 <instance>default</instance> 57 <instance>default</instance>
@@ -60,13 +60,22 @@
60 <hal format="hidl"> 60 <hal format="hidl">
61 <name>android.hardware.audio.effect</name> 61 <name>android.hardware.audio.effect</name>
62 <transport>hwbinder</transport> 62 <transport>hwbinder</transport>
63 <version>2.0</version> 63 <version>4.0</version>
64 <interface> 64 <interface>
65 <name>IEffectsFactory</name> 65 <name>IEffectsFactory</name>
66 <instance>default</instance> 66 <instance>default</instance>
67 </interface> 67 </interface>
68 </hal> 68 </hal>
69 <hal format="hidl"> 69 <hal format="hidl">
70 <name>android.hardware.soundtrigger</name>
71 <transport>hwbinder</transport>
72 <version>2.1</version>
73 <interface>
74 <name>ISoundTriggerHw</name>
75 <instance>default</instance>
76 </interface>
77 </hal>
78 <hal format="hidl">
70 <name>android.hardware.memtrack</name> 79 <name>android.hardware.memtrack</name>
71 <transport>hwbinder</transport> 80 <transport>hwbinder</transport>
72 <version>1.0</version> 81 <version>1.0</version>