blob: a2d7e0b8429fd1a7c4e2ab8ec3b8c068a28a2857 [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 )
19#
20
Vignesh Kulothungan92a38712019-12-23 14:54:19 -080021ifneq ($(AUDIO_USE_STUB_HAL), true)
22BOARD_USES_ALSA_AUDIO := true
23TARGET_USES_AOSP_FOR_AUDIO := false
24
25ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
26USE_CUSTOM_AUDIO_POLICY := 1
Jaideep Sharma5f172f22020-01-30 22:41:21 +053027AUDIO_FEATURE_QSSI_COMPLIANCE := true
Vignesh Kulothungan92a38712019-12-23 14:54:19 -080028AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false
29AUDIO_FEATURE_ENABLED_COMPRESS_INPUT := true
30AUDIO_FEATURE_ENABLED_CONCURRENT_CAPTURE := true
31AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := false
32AUDIO_FEATURE_ENABLED_DYNAMIC_ECNS := true
33AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
34AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true
35AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := true
36AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
37AUDIO_FEATURE_ENABLED_HDMI_SPK := true
38AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true
39AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true
40AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true
41AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true
42AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true
43AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true
44AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true
45AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true
46AUDIO_FEATURE_ENABLED_MPEGH_SW_DECODER := true
47AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
48AUDIO_FEATURE_ENABLED_SSR := true
49AUDIO_FEATURE_ENABLED_DTS_EAGLE := false
50BOARD_USES_SRS_TRUEMEDIA := false
51DTS_CODEC_M_ := false
52MM_AUDIO_ENABLED_SAFX := true
53AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
54AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
55AUDIO_FEATURE_ENABLED_USB_TUNNEL := true
56AUDIO_FEATURE_ENABLED_A2DP_OFFLOAD := true
Vignesh Kulothungan92a38712019-12-23 14:54:19 -080057AUDIO_FEATURE_ENABLED_3D_AUDIO := true
Jaideep Sharmaaadb90e2020-10-14 14:45:31 +053058AUDIO_FEATURE_ENABLED_AHAL_EXT := false
Vignesh Kulothungan92a38712019-12-23 14:54:19 -080059AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT := true
60DOLBY_ENABLE := false
61endif
62
63AUDIO_FEATURE_ENABLED_DLKM := true
64BOARD_SUPPORTS_SOUND_TRIGGER := true
65BOARD_SUPPORTS_GCS := false
66AUDIO_FEATURE_ENABLED_INSTANCE_ID := true
67AUDIO_USE_DEEP_AS_PRIMARY_OUTPUT := false
68AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
69AUDIO_FEATURE_ENABLED_NT_PAUSE_TIMEOUT := true
70AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
71AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true
72AUDIO_FEATURE_ENABLED_FLUENCE := true
73AUDIO_FEATURE_ENABLED_HDMI_EDID := true
74AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH := true
75#AUDIO_FEATURE_ENABLED_KEEP_ALIVE := true
76AUDIO_FEATURE_ENABLED_DISPLAY_PORT := true
77AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := false
78AUDIO_FEATURE_ENABLED_HFP := true
79AUDIO_FEATURE_ENABLED_INCALL_MUSIC := true
80AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
81AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
82AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
83AUDIO_FEATURE_ENABLED_ACDB_LICENSE := false
84AUDIO_FEATURE_ENABLED_DEV_ARBI := false
85AUDIO_FEATURE_ENABLED_DYNAMIC_LOG := true
86MM_AUDIO_ENABLED_FTM := true
87TARGET_USES_QCOM_MM_AUDIO := true
88AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
89AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
90BOARD_SUPPORTS_QAHW := false
91AUDIO_FEATURE_ENABLED_RAS := true
92AUDIO_FEATURE_ENABLED_SND_MONITOR := true
93AUDIO_FEATURE_ENABLED_USB_BURST_MODE := true
94AUDIO_FEATURE_ENABLED_SVA_MULTI_STAGE := true
95AUDIO_FEATURE_ENABLED_BATTERY_LISTENER := true
96##AUDIO_FEATURE_FLAGS
97
98BOARD_SUPPORTS_OPENSOURCE_STHAL := true
99
100AUDIO_HARDWARE := audio.a2dp.default
101AUDIO_HARDWARE += audio.usb.default
102AUDIO_HARDWARE += audio.r_submix.default
103AUDIO_HARDWARE += audio.primary.lahaina
104
105#HAL Wrapper
106AUDIO_WRAPPER := libqahw
107AUDIO_WRAPPER += libqahwwrapper
108
109#HAL Test app
110AUDIO_HAL_TEST_APPS := hal_play_test
111AUDIO_HAL_TEST_APPS += hal_rec_test
112
113PRODUCT_PACKAGES += $(AUDIO_HARDWARE)
114PRODUCT_PACKAGES += $(AUDIO_WRAPPER)
115PRODUCT_PACKAGES += $(AUDIO_HAL_TEST_APPS)
Meng Wang3f547d42020-03-03 18:07:16 +0800116PRODUCT_PACKAGES += ftm_test_config_lahaina-qrd-snd-card
Meng Wang65c6d5e2020-09-18 15:05:40 +0800117PRODUCT_PACKAGES += ftm_test_config_lahaina-hdk-snd-card
Xiaojun Sanga5197a92020-07-28 10:28:55 +0800118PRODUCT_PACKAGES += ftm_test_config_lahaina-shimaidp-snd-card
119PRODUCT_PACKAGES += ftm_test_config_lahaina-shimaidps-snd-card
120PRODUCT_PACKAGES += ftm_test_config_lahaina-shimaqrd-snd-card
George Gaofb568792020-03-17 10:18:26 -0700121PRODUCT_PACKAGES += audioadsprpcd
122PRODUCT_PACKAGES += vendor.qti.audio-adsprpc-service.rc
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800123
124ifneq ($(strip $(TARGET_USES_RRO)), true)
125#Audio Specific device overlays
126DEVICE_PACKAGE_OVERLAYS += vendor/qcom/opensource/audio-hal/primary-hal/configs/common/overlay
127endif
128
129PRODUCT_COPY_FILES += \
130 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_io_policy.conf \
131 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
132 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
133 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \
134 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
135 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 +0800136 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 -0800137 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
138 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
139 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 \
140 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 +0800141 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 -0800142 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
143 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_qrd.xml \
144 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 +0800145 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 -0800146 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 -0800147 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 -0800148 frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \
149 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml
150
151#XML Audio configuration files
152ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
153PRODUCT_COPY_FILES += \
154 $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml
155endif
156PRODUCT_COPY_FILES += \
157 $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
158 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
159 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
160 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
161 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
162 $(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 +0800163 $(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 \
164 $(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 -0800165
Saurav Kumarf51ddec2020-06-12 15:42:59 +0530166#TODO: Delete xml's from obsolete paths
167# Audio configuration xml's related to Lahaina
168QCV_FAMILY_SKUS := lahaina
169DEVICE_SKU := lahaina
170
171PRODUCT_COPY_FILES += \
172 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 \
173 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.conf \
174 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.xml \
175 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 \
176 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 \
177 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 +0800178 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 +0530179 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 \
180 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 \
181 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 \
182 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 +0800183 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 +0530184 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths.xml \
185 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 \
186 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 +0800187 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 +0530188 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 \
189 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/default_volume_tables.xml \
190 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 \
191 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 +0530192
193#Copy generic APM XML file to common folder for runtime copy
194PRODUCT_COPY_FILES += \
195 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
196
197# Audio configuration xml's common to Lahaina family
198PRODUCT_COPY_FILES += \
199$(foreach DEVICE_SKU, $(QCV_FAMILY_SKUS), \
200 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)
201
Vatsal Buchaed32d302020-08-27 12:52:00 +0530202QCV_FAMILY_SKUS := shima
203DEVICE_SKU := shima
Vatsal Bucha49868cd2020-07-10 15:27:05 +0530204
205PRODUCT_COPY_FILES += \
206 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 \
207 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.conf \
208 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.xml \
209 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 \
210 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 +0800211 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 +0530212 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 \
213 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 \
214 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 +0800215 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 +0530216 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 \
217 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 +0800218 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 +0530219 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 \
220 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/default_volume_tables.xml \
221 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 \
222 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_policy_volumes.xml
223
Vatsal Bucha49868cd2020-07-10 15:27:05 +0530224
225#Copy generic APM XML file to common folder for runtime copy
226PRODUCT_COPY_FILES += \
227 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
228
229# Audio configuration xml's common to cedros family
230PRODUCT_COPY_FILES += \
231$(foreach DEVICE_SKU, $(QCV_FAMILY_SKUS), \
232 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)
233
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800234# Low latency audio buffer size in frames
235PRODUCT_PROPERTY_OVERRIDES += \
236 vendor.audio_hal.period_size=192
237
238##Ambisonic Capture
239PRODUCT_PROPERTY_OVERRIDES += \
240persist.vendor.audio.ambisonic.capture=false \
241persist.vendor.audio.ambisonic.auto.profile=false
242
243PRODUCT_PROPERTY_OVERRIDES += \
244persist.vendor.audio.apptype.multirec.enabled=false
245
246##fluencetype can be "fluence" or "fluencepro" or "none"
247PRODUCT_PROPERTY_OVERRIDES += \
248ro.vendor.audio.sdk.fluencetype=none\
249persist.vendor.audio.fluence.voicecall=true\
250persist.vendor.audio.fluence.voicerec=false\
251persist.vendor.audio.fluence.speaker=true\
252persist.vendor.audio.fluence.tmic.enabled=false
253
Sudheer Papothi20b771e2020-05-29 05:15:02 +0530254##speaker protection v4 switch and ADSP AFE API version
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800255PRODUCT_PROPERTY_OVERRIDES += \
Sudheer Papothi20b771e2020-05-29 05:15:02 +0530256persist.vendor.audio.speaker.prot.enable=true\
257persist.vendor.audio.spv4.enable=true\
258persist.vendor.audio.avs.afe_api_version=9
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800259
Ajender Reddyd8735de2020-12-03 18:54:34 +0530260##bcl aka vbat monitor feature enable by default
261PRODUCT_PROPERTY_OVERRIDES += \
262persist.vendor.audio.vbat.enabled=true\
263persist.vendor.audio.bcl.enabled=true\
264
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800265#disable tunnel encoding
266PRODUCT_PROPERTY_OVERRIDES += \
267vendor.audio.tunnel.encode=false
268
269#Disable RAS Feature by default
270PRODUCT_PROPERTY_OVERRIDES += \
271persist.vendor.audio.ras.enabled=false
272
273#Buffer size in kbytes for compress offload playback
274PRODUCT_PROPERTY_OVERRIDES += \
275vendor.audio.offload.buffer.size.kb=32
276
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800277#Enable audio track offload by default
278PRODUCT_PROPERTY_OVERRIDES += \
279vendor.audio.offload.track.enable=true
280
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800281#enable voice path for PCM VoIP by default
282PRODUCT_PROPERTY_OVERRIDES += \
283vendor.voice.path.for.pcm.voip=true
284
285#Enable multi channel aac through offload
286PRODUCT_PROPERTY_OVERRIDES += \
287vendor.audio.offload.multiaac.enable=true
288
289#Enable DS2, Hardbypass feature for Dolby
290PRODUCT_PROPERTY_OVERRIDES += \
291vendor.audio.dolby.ds2.enabled=false\
292vendor.audio.dolby.ds2.hardbypass=false
293
294#Disable Multiple offload sesison
295PRODUCT_PROPERTY_OVERRIDES += \
296vendor.audio.offload.multiple.enabled=false
297
298#Disable Compress passthrough playback
299PRODUCT_PROPERTY_OVERRIDES += \
300vendor.audio.offload.passthrough=false
301
302#Disable surround sound recording
303PRODUCT_PROPERTY_OVERRIDES += \
304ro.vendor.audio.sdk.ssr=false
305
306#enable dsp gapless mode by default
307PRODUCT_PROPERTY_OVERRIDES += \
308vendor.audio.offload.gapless.enabled=true
309
310#enable pbe effects
311PRODUCT_PROPERTY_OVERRIDES += \
312vendor.audio.safx.pbe.enabled=false
313
314#parser input buffer size(256kb) in byte stream mode
315PRODUCT_PROPERTY_OVERRIDES += \
316vendor.audio.parser.ip.buffer.size=262144
317
318#flac sw decoder 24 bit decode capability
319PRODUCT_PROPERTY_OVERRIDES += \
320vendor.audio.flac.sw.decoder.24bit=true
321
Jaideep Sharma603ca642020-09-16 08:42:57 +0530322#timeout crash duration set to 20sec before system is ready.
323#timeout duration updates to default timeout of 5sec once the system is ready.
324PRODUCT_PROPERTY_OVERRIDES += \
325vendor.audio.hal.boot.timeout.ms=20000
326
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800327#split a2dp DSP supported encoder list
328PRODUCT_PROPERTY_OVERRIDES += \
329persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aac-ldac
330
331# A2DP offload support
332PRODUCT_PROPERTY_OVERRIDES += \
333ro.bluetooth.a2dp_offload.supported=true
334
335# Disable A2DP offload
336PRODUCT_PROPERTY_OVERRIDES += \
337persist.bluetooth.a2dp_offload.disabled=false
338
339# A2DP offload DSP supported encoder list
340PRODUCT_PROPERTY_OVERRIDES += \
Manisha Agarwald45632b2019-10-17 18:14:28 +0800341persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac-lc3
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800342
343#enable software decoders for ALAC and APE
344PRODUCT_PROPERTY_OVERRIDES += \
345vendor.audio.use.sw.alac.decoder=true
346PRODUCT_PROPERTY_OVERRIDES += \
347vendor.audio.use.sw.ape.decoder=true
348
Fawad Shaukat37eda032020-03-29 08:23:02 -0700349#enable software decoder for MPEG-H
350PRODUCT_PROPERTY_OVERRIDES += \
351vendor.audio.use.sw.mpegh.decoder=true
352
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800353#enable hw aac encoder by default
354PRODUCT_PROPERTY_OVERRIDES += \
355vendor.audio.hw.aac.encoder=true
356
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800357#Set HAL buffer size to samples equal to 3 ms
358PRODUCT_PROPERTY_OVERRIDES += \
359vendor.audio_hal.in_period_size=144
360
361#Set HAL buffer size to 3 ms
362PRODUCT_PROPERTY_OVERRIDES += \
363vendor.audio_hal.period_multiplier=3
364
365#ADM Buffering size in ms
366PRODUCT_PROPERTY_OVERRIDES += \
367vendor.audio.adm.buffering.ms=2
368
369#enable headset calibration
370PRODUCT_PROPERTY_OVERRIDES += \
371vendor.audio.volume.headset.gain.depcal=true
372
373#enable dualmic fluence for voice communication
374PRODUCT_PROPERTY_OVERRIDES += \
375persist.audio.fluence.voicecomm=true
Aalique Grahame55570162020-02-10 12:58:47 -0800376
377ifneq ($(GENERIC_ODM_IMAGE),true)
378$(warning "Enabling codec2.0 SW only for non-generic odm build variant")
379#Rank OMX SW codecs lower than OMX HW codecs
380PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0
381endif
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800382endif
383
384USE_XML_AUDIO_POLICY_CONF := 1
385
386#enable keytone FR
387PRODUCT_PROPERTY_OVERRIDES += \
388vendor.audio.hal.output.suspend.supported=true
389
390#Enable AAudio MMAP/NOIRQ data path
391#2 is AAUDIO_POLICY_AUTO so it will try MMAP then fallback to Legacy path
392PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_policy=2
393#Allow EXCLUSIVE then fall back to SHARED.
394PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_exclusive_policy=2
395PRODUCT_PROPERTY_OVERRIDES += aaudio.hw_burst_min_usec=2000
396
397
398#enable mirror-link feature
399PRODUCT_PROPERTY_OVERRIDES += \
400vendor.audio.enable.mirrorlink=false
401
402#enable voicecall speaker stereo
403PRODUCT_PROPERTY_OVERRIDES += \
404persist.vendor.audio.voicecall.speaker.stereo=true
405
406#enable AAC frame ctl for A2DP sinks
407PRODUCT_PROPERTY_OVERRIDES += \
408persist.vendor.bt.aac_frm_ctl.enabled=true
409
Zhou Song9b7822f2020-03-16 10:29:58 +0800410#enable VBR frame ctl
411PRODUCT_PROPERTY_OVERRIDES += \
412persist.vendor.bt.aac_vbr_frm_ctl.enabled=true
413
Zhou Songf80dbcc2020-03-22 19:23:15 +0800414#enable dedicated proxy for hearing aid
415PRODUCT_PROPERTY_OVERRIDES += \
416persist.vendor.audio.ha_proxy.enabled=true
417
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800418#add dynamic feature flags here
419PRODUCT_PROPERTY_OVERRIDES += \
420vendor.audio.feature.a2dp_offload.enable=true \
421vendor.audio.feature.afe_proxy.enable=true \
422vendor.audio.feature.anc_headset.enable=false \
423vendor.audio.feature.battery_listener.enable=true \
424vendor.audio.feature.compr_cap.enable=false \
425vendor.audio.feature.compress_in.enable=true \
426vendor.audio.feature.compress_meta_data.enable=true \
427vendor.audio.feature.compr_voip.enable=false \
428vendor.audio.feature.concurrent_capture.enable=true \
429vendor.audio.feature.custom_stereo.enable=true \
430vendor.audio.feature.display_port.enable=true \
431vendor.audio.feature.dsm_feedback.enable=false \
432vendor.audio.feature.dynamic_ecns.enable=true \
433vendor.audio.feature.ext_hw_plugin.enable=false \
434vendor.audio.feature.external_dsp.enable=false \
435vendor.audio.feature.external_speaker.enable=false \
436vendor.audio.feature.external_speaker_tfa.enable=false \
437vendor.audio.feature.fluence.enable=true \
438vendor.audio.feature.fm.enable=true \
439vendor.audio.feature.hdmi_edid.enable=true \
440vendor.audio.feature.hdmi_passthrough.enable=true \
441vendor.audio.feature.hfp.enable=true \
442vendor.audio.feature.hifi_audio.enable=false \
443vendor.audio.feature.hwdep_cal.enable=false \
444vendor.audio.feature.incall_music.enable=true \
445vendor.audio.feature.multi_voice_session.enable=true \
446vendor.audio.feature.keep_alive.enable=true \
447vendor.audio.feature.kpi_optimize.enable=true \
448vendor.audio.feature.maxx_audio.enable=false \
449vendor.audio.feature.ras.enable=true \
450vendor.audio.feature.record_play_concurency.enable=false \
451vendor.audio.feature.src_trkn.enable=true \
452vendor.audio.feature.spkr_prot.enable=true \
453vendor.audio.feature.ssrec.enable=true \
454vendor.audio.feature.usb_offload.enable=true \
455vendor.audio.feature.usb_offload_burst_mode.enable=true \
456vendor.audio.feature.usb_offload_sidetone_volume.enable=false \
457vendor.audio.feature.deepbuffer_as_primary.enable=false \
458vendor.audio.feature.vbat.enable=true \
459vendor.audio.feature.wsa.enable=false \
460vendor.audio.feature.audiozoom.enable=false \
Kunlei Zhang62a93402020-04-27 20:30:59 +0800461vendor.audio.feature.snd_mon.enable=true \
462vendor.audio.feature.power_mode.enable=true
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800463
464# for HIDL related packages
465PRODUCT_PACKAGES += \
466 android.hardware.audio@2.0-service \
467 android.hardware.audio@2.0-impl \
468 android.hardware.audio.effect@2.0-impl \
469 android.hardware.soundtrigger@2.1-impl \
470 android.hardware.audio@4.0 \
471 android.hardware.audio.common@4.0 \
472 android.hardware.audio.common@4.0-util \
473 android.hardware.audio@4.0-impl \
474 android.hardware.audio.effect@4.0 \
Jaideep Sharmaaadb90e2020-10-14 14:45:31 +0530475 android.hardware.audio.effect@4.0-impl
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800476
477# enable audio hidl hal 5.0
478PRODUCT_PACKAGES += \
479 android.hardware.audio@5.0 \
480 android.hardware.audio.common@5.0 \
481 android.hardware.audio.common@5.0-util \
482 android.hardware.audio@5.0-impl \
483 android.hardware.audio.effect@5.0 \
484 android.hardware.audio.effect@5.0-impl
485
Jaideep Sharmaab2c9ca2020-02-18 10:45:19 +0530486# enable audio hidl hal 6.0
487PRODUCT_PACKAGES += \
488 android.hardware.audio@6.0 \
489 android.hardware.audio.common@6.0 \
490 android.hardware.audio.common@6.0-util \
491 android.hardware.audio@6.0-impl \
492 android.hardware.audio.effect@6.0 \
493 android.hardware.audio.effect@6.0-impl
494
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800495# enable sound trigger hidl hal 2.2
496PRODUCT_PACKAGES += \
497 android.hardware.soundtrigger@2.2-impl \
498
Harshal Ahire3656f712020-08-11 22:29:27 +0530499# enable sound trigger hidl hal 2.3
500PRODUCT_PACKAGES += \
501 android.hardware.soundtrigger@2.3-impl \
502
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800503PRODUCT_PACKAGES_ENG += \
504 VoicePrintTest \
505 VoicePrintDemo
506
507PRODUCT_PACKAGES_DEBUG += \
508 AudioSettings
Vignesh Kulothungane48106d2020-01-10 12:06:05 -0800509
510ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DEV_ARBI)),true)
511PRODUCT_PACKAGES_DEBUG += \
512 libaudiodevarb
513endif
514
515ifeq ($(call is-vendor-board-platform,QCOM),true)
516ifeq ($(call is-platform-sdk-version-at-least,28),true)
517PRODUCT_PACKAGES_DEBUG += \
518 libqti_resampler_headers \
519 lib_soundmodel_headers \
520 libqti_vraudio_headers
521endif
522ifeq ($(strip $(AUDIO_FEATURE_ENABLED_3D_AUDIO)),true)
523PRODUCT_PACKAGES_DEBUG += \
524 libvr_object_engine \
525 libvr_amb_engine \
526 libhoaeffects_csim
527endif
528endif
529
530ifeq ($(strip $(BOARD_SUPPORTS_SOUND_TRIGGER)),true)
531PRODUCT_PACKAGES_DEBUG += \
532 libadpcmdec
533endif
Meng Wang4c32fb42020-01-16 17:57:11 +0800534
535AUDIO_FEATURE_ENABLED_GKI := true