blob: 8882d5d3b47ee2d298e69fc1ede739bdf767f2fd [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
Ajender Reddy4e90bb92020-12-10 12:23:45 +053010#mixer xml generation
11BASE_PATH := vendor/qcom/opensource/audio-hal/primary-hal/configs/common/base
12OVERLAY_PATH := vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/shima_overlay
13TARGET_PATH := vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina
14SCRIPT := vendor/qcom/opensource/audio-hal/primary-hal/configs/common/mixer_xml_utils.py
Ajender Reddy21ab1cc2020-11-24 08:24:29 +053015
Ajender Reddy4e90bb92020-12-10 12:23:45 +053016$(shell python $(SCRIPT) --generate combine --base $(BASE_PATH)/mixer_paths_base.xml --overlay $(OVERLAY_PATH)/mixer_paths_shimaidp_overlay.xml $(OVERLAY_PATH)/mixer_paths_shimaidps_overlay.xml $(OVERLAY_PATH)/mixer_paths_shimaqrd_overlay.xml --out_dir $(TARGET_PATH) --out mixer_paths_shimaidp.xml mixer_paths_shimaidps.xml mixer_paths_shimaqrd.xml )
17
18$(shell python $(SCRIPT) --generate combine --base $(BASE_PATH)/sound_trigger_mixer_paths_base.xml --overlay $(OVERLAY_PATH)/sound_trigger_mixer_paths_shimaidp_overlay.xml $(OVERLAY_PATH)/sound_trigger_mixer_paths_shimaidps_overlay.xml $(OVERLAY_PATH)/sound_trigger_mixer_paths_shimaqrd_overlay.xml --out_dir $(TARGET_PATH) --out sound_trigger_mixer_paths_shimaidp.xml sound_trigger_mixer_paths_shimaidps.xml sound_trigger_mixer_paths_shimaqrd.xml )
Ajender Reddy4e90bb92020-12-10 12:23:45 +053019
Vatsal Bucha3bc02f22020-11-25 17:36:26 +053020OVERLAY_PATH := vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/yupik_overlay
21
22$(shell python $(SCRIPT) --generate combine --base $(BASE_PATH)/mixer_paths_base.xml --overlay $(OVERLAY_PATH)/mixer_paths_yupikidp_overlay.xml $(OVERLAY_PATH)/mixer_paths_yupikqrd_overlay.xml --out_dir $(TARGET_PATH) --out mixer_paths_yupikidp.xml mixer_paths_yupikqrd.xml )
23
24$(shell python $(SCRIPT) --generate combine --base $(BASE_PATH)/sound_trigger_mixer_paths_base.xml --overlay $(OVERLAY_PATH)/sound_trigger_mixer_paths_yupikidp_overlay.xml $(OVERLAY_PATH)/sound_trigger_mixer_paths_yupikqrd_overlay.xml --out_dir $(TARGET_PATH) --out sound_trigger_mixer_paths_yupikidp.xml sound_trigger_mixer_paths_yupikqrd.xml )
25#
Vignesh Kulothungan92a38712019-12-23 14:54:19 -080026ifneq ($(AUDIO_USE_STUB_HAL), true)
27BOARD_USES_ALSA_AUDIO := true
28TARGET_USES_AOSP_FOR_AUDIO := false
29
30ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
31USE_CUSTOM_AUDIO_POLICY := 1
Jaideep Sharma5f172f22020-01-30 22:41:21 +053032AUDIO_FEATURE_QSSI_COMPLIANCE := true
Vignesh Kulothungan92a38712019-12-23 14:54:19 -080033AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false
34AUDIO_FEATURE_ENABLED_COMPRESS_INPUT := true
35AUDIO_FEATURE_ENABLED_CONCURRENT_CAPTURE := true
36AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := false
37AUDIO_FEATURE_ENABLED_DYNAMIC_ECNS := true
38AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
39AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true
40AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := true
41AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
42AUDIO_FEATURE_ENABLED_HDMI_SPK := true
43AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true
44AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true
45AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true
46AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true
47AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true
48AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true
49AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true
50AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true
51AUDIO_FEATURE_ENABLED_MPEGH_SW_DECODER := true
52AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
53AUDIO_FEATURE_ENABLED_SSR := true
54AUDIO_FEATURE_ENABLED_DTS_EAGLE := false
55BOARD_USES_SRS_TRUEMEDIA := false
56DTS_CODEC_M_ := false
57MM_AUDIO_ENABLED_SAFX := true
58AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
59AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
60AUDIO_FEATURE_ENABLED_USB_TUNNEL := true
61AUDIO_FEATURE_ENABLED_A2DP_OFFLOAD := true
Vignesh Kulothungan92a38712019-12-23 14:54:19 -080062AUDIO_FEATURE_ENABLED_3D_AUDIO := true
Jaideep Sharmaaadb90e2020-10-14 14:45:31 +053063AUDIO_FEATURE_ENABLED_AHAL_EXT := false
Vignesh Kulothungan92a38712019-12-23 14:54:19 -080064AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT := true
65DOLBY_ENABLE := false
66endif
67
68AUDIO_FEATURE_ENABLED_DLKM := true
69BOARD_SUPPORTS_SOUND_TRIGGER := true
70BOARD_SUPPORTS_GCS := false
71AUDIO_FEATURE_ENABLED_INSTANCE_ID := true
72AUDIO_USE_DEEP_AS_PRIMARY_OUTPUT := false
73AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
74AUDIO_FEATURE_ENABLED_NT_PAUSE_TIMEOUT := true
75AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
76AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true
77AUDIO_FEATURE_ENABLED_FLUENCE := true
78AUDIO_FEATURE_ENABLED_HDMI_EDID := true
79AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH := true
80#AUDIO_FEATURE_ENABLED_KEEP_ALIVE := true
81AUDIO_FEATURE_ENABLED_DISPLAY_PORT := true
82AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := false
83AUDIO_FEATURE_ENABLED_HFP := true
84AUDIO_FEATURE_ENABLED_INCALL_MUSIC := true
85AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
86AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
87AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
88AUDIO_FEATURE_ENABLED_ACDB_LICENSE := false
89AUDIO_FEATURE_ENABLED_DEV_ARBI := false
90AUDIO_FEATURE_ENABLED_DYNAMIC_LOG := true
91MM_AUDIO_ENABLED_FTM := true
92TARGET_USES_QCOM_MM_AUDIO := true
93AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
94AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
95BOARD_SUPPORTS_QAHW := false
96AUDIO_FEATURE_ENABLED_RAS := true
97AUDIO_FEATURE_ENABLED_SND_MONITOR := true
98AUDIO_FEATURE_ENABLED_USB_BURST_MODE := true
99AUDIO_FEATURE_ENABLED_SVA_MULTI_STAGE := true
100AUDIO_FEATURE_ENABLED_BATTERY_LISTENER := true
101##AUDIO_FEATURE_FLAGS
102
103BOARD_SUPPORTS_OPENSOURCE_STHAL := true
104
105AUDIO_HARDWARE := audio.a2dp.default
106AUDIO_HARDWARE += audio.usb.default
107AUDIO_HARDWARE += audio.r_submix.default
108AUDIO_HARDWARE += audio.primary.lahaina
109
110#HAL Wrapper
111AUDIO_WRAPPER := libqahw
112AUDIO_WRAPPER += libqahwwrapper
113
114#HAL Test app
115AUDIO_HAL_TEST_APPS := hal_play_test
116AUDIO_HAL_TEST_APPS += hal_rec_test
117
118PRODUCT_PACKAGES += $(AUDIO_HARDWARE)
119PRODUCT_PACKAGES += $(AUDIO_WRAPPER)
120PRODUCT_PACKAGES += $(AUDIO_HAL_TEST_APPS)
Meng Wang3f547d42020-03-03 18:07:16 +0800121PRODUCT_PACKAGES += ftm_test_config_lahaina-qrd-snd-card
Meng Wang65c6d5e2020-09-18 15:05:40 +0800122PRODUCT_PACKAGES += ftm_test_config_lahaina-hdk-snd-card
Meng Wangbb09e402020-12-25 14:32:36 +0800123PRODUCT_PACKAGES += ftm_test_config_lahaina-hhg-snd-card
Xiaojun Sanga5197a92020-07-28 10:28:55 +0800124PRODUCT_PACKAGES += ftm_test_config_lahaina-shimaidp-snd-card
125PRODUCT_PACKAGES += ftm_test_config_lahaina-shimaidps-snd-card
126PRODUCT_PACKAGES += ftm_test_config_lahaina-shimaqrd-snd-card
Vatsal Bucha3bc02f22020-11-25 17:36:26 +0530127PRODUCT_PACKAGES += ftm_test_config_lahaina-yupikidp-snd-card
128PRODUCT_PACKAGES += ftm_test_config_lahaina-yupikqrd-snd-card
George Gaofb568792020-03-17 10:18:26 -0700129PRODUCT_PACKAGES += audioadsprpcd
130PRODUCT_PACKAGES += vendor.qti.audio-adsprpc-service.rc
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800131
132ifneq ($(strip $(TARGET_USES_RRO)), true)
133#Audio Specific device overlays
134DEVICE_PACKAGE_OVERLAYS += vendor/qcom/opensource/audio-hal/primary-hal/configs/common/overlay
135endif
136
137PRODUCT_COPY_FILES += \
138 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_io_policy.conf \
139 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
140 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
141 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \
142 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
143 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 +0800144 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 -0800145 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
146 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
147 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 \
148 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 +0800149 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 \
Meng Wang61f7c772020-12-25 14:16:31 +0800150 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_mixer_paths_hhg.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_hhg.xml \
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800151 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
152 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_qrd.xml \
153 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 +0800154 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths_hdk.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_hdk.xml \
Meng Wang61f7c772020-12-25 14:16:31 +0800155 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths_hhg.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_hhg.xml \
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800156 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 -0800157 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 -0800158 frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \
159 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml
160
161#XML Audio configuration files
162ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
163PRODUCT_COPY_FILES += \
164 $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml
165endif
166PRODUCT_COPY_FILES += \
167 $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
168 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
169 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
170 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
171 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
172 $(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 +0800173 $(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 \
174 $(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 -0800175
Saurav Kumarf51ddec2020-06-12 15:42:59 +0530176#TODO: Delete xml's from obsolete paths
177# Audio configuration xml's related to Lahaina
178QCV_FAMILY_SKUS := lahaina
179DEVICE_SKU := lahaina
180
181PRODUCT_COPY_FILES += \
182 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 \
183 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.conf \
184 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.xml \
185 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 \
186 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 \
187 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 +0800188 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 +0530189 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 \
190 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 \
191 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 \
192 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 +0800193 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\
Meng Wang61f7c772020-12-25 14:16:31 +0800194 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_mixer_paths_hhg.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_mixer_paths_hhg.xml\
Saurav Kumarf51ddec2020-06-12 15:42:59 +0530195 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths.xml \
196 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 \
197 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 +0800198 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 \
Meng Wang61f7c772020-12-25 14:16:31 +0800199 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths_hhg.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths_hhg.xml \
Saurav Kumar82fec4a2020-08-03 19:47:34 +0530200 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 \
201 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/default_volume_tables.xml \
202 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 \
203 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 +0530204
205#Copy generic APM XML file to common folder for runtime copy
206PRODUCT_COPY_FILES += \
207 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
208
209# Audio configuration xml's common to Lahaina family
210PRODUCT_COPY_FILES += \
211$(foreach DEVICE_SKU, $(QCV_FAMILY_SKUS), \
212 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)
213
Vatsal Buchaed32d302020-08-27 12:52:00 +0530214QCV_FAMILY_SKUS := shima
215DEVICE_SKU := shima
Vatsal Bucha49868cd2020-07-10 15:27:05 +0530216
217PRODUCT_COPY_FILES += \
218 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 \
219 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.conf \
220 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.xml \
221 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 \
222 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 +0800223 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 +0530224 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 \
225 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 \
226 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 +0800227 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 +0530228 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 \
229 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 +0800230 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 +0530231 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 \
232 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/default_volume_tables.xml \
233 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 \
234 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_policy_volumes.xml
235
Vatsal Bucha49868cd2020-07-10 15:27:05 +0530236
237#Copy generic APM XML file to common folder for runtime copy
238PRODUCT_COPY_FILES += \
239 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
240
241# Audio configuration xml's common to cedros family
242PRODUCT_COPY_FILES += \
243$(foreach DEVICE_SKU, $(QCV_FAMILY_SKUS), \
244 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)
245
Vatsal Bucha3bc02f22020-11-25 17:36:26 +0530246QCV_FAMILY_SKUS := yupik
247DEVICE_SKU := yupik
248
249PRODUCT_COPY_FILES += \
250 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 \
251 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.conf \
252 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.xml \
253 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 \
254 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 \
xsang9e5600c2020-12-02 11:02:23 +0800255 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_platform_info_yupikqrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_platform_info_yupikqrd.xml \
Vatsal Bucha16307aa2021-01-26 10:15:36 +0530256 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_platform_info_yupikidp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_platform_info_yupikidp.xml \
Vatsal Bucha3bc02f22020-11-25 17:36:26 +0530257 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_mixer_paths_yupikidp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_mixer_paths_yupikidp.xml \
258 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_mixer_paths_yupikqrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_mixer_paths_yupikqrd.xml \
259 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths_yupikidp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths_yupikidp.xml \
260 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths_yupikqrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths_yupikqrd.xml \
261 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 \
262 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/default_volume_tables.xml \
263 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 \
264 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_policy_volumes.xml
265
266
267#Copy generic APM XML file to common folder for runtime copy
268PRODUCT_COPY_FILES += \
269 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
270
271# Audio configuration xml's common to yupik family
272PRODUCT_COPY_FILES += \
273$(foreach DEVICE_SKU, $(QCV_FAMILY_SKUS), \
274 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)
275
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800276# Low latency audio buffer size in frames
277PRODUCT_PROPERTY_OVERRIDES += \
278 vendor.audio_hal.period_size=192
279
280##Ambisonic Capture
281PRODUCT_PROPERTY_OVERRIDES += \
282persist.vendor.audio.ambisonic.capture=false \
283persist.vendor.audio.ambisonic.auto.profile=false
284
285PRODUCT_PROPERTY_OVERRIDES += \
286persist.vendor.audio.apptype.multirec.enabled=false
287
288##fluencetype can be "fluence" or "fluencepro" or "none"
289PRODUCT_PROPERTY_OVERRIDES += \
290ro.vendor.audio.sdk.fluencetype=none\
291persist.vendor.audio.fluence.voicecall=true\
292persist.vendor.audio.fluence.voicerec=false\
293persist.vendor.audio.fluence.speaker=true\
294persist.vendor.audio.fluence.tmic.enabled=false
295
Sudheer Papothi20b771e2020-05-29 05:15:02 +0530296##speaker protection v4 switch and ADSP AFE API version
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800297PRODUCT_PROPERTY_OVERRIDES += \
Sudheer Papothi20b771e2020-05-29 05:15:02 +0530298persist.vendor.audio.speaker.prot.enable=true\
299persist.vendor.audio.spv4.enable=true\
300persist.vendor.audio.avs.afe_api_version=9
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800301
Ajender Reddyd8735de2020-12-03 18:54:34 +0530302##bcl aka vbat monitor feature enable by default
303PRODUCT_PROPERTY_OVERRIDES += \
304persist.vendor.audio.vbat.enabled=true\
305persist.vendor.audio.bcl.enabled=true\
306
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800307#disable tunnel encoding
308PRODUCT_PROPERTY_OVERRIDES += \
309vendor.audio.tunnel.encode=false
310
311#Disable RAS Feature by default
312PRODUCT_PROPERTY_OVERRIDES += \
313persist.vendor.audio.ras.enabled=false
314
315#Buffer size in kbytes for compress offload playback
316PRODUCT_PROPERTY_OVERRIDES += \
317vendor.audio.offload.buffer.size.kb=32
318
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800319#Enable audio track offload by default
320PRODUCT_PROPERTY_OVERRIDES += \
321vendor.audio.offload.track.enable=true
322
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800323#enable voice path for PCM VoIP by default
324PRODUCT_PROPERTY_OVERRIDES += \
325vendor.voice.path.for.pcm.voip=true
326
327#Enable multi channel aac through offload
328PRODUCT_PROPERTY_OVERRIDES += \
329vendor.audio.offload.multiaac.enable=true
330
331#Enable DS2, Hardbypass feature for Dolby
332PRODUCT_PROPERTY_OVERRIDES += \
333vendor.audio.dolby.ds2.enabled=false\
334vendor.audio.dolby.ds2.hardbypass=false
335
336#Disable Multiple offload sesison
337PRODUCT_PROPERTY_OVERRIDES += \
338vendor.audio.offload.multiple.enabled=false
339
340#Disable Compress passthrough playback
341PRODUCT_PROPERTY_OVERRIDES += \
342vendor.audio.offload.passthrough=false
343
344#Disable surround sound recording
345PRODUCT_PROPERTY_OVERRIDES += \
346ro.vendor.audio.sdk.ssr=false
347
348#enable dsp gapless mode by default
349PRODUCT_PROPERTY_OVERRIDES += \
350vendor.audio.offload.gapless.enabled=true
351
352#enable pbe effects
353PRODUCT_PROPERTY_OVERRIDES += \
354vendor.audio.safx.pbe.enabled=false
355
356#parser input buffer size(256kb) in byte stream mode
357PRODUCT_PROPERTY_OVERRIDES += \
358vendor.audio.parser.ip.buffer.size=262144
359
360#flac sw decoder 24 bit decode capability
361PRODUCT_PROPERTY_OVERRIDES += \
362vendor.audio.flac.sw.decoder.24bit=true
363
Jaideep Sharma603ca642020-09-16 08:42:57 +0530364#timeout crash duration set to 20sec before system is ready.
365#timeout duration updates to default timeout of 5sec once the system is ready.
366PRODUCT_PROPERTY_OVERRIDES += \
367vendor.audio.hal.boot.timeout.ms=20000
368
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800369#split a2dp DSP supported encoder list
370PRODUCT_PROPERTY_OVERRIDES += \
371persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aac-ldac
372
373# A2DP offload support
374PRODUCT_PROPERTY_OVERRIDES += \
375ro.bluetooth.a2dp_offload.supported=true
376
377# Disable A2DP offload
378PRODUCT_PROPERTY_OVERRIDES += \
379persist.bluetooth.a2dp_offload.disabled=false
380
381# A2DP offload DSP supported encoder list
382PRODUCT_PROPERTY_OVERRIDES += \
Manisha Agarwald45632b2019-10-17 18:14:28 +0800383persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac-lc3
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800384
385#enable software decoders for ALAC and APE
386PRODUCT_PROPERTY_OVERRIDES += \
387vendor.audio.use.sw.alac.decoder=true
388PRODUCT_PROPERTY_OVERRIDES += \
389vendor.audio.use.sw.ape.decoder=true
390
Fawad Shaukat37eda032020-03-29 08:23:02 -0700391#enable software decoder for MPEG-H
392PRODUCT_PROPERTY_OVERRIDES += \
393vendor.audio.use.sw.mpegh.decoder=true
394
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800395#enable hw aac encoder by default
396PRODUCT_PROPERTY_OVERRIDES += \
397vendor.audio.hw.aac.encoder=true
398
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800399#Set HAL buffer size to samples equal to 3 ms
400PRODUCT_PROPERTY_OVERRIDES += \
401vendor.audio_hal.in_period_size=144
402
403#Set HAL buffer size to 3 ms
404PRODUCT_PROPERTY_OVERRIDES += \
405vendor.audio_hal.period_multiplier=3
406
407#ADM Buffering size in ms
408PRODUCT_PROPERTY_OVERRIDES += \
409vendor.audio.adm.buffering.ms=2
410
411#enable headset calibration
412PRODUCT_PROPERTY_OVERRIDES += \
413vendor.audio.volume.headset.gain.depcal=true
414
415#enable dualmic fluence for voice communication
416PRODUCT_PROPERTY_OVERRIDES += \
Arungopal Kondaveeti792653a2021-09-15 12:12:56 +0530417persist.vendor.audio.fluence.voicecomm=true
Aalique Grahame55570162020-02-10 12:58:47 -0800418
419ifneq ($(GENERIC_ODM_IMAGE),true)
420$(warning "Enabling codec2.0 SW only for non-generic odm build variant")
421#Rank OMX SW codecs lower than OMX HW codecs
422PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0
423endif
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800424endif
425
426USE_XML_AUDIO_POLICY_CONF := 1
427
428#enable keytone FR
429PRODUCT_PROPERTY_OVERRIDES += \
430vendor.audio.hal.output.suspend.supported=true
431
432#Enable AAudio MMAP/NOIRQ data path
433#2 is AAUDIO_POLICY_AUTO so it will try MMAP then fallback to Legacy path
434PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_policy=2
435#Allow EXCLUSIVE then fall back to SHARED.
436PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_exclusive_policy=2
437PRODUCT_PROPERTY_OVERRIDES += aaudio.hw_burst_min_usec=2000
438
439
440#enable mirror-link feature
441PRODUCT_PROPERTY_OVERRIDES += \
442vendor.audio.enable.mirrorlink=false
443
444#enable voicecall speaker stereo
445PRODUCT_PROPERTY_OVERRIDES += \
446persist.vendor.audio.voicecall.speaker.stereo=true
447
448#enable AAC frame ctl for A2DP sinks
449PRODUCT_PROPERTY_OVERRIDES += \
450persist.vendor.bt.aac_frm_ctl.enabled=true
451
Amarnath Vangala5b292172021-02-04 13:39:23 +0530452#Set speaker protection cal tx path sampling rate to 48k
453PRODUCT_PROPERTY_OVERRIDES += \
454vendor.audio.spkr_prot.tx.sampling_rate=48000
455
Zhou Song9b7822f2020-03-16 10:29:58 +0800456#enable VBR frame ctl
457PRODUCT_PROPERTY_OVERRIDES += \
458persist.vendor.bt.aac_vbr_frm_ctl.enabled=true
459
Zhou Songf80dbcc2020-03-22 19:23:15 +0800460#enable dedicated proxy for hearing aid
461PRODUCT_PROPERTY_OVERRIDES += \
462persist.vendor.audio.ha_proxy.enabled=true
463
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800464#add dynamic feature flags here
465PRODUCT_PROPERTY_OVERRIDES += \
466vendor.audio.feature.a2dp_offload.enable=true \
467vendor.audio.feature.afe_proxy.enable=true \
468vendor.audio.feature.anc_headset.enable=false \
469vendor.audio.feature.battery_listener.enable=true \
470vendor.audio.feature.compr_cap.enable=false \
471vendor.audio.feature.compress_in.enable=true \
472vendor.audio.feature.compress_meta_data.enable=true \
473vendor.audio.feature.compr_voip.enable=false \
474vendor.audio.feature.concurrent_capture.enable=true \
475vendor.audio.feature.custom_stereo.enable=true \
476vendor.audio.feature.display_port.enable=true \
477vendor.audio.feature.dsm_feedback.enable=false \
478vendor.audio.feature.dynamic_ecns.enable=true \
479vendor.audio.feature.ext_hw_plugin.enable=false \
480vendor.audio.feature.external_dsp.enable=false \
481vendor.audio.feature.external_speaker.enable=false \
482vendor.audio.feature.external_speaker_tfa.enable=false \
483vendor.audio.feature.fluence.enable=true \
484vendor.audio.feature.fm.enable=true \
485vendor.audio.feature.hdmi_edid.enable=true \
486vendor.audio.feature.hdmi_passthrough.enable=true \
487vendor.audio.feature.hfp.enable=true \
488vendor.audio.feature.hifi_audio.enable=false \
489vendor.audio.feature.hwdep_cal.enable=false \
490vendor.audio.feature.incall_music.enable=true \
491vendor.audio.feature.multi_voice_session.enable=true \
492vendor.audio.feature.keep_alive.enable=true \
493vendor.audio.feature.kpi_optimize.enable=true \
494vendor.audio.feature.maxx_audio.enable=false \
495vendor.audio.feature.ras.enable=true \
496vendor.audio.feature.record_play_concurency.enable=false \
497vendor.audio.feature.src_trkn.enable=true \
498vendor.audio.feature.spkr_prot.enable=true \
499vendor.audio.feature.ssrec.enable=true \
500vendor.audio.feature.usb_offload.enable=true \
501vendor.audio.feature.usb_offload_burst_mode.enable=true \
502vendor.audio.feature.usb_offload_sidetone_volume.enable=false \
503vendor.audio.feature.deepbuffer_as_primary.enable=false \
504vendor.audio.feature.vbat.enable=true \
505vendor.audio.feature.wsa.enable=false \
506vendor.audio.feature.audiozoom.enable=false \
Kunlei Zhang62a93402020-04-27 20:30:59 +0800507vendor.audio.feature.snd_mon.enable=true \
508vendor.audio.feature.power_mode.enable=true
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800509
510# for HIDL related packages
511PRODUCT_PACKAGES += \
512 android.hardware.audio@2.0-service \
513 android.hardware.audio@2.0-impl \
514 android.hardware.audio.effect@2.0-impl \
515 android.hardware.soundtrigger@2.1-impl \
516 android.hardware.audio@4.0 \
517 android.hardware.audio.common@4.0 \
518 android.hardware.audio.common@4.0-util \
519 android.hardware.audio@4.0-impl \
520 android.hardware.audio.effect@4.0 \
Jaideep Sharmaaadb90e2020-10-14 14:45:31 +0530521 android.hardware.audio.effect@4.0-impl
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800522
523# enable audio hidl hal 5.0
524PRODUCT_PACKAGES += \
525 android.hardware.audio@5.0 \
526 android.hardware.audio.common@5.0 \
527 android.hardware.audio.common@5.0-util \
528 android.hardware.audio@5.0-impl \
529 android.hardware.audio.effect@5.0 \
530 android.hardware.audio.effect@5.0-impl
531
Jaideep Sharmaab2c9ca2020-02-18 10:45:19 +0530532# enable audio hidl hal 6.0
533PRODUCT_PACKAGES += \
534 android.hardware.audio@6.0 \
535 android.hardware.audio.common@6.0 \
536 android.hardware.audio.common@6.0-util \
537 android.hardware.audio@6.0-impl \
538 android.hardware.audio.effect@6.0 \
539 android.hardware.audio.effect@6.0-impl
540
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800541# enable sound trigger hidl hal 2.2
542PRODUCT_PACKAGES += \
543 android.hardware.soundtrigger@2.2-impl \
544
Harshal Ahire3656f712020-08-11 22:29:27 +0530545# enable sound trigger hidl hal 2.3
546PRODUCT_PACKAGES += \
547 android.hardware.soundtrigger@2.3-impl \
548
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800549PRODUCT_PACKAGES_ENG += \
550 VoicePrintTest \
551 VoicePrintDemo
552
553PRODUCT_PACKAGES_DEBUG += \
554 AudioSettings
Vignesh Kulothungane48106d2020-01-10 12:06:05 -0800555
556ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DEV_ARBI)),true)
557PRODUCT_PACKAGES_DEBUG += \
558 libaudiodevarb
559endif
560
561ifeq ($(call is-vendor-board-platform,QCOM),true)
562ifeq ($(call is-platform-sdk-version-at-least,28),true)
563PRODUCT_PACKAGES_DEBUG += \
564 libqti_resampler_headers \
565 lib_soundmodel_headers \
566 libqti_vraudio_headers
567endif
568ifeq ($(strip $(AUDIO_FEATURE_ENABLED_3D_AUDIO)),true)
569PRODUCT_PACKAGES_DEBUG += \
570 libvr_object_engine \
571 libvr_amb_engine \
572 libhoaeffects_csim
573endif
574endif
575
576ifeq ($(strip $(BOARD_SUPPORTS_SOUND_TRIGGER)),true)
577PRODUCT_PACKAGES_DEBUG += \
578 libadpcmdec
579endif
Meng Wang4c32fb42020-01-16 17:57:11 +0800580
581AUDIO_FEATURE_ENABLED_GKI := true