blob: ced863d6ae5bdf6dcd4c130266a0302d8416ccdf [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
Jaideep Sharmaaadb90e2020-10-14 14:45:31 +053047AUDIO_FEATURE_ENABLED_AHAL_EXT := false
Vignesh Kulothungan92a38712019-12-23 14:54:19 -080048AUDIO_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
Meng Wang65c6d5e2020-09-18 15:05:40 +0800106PRODUCT_PACKAGES += ftm_test_config_lahaina-hdk-snd-card
Xiaojun Sanga5197a92020-07-28 10:28:55 +0800107PRODUCT_PACKAGES += ftm_test_config_lahaina-shimaidp-snd-card
108PRODUCT_PACKAGES += ftm_test_config_lahaina-shimaidps-snd-card
109PRODUCT_PACKAGES += ftm_test_config_lahaina-shimaqrd-snd-card
George Gaofb568792020-03-17 10:18:26 -0700110PRODUCT_PACKAGES += audioadsprpcd
111PRODUCT_PACKAGES += vendor.qti.audio-adsprpc-service.rc
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800112
113ifneq ($(strip $(TARGET_USES_RRO)), true)
114#Audio Specific device overlays
115DEVICE_PACKAGE_OVERLAYS += vendor/qcom/opensource/audio-hal/primary-hal/configs/common/overlay
116endif
117
118PRODUCT_COPY_FILES += \
119 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_io_policy.conf \
120 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
121 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
122 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \
123 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
124 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_platform_info_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_qrd.xml \
Meng Wang16f0e112020-08-13 15:52:58 +0800125 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_platform_info_hdk.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_hdk.xml \
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800126 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
127 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
128 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 \
129 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 \
Meng Wang16f0e112020-08-13 15:52:58 +0800130 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_mixer_paths_hdk.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_hdk.xml \
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800131 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
132 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_qrd.xml \
133 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths_cdp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_cdp.xml \
Meng Wang16f0e112020-08-13 15:52:58 +0800134 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths_hdk.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_hdk.xml \
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800135 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 -0800136 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 -0800137 frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \
138 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml
139
140#XML Audio configuration files
141ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
142PRODUCT_COPY_FILES += \
143 $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml
144endif
145PRODUCT_COPY_FILES += \
146 $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
147 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
148 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
149 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
150 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
151 $(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 +0800152 $(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 \
153 $(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 -0800154
Saurav Kumarf51ddec2020-06-12 15:42:59 +0530155#TODO: Delete xml's from obsolete paths
156# Audio configuration xml's related to Lahaina
157QCV_FAMILY_SKUS := lahaina
158DEVICE_SKU := lahaina
159
160PRODUCT_COPY_FILES += \
161 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 \
162 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.conf \
163 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.xml \
164 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 \
165 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 \
166 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 \
Meng Wang16f0e112020-08-13 15:52:58 +0800167 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_platform_info_hdk.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_platform_info_hdk.xml \
Saurav Kumarf51ddec2020-06-12 15:42:59 +0530168 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 \
169 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 \
170 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 \
171 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 \
Meng Wang16f0e112020-08-13 15:52:58 +0800172 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_mixer_paths_hdk.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_mixer_paths_hdk.xml\
Saurav Kumarf51ddec2020-06-12 15:42:59 +0530173 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths.xml \
174 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 \
175 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 \
Meng Wang16f0e112020-08-13 15:52:58 +0800176 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths_hdk.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths_hdk.xml \
Saurav Kumar82fec4a2020-08-03 19:47:34 +0530177 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 \
178 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/default_volume_tables.xml \
179 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 \
180 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 +0530181
182#Copy generic APM XML file to common folder for runtime copy
183PRODUCT_COPY_FILES += \
184 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
185
186# Audio configuration xml's common to Lahaina family
187PRODUCT_COPY_FILES += \
188$(foreach DEVICE_SKU, $(QCV_FAMILY_SKUS), \
189 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)
190
Vatsal Buchaed32d302020-08-27 12:52:00 +0530191QCV_FAMILY_SKUS := shima
192DEVICE_SKU := shima
Vatsal Bucha49868cd2020-07-10 15:27:05 +0530193
194PRODUCT_COPY_FILES += \
195 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 \
196 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.conf \
197 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.xml \
198 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 \
199 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 +0800200 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 +0530201 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 \
202 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 \
203 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 +0800204 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 +0530205 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 \
206 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 +0800207 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 \
Jaideep Sharmaa810bda2020-10-16 11:04:14 +0530208 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 \
209 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/default_volume_tables.xml \
210 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 \
211 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_policy_volumes.xml
212
Vatsal Bucha49868cd2020-07-10 15:27:05 +0530213
214#Copy generic APM XML file to common folder for runtime copy
215PRODUCT_COPY_FILES += \
216 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
217
218# Audio configuration xml's common to cedros family
219PRODUCT_COPY_FILES += \
220$(foreach DEVICE_SKU, $(QCV_FAMILY_SKUS), \
221 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)
222
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800223# Low latency audio buffer size in frames
224PRODUCT_PROPERTY_OVERRIDES += \
225 vendor.audio_hal.period_size=192
226
227##Ambisonic Capture
228PRODUCT_PROPERTY_OVERRIDES += \
229persist.vendor.audio.ambisonic.capture=false \
230persist.vendor.audio.ambisonic.auto.profile=false
231
232PRODUCT_PROPERTY_OVERRIDES += \
233persist.vendor.audio.apptype.multirec.enabled=false
234
235##fluencetype can be "fluence" or "fluencepro" or "none"
236PRODUCT_PROPERTY_OVERRIDES += \
237ro.vendor.audio.sdk.fluencetype=none\
238persist.vendor.audio.fluence.voicecall=true\
239persist.vendor.audio.fluence.voicerec=false\
240persist.vendor.audio.fluence.speaker=true\
241persist.vendor.audio.fluence.tmic.enabled=false
242
Sudheer Papothi20b771e2020-05-29 05:15:02 +0530243##speaker protection v4 switch and ADSP AFE API version
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800244PRODUCT_PROPERTY_OVERRIDES += \
Sudheer Papothi20b771e2020-05-29 05:15:02 +0530245persist.vendor.audio.speaker.prot.enable=true\
246persist.vendor.audio.spv4.enable=true\
247persist.vendor.audio.avs.afe_api_version=9
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800248
Vignesh Kulothungan97342422020-09-22 11:31:03 -0700249##bcl aka vbat monitor feature enable by default
250PRODUCT_PROPERTY_OVERRIDES += \
251persist.vendor.audio.vbat.enabled=true\
252persist.vendor.audio.bcl.enabled=true\
253
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800254#disable tunnel encoding
255PRODUCT_PROPERTY_OVERRIDES += \
256vendor.audio.tunnel.encode=false
257
258#Disable RAS Feature by default
259PRODUCT_PROPERTY_OVERRIDES += \
260persist.vendor.audio.ras.enabled=false
261
262#Buffer size in kbytes for compress offload playback
263PRODUCT_PROPERTY_OVERRIDES += \
264vendor.audio.offload.buffer.size.kb=32
265
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800266#Enable audio track offload by default
267PRODUCT_PROPERTY_OVERRIDES += \
268vendor.audio.offload.track.enable=true
269
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800270#enable voice path for PCM VoIP by default
271PRODUCT_PROPERTY_OVERRIDES += \
272vendor.voice.path.for.pcm.voip=true
273
274#Enable multi channel aac through offload
275PRODUCT_PROPERTY_OVERRIDES += \
276vendor.audio.offload.multiaac.enable=true
277
278#Enable DS2, Hardbypass feature for Dolby
279PRODUCT_PROPERTY_OVERRIDES += \
280vendor.audio.dolby.ds2.enabled=false\
281vendor.audio.dolby.ds2.hardbypass=false
282
283#Disable Multiple offload sesison
284PRODUCT_PROPERTY_OVERRIDES += \
285vendor.audio.offload.multiple.enabled=false
286
287#Disable Compress passthrough playback
288PRODUCT_PROPERTY_OVERRIDES += \
289vendor.audio.offload.passthrough=false
290
291#Disable surround sound recording
292PRODUCT_PROPERTY_OVERRIDES += \
293ro.vendor.audio.sdk.ssr=false
294
295#enable dsp gapless mode by default
296PRODUCT_PROPERTY_OVERRIDES += \
297vendor.audio.offload.gapless.enabled=true
298
299#enable pbe effects
300PRODUCT_PROPERTY_OVERRIDES += \
301vendor.audio.safx.pbe.enabled=false
302
303#parser input buffer size(256kb) in byte stream mode
304PRODUCT_PROPERTY_OVERRIDES += \
305vendor.audio.parser.ip.buffer.size=262144
306
307#flac sw decoder 24 bit decode capability
308PRODUCT_PROPERTY_OVERRIDES += \
309vendor.audio.flac.sw.decoder.24bit=true
310
Jaideep Sharma603ca642020-09-16 08:42:57 +0530311#timeout crash duration set to 20sec before system is ready.
312#timeout duration updates to default timeout of 5sec once the system is ready.
313PRODUCT_PROPERTY_OVERRIDES += \
314vendor.audio.hal.boot.timeout.ms=20000
315
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800316#split a2dp DSP supported encoder list
317PRODUCT_PROPERTY_OVERRIDES += \
318persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aac-ldac
319
320# A2DP offload support
321PRODUCT_PROPERTY_OVERRIDES += \
322ro.bluetooth.a2dp_offload.supported=true
323
324# Disable A2DP offload
325PRODUCT_PROPERTY_OVERRIDES += \
326persist.bluetooth.a2dp_offload.disabled=false
327
328# A2DP offload DSP supported encoder list
329PRODUCT_PROPERTY_OVERRIDES += \
Manisha Agarwald45632b2019-10-17 18:14:28 +0800330persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac-lc3
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800331
332#enable software decoders for ALAC and APE
333PRODUCT_PROPERTY_OVERRIDES += \
334vendor.audio.use.sw.alac.decoder=true
335PRODUCT_PROPERTY_OVERRIDES += \
336vendor.audio.use.sw.ape.decoder=true
337
Fawad Shaukat37eda032020-03-29 08:23:02 -0700338#enable software decoder for MPEG-H
339PRODUCT_PROPERTY_OVERRIDES += \
340vendor.audio.use.sw.mpegh.decoder=true
341
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800342#enable hw aac encoder by default
343PRODUCT_PROPERTY_OVERRIDES += \
344vendor.audio.hw.aac.encoder=true
345
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800346#Set HAL buffer size to samples equal to 3 ms
347PRODUCT_PROPERTY_OVERRIDES += \
348vendor.audio_hal.in_period_size=144
349
350#Set HAL buffer size to 3 ms
351PRODUCT_PROPERTY_OVERRIDES += \
352vendor.audio_hal.period_multiplier=3
353
354#ADM Buffering size in ms
355PRODUCT_PROPERTY_OVERRIDES += \
356vendor.audio.adm.buffering.ms=2
357
358#enable headset calibration
359PRODUCT_PROPERTY_OVERRIDES += \
360vendor.audio.volume.headset.gain.depcal=true
361
362#enable dualmic fluence for voice communication
363PRODUCT_PROPERTY_OVERRIDES += \
364persist.audio.fluence.voicecomm=true
Aalique Grahame55570162020-02-10 12:58:47 -0800365
366ifneq ($(GENERIC_ODM_IMAGE),true)
367$(warning "Enabling codec2.0 SW only for non-generic odm build variant")
368#Rank OMX SW codecs lower than OMX HW codecs
369PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0
370endif
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800371endif
372
373USE_XML_AUDIO_POLICY_CONF := 1
374
375#enable keytone FR
376PRODUCT_PROPERTY_OVERRIDES += \
377vendor.audio.hal.output.suspend.supported=true
378
379#Enable AAudio MMAP/NOIRQ data path
380#2 is AAUDIO_POLICY_AUTO so it will try MMAP then fallback to Legacy path
381PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_policy=2
382#Allow EXCLUSIVE then fall back to SHARED.
383PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_exclusive_policy=2
384PRODUCT_PROPERTY_OVERRIDES += aaudio.hw_burst_min_usec=2000
385
386
387#enable mirror-link feature
388PRODUCT_PROPERTY_OVERRIDES += \
389vendor.audio.enable.mirrorlink=false
390
391#enable voicecall speaker stereo
392PRODUCT_PROPERTY_OVERRIDES += \
393persist.vendor.audio.voicecall.speaker.stereo=true
394
395#enable AAC frame ctl for A2DP sinks
396PRODUCT_PROPERTY_OVERRIDES += \
397persist.vendor.bt.aac_frm_ctl.enabled=true
398
Zhou Song9b7822f2020-03-16 10:29:58 +0800399#enable VBR frame ctl
400PRODUCT_PROPERTY_OVERRIDES += \
401persist.vendor.bt.aac_vbr_frm_ctl.enabled=true
402
Zhou Songf80dbcc2020-03-22 19:23:15 +0800403#enable dedicated proxy for hearing aid
404PRODUCT_PROPERTY_OVERRIDES += \
405persist.vendor.audio.ha_proxy.enabled=true
406
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800407#add dynamic feature flags here
408PRODUCT_PROPERTY_OVERRIDES += \
409vendor.audio.feature.a2dp_offload.enable=true \
410vendor.audio.feature.afe_proxy.enable=true \
411vendor.audio.feature.anc_headset.enable=false \
412vendor.audio.feature.battery_listener.enable=true \
413vendor.audio.feature.compr_cap.enable=false \
414vendor.audio.feature.compress_in.enable=true \
415vendor.audio.feature.compress_meta_data.enable=true \
416vendor.audio.feature.compr_voip.enable=false \
417vendor.audio.feature.concurrent_capture.enable=true \
418vendor.audio.feature.custom_stereo.enable=true \
419vendor.audio.feature.display_port.enable=true \
420vendor.audio.feature.dsm_feedback.enable=false \
421vendor.audio.feature.dynamic_ecns.enable=true \
422vendor.audio.feature.ext_hw_plugin.enable=false \
423vendor.audio.feature.external_dsp.enable=false \
424vendor.audio.feature.external_speaker.enable=false \
425vendor.audio.feature.external_speaker_tfa.enable=false \
426vendor.audio.feature.fluence.enable=true \
427vendor.audio.feature.fm.enable=true \
428vendor.audio.feature.hdmi_edid.enable=true \
429vendor.audio.feature.hdmi_passthrough.enable=true \
430vendor.audio.feature.hfp.enable=true \
431vendor.audio.feature.hifi_audio.enable=false \
432vendor.audio.feature.hwdep_cal.enable=false \
433vendor.audio.feature.incall_music.enable=true \
434vendor.audio.feature.multi_voice_session.enable=true \
435vendor.audio.feature.keep_alive.enable=true \
436vendor.audio.feature.kpi_optimize.enable=true \
437vendor.audio.feature.maxx_audio.enable=false \
438vendor.audio.feature.ras.enable=true \
439vendor.audio.feature.record_play_concurency.enable=false \
440vendor.audio.feature.src_trkn.enable=true \
441vendor.audio.feature.spkr_prot.enable=true \
442vendor.audio.feature.ssrec.enable=true \
443vendor.audio.feature.usb_offload.enable=true \
444vendor.audio.feature.usb_offload_burst_mode.enable=true \
445vendor.audio.feature.usb_offload_sidetone_volume.enable=false \
446vendor.audio.feature.deepbuffer_as_primary.enable=false \
447vendor.audio.feature.vbat.enable=true \
448vendor.audio.feature.wsa.enable=false \
449vendor.audio.feature.audiozoom.enable=false \
Kunlei Zhang62a93402020-04-27 20:30:59 +0800450vendor.audio.feature.snd_mon.enable=true \
451vendor.audio.feature.power_mode.enable=true
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800452
453# for HIDL related packages
454PRODUCT_PACKAGES += \
455 android.hardware.audio@2.0-service \
456 android.hardware.audio@2.0-impl \
457 android.hardware.audio.effect@2.0-impl \
458 android.hardware.soundtrigger@2.1-impl \
459 android.hardware.audio@4.0 \
460 android.hardware.audio.common@4.0 \
461 android.hardware.audio.common@4.0-util \
462 android.hardware.audio@4.0-impl \
463 android.hardware.audio.effect@4.0 \
Jaideep Sharmaaadb90e2020-10-14 14:45:31 +0530464 android.hardware.audio.effect@4.0-impl
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800465
466# enable audio hidl hal 5.0
467PRODUCT_PACKAGES += \
468 android.hardware.audio@5.0 \
469 android.hardware.audio.common@5.0 \
470 android.hardware.audio.common@5.0-util \
471 android.hardware.audio@5.0-impl \
472 android.hardware.audio.effect@5.0 \
473 android.hardware.audio.effect@5.0-impl
474
Jaideep Sharmaab2c9ca2020-02-18 10:45:19 +0530475# enable audio hidl hal 6.0
476PRODUCT_PACKAGES += \
477 android.hardware.audio@6.0 \
478 android.hardware.audio.common@6.0 \
479 android.hardware.audio.common@6.0-util \
480 android.hardware.audio@6.0-impl \
481 android.hardware.audio.effect@6.0 \
482 android.hardware.audio.effect@6.0-impl
483
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800484# enable sound trigger hidl hal 2.2
485PRODUCT_PACKAGES += \
486 android.hardware.soundtrigger@2.2-impl \
487
Harshal Ahire3656f712020-08-11 22:29:27 +0530488# enable sound trigger hidl hal 2.3
489PRODUCT_PACKAGES += \
490 android.hardware.soundtrigger@2.3-impl \
491
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800492PRODUCT_PACKAGES_ENG += \
493 VoicePrintTest \
494 VoicePrintDemo
495
496PRODUCT_PACKAGES_DEBUG += \
497 AudioSettings
Vignesh Kulothungane48106d2020-01-10 12:06:05 -0800498
499ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DEV_ARBI)),true)
500PRODUCT_PACKAGES_DEBUG += \
501 libaudiodevarb
502endif
503
504ifeq ($(call is-vendor-board-platform,QCOM),true)
505ifeq ($(call is-platform-sdk-version-at-least,28),true)
506PRODUCT_PACKAGES_DEBUG += \
507 libqti_resampler_headers \
508 lib_soundmodel_headers \
509 libqti_vraudio_headers
510endif
511ifeq ($(strip $(AUDIO_FEATURE_ENABLED_3D_AUDIO)),true)
512PRODUCT_PACKAGES_DEBUG += \
513 libvr_object_engine \
514 libvr_amb_engine \
515 libhoaeffects_csim
516endif
517endif
518
519ifeq ($(strip $(BOARD_SUPPORTS_SOUND_TRIGGER)),true)
520PRODUCT_PACKAGES_DEBUG += \
521 libadpcmdec
522endif
Meng Wang4c32fb42020-01-16 17:57:11 +0800523
524AUDIO_FEATURE_ENABLED_GKI := true