blob: c3a6d3710a87e0d106de09779e37e8a3f8b2af9e [file] [log] [blame]
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +05301#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
Alexander Koskovichf8dab642021-08-01 19:28:31 -070010AUDIO_HAL_DIR := hardware/qcom-caf/sm8350/audio
11
Ajender Reddy4e90bb92020-12-10 12:23:45 +053012#mixer xml generation
Alexander Koskovichf8dab642021-08-01 19:28:31 -070013BASE_PATH := $(AUDIO_HAL_DIR)/configs/common/base
14OVERLAY_PATH := $(AUDIO_HAL_DIR)/configs/holi/holi_overlay
15TARGET_PATH := $(AUDIO_HAL_DIR)/configs/holi
16SCRIPT := $(AUDIO_HAL_DIR)/configs/common/mixer_xml_utils.py
Ajender Reddy21ab1cc2020-11-24 08:24:29 +053017
Ajender Reddy4e90bb92020-12-10 12:23:45 +053018$(shell python $(SCRIPT) --generate combine --base $(BASE_PATH)/mixer_paths_base.xml --overlay $(OVERLAY_PATH)/mixer_paths_overlay.xml $(OVERLAY_PATH)/mixer_paths_qrd_overlay.xml $(OVERLAY_PATH)/mixer_paths_usbc_overlay.xml --out_dir $(TARGET_PATH) --out mixer_paths.xml mixer_paths_qrd.xml mixer_paths_usbc.xml )
19
20$(shell python $(SCRIPT) --generate combine --base $(BASE_PATH)/sound_trigger_mixer_paths_base.xml --overlay $(OVERLAY_PATH)/sound_trigger_mixer_paths_overlay.xml $(OVERLAY_PATH)/sound_trigger_mixer_paths_qrd_overlay.xml $(OVERLAY_PATH)/sound_trigger_mixer_paths_usbc_overlay.xml --out_dir $(TARGET_PATH) --out sound_trigger_mixer_paths.xml sound_trigger_mixer_paths_qrd.xml sound_trigger_mixer_paths_usbc.xml )
21#
22
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +053023ifneq ($(AUDIO_USE_STUB_HAL), true)
24BOARD_USES_ALSA_AUDIO := true
25TARGET_USES_AOSP_FOR_AUDIO := false
26
27ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
28USE_CUSTOM_AUDIO_POLICY := 1
29AUDIO_FEATURE_QSSI_COMPLIANCE := true
30AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false
31AUDIO_FEATURE_ENABLED_COMPRESS_INPUT := true
32AUDIO_FEATURE_ENABLED_CONCURRENT_CAPTURE := true
33AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := false
34AUDIO_FEATURE_ENABLED_DYNAMIC_ECNS := true
35AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
36AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true
37AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := true
38AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
39AUDIO_FEATURE_ENABLED_HDMI_SPK := true
40AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true
41AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true
42AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true
43AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true
44AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true
45AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true
46AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true
47AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true
48AUDIO_FEATURE_ENABLED_MPEGH_SW_DECODER := true
49AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
50AUDIO_FEATURE_ENABLED_SSR := true
51AUDIO_FEATURE_ENABLED_DTS_EAGLE := false
52BOARD_USES_SRS_TRUEMEDIA := false
53DTS_CODEC_M_ := false
54MM_AUDIO_ENABLED_SAFX := true
55AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
56AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
57AUDIO_FEATURE_ENABLED_USB_TUNNEL := true
58AUDIO_FEATURE_ENABLED_A2DP_OFFLOAD := true
59AUDIO_FEATURE_ENABLED_3D_AUDIO := true
Jaideep Sharmaaadb90e2020-10-14 14:45:31 +053060AUDIO_FEATURE_ENABLED_AHAL_EXT := false
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +053061AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT := true
62DOLBY_ENABLE := false
63endif
64
65AUDIO_FEATURE_ENABLED_DLKM := true
66BOARD_SUPPORTS_SOUND_TRIGGER := true
67BOARD_SUPPORTS_GCS := false
68AUDIO_FEATURE_ENABLED_INSTANCE_ID := true
69AUDIO_USE_DEEP_AS_PRIMARY_OUTPUT := false
70AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
71AUDIO_FEATURE_ENABLED_NT_PAUSE_TIMEOUT := true
72AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
73AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true
74AUDIO_FEATURE_ENABLED_FLUENCE := true
75AUDIO_FEATURE_ENABLED_HDMI_EDID := true
76AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH := true
77#AUDIO_FEATURE_ENABLED_KEEP_ALIVE := true
78AUDIO_FEATURE_ENABLED_DISPLAY_PORT := true
79AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := false
80AUDIO_FEATURE_ENABLED_HFP := true
81AUDIO_FEATURE_ENABLED_INCALL_MUSIC := true
82AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
83AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
84AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
85AUDIO_FEATURE_ENABLED_ACDB_LICENSE := false
86AUDIO_FEATURE_ENABLED_DEV_ARBI := false
87AUDIO_FEATURE_ENABLED_DYNAMIC_LOG := true
88MM_AUDIO_ENABLED_FTM := true
89TARGET_USES_QCOM_MM_AUDIO := true
90AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
91AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
92BOARD_SUPPORTS_QAHW := false
93AUDIO_FEATURE_ENABLED_RAS := true
94AUDIO_FEATURE_ENABLED_SND_MONITOR := true
95AUDIO_FEATURE_ENABLED_USB_BURST_MODE := true
96AUDIO_FEATURE_ENABLED_SVA_MULTI_STAGE := true
97AUDIO_FEATURE_ENABLED_BATTERY_LISTENER := true
98##AUDIO_FEATURE_FLAGS
99
100BOARD_SUPPORTS_OPENSOURCE_STHAL := true
101
102AUDIO_HARDWARE := audio.a2dp.default
103AUDIO_HARDWARE += audio.usb.default
104AUDIO_HARDWARE += audio.r_submix.default
105AUDIO_HARDWARE += audio.primary.holi
106
107#HAL Wrapper
108AUDIO_WRAPPER := libqahw
109AUDIO_WRAPPER += libqahwwrapper
110
111#HAL Test app
112AUDIO_HAL_TEST_APPS := hal_play_test
113AUDIO_HAL_TEST_APPS += hal_rec_test
114
115PRODUCT_PACKAGES += $(AUDIO_HARDWARE)
116PRODUCT_PACKAGES += $(AUDIO_WRAPPER)
117PRODUCT_PACKAGES += $(AUDIO_HAL_TEST_APPS)
118PRODUCT_PACKAGES += ftm_test_config_holi-qrd-snd-card
119PRODUCT_PACKAGES += audioadsprpcd
120PRODUCT_PACKAGES += vendor.qti.audio-adsprpc-service.rc
121
122ifneq ($(strip $(TARGET_USES_RRO)), true)
123#Audio Specific device overlays
Alexander Koskovichf8dab642021-08-01 19:28:31 -0700124DEVICE_PACKAGE_OVERLAYS += $(AUDIO_HAL_DIR)/configs/common/overlay
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530125endif
126
127PRODUCT_COPY_FILES += \
Alexander Koskovichf8dab642021-08-01 19:28:31 -0700128 $(AUDIO_HAL_DIR)/configs/holi/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_io_policy.conf \
129 $(AUDIO_HAL_DIR)/configs/holi/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
130 $(AUDIO_HAL_DIR)/configs/holi/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
131 $(AUDIO_HAL_DIR)/configs/holi/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \
132 $(AUDIO_HAL_DIR)/configs/holi/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
133 $(AUDIO_HAL_DIR)/configs/holi/audio_platform_info_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_qrd.xml \
134 $(AUDIO_HAL_DIR)/configs/holi/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
135 $(AUDIO_HAL_DIR)/configs/holi/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
136$(AUDIO_HAL_DIR)/configs/holi/sound_trigger_mixer_paths_usbc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_usbc.xml \
137 $(AUDIO_HAL_DIR)/configs/holi/sound_trigger_mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_qrd.xml \
138 $(AUDIO_HAL_DIR)/configs/holi/sound_trigger_mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_qrdsku1.xml \
139 $(AUDIO_HAL_DIR)/configs/holi/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
140 $(AUDIO_HAL_DIR)/configs/holi/mixer_paths_usbc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_usbc.xml \
141 $(AUDIO_HAL_DIR)/configs/holi/mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_qrd.xml \
142 $(AUDIO_HAL_DIR)/configs/holi/mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_qrdsku1.xml \
143 $(AUDIO_HAL_DIR)/configs/holi/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
144 $(AUDIO_HAL_DIR)/configs/common/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530145 frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \
146 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml
147
148#XML Audio configuration files
149ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
150PRODUCT_COPY_FILES += \
Alexander Koskovichf8dab642021-08-01 19:28:31 -0700151 $(TOPDIR)$(AUDIO_HAL_DIR)/configs/holi/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530152endif
153PRODUCT_COPY_FILES += \
Alexander Koskovichf8dab642021-08-01 19:28:31 -0700154 $(TOPDIR)$(AUDIO_HAL_DIR)/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530155 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
156 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
157 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
158 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
159 $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \
Alexander Koskovichf8dab642021-08-01 19:28:31 -0700160 $(TOPDIR)$(AUDIO_HAL_DIR)/configs/common/bluetooth_qti_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_qti_audio_policy_configuration.xml \
161 $(TOPDIR)$(AUDIO_HAL_DIR)/configs/common/bluetooth_qti_hearing_aid_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_qti_hearing_aid_audio_policy_configuration.xml
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530162
163#TODO: Delete xml's from obsolete paths
164# Audio configuration xml's related to Holi
165QCV_FAMILY_SKUS := holi
166DEVICE_SKU := holi
167
168PRODUCT_COPY_FILES += \
Alexander Koskovichf8dab642021-08-01 19:28:31 -0700169 $(AUDIO_HAL_DIR)/configs/holi/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_io_policy.conf \
170 $(AUDIO_HAL_DIR)/configs/holi/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.conf \
171 $(AUDIO_HAL_DIR)/configs/holi/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.xml \
172 $(AUDIO_HAL_DIR)/configs/holi/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_platform_info.xml \
173 $(AUDIO_HAL_DIR)/configs/holi/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_platform_info.xml \
174 $(AUDIO_HAL_DIR)/configs/holi/audio_platform_info_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_platform_info_qrd.xml \
175 $(AUDIO_HAL_DIR)/configs/holi/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_platform_info_intcodec.xml \
176 $(AUDIO_HAL_DIR)/configs/holi/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_mixer_paths.xml \
177$(AUDIO_HAL_DIR)/configs/holi/sound_trigger_mixer_paths_usbc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_mixer_paths_usbc.xml \
178 $(AUDIO_HAL_DIR)/configs/holi/sound_trigger_mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_mixer_paths_qrd.xml \
179 $(AUDIO_HAL_DIR)/configs/holi/sound_trigger_mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_mixer_paths_qrdsku1.xml \
180 $(AUDIO_HAL_DIR)/configs/holi/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths.xml \
181 $(AUDIO_HAL_DIR)/configs/holi/mixer_paths_usbc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths_usbc.xml \
182 $(AUDIO_HAL_DIR)/configs/holi/mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths_qrd.xml \
183 $(AUDIO_HAL_DIR)/configs/holi/mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths_qrdsku1.xml \
184 $(AUDIO_HAL_DIR)/configs/holi/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_tuning_mixer.txt
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530185
186# Audio configuration xml's common to Holi family
187PRODUCT_COPY_FILES += \
188$(foreach DEVICE_SKU, $(QCV_FAMILY_SKUS), \
Alexander Koskovichf8dab642021-08-01 19:28:31 -0700189 $(AUDIO_HAL_DIR)/configs/common/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/media_codecs_vendor_audio.xml \
190 $(AUDIO_HAL_DIR)/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_policy_configuration.xml \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530191 frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/a2dp_audio_policy_configuration.xml \
192 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_policy_volumes.xml \
193 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/default_volume_tables.xml \
194 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 \
195 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/usb_audio_policy_configuration.xml \
Alexander Koskovichf8dab642021-08-01 19:28:31 -0700196 $(AUDIO_HAL_DIR)/configs/common/bluetooth_qti_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/bluetooth_qti_audio_policy_configuration.xml \
197 $(AUDIO_HAL_DIR)/configs/common/bluetooth_qti_hearing_aid_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/bluetooth_qti_hearing_aid_audio_policy_configuration.xml)
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530198
199# Audio permission xml's common to Holi family
200PRODUCT_COPY_FILES += \
201 frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \
202 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml
203
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530204# Low latency audio buffer size in frames
Alexander Koskovich585bba62022-01-25 05:00:33 -0700205PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530206 vendor.audio_hal.period_size=192
207
208##Ambisonic Capture
Alexander Koskovich585bba62022-01-25 05:00:33 -0700209PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530210persist.vendor.audio.ambisonic.capture=false \
211persist.vendor.audio.ambisonic.auto.profile=false
212
Alexander Koskovich585bba62022-01-25 05:00:33 -0700213PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530214persist.vendor.audio.apptype.multirec.enabled=false
215
216##fluencetype can be "fluence" or "fluencepro" or "none"
Alexander Koskovich585bba62022-01-25 05:00:33 -0700217PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530218ro.vendor.audio.sdk.fluencetype=none\
219persist.vendor.audio.fluence.voicecall=true\
220persist.vendor.audio.fluence.voicerec=false\
221persist.vendor.audio.fluence.speaker=true\
222persist.vendor.audio.fluence.tmic.enabled=false
223
224#
225#snapdragon value add features
226#
Alexander Koskovich585bba62022-01-25 05:00:33 -0700227PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530228ro.qc.sdk.audio.ssr=false
229
230##fluencetype can be "fluence" or "fluencepro" or "none"
Alexander Koskovich585bba62022-01-25 05:00:33 -0700231PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530232ro.qc.sdk.audio.fluencetype=none\
233persist.audio.fluence.voicecall=true\
234persist.audio.fluence.voicerec=false\
235persist.audio.fluence.speaker=true
236
237##speaker protection v3 switch and ADSP AFE API version
Alexander Koskovich585bba62022-01-25 05:00:33 -0700238PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530239persist.vendor.audio.spv3.enable=true\
240persist.vendor.audio.avs.afe_api_version=2
241
242#disable tunnel encoding
Alexander Koskovich585bba62022-01-25 05:00:33 -0700243PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530244vendor.audio.tunnel.encode=false
245
246#Disable RAS Feature by default
Alexander Koskovich585bba62022-01-25 05:00:33 -0700247PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530248persist.vendor.audio.ras.enabled=false
249
250#Buffer size in kbytes for compress offload playback
Alexander Koskovich585bba62022-01-25 05:00:33 -0700251PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530252vendor.audio.offload.buffer.size.kb=32
253
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530254#Enable audio track offload by default
Alexander Koskovich585bba62022-01-25 05:00:33 -0700255PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530256vendor.audio.offload.track.enable=true
257
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530258#enable voice path for PCM VoIP by default
Alexander Koskovich585bba62022-01-25 05:00:33 -0700259PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530260vendor.voice.path.for.pcm.voip=true
261
262#Enable multi channel aac through offload
Alexander Koskovich585bba62022-01-25 05:00:33 -0700263PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530264vendor.audio.offload.multiaac.enable=true
265
266#Enable DS2, Hardbypass feature for Dolby
Alexander Koskovich585bba62022-01-25 05:00:33 -0700267PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530268vendor.audio.dolby.ds2.enabled=false\
269vendor.audio.dolby.ds2.hardbypass=false
270
271#Disable Multiple offload sesison
Alexander Koskovich585bba62022-01-25 05:00:33 -0700272PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530273vendor.audio.offload.multiple.enabled=false
274
275#Disable Compress passthrough playback
Alexander Koskovich585bba62022-01-25 05:00:33 -0700276PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530277vendor.audio.offload.passthrough=false
278
279#Disable surround sound recording
Alexander Koskovich585bba62022-01-25 05:00:33 -0700280PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530281ro.vendor.audio.sdk.ssr=false
282
283#enable dsp gapless mode by default
Alexander Koskovich585bba62022-01-25 05:00:33 -0700284PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530285vendor.audio.offload.gapless.enabled=true
286
287#enable pbe effects
Alexander Koskovich585bba62022-01-25 05:00:33 -0700288PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530289vendor.audio.safx.pbe.enabled=false
290
291#parser input buffer size(256kb) in byte stream mode
Alexander Koskovich585bba62022-01-25 05:00:33 -0700292PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530293vendor.audio.parser.ip.buffer.size=262144
294
295#flac sw decoder 24 bit decode capability
Alexander Koskovich585bba62022-01-25 05:00:33 -0700296PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530297vendor.audio.flac.sw.decoder.24bit=true
298
Manisha Agarwalad081c42020-08-20 15:19:03 +0530299#timeout crash duration set to 20sec before system is ready.
300#timeout duration updates to default timeout of 5sec once the system is ready.
Alexander Koskovich585bba62022-01-25 05:00:33 -0700301PRODUCT_VENDOR_PROPERTIES += \
Manisha Agarwalad081c42020-08-20 15:19:03 +0530302vendor.audio.hal.boot.timeout.ms=20000
303
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530304#split a2dp DSP supported encoder list
Alexander Koskovich585bba62022-01-25 05:00:33 -0700305PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530306persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aac-ldac
307
308# A2DP offload support
Alexander Koskovich585bba62022-01-25 05:00:33 -0700309PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530310ro.bluetooth.a2dp_offload.supported=true
311
312# Disable A2DP offload
Alexander Koskovich585bba62022-01-25 05:00:33 -0700313PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530314persist.bluetooth.a2dp_offload.disabled=false
315
316# A2DP offload DSP supported encoder list
Alexander Koskovich585bba62022-01-25 05:00:33 -0700317PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530318persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac
319
320#enable software decoders for ALAC and APE
Alexander Koskovich585bba62022-01-25 05:00:33 -0700321PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530322vendor.audio.use.sw.alac.decoder=true
Alexander Koskovich585bba62022-01-25 05:00:33 -0700323PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530324vendor.audio.use.sw.ape.decoder=true
325
326#enable software decoder for MPEG-H
Alexander Koskovich585bba62022-01-25 05:00:33 -0700327PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530328vendor.audio.use.sw.mpegh.decoder=true
329
330#enable hw aac encoder by default
Alexander Koskovich585bba62022-01-25 05:00:33 -0700331PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530332vendor.audio.hw.aac.encoder=true
333
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530334#Set HAL buffer size to samples equal to 3 ms
Alexander Koskovich585bba62022-01-25 05:00:33 -0700335PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530336vendor.audio_hal.in_period_size=144
337
338#Set HAL buffer size to 3 ms
Alexander Koskovich585bba62022-01-25 05:00:33 -0700339PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530340vendor.audio_hal.period_multiplier=3
341
342#ADM Buffering size in ms
Alexander Koskovich585bba62022-01-25 05:00:33 -0700343PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530344vendor.audio.adm.buffering.ms=2
345
346#enable headset calibration
Alexander Koskovich585bba62022-01-25 05:00:33 -0700347PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530348vendor.audio.volume.headset.gain.depcal=true
349
350#enable dualmic fluence for voice communication
Alexander Koskovich585bba62022-01-25 05:00:33 -0700351PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530352persist.audio.fluence.voicecomm=true
353
354ifneq ($(GENERIC_ODM_IMAGE),true)
355$(warning "Enabling codec2.0 SW only for non-generic odm build variant")
356#Rank OMX SW codecs lower than OMX HW codecs
Alexander Koskovich585bba62022-01-25 05:00:33 -0700357PRODUCT_VENDOR_PROPERTIES += debug.stagefright.omx_default_rank=0
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530358endif
359endif
360
361USE_XML_AUDIO_POLICY_CONF := 1
362
363#enable keytone FR
Alexander Koskovich585bba62022-01-25 05:00:33 -0700364PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530365vendor.audio.hal.output.suspend.supported=true
366
367#Enable AAudio MMAP/NOIRQ data path
368#2 is AAUDIO_POLICY_AUTO so it will try MMAP then fallback to Legacy path
Alexander Koskovich585bba62022-01-25 05:00:33 -0700369PRODUCT_VENDOR_PROPERTIES += aaudio.mmap_policy=2
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530370#Allow EXCLUSIVE then fall back to SHARED.
Alexander Koskovich585bba62022-01-25 05:00:33 -0700371PRODUCT_VENDOR_PROPERTIES += aaudio.mmap_exclusive_policy=2
372PRODUCT_VENDOR_PROPERTIES += aaudio.hw_burst_min_usec=2000
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530373
374
375#enable mirror-link feature
Alexander Koskovich585bba62022-01-25 05:00:33 -0700376PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530377vendor.audio.enable.mirrorlink=false
378
379#enable voicecall speaker stereo
Alexander Koskovich585bba62022-01-25 05:00:33 -0700380PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530381persist.vendor.audio.voicecall.speaker.stereo=true
382
383#enable AAC frame ctl for A2DP sinks
Alexander Koskovich585bba62022-01-25 05:00:33 -0700384PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530385persist.vendor.bt.aac_frm_ctl.enabled=true
386
387#enable VBR frame ctl
Alexander Koskovich585bba62022-01-25 05:00:33 -0700388PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530389persist.vendor.bt.aac_vbr_frm_ctl.enabled=true
390
391#enable dedicated proxy for hearing aid
Alexander Koskovich585bba62022-01-25 05:00:33 -0700392PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530393persist.vendor.audio.ha_proxy.enabled=true
394
395#add dynamic feature flags here
Alexander Koskovich585bba62022-01-25 05:00:33 -0700396PRODUCT_VENDOR_PROPERTIES += \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530397vendor.audio.feature.a2dp_offload.enable=true \
398vendor.audio.feature.afe_proxy.enable=true \
399vendor.audio.feature.anc_headset.enable=false \
400vendor.audio.feature.battery_listener.enable=true \
401vendor.audio.feature.compr_cap.enable=false \
402vendor.audio.feature.compress_in.enable=true \
403vendor.audio.feature.compress_meta_data.enable=true \
404vendor.audio.feature.compr_voip.enable=false \
405vendor.audio.feature.concurrent_capture.enable=true \
406vendor.audio.feature.custom_stereo.enable=true \
407vendor.audio.feature.display_port.enable=true \
408vendor.audio.feature.dsm_feedback.enable=false \
409vendor.audio.feature.dynamic_ecns.enable=true \
410vendor.audio.feature.ext_hw_plugin.enable=false \
411vendor.audio.feature.external_dsp.enable=false \
412vendor.audio.feature.external_speaker.enable=false \
413vendor.audio.feature.external_speaker_tfa.enable=false \
414vendor.audio.feature.fluence.enable=true \
415vendor.audio.feature.fm.enable=true \
416vendor.audio.feature.hdmi_edid.enable=true \
417vendor.audio.feature.hdmi_passthrough.enable=true \
418vendor.audio.feature.hfp.enable=true \
419vendor.audio.feature.hifi_audio.enable=false \
420vendor.audio.feature.hwdep_cal.enable=false \
421vendor.audio.feature.incall_music.enable=true \
422vendor.audio.feature.multi_voice_session.enable=true \
423vendor.audio.feature.keep_alive.enable=true \
424vendor.audio.feature.kpi_optimize.enable=true \
425vendor.audio.feature.maxx_audio.enable=false \
426vendor.audio.feature.ras.enable=true \
427vendor.audio.feature.record_play_concurency.enable=false \
428vendor.audio.feature.src_trkn.enable=true \
429vendor.audio.feature.spkr_prot.enable=true \
430vendor.audio.feature.ssrec.enable=true \
431vendor.audio.feature.usb_offload.enable=true \
432vendor.audio.feature.usb_offload_burst_mode.enable=true \
433vendor.audio.feature.usb_offload_sidetone_volume.enable=false \
434vendor.audio.feature.deepbuffer_as_primary.enable=false \
435vendor.audio.feature.vbat.enable=true \
436vendor.audio.feature.wsa.enable=false \
437vendor.audio.feature.audiozoom.enable=false \
438vendor.audio.feature.snd_mon.enable=true
439
440# for HIDL related packages
441PRODUCT_PACKAGES += \
442 android.hardware.audio@2.0-service \
443 android.hardware.audio@2.0-impl \
444 android.hardware.audio.effect@2.0-impl \
445 android.hardware.soundtrigger@2.1-impl \
446 android.hardware.audio@4.0 \
447 android.hardware.audio.common@4.0 \
448 android.hardware.audio.common@4.0-util \
449 android.hardware.audio@4.0-impl \
450 android.hardware.audio.effect@4.0 \
Jaideep Sharmaaadb90e2020-10-14 14:45:31 +0530451 android.hardware.audio.effect@4.0-impl
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530452
453# enable audio hidl hal 5.0
454PRODUCT_PACKAGES += \
455 android.hardware.audio@5.0 \
456 android.hardware.audio.common@5.0 \
457 android.hardware.audio.common@5.0-util \
458 android.hardware.audio@5.0-impl \
459 android.hardware.audio.effect@5.0 \
460 android.hardware.audio.effect@5.0-impl
461
462# enable audio hidl hal 6.0
463PRODUCT_PACKAGES += \
464 android.hardware.audio@6.0 \
465 android.hardware.audio.common@6.0 \
466 android.hardware.audio.common@6.0-util \
467 android.hardware.audio@6.0-impl \
468 android.hardware.audio.effect@6.0 \
469 android.hardware.audio.effect@6.0-impl
470
471# enable sound trigger hidl hal 2.2
472PRODUCT_PACKAGES += \
473 android.hardware.soundtrigger@2.2-impl \
474
Harshal Ahiref7543652020-09-30 15:02:33 +0530475# enable sound trigger hidl hal 2.3
476PRODUCT_PACKAGES += \
477 android.hardware.soundtrigger@2.3-impl \
478
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530479PRODUCT_PACKAGES_ENG += \
480 VoicePrintTest \
481 VoicePrintDemo
482
483PRODUCT_PACKAGES_DEBUG += \
484 AudioSettings
485
486ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DEV_ARBI)),true)
487PRODUCT_PACKAGES_DEBUG += \
488 libaudiodevarb
489endif
490
491ifeq ($(call is-vendor-board-platform,QCOM),true)
492ifeq ($(call is-platform-sdk-version-at-least,28),true)
493PRODUCT_PACKAGES_DEBUG += \
494 libqti_resampler_headers \
495 lib_soundmodel_headers \
496 libqti_vraudio_headers
497endif
498ifeq ($(strip $(AUDIO_FEATURE_ENABLED_3D_AUDIO)),true)
499PRODUCT_PACKAGES_DEBUG += \
500 libvr_object_engine \
501 libvr_amb_engine \
502 libhoaeffects_csim
503endif
504endif
505
506ifeq ($(strip $(BOARD_SUPPORTS_SOUND_TRIGGER)),true)
507PRODUCT_PACKAGES_DEBUG += \
508 libadpcmdec
509endif
510
511AUDIO_FEATURE_ENABLED_GKI := true