blob: b64b1d536226f7477d003c7e8fc5e5156dbb6989 [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
10ifneq ($(AUDIO_USE_STUB_HAL), true)
11BOARD_USES_ALSA_AUDIO := true
12TARGET_USES_AOSP_FOR_AUDIO := false
13
14ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
15USE_CUSTOM_AUDIO_POLICY := 1
16AUDIO_FEATURE_QSSI_COMPLIANCE := true
17AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false
18AUDIO_FEATURE_ENABLED_COMPRESS_INPUT := true
19AUDIO_FEATURE_ENABLED_CONCURRENT_CAPTURE := true
20AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := false
21AUDIO_FEATURE_ENABLED_DYNAMIC_ECNS := true
22AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
23AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true
24AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := true
25AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
26AUDIO_FEATURE_ENABLED_HDMI_SPK := true
27AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true
28AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true
29AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true
30AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true
31AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true
32AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true
33AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true
34AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true
35AUDIO_FEATURE_ENABLED_MPEGH_SW_DECODER := true
36AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
37AUDIO_FEATURE_ENABLED_SSR := true
38AUDIO_FEATURE_ENABLED_DTS_EAGLE := false
39BOARD_USES_SRS_TRUEMEDIA := false
40DTS_CODEC_M_ := false
41MM_AUDIO_ENABLED_SAFX := true
42AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
43AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
44AUDIO_FEATURE_ENABLED_USB_TUNNEL := true
45AUDIO_FEATURE_ENABLED_A2DP_OFFLOAD := true
46AUDIO_FEATURE_ENABLED_3D_AUDIO := true
47AUDIO_FEATURE_ENABLED_AHAL_EXT := true
48AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT := true
49DOLBY_ENABLE := false
50endif
51
52AUDIO_FEATURE_ENABLED_DLKM := true
53BOARD_SUPPORTS_SOUND_TRIGGER := true
54BOARD_SUPPORTS_GCS := false
55AUDIO_FEATURE_ENABLED_INSTANCE_ID := true
56AUDIO_USE_DEEP_AS_PRIMARY_OUTPUT := false
57AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
58AUDIO_FEATURE_ENABLED_NT_PAUSE_TIMEOUT := true
59AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
60AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true
61AUDIO_FEATURE_ENABLED_FLUENCE := true
62AUDIO_FEATURE_ENABLED_HDMI_EDID := true
63AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH := true
64#AUDIO_FEATURE_ENABLED_KEEP_ALIVE := true
65AUDIO_FEATURE_ENABLED_DISPLAY_PORT := true
66AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := false
67AUDIO_FEATURE_ENABLED_HFP := true
68AUDIO_FEATURE_ENABLED_INCALL_MUSIC := true
69AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
70AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
71AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
72AUDIO_FEATURE_ENABLED_ACDB_LICENSE := false
73AUDIO_FEATURE_ENABLED_DEV_ARBI := false
74AUDIO_FEATURE_ENABLED_DYNAMIC_LOG := true
75MM_AUDIO_ENABLED_FTM := true
76TARGET_USES_QCOM_MM_AUDIO := true
77AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
78AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
79BOARD_SUPPORTS_QAHW := false
80AUDIO_FEATURE_ENABLED_RAS := true
81AUDIO_FEATURE_ENABLED_SND_MONITOR := true
82AUDIO_FEATURE_ENABLED_USB_BURST_MODE := true
83AUDIO_FEATURE_ENABLED_SVA_MULTI_STAGE := true
84AUDIO_FEATURE_ENABLED_BATTERY_LISTENER := true
85##AUDIO_FEATURE_FLAGS
86
87BOARD_SUPPORTS_OPENSOURCE_STHAL := true
88
89AUDIO_HARDWARE := audio.a2dp.default
90AUDIO_HARDWARE += audio.usb.default
91AUDIO_HARDWARE += audio.r_submix.default
92AUDIO_HARDWARE += audio.primary.holi
93
94#HAL Wrapper
95AUDIO_WRAPPER := libqahw
96AUDIO_WRAPPER += libqahwwrapper
97
98#HAL Test app
99AUDIO_HAL_TEST_APPS := hal_play_test
100AUDIO_HAL_TEST_APPS += hal_rec_test
101
102PRODUCT_PACKAGES += $(AUDIO_HARDWARE)
103PRODUCT_PACKAGES += $(AUDIO_WRAPPER)
104PRODUCT_PACKAGES += $(AUDIO_HAL_TEST_APPS)
105PRODUCT_PACKAGES += ftm_test_config_holi-qrd-snd-card
106PRODUCT_PACKAGES += audioadsprpcd
107PRODUCT_PACKAGES += vendor.qti.audio-adsprpc-service.rc
108
109ifneq ($(strip $(TARGET_USES_RRO)), true)
110#Audio Specific device overlays
111DEVICE_PACKAGE_OVERLAYS += vendor/qcom/opensource/audio-hal/primary-hal/configs/common/overlay
112endif
113
114PRODUCT_COPY_FILES += \
115 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_io_policy.conf \
116 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
117 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
118 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \
119 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
120 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_platform_info_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_qrd.xml \
121 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
122 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
Amarnath Vangala2e663cf2020-09-22 23:15:15 +0530123vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/sound_trigger_mixer_paths_usbc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_usbc.xml \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530124 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/sound_trigger_mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_qrd.xml \
Harshal Ahire5561b7e2020-09-02 12:14:34 +0530125 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/sound_trigger_mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_qrdsku1.xml \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530126 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
Amarnath Vangala2e663cf2020-09-22 23:15:15 +0530127 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/mixer_paths_usbc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_usbc.xml \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530128 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_qrd.xml \
Harshal Ahire5561b7e2020-09-02 12:14:34 +0530129 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_qrdsku1.xml \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530130 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_configs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_configs.xml \
131 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_configs_stock.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_configs_stock.xml \
132 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
133 vendor/qcom/opensource/audio-hal/primary-hal/configs/common/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
134 frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \
135 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml
136
137#XML Audio configuration files
138ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
139PRODUCT_COPY_FILES += \
140 $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml
141endif
142PRODUCT_COPY_FILES += \
143 $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
144 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
145 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
146 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
147 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
148 $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \
149 $(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 \
150 $(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
151
152#TODO: Delete xml's from obsolete paths
153# Audio configuration xml's related to Holi
154QCV_FAMILY_SKUS := holi
155DEVICE_SKU := holi
156
157PRODUCT_COPY_FILES += \
158 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_io_policy.conf \
159 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.conf \
160 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.xml \
161 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_platform_info.xml \
162 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_platform_info.xml \
163 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_platform_info_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_platform_info_qrd.xml \
164 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_platform_info_intcodec.xml \
165 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_mixer_paths.xml \
Amarnath Vangala2e663cf2020-09-22 23:15:15 +0530166vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/sound_trigger_mixer_paths_usbc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_mixer_paths_usbc.xml \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530167 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/sound_trigger_mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_mixer_paths_qrd.xml \
Harshal Ahire5561b7e2020-09-02 12:14:34 +0530168 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/sound_trigger_mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_mixer_paths_qrdsku1.xml \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530169 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths.xml \
Amarnath Vangala2e663cf2020-09-22 23:15:15 +0530170 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/mixer_paths_usbc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths_usbc.xml \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530171 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths_qrd.xml \
Harshal Ahire5561b7e2020-09-02 12:14:34 +0530172 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths_qrdsku1.xml \
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530173 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_configs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_configs.xml \
174 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_configs_stock.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_configs_stock.xml \
175 vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_tuning_mixer.txt
176
177# Audio configuration xml's common to Holi family
178PRODUCT_COPY_FILES += \
179$(foreach DEVICE_SKU, $(QCV_FAMILY_SKUS), \
180 vendor/qcom/opensource/audio-hal/primary-hal/configs/common/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/media_codecs_vendor_audio.xml \
181 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 \
182 frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/a2dp_audio_policy_configuration.xml \
183 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_policy_volumes.xml \
184 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/default_volume_tables.xml \
185 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 \
186 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/usb_audio_policy_configuration.xml \
187 vendor/qcom/opensource/audio-hal/primary-hal/configs/common/bluetooth_qti_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/bluetooth_qti_audio_policy_configuration.xml \
188 vendor/qcom/opensource/audio-hal/primary-hal/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)
189
190# Audio permission xml's common to Holi family
191PRODUCT_COPY_FILES += \
192 frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \
193 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml
194
195# Reduce client buffer size for fast audio output tracks
196PRODUCT_PROPERTY_OVERRIDES += \
197 af.fast_track_multiplier=1
198
199# Low latency audio buffer size in frames
200PRODUCT_PROPERTY_OVERRIDES += \
201 vendor.audio_hal.period_size=192
202
203##Ambisonic Capture
204PRODUCT_PROPERTY_OVERRIDES += \
205persist.vendor.audio.ambisonic.capture=false \
206persist.vendor.audio.ambisonic.auto.profile=false
207
208PRODUCT_PROPERTY_OVERRIDES += \
209persist.vendor.audio.apptype.multirec.enabled=false
210
211##fluencetype can be "fluence" or "fluencepro" or "none"
212PRODUCT_PROPERTY_OVERRIDES += \
213ro.vendor.audio.sdk.fluencetype=none\
214persist.vendor.audio.fluence.voicecall=true\
215persist.vendor.audio.fluence.voicerec=false\
216persist.vendor.audio.fluence.speaker=true\
217persist.vendor.audio.fluence.tmic.enabled=false
218
219#
220#snapdragon value add features
221#
222PRODUCT_PROPERTY_OVERRIDES += \
223ro.qc.sdk.audio.ssr=false
224
225##fluencetype can be "fluence" or "fluencepro" or "none"
226PRODUCT_PROPERTY_OVERRIDES += \
227ro.qc.sdk.audio.fluencetype=none\
228persist.audio.fluence.voicecall=true\
229persist.audio.fluence.voicerec=false\
230persist.audio.fluence.speaker=true
231
232##speaker protection v3 switch and ADSP AFE API version
233PRODUCT_PROPERTY_OVERRIDES += \
234persist.vendor.audio.spv3.enable=true\
235persist.vendor.audio.avs.afe_api_version=2
236
237#disable tunnel encoding
238PRODUCT_PROPERTY_OVERRIDES += \
239vendor.audio.tunnel.encode=false
240
241#Disable RAS Feature by default
242PRODUCT_PROPERTY_OVERRIDES += \
243persist.vendor.audio.ras.enabled=false
244
245#Buffer size in kbytes for compress offload playback
246PRODUCT_PROPERTY_OVERRIDES += \
247vendor.audio.offload.buffer.size.kb=32
248
249#Enable offload audio video playback by default
250PRODUCT_PROPERTY_OVERRIDES += \
251audio.offload.video=true
252
253#Enable audio track offload by default
254PRODUCT_PROPERTY_OVERRIDES += \
255vendor.audio.offload.track.enable=true
256
257#Enable music through deep buffer
258PRODUCT_PROPERTY_OVERRIDES += \
259audio.deep_buffer.media=true
260
261#enable voice path for PCM VoIP by default
262PRODUCT_PROPERTY_OVERRIDES += \
263vendor.voice.path.for.pcm.voip=true
264
265#Enable multi channel aac through offload
266PRODUCT_PROPERTY_OVERRIDES += \
267vendor.audio.offload.multiaac.enable=true
268
269#Enable DS2, Hardbypass feature for Dolby
270PRODUCT_PROPERTY_OVERRIDES += \
271vendor.audio.dolby.ds2.enabled=false\
272vendor.audio.dolby.ds2.hardbypass=false
273
274#Disable Multiple offload sesison
275PRODUCT_PROPERTY_OVERRIDES += \
276vendor.audio.offload.multiple.enabled=false
277
278#Disable Compress passthrough playback
279PRODUCT_PROPERTY_OVERRIDES += \
280vendor.audio.offload.passthrough=false
281
282#Disable surround sound recording
283PRODUCT_PROPERTY_OVERRIDES += \
284ro.vendor.audio.sdk.ssr=false
285
286#enable dsp gapless mode by default
287PRODUCT_PROPERTY_OVERRIDES += \
288vendor.audio.offload.gapless.enabled=true
289
290#enable pbe effects
291PRODUCT_PROPERTY_OVERRIDES += \
292vendor.audio.safx.pbe.enabled=false
293
294#parser input buffer size(256kb) in byte stream mode
295PRODUCT_PROPERTY_OVERRIDES += \
296vendor.audio.parser.ip.buffer.size=262144
297
298#flac sw decoder 24 bit decode capability
299PRODUCT_PROPERTY_OVERRIDES += \
300vendor.audio.flac.sw.decoder.24bit=true
301
Manisha Agarwalad081c42020-08-20 15:19:03 +0530302#timeout crash duration set to 20sec before system is ready.
303#timeout duration updates to default timeout of 5sec once the system is ready.
304PRODUCT_PROPERTY_OVERRIDES += \
305vendor.audio.hal.boot.timeout.ms=20000
306
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +0530307#split a2dp DSP supported encoder list
308PRODUCT_PROPERTY_OVERRIDES += \
309persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aac-ldac
310
311# A2DP offload support
312PRODUCT_PROPERTY_OVERRIDES += \
313ro.bluetooth.a2dp_offload.supported=true
314
315# Disable A2DP offload
316PRODUCT_PROPERTY_OVERRIDES += \
317persist.bluetooth.a2dp_offload.disabled=false
318
319# A2DP offload DSP supported encoder list
320PRODUCT_PROPERTY_OVERRIDES += \
321persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac
322
323#enable software decoders for ALAC and APE
324PRODUCT_PROPERTY_OVERRIDES += \
325vendor.audio.use.sw.alac.decoder=true
326PRODUCT_PROPERTY_OVERRIDES += \
327vendor.audio.use.sw.ape.decoder=true
328
329#enable software decoder for MPEG-H
330PRODUCT_PROPERTY_OVERRIDES += \
331vendor.audio.use.sw.mpegh.decoder=true
332
333#enable hw aac encoder by default
334PRODUCT_PROPERTY_OVERRIDES += \
335vendor.audio.hw.aac.encoder=true
336
337#audio becoming noisy intent broadcast delay
338PRODUCT_PROPERTY_OVERRIDES += \
339audio.sys.noisy.broadcast.delay=600
340
341#offload pausetime out duration to 3 secs to inline with other outputs
342PRODUCT_PROPERTY_OVERRIDES += \
343audio.sys.offload.pstimeout.secs=3
344
345#Set AudioFlinger client heap size
346PRODUCT_PROPERTY_OVERRIDES += \
347ro.af.client_heap_size_kbyte=7168
348
349#Set HAL buffer size to samples equal to 3 ms
350PRODUCT_PROPERTY_OVERRIDES += \
351vendor.audio_hal.in_period_size=144
352
353#Set HAL buffer size to 3 ms
354PRODUCT_PROPERTY_OVERRIDES += \
355vendor.audio_hal.period_multiplier=3
356
357#ADM Buffering size in ms
358PRODUCT_PROPERTY_OVERRIDES += \
359vendor.audio.adm.buffering.ms=2
360
361#enable headset calibration
362PRODUCT_PROPERTY_OVERRIDES += \
363vendor.audio.volume.headset.gain.depcal=true
364
365#enable dualmic fluence for voice communication
366PRODUCT_PROPERTY_OVERRIDES += \
367persist.audio.fluence.voicecomm=true
368
369ifneq ($(GENERIC_ODM_IMAGE),true)
370$(warning "Enabling codec2.0 SW only for non-generic odm build variant")
371#Rank OMX SW codecs lower than OMX HW codecs
372PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0
373endif
374endif
375
376USE_XML_AUDIO_POLICY_CONF := 1
377
378#enable keytone FR
379PRODUCT_PROPERTY_OVERRIDES += \
380vendor.audio.hal.output.suspend.supported=true
381
382#Enable AAudio MMAP/NOIRQ data path
383#2 is AAUDIO_POLICY_AUTO so it will try MMAP then fallback to Legacy path
384PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_policy=2
385#Allow EXCLUSIVE then fall back to SHARED.
386PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_exclusive_policy=2
387PRODUCT_PROPERTY_OVERRIDES += aaudio.hw_burst_min_usec=2000
388
389
390#enable mirror-link feature
391PRODUCT_PROPERTY_OVERRIDES += \
392vendor.audio.enable.mirrorlink=false
393
394#enable voicecall speaker stereo
395PRODUCT_PROPERTY_OVERRIDES += \
396persist.vendor.audio.voicecall.speaker.stereo=true
397
398#enable AAC frame ctl for A2DP sinks
399PRODUCT_PROPERTY_OVERRIDES += \
400persist.vendor.bt.aac_frm_ctl.enabled=true
401
402#enable VBR frame ctl
403PRODUCT_PROPERTY_OVERRIDES += \
404persist.vendor.bt.aac_vbr_frm_ctl.enabled=true
405
406#enable dedicated proxy for hearing aid
407PRODUCT_PROPERTY_OVERRIDES += \
408persist.vendor.audio.ha_proxy.enabled=true
409
410#add dynamic feature flags here
411PRODUCT_PROPERTY_OVERRIDES += \
412vendor.audio.feature.a2dp_offload.enable=true \
413vendor.audio.feature.afe_proxy.enable=true \
414vendor.audio.feature.anc_headset.enable=false \
415vendor.audio.feature.battery_listener.enable=true \
416vendor.audio.feature.compr_cap.enable=false \
417vendor.audio.feature.compress_in.enable=true \
418vendor.audio.feature.compress_meta_data.enable=true \
419vendor.audio.feature.compr_voip.enable=false \
420vendor.audio.feature.concurrent_capture.enable=true \
421vendor.audio.feature.custom_stereo.enable=true \
422vendor.audio.feature.display_port.enable=true \
423vendor.audio.feature.dsm_feedback.enable=false \
424vendor.audio.feature.dynamic_ecns.enable=true \
425vendor.audio.feature.ext_hw_plugin.enable=false \
426vendor.audio.feature.external_dsp.enable=false \
427vendor.audio.feature.external_speaker.enable=false \
428vendor.audio.feature.external_speaker_tfa.enable=false \
429vendor.audio.feature.fluence.enable=true \
430vendor.audio.feature.fm.enable=true \
431vendor.audio.feature.hdmi_edid.enable=true \
432vendor.audio.feature.hdmi_passthrough.enable=true \
433vendor.audio.feature.hfp.enable=true \
434vendor.audio.feature.hifi_audio.enable=false \
435vendor.audio.feature.hwdep_cal.enable=false \
436vendor.audio.feature.incall_music.enable=true \
437vendor.audio.feature.multi_voice_session.enable=true \
438vendor.audio.feature.keep_alive.enable=true \
439vendor.audio.feature.kpi_optimize.enable=true \
440vendor.audio.feature.maxx_audio.enable=false \
441vendor.audio.feature.ras.enable=true \
442vendor.audio.feature.record_play_concurency.enable=false \
443vendor.audio.feature.src_trkn.enable=true \
444vendor.audio.feature.spkr_prot.enable=true \
445vendor.audio.feature.ssrec.enable=true \
446vendor.audio.feature.usb_offload.enable=true \
447vendor.audio.feature.usb_offload_burst_mode.enable=true \
448vendor.audio.feature.usb_offload_sidetone_volume.enable=false \
449vendor.audio.feature.deepbuffer_as_primary.enable=false \
450vendor.audio.feature.vbat.enable=true \
451vendor.audio.feature.wsa.enable=false \
452vendor.audio.feature.audiozoom.enable=false \
453vendor.audio.feature.snd_mon.enable=true
454
455# for HIDL related packages
456PRODUCT_PACKAGES += \
457 android.hardware.audio@2.0-service \
458 android.hardware.audio@2.0-impl \
459 android.hardware.audio.effect@2.0-impl \
460 android.hardware.soundtrigger@2.1-impl \
461 android.hardware.audio@4.0 \
462 android.hardware.audio.common@4.0 \
463 android.hardware.audio.common@4.0-util \
464 android.hardware.audio@4.0-impl \
465 android.hardware.audio.effect@4.0 \
466 android.hardware.audio.effect@4.0-impl \
467 vendor.qti.hardware.audiohalext@1.0 \
468 vendor.qti.hardware.audiohalext@1.0-impl \
469 vendor.qti.hardware.audiohalext-utils
470
471# enable audio hidl hal 5.0
472PRODUCT_PACKAGES += \
473 android.hardware.audio@5.0 \
474 android.hardware.audio.common@5.0 \
475 android.hardware.audio.common@5.0-util \
476 android.hardware.audio@5.0-impl \
477 android.hardware.audio.effect@5.0 \
478 android.hardware.audio.effect@5.0-impl
479
480# enable audio hidl hal 6.0
481PRODUCT_PACKAGES += \
482 android.hardware.audio@6.0 \
483 android.hardware.audio.common@6.0 \
484 android.hardware.audio.common@6.0-util \
485 android.hardware.audio@6.0-impl \
486 android.hardware.audio.effect@6.0 \
487 android.hardware.audio.effect@6.0-impl
488
489# enable sound trigger hidl hal 2.2
490PRODUCT_PACKAGES += \
491 android.hardware.soundtrigger@2.2-impl \
492
493PRODUCT_PACKAGES_ENG += \
494 VoicePrintTest \
495 VoicePrintDemo
496
497PRODUCT_PACKAGES_DEBUG += \
498 AudioSettings
499
500ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DEV_ARBI)),true)
501PRODUCT_PACKAGES_DEBUG += \
502 libaudiodevarb
503endif
504
505ifeq ($(call is-vendor-board-platform,QCOM),true)
506ifeq ($(call is-platform-sdk-version-at-least,28),true)
507PRODUCT_PACKAGES_DEBUG += \
508 libqti_resampler_headers \
509 lib_soundmodel_headers \
510 libqti_vraudio_headers
511endif
512ifeq ($(strip $(AUDIO_FEATURE_ENABLED_3D_AUDIO)),true)
513PRODUCT_PACKAGES_DEBUG += \
514 libvr_object_engine \
515 libvr_amb_engine \
516 libhoaeffects_csim
517endif
518endif
519
520ifeq ($(strip $(BOARD_SUPPORTS_SOUND_TRIGGER)),true)
521PRODUCT_PACKAGES_DEBUG += \
522 libadpcmdec
523endif
524
525AUDIO_FEATURE_ENABLED_GKI := true