blob: 6ea21df58bcf564c2ee295c3681c2e5c63603b94 [file] [log] [blame]
Vignesh Kulothungan92a38712019-12-23 14:54:19 -08001#BOARD_USES_GENERIC_AUDIO := true
2#
3#AUDIO_FEATURE_FLAGS
4ifeq ($(TARGET_USES_QMAA_OVERRIDE_AUDIO), false)
5ifeq ($(TARGET_USES_QMAA),true)
6AUDIO_USE_STUB_HAL := true
7endif
8endif
9
10ifneq ($(AUDIO_USE_STUB_HAL), true)
11BOARD_USES_ALSA_AUDIO := true
12TARGET_USES_AOSP_FOR_AUDIO := false
13
14ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
15USE_CUSTOM_AUDIO_POLICY := 1
Jaideep Sharma5f172f22020-01-30 22:41:21 +053016AUDIO_FEATURE_QSSI_COMPLIANCE := true
Vignesh Kulothungan92a38712019-12-23 14:54:19 -080017AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false
18AUDIO_FEATURE_ENABLED_COMPRESS_INPUT := true
19AUDIO_FEATURE_ENABLED_CONCURRENT_CAPTURE := true
20AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := false
21AUDIO_FEATURE_ENABLED_DYNAMIC_ECNS := true
22AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
23AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true
24AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := true
25AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
26AUDIO_FEATURE_ENABLED_HDMI_SPK := true
27AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true
28AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true
29AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true
30AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true
31AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true
32AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true
33AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true
34AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true
35AUDIO_FEATURE_ENABLED_MPEGH_SW_DECODER := true
36AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
37AUDIO_FEATURE_ENABLED_SSR := true
38AUDIO_FEATURE_ENABLED_DTS_EAGLE := false
39BOARD_USES_SRS_TRUEMEDIA := false
40DTS_CODEC_M_ := false
41MM_AUDIO_ENABLED_SAFX := true
42AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
43AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
44AUDIO_FEATURE_ENABLED_USB_TUNNEL := true
45AUDIO_FEATURE_ENABLED_A2DP_OFFLOAD := true
Vignesh Kulothungan92a38712019-12-23 14:54:19 -080046AUDIO_FEATURE_ENABLED_3D_AUDIO := true
Vignesh Kulothungan92a38712019-12-23 14:54:19 -080047AUDIO_FEATURE_ENABLED_AHAL_EXT := true
48AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT := true
49DOLBY_ENABLE := false
50endif
51
52AUDIO_FEATURE_ENABLED_DLKM := true
53BOARD_SUPPORTS_SOUND_TRIGGER := true
54BOARD_SUPPORTS_GCS := false
55AUDIO_FEATURE_ENABLED_INSTANCE_ID := true
56AUDIO_USE_DEEP_AS_PRIMARY_OUTPUT := false
57AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
58AUDIO_FEATURE_ENABLED_NT_PAUSE_TIMEOUT := true
59AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
60AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true
61AUDIO_FEATURE_ENABLED_FLUENCE := true
62AUDIO_FEATURE_ENABLED_HDMI_EDID := true
63AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH := true
64#AUDIO_FEATURE_ENABLED_KEEP_ALIVE := true
65AUDIO_FEATURE_ENABLED_DISPLAY_PORT := true
66AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := false
67AUDIO_FEATURE_ENABLED_HFP := true
68AUDIO_FEATURE_ENABLED_INCALL_MUSIC := true
69AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
70AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
71AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
72AUDIO_FEATURE_ENABLED_ACDB_LICENSE := false
73AUDIO_FEATURE_ENABLED_DEV_ARBI := false
74AUDIO_FEATURE_ENABLED_DYNAMIC_LOG := true
75MM_AUDIO_ENABLED_FTM := true
76TARGET_USES_QCOM_MM_AUDIO := true
77AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
78AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
79BOARD_SUPPORTS_QAHW := false
80AUDIO_FEATURE_ENABLED_RAS := true
81AUDIO_FEATURE_ENABLED_SND_MONITOR := true
82AUDIO_FEATURE_ENABLED_USB_BURST_MODE := true
83AUDIO_FEATURE_ENABLED_SVA_MULTI_STAGE := true
84AUDIO_FEATURE_ENABLED_BATTERY_LISTENER := true
85##AUDIO_FEATURE_FLAGS
86
87BOARD_SUPPORTS_OPENSOURCE_STHAL := true
88
89AUDIO_HARDWARE := audio.a2dp.default
90AUDIO_HARDWARE += audio.usb.default
91AUDIO_HARDWARE += audio.r_submix.default
92AUDIO_HARDWARE += audio.primary.lahaina
93
94#HAL Wrapper
95AUDIO_WRAPPER := libqahw
96AUDIO_WRAPPER += libqahwwrapper
97
98#HAL Test app
99AUDIO_HAL_TEST_APPS := hal_play_test
100AUDIO_HAL_TEST_APPS += hal_rec_test
101
102PRODUCT_PACKAGES += $(AUDIO_HARDWARE)
103PRODUCT_PACKAGES += $(AUDIO_WRAPPER)
104PRODUCT_PACKAGES += $(AUDIO_HAL_TEST_APPS)
Meng Wang3f547d42020-03-03 18:07:16 +0800105PRODUCT_PACKAGES += ftm_test_config_lahaina-qrd-snd-card
Xiaojun Sanga5197a92020-07-28 10:28:55 +0800106PRODUCT_PACKAGES += ftm_test_config_lahaina-shimaidp-snd-card
107PRODUCT_PACKAGES += ftm_test_config_lahaina-shimaidps-snd-card
108PRODUCT_PACKAGES += ftm_test_config_lahaina-shimaqrd-snd-card
George Gaofb568792020-03-17 10:18:26 -0700109PRODUCT_PACKAGES += audioadsprpcd
110PRODUCT_PACKAGES += vendor.qti.audio-adsprpc-service.rc
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800111
112ifneq ($(strip $(TARGET_USES_RRO)), true)
113#Audio Specific device overlays
114DEVICE_PACKAGE_OVERLAYS += vendor/qcom/opensource/audio-hal/primary-hal/configs/common/overlay
115endif
116
117PRODUCT_COPY_FILES += \
118 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_io_policy.conf \
119 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
120 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
121 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \
122 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
123 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_platform_info_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_qrd.xml \
124 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
125 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
126 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_qrd.xml \
127 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_mixer_paths_cdp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_cdp.xml \
128 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
129 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_qrd.xml \
130 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths_cdp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_cdp.xml \
131 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_configs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_configs.xml \
132 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_configs_stock.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_configs_stock.xml \
133 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
Aalique Grahame55570162020-02-10 12:58:47 -0800134 vendor/qcom/opensource/audio-hal/primary-hal/configs/common/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800135 frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \
136 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml
137
138#XML Audio configuration files
139ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
140PRODUCT_COPY_FILES += \
141 $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml
142endif
143PRODUCT_COPY_FILES += \
144 $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
145 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
146 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
147 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
148 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
149 $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \
Zhou Songf80dbcc2020-03-22 19:23:15 +0800150 $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/common/bluetooth_qti_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_qti_audio_policy_configuration.xml \
151 $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/common/bluetooth_qti_hearing_aid_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_qti_hearing_aid_audio_policy_configuration.xml
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800152
Saurav Kumarf51ddec2020-06-12 15:42:59 +0530153#TODO: Delete xml's from obsolete paths
154# Audio configuration xml's related to Lahaina
155QCV_FAMILY_SKUS := lahaina
156DEVICE_SKU := lahaina
157
158PRODUCT_COPY_FILES += \
159 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_io_policy.conf \
160 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.conf \
161 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.xml \
162 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_platform_info.xml \
163 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_platform_info.xml \
164 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_platform_info_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_platform_info_qrd.xml \
165 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_platform_info_intcodec.xml \
166 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_mixer_paths.xml \
167 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_mixer_paths_qrd.xml \
168 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_mixer_paths_cdp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_mixer_paths_cdp.xml \
169 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths.xml \
170 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths_qrd.xml \
171 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths_cdp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths_cdp.xml \
172 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_configs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_configs.xml \
173 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_configs_stock.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_configs_stock.xml \
Saurav Kumar82fec4a2020-08-03 19:47:34 +0530174 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_tuning_mixer.txt \
175 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/default_volume_tables.xml \
176 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/r_submix_audio_policy_configuration.xml \
177 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_policy_volumes.xml
Saurav Kumarf51ddec2020-06-12 15:42:59 +0530178
179#Copy generic APM XML file to common folder for runtime copy
180PRODUCT_COPY_FILES += \
181 vendor/qcom/opensource/audio-hal/primary-hal/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_policy_configuration.xml
182
183# Audio configuration xml's common to Lahaina family
184PRODUCT_COPY_FILES += \
185$(foreach DEVICE_SKU, $(QCV_FAMILY_SKUS), \
186 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)_qssi/audio_policy_configuration.xml)
187
Vatsal Buchaed32d302020-08-27 12:52:00 +0530188QCV_FAMILY_SKUS := shima
189DEVICE_SKU := shima
Vatsal Bucha49868cd2020-07-10 15:27:05 +0530190
191PRODUCT_COPY_FILES += \
192 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_io_policy.conf \
193 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.conf \
194 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.xml \
195 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_platform_info.xml \
196 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_platform_info_shimaidp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_platform_info_shimaidp.xml \
Xiaojun Sang12e14432020-08-05 17:25:52 +0800197 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_platform_info_shimaqrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_platform_info_shimaqrd.xml \
Vatsal Bucha49868cd2020-07-10 15:27:05 +0530198 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_platform_info_intcodec.xml \
199 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_mixer_paths_shimaidp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_mixer_paths_shimaidp.xml \
200 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_mixer_paths_shimaidps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_mixer_paths_shimaidps.xml \
Xiaojun Sang12e14432020-08-05 17:25:52 +0800201 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_mixer_paths_shimaqrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_mixer_paths_shimaqrd.xml \
Vatsal Bucha49868cd2020-07-10 15:27:05 +0530202 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths_shimaidp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths_shimaidp.xml \
203 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths_shimaidps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths_shimaidps.xml \
Xiaojun Sang12e14432020-08-05 17:25:52 +0800204 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths_shimaqrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths_shimaqrd.xml \
Vatsal Bucha49868cd2020-07-10 15:27:05 +0530205 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_configs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_configs.xml \
206 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_configs_stock.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_configs_stock.xml \
207 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_tuning_mixer.txt
208
209#Copy generic APM XML file to common folder for runtime copy
210PRODUCT_COPY_FILES += \
211 vendor/qcom/opensource/audio-hal/primary-hal/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_policy_configuration.xml
212
213# Audio configuration xml's common to cedros family
214PRODUCT_COPY_FILES += \
215$(foreach DEVICE_SKU, $(QCV_FAMILY_SKUS), \
216 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)_qssi/audio_policy_configuration.xml)
217
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800218# Reduce client buffer size for fast audio output tracks
219PRODUCT_PROPERTY_OVERRIDES += \
220 af.fast_track_multiplier=1
221
222# Low latency audio buffer size in frames
223PRODUCT_PROPERTY_OVERRIDES += \
224 vendor.audio_hal.period_size=192
225
226##Ambisonic Capture
227PRODUCT_PROPERTY_OVERRIDES += \
228persist.vendor.audio.ambisonic.capture=false \
229persist.vendor.audio.ambisonic.auto.profile=false
230
231PRODUCT_PROPERTY_OVERRIDES += \
232persist.vendor.audio.apptype.multirec.enabled=false
233
234##fluencetype can be "fluence" or "fluencepro" or "none"
235PRODUCT_PROPERTY_OVERRIDES += \
236ro.vendor.audio.sdk.fluencetype=none\
237persist.vendor.audio.fluence.voicecall=true\
238persist.vendor.audio.fluence.voicerec=false\
239persist.vendor.audio.fluence.speaker=true\
240persist.vendor.audio.fluence.tmic.enabled=false
241
242#
243#snapdragon value add features
244#
245PRODUCT_PROPERTY_OVERRIDES += \
246ro.qc.sdk.audio.ssr=false
247
248##fluencetype can be "fluence" or "fluencepro" or "none"
249PRODUCT_PROPERTY_OVERRIDES += \
250ro.qc.sdk.audio.fluencetype=none\
251persist.audio.fluence.voicecall=true\
252persist.audio.fluence.voicerec=false\
253persist.audio.fluence.speaker=true
254
Sudheer Papothi20b771e2020-05-29 05:15:02 +0530255##speaker protection v4 switch and ADSP AFE API version
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800256PRODUCT_PROPERTY_OVERRIDES += \
Sudheer Papothi20b771e2020-05-29 05:15:02 +0530257persist.vendor.audio.speaker.prot.enable=true\
258persist.vendor.audio.spv4.enable=true\
259persist.vendor.audio.avs.afe_api_version=9
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800260
261#disable tunnel encoding
262PRODUCT_PROPERTY_OVERRIDES += \
263vendor.audio.tunnel.encode=false
264
265#Disable RAS Feature by default
266PRODUCT_PROPERTY_OVERRIDES += \
267persist.vendor.audio.ras.enabled=false
268
269#Buffer size in kbytes for compress offload playback
270PRODUCT_PROPERTY_OVERRIDES += \
271vendor.audio.offload.buffer.size.kb=32
272
273#Enable offload audio video playback by default
274PRODUCT_PROPERTY_OVERRIDES += \
275audio.offload.video=true
276
277#Enable audio track offload by default
278PRODUCT_PROPERTY_OVERRIDES += \
279vendor.audio.offload.track.enable=true
280
281#Enable music through deep buffer
282PRODUCT_PROPERTY_OVERRIDES += \
283audio.deep_buffer.media=true
284
285#enable voice path for PCM VoIP by default
286PRODUCT_PROPERTY_OVERRIDES += \
287vendor.voice.path.for.pcm.voip=true
288
289#Enable multi channel aac through offload
290PRODUCT_PROPERTY_OVERRIDES += \
291vendor.audio.offload.multiaac.enable=true
292
293#Enable DS2, Hardbypass feature for Dolby
294PRODUCT_PROPERTY_OVERRIDES += \
295vendor.audio.dolby.ds2.enabled=false\
296vendor.audio.dolby.ds2.hardbypass=false
297
298#Disable Multiple offload sesison
299PRODUCT_PROPERTY_OVERRIDES += \
300vendor.audio.offload.multiple.enabled=false
301
302#Disable Compress passthrough playback
303PRODUCT_PROPERTY_OVERRIDES += \
304vendor.audio.offload.passthrough=false
305
306#Disable surround sound recording
307PRODUCT_PROPERTY_OVERRIDES += \
308ro.vendor.audio.sdk.ssr=false
309
310#enable dsp gapless mode by default
311PRODUCT_PROPERTY_OVERRIDES += \
312vendor.audio.offload.gapless.enabled=true
313
314#enable pbe effects
315PRODUCT_PROPERTY_OVERRIDES += \
316vendor.audio.safx.pbe.enabled=false
317
318#parser input buffer size(256kb) in byte stream mode
319PRODUCT_PROPERTY_OVERRIDES += \
320vendor.audio.parser.ip.buffer.size=262144
321
322#flac sw decoder 24 bit decode capability
323PRODUCT_PROPERTY_OVERRIDES += \
324vendor.audio.flac.sw.decoder.24bit=true
325
326#split a2dp DSP supported encoder list
327PRODUCT_PROPERTY_OVERRIDES += \
328persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aac-ldac
329
330# A2DP offload support
331PRODUCT_PROPERTY_OVERRIDES += \
332ro.bluetooth.a2dp_offload.supported=true
333
334# Disable A2DP offload
335PRODUCT_PROPERTY_OVERRIDES += \
336persist.bluetooth.a2dp_offload.disabled=false
337
338# A2DP offload DSP supported encoder list
339PRODUCT_PROPERTY_OVERRIDES += \
340persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac
341
342#enable software decoders for ALAC and APE
343PRODUCT_PROPERTY_OVERRIDES += \
344vendor.audio.use.sw.alac.decoder=true
345PRODUCT_PROPERTY_OVERRIDES += \
346vendor.audio.use.sw.ape.decoder=true
347
Fawad Shaukat37eda032020-03-29 08:23:02 -0700348#enable software decoder for MPEG-H
349PRODUCT_PROPERTY_OVERRIDES += \
350vendor.audio.use.sw.mpegh.decoder=true
351
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800352#enable hw aac encoder by default
353PRODUCT_PROPERTY_OVERRIDES += \
354vendor.audio.hw.aac.encoder=true
355
356#audio becoming noisy intent broadcast delay
357PRODUCT_PROPERTY_OVERRIDES += \
358audio.sys.noisy.broadcast.delay=600
359
360#offload pausetime out duration to 3 secs to inline with other outputs
361PRODUCT_PROPERTY_OVERRIDES += \
362audio.sys.offload.pstimeout.secs=3
363
364#Set AudioFlinger client heap size
365PRODUCT_PROPERTY_OVERRIDES += \
366ro.af.client_heap_size_kbyte=7168
367
368#Set HAL buffer size to samples equal to 3 ms
369PRODUCT_PROPERTY_OVERRIDES += \
370vendor.audio_hal.in_period_size=144
371
372#Set HAL buffer size to 3 ms
373PRODUCT_PROPERTY_OVERRIDES += \
374vendor.audio_hal.period_multiplier=3
375
376#ADM Buffering size in ms
377PRODUCT_PROPERTY_OVERRIDES += \
378vendor.audio.adm.buffering.ms=2
379
380#enable headset calibration
381PRODUCT_PROPERTY_OVERRIDES += \
382vendor.audio.volume.headset.gain.depcal=true
383
384#enable dualmic fluence for voice communication
385PRODUCT_PROPERTY_OVERRIDES += \
386persist.audio.fluence.voicecomm=true
Aalique Grahame55570162020-02-10 12:58:47 -0800387
388ifneq ($(GENERIC_ODM_IMAGE),true)
389$(warning "Enabling codec2.0 SW only for non-generic odm build variant")
390#Rank OMX SW codecs lower than OMX HW codecs
391PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0
392endif
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800393endif
394
395USE_XML_AUDIO_POLICY_CONF := 1
396
397#enable keytone FR
398PRODUCT_PROPERTY_OVERRIDES += \
399vendor.audio.hal.output.suspend.supported=true
400
401#Enable AAudio MMAP/NOIRQ data path
402#2 is AAUDIO_POLICY_AUTO so it will try MMAP then fallback to Legacy path
403PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_policy=2
404#Allow EXCLUSIVE then fall back to SHARED.
405PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_exclusive_policy=2
406PRODUCT_PROPERTY_OVERRIDES += aaudio.hw_burst_min_usec=2000
407
408
409#enable mirror-link feature
410PRODUCT_PROPERTY_OVERRIDES += \
411vendor.audio.enable.mirrorlink=false
412
413#enable voicecall speaker stereo
414PRODUCT_PROPERTY_OVERRIDES += \
415persist.vendor.audio.voicecall.speaker.stereo=true
416
417#enable AAC frame ctl for A2DP sinks
418PRODUCT_PROPERTY_OVERRIDES += \
419persist.vendor.bt.aac_frm_ctl.enabled=true
420
Zhou Song9b7822f2020-03-16 10:29:58 +0800421#enable VBR frame ctl
422PRODUCT_PROPERTY_OVERRIDES += \
423persist.vendor.bt.aac_vbr_frm_ctl.enabled=true
424
Zhou Songf80dbcc2020-03-22 19:23:15 +0800425#enable dedicated proxy for hearing aid
426PRODUCT_PROPERTY_OVERRIDES += \
427persist.vendor.audio.ha_proxy.enabled=true
428
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800429#add dynamic feature flags here
430PRODUCT_PROPERTY_OVERRIDES += \
431vendor.audio.feature.a2dp_offload.enable=true \
432vendor.audio.feature.afe_proxy.enable=true \
433vendor.audio.feature.anc_headset.enable=false \
434vendor.audio.feature.battery_listener.enable=true \
435vendor.audio.feature.compr_cap.enable=false \
436vendor.audio.feature.compress_in.enable=true \
437vendor.audio.feature.compress_meta_data.enable=true \
438vendor.audio.feature.compr_voip.enable=false \
439vendor.audio.feature.concurrent_capture.enable=true \
440vendor.audio.feature.custom_stereo.enable=true \
441vendor.audio.feature.display_port.enable=true \
442vendor.audio.feature.dsm_feedback.enable=false \
443vendor.audio.feature.dynamic_ecns.enable=true \
444vendor.audio.feature.ext_hw_plugin.enable=false \
445vendor.audio.feature.external_dsp.enable=false \
446vendor.audio.feature.external_speaker.enable=false \
447vendor.audio.feature.external_speaker_tfa.enable=false \
448vendor.audio.feature.fluence.enable=true \
449vendor.audio.feature.fm.enable=true \
450vendor.audio.feature.hdmi_edid.enable=true \
451vendor.audio.feature.hdmi_passthrough.enable=true \
452vendor.audio.feature.hfp.enable=true \
453vendor.audio.feature.hifi_audio.enable=false \
454vendor.audio.feature.hwdep_cal.enable=false \
455vendor.audio.feature.incall_music.enable=true \
456vendor.audio.feature.multi_voice_session.enable=true \
457vendor.audio.feature.keep_alive.enable=true \
458vendor.audio.feature.kpi_optimize.enable=true \
459vendor.audio.feature.maxx_audio.enable=false \
460vendor.audio.feature.ras.enable=true \
461vendor.audio.feature.record_play_concurency.enable=false \
462vendor.audio.feature.src_trkn.enable=true \
463vendor.audio.feature.spkr_prot.enable=true \
464vendor.audio.feature.ssrec.enable=true \
465vendor.audio.feature.usb_offload.enable=true \
466vendor.audio.feature.usb_offload_burst_mode.enable=true \
467vendor.audio.feature.usb_offload_sidetone_volume.enable=false \
468vendor.audio.feature.deepbuffer_as_primary.enable=false \
469vendor.audio.feature.vbat.enable=true \
470vendor.audio.feature.wsa.enable=false \
471vendor.audio.feature.audiozoom.enable=false \
Kunlei Zhang62a93402020-04-27 20:30:59 +0800472vendor.audio.feature.snd_mon.enable=true \
473vendor.audio.feature.power_mode.enable=true
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800474
475# for HIDL related packages
476PRODUCT_PACKAGES += \
477 android.hardware.audio@2.0-service \
478 android.hardware.audio@2.0-impl \
479 android.hardware.audio.effect@2.0-impl \
480 android.hardware.soundtrigger@2.1-impl \
481 android.hardware.audio@4.0 \
482 android.hardware.audio.common@4.0 \
483 android.hardware.audio.common@4.0-util \
484 android.hardware.audio@4.0-impl \
485 android.hardware.audio.effect@4.0 \
486 android.hardware.audio.effect@4.0-impl \
487 vendor.qti.hardware.audiohalext@1.0 \
488 vendor.qti.hardware.audiohalext@1.0-impl \
489 vendor.qti.hardware.audiohalext-utils
490
491# enable audio hidl hal 5.0
492PRODUCT_PACKAGES += \
493 android.hardware.audio@5.0 \
494 android.hardware.audio.common@5.0 \
495 android.hardware.audio.common@5.0-util \
496 android.hardware.audio@5.0-impl \
497 android.hardware.audio.effect@5.0 \
498 android.hardware.audio.effect@5.0-impl
499
Jaideep Sharmaab2c9ca2020-02-18 10:45:19 +0530500# enable audio hidl hal 6.0
501PRODUCT_PACKAGES += \
502 android.hardware.audio@6.0 \
503 android.hardware.audio.common@6.0 \
504 android.hardware.audio.common@6.0-util \
505 android.hardware.audio@6.0-impl \
506 android.hardware.audio.effect@6.0 \
507 android.hardware.audio.effect@6.0-impl
508
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800509# enable sound trigger hidl hal 2.2
510PRODUCT_PACKAGES += \
511 android.hardware.soundtrigger@2.2-impl \
512
513PRODUCT_PACKAGES_ENG += \
514 VoicePrintTest \
515 VoicePrintDemo
516
517PRODUCT_PACKAGES_DEBUG += \
518 AudioSettings
Vignesh Kulothungane48106d2020-01-10 12:06:05 -0800519
520ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DEV_ARBI)),true)
521PRODUCT_PACKAGES_DEBUG += \
522 libaudiodevarb
523endif
524
525ifeq ($(call is-vendor-board-platform,QCOM),true)
526ifeq ($(call is-platform-sdk-version-at-least,28),true)
527PRODUCT_PACKAGES_DEBUG += \
528 libqti_resampler_headers \
529 lib_soundmodel_headers \
530 libqti_vraudio_headers
531endif
532ifeq ($(strip $(AUDIO_FEATURE_ENABLED_3D_AUDIO)),true)
533PRODUCT_PACKAGES_DEBUG += \
534 libvr_object_engine \
535 libvr_amb_engine \
536 libhoaeffects_csim
537endif
538endif
539
540ifeq ($(strip $(BOARD_SUPPORTS_SOUND_TRIGGER)),true)
541PRODUCT_PACKAGES_DEBUG += \
542 libadpcmdec
543endif
Meng Wang4c32fb42020-01-16 17:57:11 +0800544
545AUDIO_FEATURE_ENABLED_GKI := true