blob: 7b1a48383227e65e10c938152135e8c447fc3d8a [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
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
Jaideep Sharma5f172f22020-01-30 22:41:21 +053016AUDIO_FEATURE_QSSI_COMPLIANCE := true
Vignesh Kulothungan92a38712019-12-23 14:54:19 -080017AUDIO_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
Vignesh Kulothungan92a38712019-12-23 14:54:19 -080046AUDIO_FEATURE_ENABLED_3D_AUDIO := true
Vignesh Kulothungan92a38712019-12-23 14:54:19 -080047AUDIO_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.lahaina
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)
Meng Wang3f547d42020-03-03 18:07:16 +0800105PRODUCT_PACKAGES += ftm_test_config_lahaina-qrd-snd-card
George Gaofb568792020-03-17 10:18:26 -0700106PRODUCT_PACKAGES += audioadsprpcd
107PRODUCT_PACKAGES += vendor.qti.audio-adsprpc-service.rc
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800108
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/lahaina/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_io_policy.conf \
116 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
117 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
118 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \
119 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
120 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_platform_info_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_qrd.xml \
121 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
122 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
123 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 \
124 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 \
125 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
126 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_qrd.xml \
127 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/mixer_paths_cdp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_cdp.xml \
128 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_configs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_configs.xml \
129 vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_configs_stock.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_configs_stock.xml \
130 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 -0800131 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 -0800132 frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \
133 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml
134
135#XML Audio configuration files
136ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
137PRODUCT_COPY_FILES += \
138 $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/lahaina/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml
139endif
140PRODUCT_COPY_FILES += \
141 $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
142 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
143 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
144 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
145 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
146 $(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 +0800147 $(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 \
148 $(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 -0800149
150# Reduce client buffer size for fast audio output tracks
151PRODUCT_PROPERTY_OVERRIDES += \
152 af.fast_track_multiplier=1
153
154# Low latency audio buffer size in frames
155PRODUCT_PROPERTY_OVERRIDES += \
156 vendor.audio_hal.period_size=192
157
158##Ambisonic Capture
159PRODUCT_PROPERTY_OVERRIDES += \
160persist.vendor.audio.ambisonic.capture=false \
161persist.vendor.audio.ambisonic.auto.profile=false
162
163PRODUCT_PROPERTY_OVERRIDES += \
164persist.vendor.audio.apptype.multirec.enabled=false
165
166##fluencetype can be "fluence" or "fluencepro" or "none"
167PRODUCT_PROPERTY_OVERRIDES += \
168ro.vendor.audio.sdk.fluencetype=none\
169persist.vendor.audio.fluence.voicecall=true\
170persist.vendor.audio.fluence.voicerec=false\
171persist.vendor.audio.fluence.speaker=true\
172persist.vendor.audio.fluence.tmic.enabled=false
173
174#
175#snapdragon value add features
176#
177PRODUCT_PROPERTY_OVERRIDES += \
178ro.qc.sdk.audio.ssr=false
179
180##fluencetype can be "fluence" or "fluencepro" or "none"
181PRODUCT_PROPERTY_OVERRIDES += \
182ro.qc.sdk.audio.fluencetype=none\
183persist.audio.fluence.voicecall=true\
184persist.audio.fluence.voicerec=false\
185persist.audio.fluence.speaker=true
186
Sudheer Papothi20b771e2020-05-29 05:15:02 +0530187##speaker protection v4 switch and ADSP AFE API version
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800188PRODUCT_PROPERTY_OVERRIDES += \
Sudheer Papothi20b771e2020-05-29 05:15:02 +0530189persist.vendor.audio.speaker.prot.enable=true\
190persist.vendor.audio.spv4.enable=true\
191persist.vendor.audio.avs.afe_api_version=9
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800192
193#disable tunnel encoding
194PRODUCT_PROPERTY_OVERRIDES += \
195vendor.audio.tunnel.encode=false
196
197#Disable RAS Feature by default
198PRODUCT_PROPERTY_OVERRIDES += \
199persist.vendor.audio.ras.enabled=false
200
201#Buffer size in kbytes for compress offload playback
202PRODUCT_PROPERTY_OVERRIDES += \
203vendor.audio.offload.buffer.size.kb=32
204
205#Enable offload audio video playback by default
206PRODUCT_PROPERTY_OVERRIDES += \
207audio.offload.video=true
208
209#Enable audio track offload by default
210PRODUCT_PROPERTY_OVERRIDES += \
211vendor.audio.offload.track.enable=true
212
213#Enable music through deep buffer
214PRODUCT_PROPERTY_OVERRIDES += \
215audio.deep_buffer.media=true
216
217#enable voice path for PCM VoIP by default
218PRODUCT_PROPERTY_OVERRIDES += \
219vendor.voice.path.for.pcm.voip=true
220
221#Enable multi channel aac through offload
222PRODUCT_PROPERTY_OVERRIDES += \
223vendor.audio.offload.multiaac.enable=true
224
225#Enable DS2, Hardbypass feature for Dolby
226PRODUCT_PROPERTY_OVERRIDES += \
227vendor.audio.dolby.ds2.enabled=false\
228vendor.audio.dolby.ds2.hardbypass=false
229
230#Disable Multiple offload sesison
231PRODUCT_PROPERTY_OVERRIDES += \
232vendor.audio.offload.multiple.enabled=false
233
234#Disable Compress passthrough playback
235PRODUCT_PROPERTY_OVERRIDES += \
236vendor.audio.offload.passthrough=false
237
238#Disable surround sound recording
239PRODUCT_PROPERTY_OVERRIDES += \
240ro.vendor.audio.sdk.ssr=false
241
242#enable dsp gapless mode by default
243PRODUCT_PROPERTY_OVERRIDES += \
244vendor.audio.offload.gapless.enabled=true
245
246#enable pbe effects
247PRODUCT_PROPERTY_OVERRIDES += \
248vendor.audio.safx.pbe.enabled=false
249
250#parser input buffer size(256kb) in byte stream mode
251PRODUCT_PROPERTY_OVERRIDES += \
252vendor.audio.parser.ip.buffer.size=262144
253
254#flac sw decoder 24 bit decode capability
255PRODUCT_PROPERTY_OVERRIDES += \
256vendor.audio.flac.sw.decoder.24bit=true
257
258#split a2dp DSP supported encoder list
259PRODUCT_PROPERTY_OVERRIDES += \
260persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aac-ldac
261
262# A2DP offload support
263PRODUCT_PROPERTY_OVERRIDES += \
264ro.bluetooth.a2dp_offload.supported=true
265
266# Disable A2DP offload
267PRODUCT_PROPERTY_OVERRIDES += \
268persist.bluetooth.a2dp_offload.disabled=false
269
270# A2DP offload DSP supported encoder list
271PRODUCT_PROPERTY_OVERRIDES += \
272persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac
273
274#enable software decoders for ALAC and APE
275PRODUCT_PROPERTY_OVERRIDES += \
276vendor.audio.use.sw.alac.decoder=true
277PRODUCT_PROPERTY_OVERRIDES += \
278vendor.audio.use.sw.ape.decoder=true
279
Fawad Shaukat37eda032020-03-29 08:23:02 -0700280#enable software decoder for MPEG-H
281PRODUCT_PROPERTY_OVERRIDES += \
282vendor.audio.use.sw.mpegh.decoder=true
283
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800284#enable hw aac encoder by default
285PRODUCT_PROPERTY_OVERRIDES += \
286vendor.audio.hw.aac.encoder=true
287
288#audio becoming noisy intent broadcast delay
289PRODUCT_PROPERTY_OVERRIDES += \
290audio.sys.noisy.broadcast.delay=600
291
292#offload pausetime out duration to 3 secs to inline with other outputs
293PRODUCT_PROPERTY_OVERRIDES += \
294audio.sys.offload.pstimeout.secs=3
295
296#Set AudioFlinger client heap size
297PRODUCT_PROPERTY_OVERRIDES += \
298ro.af.client_heap_size_kbyte=7168
299
300#Set HAL buffer size to samples equal to 3 ms
301PRODUCT_PROPERTY_OVERRIDES += \
302vendor.audio_hal.in_period_size=144
303
304#Set HAL buffer size to 3 ms
305PRODUCT_PROPERTY_OVERRIDES += \
306vendor.audio_hal.period_multiplier=3
307
308#ADM Buffering size in ms
309PRODUCT_PROPERTY_OVERRIDES += \
310vendor.audio.adm.buffering.ms=2
311
312#enable headset calibration
313PRODUCT_PROPERTY_OVERRIDES += \
314vendor.audio.volume.headset.gain.depcal=true
315
316#enable dualmic fluence for voice communication
317PRODUCT_PROPERTY_OVERRIDES += \
318persist.audio.fluence.voicecomm=true
Aalique Grahame55570162020-02-10 12:58:47 -0800319
320ifneq ($(GENERIC_ODM_IMAGE),true)
321$(warning "Enabling codec2.0 SW only for non-generic odm build variant")
322#Rank OMX SW codecs lower than OMX HW codecs
323PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0
324endif
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800325endif
326
327USE_XML_AUDIO_POLICY_CONF := 1
328
329#enable keytone FR
330PRODUCT_PROPERTY_OVERRIDES += \
331vendor.audio.hal.output.suspend.supported=true
332
333#Enable AAudio MMAP/NOIRQ data path
334#2 is AAUDIO_POLICY_AUTO so it will try MMAP then fallback to Legacy path
335PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_policy=2
336#Allow EXCLUSIVE then fall back to SHARED.
337PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_exclusive_policy=2
338PRODUCT_PROPERTY_OVERRIDES += aaudio.hw_burst_min_usec=2000
339
340
341#enable mirror-link feature
342PRODUCT_PROPERTY_OVERRIDES += \
343vendor.audio.enable.mirrorlink=false
344
345#enable voicecall speaker stereo
346PRODUCT_PROPERTY_OVERRIDES += \
347persist.vendor.audio.voicecall.speaker.stereo=true
348
349#enable AAC frame ctl for A2DP sinks
350PRODUCT_PROPERTY_OVERRIDES += \
351persist.vendor.bt.aac_frm_ctl.enabled=true
352
Zhou Song9b7822f2020-03-16 10:29:58 +0800353#enable VBR frame ctl
354PRODUCT_PROPERTY_OVERRIDES += \
355persist.vendor.bt.aac_vbr_frm_ctl.enabled=true
356
Zhou Songf80dbcc2020-03-22 19:23:15 +0800357#enable dedicated proxy for hearing aid
358PRODUCT_PROPERTY_OVERRIDES += \
359persist.vendor.audio.ha_proxy.enabled=true
360
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800361#add dynamic feature flags here
362PRODUCT_PROPERTY_OVERRIDES += \
363vendor.audio.feature.a2dp_offload.enable=true \
364vendor.audio.feature.afe_proxy.enable=true \
365vendor.audio.feature.anc_headset.enable=false \
366vendor.audio.feature.battery_listener.enable=true \
367vendor.audio.feature.compr_cap.enable=false \
368vendor.audio.feature.compress_in.enable=true \
369vendor.audio.feature.compress_meta_data.enable=true \
370vendor.audio.feature.compr_voip.enable=false \
371vendor.audio.feature.concurrent_capture.enable=true \
372vendor.audio.feature.custom_stereo.enable=true \
373vendor.audio.feature.display_port.enable=true \
374vendor.audio.feature.dsm_feedback.enable=false \
375vendor.audio.feature.dynamic_ecns.enable=true \
376vendor.audio.feature.ext_hw_plugin.enable=false \
377vendor.audio.feature.external_dsp.enable=false \
378vendor.audio.feature.external_speaker.enable=false \
379vendor.audio.feature.external_speaker_tfa.enable=false \
380vendor.audio.feature.fluence.enable=true \
381vendor.audio.feature.fm.enable=true \
382vendor.audio.feature.hdmi_edid.enable=true \
383vendor.audio.feature.hdmi_passthrough.enable=true \
384vendor.audio.feature.hfp.enable=true \
385vendor.audio.feature.hifi_audio.enable=false \
386vendor.audio.feature.hwdep_cal.enable=false \
387vendor.audio.feature.incall_music.enable=true \
388vendor.audio.feature.multi_voice_session.enable=true \
389vendor.audio.feature.keep_alive.enable=true \
390vendor.audio.feature.kpi_optimize.enable=true \
391vendor.audio.feature.maxx_audio.enable=false \
392vendor.audio.feature.ras.enable=true \
393vendor.audio.feature.record_play_concurency.enable=false \
394vendor.audio.feature.src_trkn.enable=true \
395vendor.audio.feature.spkr_prot.enable=true \
396vendor.audio.feature.ssrec.enable=true \
397vendor.audio.feature.usb_offload.enable=true \
398vendor.audio.feature.usb_offload_burst_mode.enable=true \
399vendor.audio.feature.usb_offload_sidetone_volume.enable=false \
400vendor.audio.feature.deepbuffer_as_primary.enable=false \
401vendor.audio.feature.vbat.enable=true \
402vendor.audio.feature.wsa.enable=false \
403vendor.audio.feature.audiozoom.enable=false \
Kunlei Zhang62a93402020-04-27 20:30:59 +0800404vendor.audio.feature.snd_mon.enable=true \
405vendor.audio.feature.power_mode.enable=true
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800406
407# for HIDL related packages
408PRODUCT_PACKAGES += \
409 android.hardware.audio@2.0-service \
410 android.hardware.audio@2.0-impl \
411 android.hardware.audio.effect@2.0-impl \
412 android.hardware.soundtrigger@2.1-impl \
413 android.hardware.audio@4.0 \
414 android.hardware.audio.common@4.0 \
415 android.hardware.audio.common@4.0-util \
416 android.hardware.audio@4.0-impl \
417 android.hardware.audio.effect@4.0 \
418 android.hardware.audio.effect@4.0-impl \
419 vendor.qti.hardware.audiohalext@1.0 \
420 vendor.qti.hardware.audiohalext@1.0-impl \
421 vendor.qti.hardware.audiohalext-utils
422
423# enable audio hidl hal 5.0
424PRODUCT_PACKAGES += \
425 android.hardware.audio@5.0 \
426 android.hardware.audio.common@5.0 \
427 android.hardware.audio.common@5.0-util \
428 android.hardware.audio@5.0-impl \
429 android.hardware.audio.effect@5.0 \
430 android.hardware.audio.effect@5.0-impl
431
Jaideep Sharmaab2c9ca2020-02-18 10:45:19 +0530432# enable audio hidl hal 6.0
433PRODUCT_PACKAGES += \
434 android.hardware.audio@6.0 \
435 android.hardware.audio.common@6.0 \
436 android.hardware.audio.common@6.0-util \
437 android.hardware.audio@6.0-impl \
438 android.hardware.audio.effect@6.0 \
439 android.hardware.audio.effect@6.0-impl
440
Vignesh Kulothungan92a38712019-12-23 14:54:19 -0800441# enable sound trigger hidl hal 2.2
442PRODUCT_PACKAGES += \
443 android.hardware.soundtrigger@2.2-impl \
444
445PRODUCT_PACKAGES_ENG += \
446 VoicePrintTest \
447 VoicePrintDemo
448
449PRODUCT_PACKAGES_DEBUG += \
450 AudioSettings
Vignesh Kulothungane48106d2020-01-10 12:06:05 -0800451
452ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DEV_ARBI)),true)
453PRODUCT_PACKAGES_DEBUG += \
454 libaudiodevarb
455endif
456
457ifeq ($(call is-vendor-board-platform,QCOM),true)
458ifeq ($(call is-platform-sdk-version-at-least,28),true)
459PRODUCT_PACKAGES_DEBUG += \
460 libqti_resampler_headers \
461 lib_soundmodel_headers \
462 libqti_vraudio_headers
463endif
464ifeq ($(strip $(AUDIO_FEATURE_ENABLED_3D_AUDIO)),true)
465PRODUCT_PACKAGES_DEBUG += \
466 libvr_object_engine \
467 libvr_amb_engine \
468 libhoaeffects_csim
469endif
470endif
471
472ifeq ($(strip $(BOARD_SUPPORTS_SOUND_TRIGGER)),true)
473PRODUCT_PACKAGES_DEBUG += \
474 libadpcmdec
475endif
Meng Wang4c32fb42020-01-16 17:57:11 +0800476
477AUDIO_FEATURE_ENABLED_GKI := true