blob: 9d44a06c7e9e5423b9c592b6884a2d177fe88d08 [file] [log] [blame]
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +05301#BOARD_USES_GENERIC_AUDIO := true
2#
3#AUDIO_FEATURE_FLAGS
4BOARD_USES_ALSA_AUDIO := true
Dhananjay Kumar05f20b12017-03-31 03:46:42 +05305
6ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
Sujin Panicker6f0871a2019-03-12 12:19:26 +05307USE_CUSTOM_AUDIO_POLICY := 1
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +05308AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false
Ramjee Singh6bc592c2018-04-18 14:54:12 +05309AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +053010AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
11AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true
12AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := true
13AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +053014AUDIO_FEATURE_ENABLED_HDMI_SPK := true
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +053015AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true
16AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true
17AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true
18AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true
19AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true
20AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true
21AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true
22AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true
Naresh Tanniru01223b92016-11-01 13:50:57 +053023AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +053024AUDIO_FEATURE_ENABLED_SSR := true
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +053025AUDIO_FEATURE_ENABLED_DTS_EAGLE := false
26BOARD_USES_SRS_TRUEMEDIA := false
27DTS_CODEC_M_ := false
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +053028MM_AUDIO_ENABLED_SAFX := true
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +053029AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +053030AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
Aalique Grahame57058a62019-01-10 10:30:17 -080031AUDIO_FEATURE_ENABLED_USB_TUNNEL := true
32AUDIO_FEATURE_ENABLED_A2DP_OFFLOAD := true
Dhananjay Kumar29b894e2017-04-05 02:41:14 +053033AUDIO_FEATURE_ENABLED_3D_AUDIO := false
Naresh Tanniru2034f1b2017-04-25 16:21:50 +053034AUDIO_FEATURE_ENABLED_VOICE_PRINT := false
35USE_LEGACY_AUDIO_DAEMON := false
36USE_LEGACY_AUDIO_MEASUREMENT := false
Sujin Panickerb904fbe2019-04-04 13:28:07 +053037AUDIO_FEATURE_ENABLED_AHAL_EXT := false
Weiyin Jiangd9b5a4e2019-07-18 17:24:21 +080038AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT := true
Dhananjay Kumar29b894e2017-04-05 02:41:14 +053039DOLBY_ENABLE := false
Dhananjay Kumar05f20b12017-03-31 03:46:42 +053040endif
41
42USE_XML_AUDIO_POLICY_CONF := 1
43BOARD_SUPPORTS_SOUND_TRIGGER := true
Aalique Grahame57058a62019-01-10 10:30:17 -080044AUDIO_USE_DEEP_AS_PRIMARY_OUTPUT := false
Dhananjay Kumar05f20b12017-03-31 03:46:42 +053045AUDIO_FEATURE_ENABLED_HIFI_AUDIO := true
46AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
Weiyin Jiang3b7d4452019-09-14 16:42:12 +080047AUDIO_FEATURE_ENABLED_NT_PAUSE_TIMEOUT := true
Dhananjay Kumar05f20b12017-03-31 03:46:42 +053048AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
Naresh Tanniru2034f1b2017-04-25 16:21:50 +053049AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true
Dhananjay Kumar05f20b12017-03-31 03:46:42 +053050AUDIO_FEATURE_ENABLED_FLUENCE := true
Naresh Tanniru2034f1b2017-04-25 16:21:50 +053051AUDIO_FEATURE_ENABLED_HDMI_EDID := true
52AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH := true
53#AUDIO_FEATURE_ENABLED_KEEP_ALIVE := true
54AUDIO_FEATURE_ENABLED_DISPLAY_PORT := true
Satya Krishna Pindiproli4a72ae62017-07-02 16:08:11 +053055AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := false
Naresh Tanniru2034f1b2017-04-25 16:21:50 +053056AUDIO_FEATURE_ENABLED_HFP := true
Dhananjay Kumar05f20b12017-03-31 03:46:42 +053057AUDIO_FEATURE_ENABLED_INCALL_MUSIC := false
Naresh Tanniru2034f1b2017-04-25 16:21:50 +053058AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
Dhananjay Kumar05f20b12017-03-31 03:46:42 +053059AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
60AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
61AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true
62AUDIO_FEATURE_ENABLED_DEV_ARBI := false
Revathi Uddaraju074d9c62017-09-13 15:10:29 +053063AUDIO_FEATURE_ENABLED_DYNAMIC_LOG := true
Dhananjay Kumar05f20b12017-03-31 03:46:42 +053064MM_AUDIO_ENABLED_FTM := true
65TARGET_USES_QCOM_MM_AUDIO := true
Naresh Tanniru2034f1b2017-04-25 16:21:50 +053066AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
67AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
Rohit Kumarbe6935f2017-01-20 14:58:34 +053068AUDIO_FEATURE_ENABLED_RAS := true
Dhananjay Kumare6293dd2017-05-25 17:25:30 +053069AUDIO_FEATURE_ENABLED_SND_MONITOR := true
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +053070##AUDIO_FEATURE_FLAGS
71
72#Audio Specific device overlays
Aalique Grahame57058a62019-01-10 10:30:17 -080073DEVICE_PACKAGE_OVERLAYS += vendor/qcom/opensource/audio-hal/primary-hal/configs/common/overlay
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +053074
75# Audio configuration file
vivek mehta02a52022017-01-27 15:36:19 -080076ifeq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +053077PRODUCT_COPY_FILES += \
Aalique Grahame57058a62019-01-10 10:30:17 -080078 device/qcom/common/media/audio_policy.conf:vendor/etc/audio_policy.conf
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +053079else
80PRODUCT_COPY_FILES += \
Aalique Grahame57058a62019-01-10 10:30:17 -080081 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/audio_policy.conf:vendor/etc/audio_policy.conf
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +053082endif
83
84PRODUCT_COPY_FILES += \
Aalique Grahame57058a62019-01-10 10:30:17 -080085 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
86 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
87 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
Aalique Grahame57058a62019-01-10 10:30:17 -080088 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/mixer_paths_skush.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_skush.xml \
89 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/mixer_paths_i2s.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_i2s.xml \
Sujin Panickerb904fbe2019-04-04 13:28:07 +053090 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml \
91 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/mixer_paths_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_mtp.xml \
92 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/mixer_paths_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tashalite.xml \
93 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/mixer_paths_tavil.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tavil.xml \
94 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/mixer_paths_tasha_skus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha_skus.xml \
95 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
Aalique Grahame57058a62019-01-10 10:30:17 -080096 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
97 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/audio_tuning_mixer_tavil.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer_tavil.txt \
98 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/audio_tuning_mixer_tasha.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer_tasha.txt \
Sujin Panickerb904fbe2019-04-04 13:28:07 +053099 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/audio_platform_info_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tasha.xml \
100 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/audio_platform_info_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tashalite.xml \
101 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/audio_platform_info_tavil.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tavil.xml \
102 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/audio_platform_info_tasha_skus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tasha_skus.xml \
103 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
Aalique Grahame57058a62019-01-10 10:30:17 -0800104 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/audio_platform_info_skush.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_skush.xml \
105 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
106 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/sound_trigger_mixer_paths_wcd9330.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9330.xml \
107 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/sound_trigger_mixer_paths_wcd9335.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9335.xml \
108 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/sound_trigger_mixer_paths_wcd9340.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9340.xml \
109 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \
Sujin Panickerb904fbe2019-04-04 13:28:07 +0530110 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/graphite_ipc_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/graphite_ipc_platform_info.xml \
Sujin Panicker8c2e88e2019-07-11 15:52:26 +0530111 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/audio_configs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_configs.xml \
112 frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \
Sujin Panicker8c9fead2019-09-19 12:26:23 +0530113 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \
114 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +0530115
Sujin Panickerd2305b82019-09-18 18:45:03 +0530116
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +0530117#XML Audio configuration files
118ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
Dhananjay Kumaraeb58fd2017-07-14 22:45:34 +0530119ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +0530120PRODUCT_COPY_FILES += \
Aalique Grahame57058a62019-01-10 10:30:17 -0800121 $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +0530122endif
123PRODUCT_COPY_FILES += \
Aalique Grahame57058a62019-01-10 10:30:17 -0800124 $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
Dhananjay Kumaraeb58fd2017-07-14 22:45:34 +0530125 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
126 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
127 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
128 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
Srinu Jella234f9422019-05-22 16:14:27 +0530129 $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \
130 $(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
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +0530131endif
132
133# Listen configuration file
134PRODUCT_COPY_FILES += \
Aalique Grahame57058a62019-01-10 10:30:17 -0800135 vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm660/listen_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/listen_platform_info.xml
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +0530136
137# Reduce client buffer size for fast audio output tracks
138PRODUCT_PROPERTY_OVERRIDES += \
139 af.fast_track_multiplier=1
140
141# Low latency audio buffer size in frames
142PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700143 vendor.audio_hal.period_size=192
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +0530144
145##fluencetype can be "fluence" or "fluencepro" or "none"
146PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700147ro.vendor.audio.sdk.fluencetype=none\
148persist.vendor.audio.fluence.voicecall=true\
149persist.vendor.audio.fluence.voicerec=false\
150persist.vendor.audio.fluence.speaker=true
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +0530151
152#disable tunnel encoding
153PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700154vendor.audio.tunnel.encode=false
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +0530155
Rohit Kumarbe6935f2017-01-20 14:58:34 +0530156#Disable RAS Feature by default
157PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700158persist.vendor.audio.ras.enabled=false
Rohit Kumarbe6935f2017-01-20 14:58:34 +0530159
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +0530160#Buffer size in kbytes for compress offload playback
161PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700162vendor.audio.offload.buffer.size.kb=64
Ashish Jainbb44d8a2017-01-02 11:18:44 +0530163
164#Minimum duration for offload playback in secs
165PRODUCT_PROPERTY_OVERRIDES += \
166audio.offload.min.duration.secs=30
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +0530167
168#Enable offload audio video playback by default
169PRODUCT_PROPERTY_OVERRIDES += \
170audio.offload.video=true
171
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +0530172#Enable audio track offload by default
173PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700174vendor.audio.offload.track.enable=true
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +0530175
176#Enable music through deep buffer
177PRODUCT_PROPERTY_OVERRIDES += \
178audio.deep_buffer.media=true
179
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +0530180#enable voice path for PCM VoIP by default
181PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700182vendor.voice.path.for.pcm.voip=true
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +0530183
184#Enable multi channel aac through offload
185PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700186vendor.audio.offload.multiaac.enable=true
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +0530187
188#Enable DS2, Hardbypass feature for Dolby
189PRODUCT_PROPERTY_OVERRIDES += \
Satya Krishna Pindiproli4a72ae62017-07-02 16:08:11 +0530190vendor.audio.dolby.ds2.enabled=false\
191vendor.audio.dolby.ds2.hardbypass=false
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +0530192
193#Disable Multiple offload sesison
194PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700195vendor.audio.offload.multiple.enabled=false
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +0530196
Garmond Leunge3e61082017-02-06 15:08:26 -0800197#Disable Compress passthrough playback
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +0530198PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700199vendor.audio.offload.passthrough=false
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +0530200
201#Disable surround sound recording
202PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700203ro.vendor.audio.sdk.ssr=false
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +0530204
205#enable dsp gapless mode by default
206PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700207vendor.audio.offload.gapless.enabled=true
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +0530208
209#enable pbe effects
210PRODUCT_PROPERTY_OVERRIDES += \
Weiyin Jiang8e251d92019-07-03 19:50:02 +0800211vendor.audio.safx.pbe.enabled=false
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +0530212
213#parser input buffer size(256kb) in byte stream mode
214PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700215vendor.audio.parser.ip.buffer.size=262144
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +0530216
Naresh Tanniru01223b92016-11-01 13:50:57 +0530217#flac sw decoder 24 bit decode capability
218PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700219vendor.audio.flac.sw.decoder.24bit=true
Naresh Tanniru01223b92016-11-01 13:50:57 +0530220
221#split a2dp DSP supported encoder list
222PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700223persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxhd-aac
Naresh Tanniru01223b92016-11-01 13:50:57 +0530224
Aalique Grahame57058a62019-01-10 10:30:17 -0800225# A2DP offload support
226PRODUCT_PROPERTY_OVERRIDES += \
227ro.bluetooth.a2dp_offload.supported=true
228
229# Disable A2DP offload
230PRODUCT_PROPERTY_OVERRIDES += \
231persist.bluetooth.a2dp_offload.disabled=false
232
233# A2DP offload DSP supported encoder list
234PRODUCT_PROPERTY_OVERRIDES += \
235persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac
236
Naresh Tanniru01223b92016-11-01 13:50:57 +0530237#enable software decoders for ALAC and APE
238PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700239vendor.audio.use.sw.alac.decoder=true
Naresh Tanniru01223b92016-11-01 13:50:57 +0530240PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700241vendor.audio.use.sw.ape.decoder=true
Naresh Tanniru01223b92016-11-01 13:50:57 +0530242
243#enable hw aac encoder by default
244PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700245vendor.audio.hw.aac.encoder=true
Naresh Tanniru01223b92016-11-01 13:50:57 +0530246
Naresh Tanniru01223b92016-11-01 13:50:57 +0530247#audio becoming noisy intent broadcast delay
248PRODUCT_PROPERTY_OVERRIDES += \
Weiyin Jiangb21ff8c2019-04-28 10:38:30 +0800249audio.sys.noisy.broadcast.delay=600
250
251#offload pausetime out duration to 3 secs to inline with other outputs
252PRODUCT_PROPERTY_OVERRIDES += \
253audio.sys.offload.pstimeout.secs=3
Naresh Tanniru01223b92016-11-01 13:50:57 +0530254
255#Enable HIFI audio support for internal codec
256PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700257persist.vendor.audio.hifi.int_codec=true
Naresh Tanniruec59ba32016-12-21 19:11:50 +0530258
Satya Krishna Pindiproli650ea152017-09-13 17:10:38 +0530259#Set AudioFlinger client heap size
260PRODUCT_PROPERTY_OVERRIDES += \
261ro.af.client_heap_size_kbyte=7168
262
Ramjee Singh43d58b22018-07-26 14:59:19 +0530263PRODUCT_PROPERTY_OVERRIDES += \
264persist.vendor.audio.hw.binder.size_kbyte=1024
265
Aalique Grahame57058a62019-01-10 10:30:17 -0800266#enable headset calibration
267PRODUCT_PROPERTY_OVERRIDES += \
Dhananjay Kumarc8d4b452019-08-06 16:31:51 +0530268vendor.audio.volume.headset.gain.depcal=true
Aalique Grahame57058a62019-01-10 10:30:17 -0800269
Ramjee Singhb7329d52019-07-03 15:03:56 +0530270#enable AAC frame ctl for A2DP sinks
271PRODUCT_PROPERTY_OVERRIDES += \
272persist.vendor.bt.aac_frm_ctl.enabled=true
273
Sujin Panickerb6d76262019-09-09 10:55:38 +0530274#Set speaker protection cal tx path sampling rate to 48k
275PRODUCT_PROPERTY_OVERRIDES += \
276vendor.audio.spkr_prot.tx.sampling_rate=48000
277
vivek mehta204b7412019-05-14 21:41:22 -0700278#add dynamic feature flags here
279PRODUCT_PROPERTY_OVERRIDES += \
280vendor.audio.feature.a2dp_offload.enable=true \
281vendor.audio.feature.afe_proxy.enable=true \
282vendor.audio.feature.anc_headset.enable=true \
vivek mehta204b7412019-05-14 21:41:22 -0700283vendor.audio.feature.battery_listener.enable=false \
284vendor.audio.feature.compr_cap.enable=false \
285vendor.audio.feature.compress_in.enable=false \
286vendor.audio.feature.compress_meta_data.enable=true \
287vendor.audio.feature.compr_voip.enable=true \
288vendor.audio.feature.concurrent_capture.enable=false \
289vendor.audio.feature.custom_stereo.enable=true \
290vendor.audio.feature.display_port.enable=true \
291vendor.audio.feature.dsm_feedback.enable=false \
292vendor.audio.feature.dynamic_ecns.enable=false \
293vendor.audio.feature.ext_hw_plugin.enable=false \
294vendor.audio.feature.external_dsp.enable=false \
295vendor.audio.feature.external_speaker.enable=false \
296vendor.audio.feature.external_speaker_tfa.enable=false \
297vendor.audio.feature.fluence.enable=true \
298vendor.audio.feature.fm.enable=true \
299vendor.audio.feature.hdmi_edid.enable=true \
300vendor.audio.feature.hdmi_passthrough.enable=true \
301vendor.audio.feature.hfp.enable=true \
302vendor.audio.feature.hifi_audio.enable=true \
303vendor.audio.feature.hwdep_cal.enable=false \
304vendor.audio.feature.incall_music.enable=false \
Weiyin Jiangcf458062019-07-15 11:56:14 +0800305vendor.audio.feature.multi_voice_session.enable=true \
vivek mehta204b7412019-05-14 21:41:22 -0700306vendor.audio.feature.keep_alive.enable=false \
307vendor.audio.feature.kpi_optimize.enable=true \
308vendor.audio.feature.maxx_audio.enable=false \
309vendor.audio.feature.ras.enable=true \
310vendor.audio.feature.record_play_concurency.enable=false \
311vendor.audio.feature.src_trkn.enable=true \
312vendor.audio.feature.spkr_prot.enable=true \
313vendor.audio.feature.ssrec.enable=true \
314vendor.audio.feature.usb_offload.enable=true \
315vendor.audio.feature.usb_offload_burst_mode.enable=false \
316vendor.audio.feature.usb_offload_sidetone_volume.enable=false \
317vendor.audio.feature.deepbuffer_as_primary.enable=false \
318vendor.audio.feature.vbat.enable=true \
319vendor.audio.feature.wsa.enable=false \
320vendor.audio.feature.audiozoom.enable=false \
321vendor.audio.feature.snd_mon.enable=true
322
Dhananjay Kumar05f20b12017-03-31 03:46:42 +0530323# for HIDL related packages
324PRODUCT_PACKAGES += \
325 android.hardware.audio@2.0-service \
326 android.hardware.audio@2.0-impl \
327 android.hardware.audio.effect@2.0-impl \
Ramjee Singha8385bc2018-09-18 12:40:44 +0530328 android.hardware.soundtrigger@2.1-impl \
Ramjee Singh749562a2018-06-29 12:58:02 +0530329 android.hardware.audio@4.0 \
330 android.hardware.audio.common@4.0 \
331 android.hardware.audio.common@4.0-util \
332 android.hardware.audio@4.0-impl \
333 android.hardware.audio.effect@4.0 \
334 android.hardware.audio.effect@4.0-impl
Samyak Jain6df8ce82019-03-22 14:26:24 +0530335
Ramjee Singh9068b632019-07-29 14:07:51 +0530336# enable audio hidl hal 5.0
337PRODUCT_PACKAGES += \
338 android.hardware.audio@5.0 \
339 android.hardware.audio.common@5.0 \
340 android.hardware.audio.common@5.0-util \
341 android.hardware.audio@5.0-impl \
342 android.hardware.audio.effect@5.0 \
343 android.hardware.audio.effect@5.0-impl
344
Jaideep Sharmaf9b8ec92020-01-28 15:05:49 +0530345# enable audio hidl hal 6.0
346PRODUCT_PACKAGES += \
347 android.hardware.audio@6.0 \
348 android.hardware.audio.common@6.0 \
349 android.hardware.audio.common@6.0-util \
350 android.hardware.audio@6.0-impl \
351 android.hardware.audio.effect@6.0 \
352 android.hardware.audio.effect@6.0-impl
353
Samyak Jain6df8ce82019-03-22 14:26:24 +0530354PRODUCT_PACKAGES_ENG += \
355 VoicePrintTest \
356 VoicePrintDemo
357
358PRODUCT_PACKAGES_DEBUG += \
359 AudioSettings