blob: e68cc7e2e7f43aa81deca0f89a93e912106ecbaf [file] [log] [blame]
Ashish Jain1221b522016-03-30 15:09:20 +05301##AUDIO_FEATURE_FLAGS
2#BOARD_USES_GENERIC_AUDIO := true
3BOARD_USES_ALSA_AUDIO := true
Sharad Sangle8ecefdc2016-09-26 13:50:41 +05304
vivek mehta02a52022017-01-27 15:36:19 -08005ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
Sujin Panicker6f0871a2019-03-12 12:19:26 +05306USE_CUSTOM_AUDIO_POLICY := 1
Sujin Panicker8d70cd62020-03-17 12:10:00 +05307AUDIO_FEATURE_QSSI_COMPLIANCE := true
Vara Prasad A V S Gbbef79e2016-04-26 21:12:43 +05308#AUDIO_FEATURE_ENABLED_VOICE_CONCURRENCY := true
Ashish Jain1221b522016-03-30 15:09:20 +05309AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true
Ashish Jain1221b522016-03-30 15:09:20 +053010AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false
Ramjee Singh6bc592c2018-04-18 14:54:12 +053011AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true
Ashish Jain1221b522016-03-30 15:09:20 +053012AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
13AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true
14AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := true
15AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
Ashish Jain1221b522016-03-30 15:09:20 +053016AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true
17AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true
18AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true
19AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true
20AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true
21AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true
22AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true
Ashish Jainad78edc2016-04-11 12:22:28 +053023AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
Ashish Jain1221b522016-03-30 15:09:20 +053024AUDIO_FEATURE_ENABLED_SSR := true
Ashish Jain1221b522016-03-30 15:09:20 +053025AUDIO_FEATURE_ENABLED_DTS_EAGLE := false
Divya Narayanan Poojary87cfbd72017-02-15 12:16:58 +053026BOARD_USES_SRS_TRUEMEDIA := false
Ashish Jain1221b522016-03-30 15:09:20 +053027DTS_CODEC_M_ := true
28#AUDIO_FEATURE_ENABLED_MULTIPLE_TUNNEL := true
Ashish Jain1221b522016-03-30 15:09:20 +053029MM_AUDIO_ENABLED_SAFX := true
Ashish Jain1221b522016-03-30 15:09:20 +053030AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
Satya Krishna Pindiproli4a72ae62017-07-02 16:08:11 +053031AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := false
Ashish Jain1221b522016-03-30 15:09:20 +053032AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
Dhananjay Kumar29b894e2017-04-05 02:41:14 +053033DOLBY_ENABLE := false
Sharad Sangle8ecefdc2016-09-26 13:50:41 +053034endif
Ashish Jain1221b522016-03-30 15:09:20 +053035
Sharad Sangle8ecefdc2016-09-26 13:50:41 +053036USE_XML_AUDIO_POLICY_CONF := 1
37BOARD_SUPPORTS_SOUND_TRIGGER := true
Sujin Panickerd53dd1b2019-12-23 18:56:54 +053038AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true
Sharad Sangle8ecefdc2016-09-26 13:50:41 +053039AUDIO_FEATURE_ENABLED_HIFI_AUDIO := true
40AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
41AUDIO_FEATURE_ENABLED_NT_PAUSE_TIMEOUT := true
42AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
43AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true
44AUDIO_FEATURE_ENABLED_FLUENCE := true
45AUDIO_FEATURE_ENABLED_HDMI_SPK := true
46AUDIO_FEATURE_ENABLED_HDMI_EDID := true
47AUDIO_FEATURE_ENABLED_EXT_HDMI := true
48AUDIO_FEATURE_ENABLED_HFP := true
Anver sadhique0074cac2020-06-30 17:36:48 +053049AUDIO_FEATURE_ENABLED_INCALL_MUSIC := true
Sharad Sangle8ecefdc2016-09-26 13:50:41 +053050AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
51AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
52AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
53AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true
54AUDIO_FEATURE_ENABLED_DEV_ARBI := false
55MM_AUDIO_ENABLED_FTM := true
56TARGET_USES_QCOM_MM_AUDIO := true
57AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
Rajshekar Eashwarappa88834522018-04-02 17:20:15 +053058BOARD_SUPPORTS_QAHW := false
Revathi Uddaraju1eac8b02017-05-18 17:13:33 +053059AUDIO_FEATURE_ENABLED_DYNAMIC_LOG := true
Dhananjay Kumare6293dd2017-05-25 17:25:30 +053060AUDIO_FEATURE_ENABLED_SND_MONITOR := true
Revathi Uddaraju16db00d2018-07-11 11:45:36 +053061AUDIO_FEATURE_ENABLED_SVA_MULTI_STAGE := true
Himanshu Agrawal77c6d322018-04-17 20:46:37 +053062ifeq ($(TARGET_KERNEL_VERSION), 3.18)
63 AUDIO_FEATURE_ENABLED_DLKM := false
64else
65 AUDIO_FEATURE_ENABLED_DLKM := true
66endif
Ashish Jain1221b522016-03-30 15:09:20 +053067##AUDIO_FEATURE_FLAGS
68
Ashish Jain440a4d92016-04-06 23:03:56 +053069#Audio Specific device overlays
Aalique Grahame57058a62019-01-10 10:30:17 -080070DEVICE_PACKAGE_OVERLAYS += vendor/qcom/opensource/audio-hal/primary-hal/configs/common/overlay
Ashish Jain440a4d92016-04-06 23:03:56 +053071
Sharad Sangle8ecefdc2016-09-26 13:50:41 +053072# Audio configuration file
vivek mehta02a52022017-01-27 15:36:19 -080073ifeq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
Sharad Sangle8ecefdc2016-09-26 13:50:41 +053074PRODUCT_COPY_FILES += \
Divya Narayanan Poojary2c5f13a2017-07-05 16:54:41 +053075 device/qcom/common/media/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf
Sharad Sangle8ecefdc2016-09-26 13:50:41 +053076else
77PRODUCT_COPY_FILES += \
Aalique Grahame57058a62019-01-10 10:30:17 -080078 vendor/qcom/opensource/audio-hal/primary-hal/configs/msm8953/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf
Sharad Sangle8ecefdc2016-09-26 13:50:41 +053079endif
Ashish Jain1221b522016-03-30 15:09:20 +053080
81PRODUCT_COPY_FILES += \
Aalique Grahame57058a62019-01-10 10:30:17 -080082vendor/qcom/opensource/audio-hal/primary-hal/configs/msm8953/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
83vendor/qcom/opensource/audio-hal/primary-hal/configs/msm8953/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
84vendor/qcom/opensource/audio-hal/primary-hal/configs/msm8953/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
85vendor/qcom/opensource/audio-hal/primary-hal/configs/msm8953/mixer_paths_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_mtp.xml \
Sujin Panickerd53dd1b2019-12-23 18:56:54 +053086vendor/qcom/opensource/audio-hal/primary-hal/configs/msm8953/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml \
87vendor/qcom/opensource/audio-hal/primary-hal/configs/msm8953/mixer_paths_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tashalite.xml \
88vendor/qcom/opensource/audio-hal/primary-hal/configs/msm8953/mixer_paths_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku4.xml \
89vendor/qcom/opensource/audio-hal/primary-hal/configs/msm8953/mixer_paths_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku3_tasha.xml \
Aalique Grahame57058a62019-01-10 10:30:17 -080090vendor/qcom/opensource/audio-hal/primary-hal/configs/msm8953/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
91vendor/qcom/opensource/audio-hal/primary-hal/configs/msm8953/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
92vendor/qcom/opensource/audio-hal/primary-hal/configs/msm8953/sound_trigger_mixer_paths_wcd9306.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9306.xml \
93vendor/qcom/opensource/audio-hal/primary-hal/configs/msm8953/sound_trigger_mixer_paths_wcd9330.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9330.xml \
94vendor/qcom/opensource/audio-hal/primary-hal/configs/msm8953/sound_trigger_mixer_paths_wcd9335.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9335.xml \
95vendor/qcom/opensource/audio-hal/primary-hal/configs/msm8953/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \
Sujin Panickerd53dd1b2019-12-23 18:56:54 +053096vendor/qcom/opensource/audio-hal/primary-hal/configs/msm8953/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
97vendor/qcom/opensource/audio-hal/primary-hal/configs/msm8953/audio_platform_info_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tashalite.xml \
98vendor/qcom/opensource/audio-hal/primary-hal/configs/msm8953/audio_platform_info_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku3_tasha.xml \
99vendor/qcom/opensource/audio-hal/primary-hal/configs/msm8953/audio_platform_info_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tasha.xml \
100vendor/qcom/opensource/audio-hal/primary-hal/configs/msm8953/audio_platform_info_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku4.xml \
101vendor/qcom/opensource/audio-hal/primary-hal/configs/msm8953/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
102frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml
Ashish Jain1221b522016-03-30 15:09:20 +0530103
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +0530104#XML Audio configuration files
105ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
Dhananjay Kumaraeb58fd2017-07-14 22:45:34 +0530106ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +0530107PRODUCT_COPY_FILES += \
Aalique Grahame57058a62019-01-10 10:30:17 -0800108 $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/msm8953/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml
Satya Krishna Pindiproli87a95f92016-05-09 19:58:33 +0530109endif
110PRODUCT_COPY_FILES += \
Sujin Panicker2ea62262020-10-07 11:39:03 +0530111 $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/msm8953/audio_policy_configuration_common.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
Srinu Jella234f9422019-05-22 16:14:27 +0530112 $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/common/bluetooth_qti_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
Divya Narayanan Poojary2c5f13a2017-07-05 16:54:41 +0530113 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
114 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
115 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
116 $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +0530117endif
118
Ashish Jain1221b522016-03-30 15:09:20 +0530119# Reduce client buffer size for fast audio output tracks
120PRODUCT_PROPERTY_OVERRIDES += \
121af.fast_track_multiplier=1
122
123#Low latency audio buffer size in frames
124PRODUCT_PROPERTY_OVERRIDES += \
Ramjee Singh63839662017-05-10 15:27:22 +0530125vendor.audio_hal.period_size=192
Ashish Jain1221b522016-03-30 15:09:20 +0530126
Sujin Panickerd53dd1b2019-12-23 18:56:54 +0530127##fluencetype can be "fluence" or "fluencepro" or "none"
Ashish Jain1221b522016-03-30 15:09:20 +0530128PRODUCT_PROPERTY_OVERRIDES += \
Ramjee Singh63839662017-05-10 15:27:22 +0530129ro.vendor.audio.sdk.fluencetype=none\
130persist.vendor.audio.fluence.voicecall=true\
131persist.vendor.audio.fluence.voicerec=false\
132persist.vendor.audio.fluence.speaker=true
Ashish Jain1221b522016-03-30 15:09:20 +0530133
134#disable tunnel encoding
135PRODUCT_PROPERTY_OVERRIDES += \
Ramjee Singh63839662017-05-10 15:27:22 +0530136vendor.audio.tunnel.encode=false
Ashish Jain1221b522016-03-30 15:09:20 +0530137
138#Buffer size in kbytes for compress offload playback
139PRODUCT_PROPERTY_OVERRIDES += \
Ramjee Singh63839662017-05-10 15:27:22 +0530140vendor.audio.offload.buffer.size.kb=64
Ashish Jain1221b522016-03-30 15:09:20 +0530141
142#Minimum duration for offload playback in secs
143PRODUCT_PROPERTY_OVERRIDES += \
144audio.offload.min.duration.secs=30
145
146#Enable offload audio video playback by default
147PRODUCT_PROPERTY_OVERRIDES += \
148audio.offload.video=true
149
Ashish Jain1221b522016-03-30 15:09:20 +0530150#Enable audio track offload by default
151PRODUCT_PROPERTY_OVERRIDES += \
Ramjee Singh63839662017-05-10 15:27:22 +0530152vendor.audio.offload.track.enable=true
Ashish Jain1221b522016-03-30 15:09:20 +0530153
154#Enable music through deep buffer
155PRODUCT_PROPERTY_OVERRIDES += \
156audio.deep_buffer.media=true
157
Ashish Jain1221b522016-03-30 15:09:20 +0530158#enable voice path for PCM VoIP by default
159PRODUCT_PROPERTY_OVERRIDES += \
Ramjee Singh63839662017-05-10 15:27:22 +0530160vendor.voice.path.for.pcm.voip=true
Ashish Jain1221b522016-03-30 15:09:20 +0530161
162#Enable multi channel aac through offload
163PRODUCT_PROPERTY_OVERRIDES += \
Ramjee Singh63839662017-05-10 15:27:22 +0530164vendor.audio.offload.multiaac.enable=true
Ashish Jain1221b522016-03-30 15:09:20 +0530165
166#Enable DS2, Hardbypass feature for Dolby
167PRODUCT_PROPERTY_OVERRIDES += \
Satya Krishna Pindiproli4a72ae62017-07-02 16:08:11 +0530168vendor.audio.dolby.ds2.enabled=false\
169vendor.audio.dolby.ds2.hardbypass=false
Ashish Jain1221b522016-03-30 15:09:20 +0530170
171#Disable Multiple offload sesison
172PRODUCT_PROPERTY_OVERRIDES += \
Ramjee Singh63839662017-05-10 15:27:22 +0530173vendor.audio.offload.multiple.enabled=false
Ashish Jain1221b522016-03-30 15:09:20 +0530174
175#Disable Compress passthrough playback
176PRODUCT_PROPERTY_OVERRIDES += \
Ramjee Singh63839662017-05-10 15:27:22 +0530177vendor.audio.offload.passthrough=false
Ashish Jain1221b522016-03-30 15:09:20 +0530178
179#Disable surround sound recording
180PRODUCT_PROPERTY_OVERRIDES += \
Ramjee Singh63839662017-05-10 15:27:22 +0530181ro.vendor.audio.sdk.ssr=false
Ashish Jain1221b522016-03-30 15:09:20 +0530182
183#enable dsp gapless mode by default
184PRODUCT_PROPERTY_OVERRIDES += \
Ramjee Singh63839662017-05-10 15:27:22 +0530185vendor.audio.offload.gapless.enabled=true
Ashish Jain1221b522016-03-30 15:09:20 +0530186
187#enable pbe effects
188PRODUCT_PROPERTY_OVERRIDES += \
Ramjee Singh63839662017-05-10 15:27:22 +0530189vendor.audio.safx.pbe.enabled=true
Ashish Jain1221b522016-03-30 15:09:20 +0530190
191#parser input buffer size(256kb) in byte stream mode
192PRODUCT_PROPERTY_OVERRIDES += \
Ramjee Singh63839662017-05-10 15:27:22 +0530193vendor.audio.parser.ip.buffer.size=262144
Ashish Jain1221b522016-03-30 15:09:20 +0530194
195#enable downsampling for multi-channel content > 48Khz
196PRODUCT_PROPERTY_OVERRIDES += \
Ramjee Singh63839662017-05-10 15:27:22 +0530197vendor.audio.playback.mch.downsample=true
Ashish Jain1221b522016-03-30 15:09:20 +0530198
199#enable software decoders for ALAC and APE.
200PRODUCT_PROPERTY_OVERRIDES += \
Ramjee Singh63839662017-05-10 15:27:22 +0530201vendor.audio.use.sw.alac.decoder=true\
202vendor.audio.use.sw.ape.decoder=true
Ashish Jain1221b522016-03-30 15:09:20 +0530203
Sujin Panickerd53dd1b2019-12-23 18:56:54 +0530204#property for AudioSphere Post processing
205PRODUCT_PROPERTY_OVERRIDES += \
206vendor.audio.pp.asphere.enabled=false
207
Ashish Jain1221b522016-03-30 15:09:20 +0530208#Audio voice concurrency related flags
209PRODUCT_PROPERTY_OVERRIDES += \
Ramjee Singh63839662017-05-10 15:27:22 +0530210vendor.voice.playback.conc.disabled=true\
211vendor.voice.record.conc.disabled=false\
212vendor.voice.voip.conc.disabled=true
Ashish Jain1221b522016-03-30 15:09:20 +0530213
214#Decides the audio fallback path during voice call,
215#deep-buffer and fast are the two allowed fallback paths now.
216PRODUCT_PROPERTY_OVERRIDES += \
Ramjee Singh63839662017-05-10 15:27:22 +0530217vendor.voice.conc.fallbackpath=deep-buffer
Ashish Jain1221b522016-03-30 15:09:20 +0530218
219#Disable speaker protection by default
220PRODUCT_PROPERTY_OVERRIDES += \
Ramjee Singh63839662017-05-10 15:27:22 +0530221persist.vendor.audio.speaker.prot.enable=false
Ashish Jain1221b522016-03-30 15:09:20 +0530222
223#Enable HW AAC Encoder by default
224PRODUCT_PROPERTY_OVERRIDES += \
Ramjee Singh63839662017-05-10 15:27:22 +0530225vendor.audio.hw.aac.encoder=true
Satya Krishna Pindiprolid2837402016-08-01 14:16:34 +0530226
227#flac sw decoder 24 bit decode capability
228PRODUCT_PROPERTY_OVERRIDES += \
Ramjee Singh63839662017-05-10 15:27:22 +0530229vendor.audio.flac.sw.decoder.24bit=true
Bharat Pawar50185962017-03-30 14:39:22 +0530230
Sujin Panicker822e1092020-06-30 16:04:07 +0530231#timeout crash duration set to 20sec before system is ready.
232#timeout duration updates to default timeout of 5sec once the system is ready.
Sujin Panicker2d836952020-08-13 12:07:32 +0530233PRODUCT_PROPERTY_OVERRIDES += \
Sujin Panicker822e1092020-06-30 16:04:07 +0530234vendor.audio.hal.boot.timeout.ms=20000
235
Sujin Panickerd53dd1b2019-12-23 18:56:54 +0530236#read wsatz name from thermal zone type
237PRODUCT_PROPERTY_OVERRIDES += \
238vendor.audio.read.wsatz.type=true
239
Satya Krishna Pindiproli650ea152017-09-13 17:10:38 +0530240#Set AudioFlinger client heap size
241PRODUCT_PROPERTY_OVERRIDES += \
242ro.af.client_heap_size_kbyte=7168
243
Ramjee Singh43d58b22018-07-26 14:59:19 +0530244PRODUCT_PROPERTY_OVERRIDES += \
245persist.vendor.audio.hw.binder.size_kbyte=1024
246
Anver sadhiqueff576742020-08-10 14:59:22 +0530247#Set speaker protection cal tx path sampling rate to 48k
248PRODUCT_PROPERTY_OVERRIDES += \
249vendor.audio.spkr_prot.tx.sampling_rate=48000
250
Sujin Panickerd53dd1b2019-12-23 18:56:54 +0530251# add dynamic feature flags here
Aalique Grahame57058a62019-01-10 10:30:17 -0800252PRODUCT_PROPERTY_OVERRIDES += \
Sujin Panickerd53dd1b2019-12-23 18:56:54 +0530253vendor.audio.feature.snd_mon.enable=true \
254vendor.audio.feature.compr_cap.enable=false \
255vendor.audio.feature.hifi_audio.enable=true \
256vendor.audio.feature.hdmi_edid.enable=true \
257endor.audio.feature.spkr_prot.enable=true \
258vendor.audio.feature.dsm_feedback.enable=false \
259vendor.audio.feature.ssrec.enable=true \
Anver sadhiqueea799f62020-06-22 19:05:02 +0530260vendor.audio.feature.compr_voip.enable=true \
Sujin Panickerd53dd1b2019-12-23 18:56:54 +0530261vendor.audio.feature.kpi_optimize.enable=true \
262vendor.audio.feature.usb_offload.enable=false \
263vendor.audio.feature.usb_offload_burst_mode.enable=false \
264vendor.audio.feature.usb_offload_sidetone_volume.enable=false \
265vendor.audio.feature.src_trkn.enable=true \
266vendor.audio.feature.ras.enable=false \
267vendor.audio.feature.a2dp_offload.enable=false \
268vendor.audio.feature.wsa.enable=true \
Anver sadhique1e5735b2020-11-27 17:29:10 +0530269vendor.audio.feature.compress_meta_data.enable=true \
Sujin Panickerd53dd1b2019-12-23 18:56:54 +0530270vendor.audio.feature.vbat.enable=true \
271vendor.audio.feature.display_port.enable=false \
272vendor.audio.feature.fluence.enable=true \
273vendor.audio.feature.custom_stereo.enable=true \
274vendor.audio.feature.anc_headset.enable=true \
275vendor.audio.feature.spkr_prot.enable=false \
276vendor.audio.feature.fm.enable=true \
277vendor.audio.feature.external_dsp.enable=false \
278vendor.audio.feature.external_speaker.enable=false \
279vendor.audio.feature.external_speaker_tfa.enable=false \
280vendor.audio.feature.hwdep_cal.enable=false \
281vendor.audio.feature.hfp.enable=true \
282vendor.audio.feature.ext_hw_plugin.enable=false \
283vendor.audio.feature.record_play_concurency.enable=false \
284vendor.audio.feature.hdmi_passthrough.enable=false \
285vendor.audio.feature.concurrent_capture.enable=false \
286vendor.audio.feature.compress_in.enable=false \
287vendor.audio.feature.battery_listener.enable=false \
288vendor.audio.feature.maxx_audio.enable=false \
289vendor.audio.feature.audiozoom.enable=false \
290vendor.audio.feature.auto_hal.enable=false \
291vendor.audio.read.wsatz.type=true \
Sujin Panicker4c7b4c42020-05-07 11:10:29 +0530292vendor.audio.feature.multi_voice_session.enable=true \
293vendor.audio.feature.incall_music.enable=true
Aalique Grahame57058a62019-01-10 10:30:17 -0800294
Bharat Pawar50185962017-03-30 14:39:22 +0530295# for HIDL related packages
296PRODUCT_PACKAGES += \
297 android.hardware.audio@2.0-service \
298 android.hardware.audio@2.0-impl \
299 android.hardware.audio.effect@2.0-impl \
Revathi Uddaraju16db00d2018-07-11 11:45:36 +0530300 android.hardware.soundtrigger@2.1-impl \
Lakshman Chaluvaraju6090b002018-07-25 18:09:15 +0530301 android.hardware.audio@4.0 \
302 android.hardware.audio.common@4.0 \
303 android.hardware.audio.common@4.0-util \
304 android.hardware.audio@4.0-impl \
305 android.hardware.audio.effect@4.0 \
306 android.hardware.audio.effect@4.0-impl
Sujin Panickerd53dd1b2019-12-23 18:56:54 +0530307
308# enable audio hidl hal 5.0 for sdk rev 29 and above
309ifeq ($(shell expr $(PLATFORM_SDK_VERSION) \>= 29), 1)
310PRODUCT_PACKAGES += \
311 android.hardware.audio@5.0 \
312 android.hardware.audio.common@5.0 \
313 android.hardware.audio.common@5.0-util \
314 android.hardware.audio@5.0-impl \
315 android.hardware.audio.effect@5.0 \
316 android.hardware.audio.effect@5.0-impl
Anver sadhique0074cac2020-06-30 17:36:48 +0530317
318# enable audio hidl hal 6.0
319PRODUCT_PACKAGES += \
320 android.hardware.audio@6.0 \
321 android.hardware.audio.common@6.0 \
322 android.hardware.audio.common@6.0-util \
323 android.hardware.audio@6.0-impl \
324 android.hardware.audio.effect@6.0 \
325 android.hardware.audio.effect@6.0-impl
326
Sujin Panickerd53dd1b2019-12-23 18:56:54 +0530327endif