blob: 14efb454538300441f860c235dd635b24e703a66 [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
Ajender Reddy21ab1cc2020-11-24 08:24:29 +05309##mixer xml generation
Ajender Reddyd8735de2020-12-03 18:54:34 +053010#BASE_PATH := vendor/qcom/opensource/audio-hal/primary-hal/configs/common/base
11#OVERLAY_PATH := vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/shima_overlay
12#TARGET_PATH := vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina
13#SCRIPT := vendor/qcom/opensource/audio-hal/primary-hal/configs/common/mixer_xml_utils.py
Vignesh Kulothungan92a38712019-12-23 14:54:19 -080014
Ajender Reddyd8735de2020-12-03 18:54:34 +053015#$(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 )
Ajender Reddy21ab1cc2020-11-24 08:24:29 +053016
Ajender Reddyd8735de2020-12-03 18:54:34 +053017#$(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 Reddy21ab1cc2020-11-24 08:24:29 +053018##
Vignesh Kulothungan92a38712019-12-23 14:54:19 -080019ifneq ($(AUDIO_USE_STUB_HAL), true)
20BOARD_USES_ALSA_AUDIO := true
21TARGET_USES_AOSP_FOR_AUDIO := false
22
23ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
24USE_CUSTOM_AUDIO_POLICY := 1
Jaideep Sharma5f172f22020-01-30 22:41:21 +053025AUDIO_FEATURE_QSSI_COMPLIANCE := true
Vignesh Kulothungan92a38712019-12-23 14:54:19 -080026AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false
27AUDIO_FEATURE_ENABLED_COMPRESS_INPUT := true
28AUDIO_FEATURE_ENABLED_CONCURRENT_CAPTURE := true
29AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := false
30AUDIO_FEATURE_ENABLED_DYNAMIC_ECNS := true
31AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
32AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true
33AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := true
34AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
35AUDIO_FEATURE_ENABLED_HDMI_SPK := true
36AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true
37AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true
38AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true
39AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true
40AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true
41AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true
42AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true
43AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true
44AUDIO_FEATURE_ENABLED_MPEGH_SW_DECODER := true
45AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
46AUDIO_FEATURE_ENABLED_SSR := true
47AUDIO_FEATURE_ENABLED_DTS_EAGLE := false
48BOARD_USES_SRS_TRUEMEDIA := false
49DTS_CODEC_M_ := false
50MM_AUDIO_ENABLED_SAFX := true
51AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
52AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
53AUDIO_FEATURE_ENABLED_USB_TUNNEL := true
54AUDIO_FEATURE_ENABLED_A2DP_OFFLOAD := true
Vignesh Kulothungan92a38712019-12-23 14:54:19 -080055AUDIO_FEATURE_ENABLED_3D_AUDIO := true
Jaideep Sharmaaadb90e2020-10-14 14:45:31 +053056AUDIO_FEATURE_ENABLED_AHAL_EXT := false
Vignesh Kulothungan92a38712019-12-23 14:54:19 -080057AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT := true
58DOLBY_ENABLE := false
59endif
60
61AUDIO_FEATURE_ENABLED_DLKM := true
62BOARD_SUPPORTS_SOUND_TRIGGER := true
63BOARD_SUPPORTS_GCS := false
64AUDIO_FEATURE_ENABLED_INSTANCE_ID := true
65AUDIO_USE_DEEP_AS_PRIMARY_OUTPUT := false
66AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
67AUDIO_FEATURE_ENABLED_NT_PAUSE_TIMEOUT := true
68AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
69AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true
70AUDIO_FEATURE_ENABLED_FLUENCE := true
71AUDIO_FEATURE_ENABLED_HDMI_EDID := true
72AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH := true
73#AUDIO_FEATURE_ENABLED_KEEP_ALIVE := true
74AUDIO_FEATURE_ENABLED_DISPLAY_PORT := true
75AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := false
76AUDIO_FEATURE_ENABLED_HFP := true
77AUDIO_FEATURE_ENABLED_INCALL_MUSIC := true
78AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
79AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
80AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
81AUDIO_FEATURE_ENABLED_ACDB_LICENSE := false
82AUDIO_FEATURE_ENABLED_DEV_ARBI := false
83AUDIO_FEATURE_ENABLED_DYNAMIC_LOG := true
84MM_AUDIO_ENABLED_FTM := true
85TARGET_USES_QCOM_MM_AUDIO := true
86AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
87AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
88BOARD_SUPPORTS_QAHW := false
89AUDIO_FEATURE_ENABLED_RAS := true
90AUDIO_FEATURE_ENABLED_SND_MONITOR := true
91AUDIO_FEATURE_ENABLED_USB_BURST_MODE := true
92AUDIO_FEATURE_ENABLED_SVA_MULTI_STAGE := true
93AUDIO_FEATURE_ENABLED_BATTERY_LISTENER := true
94##AUDIO_FEATURE_FLAGS
95
96BOARD_SUPPORTS_OPENSOURCE_STHAL := true
97
98AUDIO_HARDWARE := audio.a2dp.default
99AUDIO_HARDWARE += audio.usb.default
100AUDIO_HARDWARE += audio.r_submix.default
101AUDIO_HARDWARE += audio.primary.lahaina
102
103#HAL Wrapper
104AUDIO_WRAPPER := libqahw
105AUDIO_WRAPPER += libqahwwrapper
106
107#HAL Test app
108AUDIO_HAL_TEST_APPS := hal_play_test
109AUDIO_HAL_TEST_APPS += hal_rec_test
110
111PRODUCT_PACKAGES += $(AUDIO_HARDWARE)
112PRODUCT_PACKAGES += $(AUDIO_WRAPPER)
113PRODUCT_PACKAGES += $(AUDIO_HAL_TEST_APPS)
Meng Wang3f547d42020-03-03 18:07:16 +0800114PRODUCT_PACKAGES += ftm_test_config_lahaina-qrd-snd-card
Meng Wang65c6d5e2020-09-18 15:05:40 +0800115PRODUCT_PACKAGES += ftm_test_config_lahaina-hdk-snd-card
Xiaojun Sanga5197a92020-07-28 10:28:55 +0800116PRODUCT_PACKAGES += ftm_test_config_lahaina-shimaidp-snd-card
117PRODUCT_PACKAGES += ftm_test_config_lahaina-shimaidps-snd-card
118PRODUCT_PACKAGES += ftm_test_config_lahaina-shimaqrd-snd-card
George Gaofb568792020-03-17 10:18:26 -0700119PRODUCT_PACKAGES += audioadsprpcd
120PRODUCT_PACKAGES += vendor.qti.audio-adsprpc-service.rc
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800121
122ifneq ($(strip $(TARGET_USES_RRO)), true)
123#Audio Specific device overlays
124DEVICE_PACKAGE_OVERLAYS += vendor/qcom/opensource/audio-hal/primary-hal/configs/common/overlay
125endif
126
127PRODUCT_COPY_FILES += \
128 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_io_policy.conf \
129 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
130 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
131 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \
132 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
133 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 +0800134 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 -0800135 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
136 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
137 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 \
138 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 +0800139 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 -0800140 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
141 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_qrd.xml \
142 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 +0800143 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 -0800144 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 -0800145 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 -0800146 frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \
147 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml
148
149#XML Audio configuration files
150ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
151PRODUCT_COPY_FILES += \
152 $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml
153endif
154PRODUCT_COPY_FILES += \
155 $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
156 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
157 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
158 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
159 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
160 $(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 +0800161 $(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 \
162 $(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 -0800163
Saurav Kumarf51ddec2020-06-12 15:42:59 +0530164#TODO: Delete xml's from obsolete paths
165# Audio configuration xml's related to Lahaina
166QCV_FAMILY_SKUS := lahaina
167DEVICE_SKU := lahaina
168
169PRODUCT_COPY_FILES += \
170 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 \
171 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.conf \
172 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.xml \
173 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 \
174 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 \
175 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 +0800176 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 +0530177 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 \
178 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 \
179 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 \
180 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 +0800181 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 +0530182 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths.xml \
183 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 \
184 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 +0800185 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 +0530186 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 \
187 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/default_volume_tables.xml \
188 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 \
189 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 +0530190
191#Copy generic APM XML file to common folder for runtime copy
192PRODUCT_COPY_FILES += \
193 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
194
195# Audio configuration xml's common to Lahaina family
196PRODUCT_COPY_FILES += \
197$(foreach DEVICE_SKU, $(QCV_FAMILY_SKUS), \
198 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)
199
Vatsal Buchaed32d302020-08-27 12:52:00 +0530200QCV_FAMILY_SKUS := shima
201DEVICE_SKU := shima
Vatsal Bucha49868cd2020-07-10 15:27:05 +0530202
203PRODUCT_COPY_FILES += \
204 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 \
205 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.conf \
206 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.xml \
207 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 \
208 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 +0800209 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 +0530210 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 \
211 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 \
212 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 +0800213 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 +0530214 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 \
215 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 +0800216 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 +0530217 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 \
218 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/default_volume_tables.xml \
219 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 \
220 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_policy_volumes.xml
221
Vatsal Bucha49868cd2020-07-10 15:27:05 +0530222
223#Copy generic APM XML file to common folder for runtime copy
224PRODUCT_COPY_FILES += \
225 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
226
227# Audio configuration xml's common to cedros family
228PRODUCT_COPY_FILES += \
229$(foreach DEVICE_SKU, $(QCV_FAMILY_SKUS), \
230 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)
231
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800232# Low latency audio buffer size in frames
233PRODUCT_PROPERTY_OVERRIDES += \
234 vendor.audio_hal.period_size=192
235
236##Ambisonic Capture
237PRODUCT_PROPERTY_OVERRIDES += \
238persist.vendor.audio.ambisonic.capture=false \
239persist.vendor.audio.ambisonic.auto.profile=false
240
241PRODUCT_PROPERTY_OVERRIDES += \
242persist.vendor.audio.apptype.multirec.enabled=false
243
244##fluencetype can be "fluence" or "fluencepro" or "none"
245PRODUCT_PROPERTY_OVERRIDES += \
246ro.vendor.audio.sdk.fluencetype=none\
247persist.vendor.audio.fluence.voicecall=true\
248persist.vendor.audio.fluence.voicerec=false\
249persist.vendor.audio.fluence.speaker=true\
250persist.vendor.audio.fluence.tmic.enabled=false
251
Sudheer Papothi20b771e2020-05-29 05:15:02 +0530252##speaker protection v4 switch and ADSP AFE API version
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800253PRODUCT_PROPERTY_OVERRIDES += \
Sudheer Papothi20b771e2020-05-29 05:15:02 +0530254persist.vendor.audio.speaker.prot.enable=true\
255persist.vendor.audio.spv4.enable=true\
256persist.vendor.audio.avs.afe_api_version=9
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800257
Ajender Reddyd8735de2020-12-03 18:54:34 +0530258##bcl aka vbat monitor feature enable by default
259PRODUCT_PROPERTY_OVERRIDES += \
260persist.vendor.audio.vbat.enabled=true\
261persist.vendor.audio.bcl.enabled=true\
262
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800263#disable tunnel encoding
264PRODUCT_PROPERTY_OVERRIDES += \
265vendor.audio.tunnel.encode=false
266
267#Disable RAS Feature by default
268PRODUCT_PROPERTY_OVERRIDES += \
269persist.vendor.audio.ras.enabled=false
270
271#Buffer size in kbytes for compress offload playback
272PRODUCT_PROPERTY_OVERRIDES += \
273vendor.audio.offload.buffer.size.kb=32
274
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800275#Enable audio track offload by default
276PRODUCT_PROPERTY_OVERRIDES += \
277vendor.audio.offload.track.enable=true
278
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800279#enable voice path for PCM VoIP by default
280PRODUCT_PROPERTY_OVERRIDES += \
281vendor.voice.path.for.pcm.voip=true
282
283#Enable multi channel aac through offload
284PRODUCT_PROPERTY_OVERRIDES += \
285vendor.audio.offload.multiaac.enable=true
286
287#Enable DS2, Hardbypass feature for Dolby
288PRODUCT_PROPERTY_OVERRIDES += \
289vendor.audio.dolby.ds2.enabled=false\
290vendor.audio.dolby.ds2.hardbypass=false
291
292#Disable Multiple offload sesison
293PRODUCT_PROPERTY_OVERRIDES += \
294vendor.audio.offload.multiple.enabled=false
295
296#Disable Compress passthrough playback
297PRODUCT_PROPERTY_OVERRIDES += \
298vendor.audio.offload.passthrough=false
299
300#Disable surround sound recording
301PRODUCT_PROPERTY_OVERRIDES += \
302ro.vendor.audio.sdk.ssr=false
303
304#enable dsp gapless mode by default
305PRODUCT_PROPERTY_OVERRIDES += \
306vendor.audio.offload.gapless.enabled=true
307
308#enable pbe effects
309PRODUCT_PROPERTY_OVERRIDES += \
310vendor.audio.safx.pbe.enabled=false
311
312#parser input buffer size(256kb) in byte stream mode
313PRODUCT_PROPERTY_OVERRIDES += \
314vendor.audio.parser.ip.buffer.size=262144
315
316#flac sw decoder 24 bit decode capability
317PRODUCT_PROPERTY_OVERRIDES += \
318vendor.audio.flac.sw.decoder.24bit=true
319
Jaideep Sharma603ca642020-09-16 08:42:57 +0530320#timeout crash duration set to 20sec before system is ready.
321#timeout duration updates to default timeout of 5sec once the system is ready.
322PRODUCT_PROPERTY_OVERRIDES += \
323vendor.audio.hal.boot.timeout.ms=20000
324
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800325#split a2dp DSP supported encoder list
326PRODUCT_PROPERTY_OVERRIDES += \
327persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aac-ldac
328
329# A2DP offload support
330PRODUCT_PROPERTY_OVERRIDES += \
331ro.bluetooth.a2dp_offload.supported=true
332
333# Disable A2DP offload
334PRODUCT_PROPERTY_OVERRIDES += \
335persist.bluetooth.a2dp_offload.disabled=false
336
337# A2DP offload DSP supported encoder list
338PRODUCT_PROPERTY_OVERRIDES += \
Manisha Agarwald45632b2019-10-17 18:14:28 +0800339persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac-lc3
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800340
341#enable software decoders for ALAC and APE
342PRODUCT_PROPERTY_OVERRIDES += \
343vendor.audio.use.sw.alac.decoder=true
344PRODUCT_PROPERTY_OVERRIDES += \
345vendor.audio.use.sw.ape.decoder=true
346
Fawad Shaukat37eda032020-03-29 08:23:02 -0700347#enable software decoder for MPEG-H
348PRODUCT_PROPERTY_OVERRIDES += \
349vendor.audio.use.sw.mpegh.decoder=true
350
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800351#enable hw aac encoder by default
352PRODUCT_PROPERTY_OVERRIDES += \
353vendor.audio.hw.aac.encoder=true
354
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800355#Set HAL buffer size to samples equal to 3 ms
356PRODUCT_PROPERTY_OVERRIDES += \
357vendor.audio_hal.in_period_size=144
358
359#Set HAL buffer size to 3 ms
360PRODUCT_PROPERTY_OVERRIDES += \
361vendor.audio_hal.period_multiplier=3
362
363#ADM Buffering size in ms
364PRODUCT_PROPERTY_OVERRIDES += \
365vendor.audio.adm.buffering.ms=2
366
367#enable headset calibration
368PRODUCT_PROPERTY_OVERRIDES += \
369vendor.audio.volume.headset.gain.depcal=true
370
371#enable dualmic fluence for voice communication
372PRODUCT_PROPERTY_OVERRIDES += \
373persist.audio.fluence.voicecomm=true
Aalique Grahame55570162020-02-10 12:58:47 -0800374
375ifneq ($(GENERIC_ODM_IMAGE),true)
376$(warning "Enabling codec2.0 SW only for non-generic odm build variant")
377#Rank OMX SW codecs lower than OMX HW codecs
378PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0
379endif
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800380endif
381
382USE_XML_AUDIO_POLICY_CONF := 1
383
384#enable keytone FR
385PRODUCT_PROPERTY_OVERRIDES += \
386vendor.audio.hal.output.suspend.supported=true
387
388#Enable AAudio MMAP/NOIRQ data path
389#2 is AAUDIO_POLICY_AUTO so it will try MMAP then fallback to Legacy path
390PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_policy=2
391#Allow EXCLUSIVE then fall back to SHARED.
392PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_exclusive_policy=2
393PRODUCT_PROPERTY_OVERRIDES += aaudio.hw_burst_min_usec=2000
394
395
396#enable mirror-link feature
397PRODUCT_PROPERTY_OVERRIDES += \
398vendor.audio.enable.mirrorlink=false
399
400#enable voicecall speaker stereo
401PRODUCT_PROPERTY_OVERRIDES += \
402persist.vendor.audio.voicecall.speaker.stereo=true
403
404#enable AAC frame ctl for A2DP sinks
405PRODUCT_PROPERTY_OVERRIDES += \
406persist.vendor.bt.aac_frm_ctl.enabled=true
407
Zhou Song9b7822f2020-03-16 10:29:58 +0800408#enable VBR frame ctl
409PRODUCT_PROPERTY_OVERRIDES += \
410persist.vendor.bt.aac_vbr_frm_ctl.enabled=true
411
Zhou Songf80dbcc2020-03-22 19:23:15 +0800412#enable dedicated proxy for hearing aid
413PRODUCT_PROPERTY_OVERRIDES += \
414persist.vendor.audio.ha_proxy.enabled=true
415
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800416#add dynamic feature flags here
417PRODUCT_PROPERTY_OVERRIDES += \
418vendor.audio.feature.a2dp_offload.enable=true \
419vendor.audio.feature.afe_proxy.enable=true \
420vendor.audio.feature.anc_headset.enable=false \
421vendor.audio.feature.battery_listener.enable=true \
422vendor.audio.feature.compr_cap.enable=false \
423vendor.audio.feature.compress_in.enable=true \
424vendor.audio.feature.compress_meta_data.enable=true \
425vendor.audio.feature.compr_voip.enable=false \
426vendor.audio.feature.concurrent_capture.enable=true \
427vendor.audio.feature.custom_stereo.enable=true \
428vendor.audio.feature.display_port.enable=true \
429vendor.audio.feature.dsm_feedback.enable=false \
430vendor.audio.feature.dynamic_ecns.enable=true \
431vendor.audio.feature.ext_hw_plugin.enable=false \
432vendor.audio.feature.external_dsp.enable=false \
433vendor.audio.feature.external_speaker.enable=false \
434vendor.audio.feature.external_speaker_tfa.enable=false \
435vendor.audio.feature.fluence.enable=true \
436vendor.audio.feature.fm.enable=true \
437vendor.audio.feature.hdmi_edid.enable=true \
438vendor.audio.feature.hdmi_passthrough.enable=true \
439vendor.audio.feature.hfp.enable=true \
440vendor.audio.feature.hifi_audio.enable=false \
441vendor.audio.feature.hwdep_cal.enable=false \
442vendor.audio.feature.incall_music.enable=true \
443vendor.audio.feature.multi_voice_session.enable=true \
444vendor.audio.feature.keep_alive.enable=true \
445vendor.audio.feature.kpi_optimize.enable=true \
446vendor.audio.feature.maxx_audio.enable=false \
447vendor.audio.feature.ras.enable=true \
448vendor.audio.feature.record_play_concurency.enable=false \
449vendor.audio.feature.src_trkn.enable=true \
450vendor.audio.feature.spkr_prot.enable=true \
451vendor.audio.feature.ssrec.enable=true \
452vendor.audio.feature.usb_offload.enable=true \
453vendor.audio.feature.usb_offload_burst_mode.enable=true \
454vendor.audio.feature.usb_offload_sidetone_volume.enable=false \
455vendor.audio.feature.deepbuffer_as_primary.enable=false \
456vendor.audio.feature.vbat.enable=true \
457vendor.audio.feature.wsa.enable=false \
458vendor.audio.feature.audiozoom.enable=false \
Kunlei Zhang62a93402020-04-27 20:30:59 +0800459vendor.audio.feature.snd_mon.enable=true \
460vendor.audio.feature.power_mode.enable=true
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800461
462# for HIDL related packages
463PRODUCT_PACKAGES += \
464 android.hardware.audio@2.0-service \
465 android.hardware.audio@2.0-impl \
466 android.hardware.audio.effect@2.0-impl \
467 android.hardware.soundtrigger@2.1-impl \
468 android.hardware.audio@4.0 \
469 android.hardware.audio.common@4.0 \
470 android.hardware.audio.common@4.0-util \
471 android.hardware.audio@4.0-impl \
472 android.hardware.audio.effect@4.0 \
Jaideep Sharmaaadb90e2020-10-14 14:45:31 +0530473 android.hardware.audio.effect@4.0-impl
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800474
475# enable audio hidl hal 5.0
476PRODUCT_PACKAGES += \
477 android.hardware.audio@5.0 \
478 android.hardware.audio.common@5.0 \
479 android.hardware.audio.common@5.0-util \
480 android.hardware.audio@5.0-impl \
481 android.hardware.audio.effect@5.0 \
482 android.hardware.audio.effect@5.0-impl
483
Jaideep Sharmaab2c9ca2020-02-18 10:45:19 +0530484# enable audio hidl hal 6.0
485PRODUCT_PACKAGES += \
486 android.hardware.audio@6.0 \
487 android.hardware.audio.common@6.0 \
488 android.hardware.audio.common@6.0-util \
489 android.hardware.audio@6.0-impl \
490 android.hardware.audio.effect@6.0 \
491 android.hardware.audio.effect@6.0-impl
492
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800493# enable sound trigger hidl hal 2.2
494PRODUCT_PACKAGES += \
495 android.hardware.soundtrigger@2.2-impl \
496
Harshal Ahire3656f712020-08-11 22:29:27 +0530497# enable sound trigger hidl hal 2.3
498PRODUCT_PACKAGES += \
499 android.hardware.soundtrigger@2.3-impl \
500
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800501PRODUCT_PACKAGES_ENG += \
502 VoicePrintTest \
503 VoicePrintDemo
504
505PRODUCT_PACKAGES_DEBUG += \
506 AudioSettings
Vignesh Kulothungane48106d2020-01-10 12:06:05 -0800507
508ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DEV_ARBI)),true)
509PRODUCT_PACKAGES_DEBUG += \
510 libaudiodevarb
511endif
512
513ifeq ($(call is-vendor-board-platform,QCOM),true)
514ifeq ($(call is-platform-sdk-version-at-least,28),true)
515PRODUCT_PACKAGES_DEBUG += \
516 libqti_resampler_headers \
517 lib_soundmodel_headers \
518 libqti_vraudio_headers
519endif
520ifeq ($(strip $(AUDIO_FEATURE_ENABLED_3D_AUDIO)),true)
521PRODUCT_PACKAGES_DEBUG += \
522 libvr_object_engine \
523 libvr_amb_engine \
524 libhoaeffects_csim
525endif
526endif
527
528ifeq ($(strip $(BOARD_SUPPORTS_SOUND_TRIGGER)),true)
529PRODUCT_PACKAGES_DEBUG += \
530 libadpcmdec
531endif
Meng Wang4c32fb42020-01-16 17:57:11 +0800532
533AUDIO_FEATURE_ENABLED_GKI := true