blob: 94b45a1f7f1667a4d1291c3d8db09ea1d33484eb [file] [log] [blame]
Sharad Sangled39232d2017-08-08 20:27:18 +05301#BOARD_USES_GENERIC_AUDIO := true
2#
3#AUDIO_FEATURE_FLAGS
4BOARD_USES_ALSA_AUDIO := true
5
6ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
7USE_CUSTOM_AUDIO_POLICY := 1
8AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false
Sachin Mohan Gadagd9624702018-01-04 10:33:59 +05309AUDIO_FEATURE_ENABLED_COMPRESS_INPUT := true
Tanya Dixit994ecac2017-10-20 15:42:40 +053010AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := false
Vikram Pandurangadf59cae2017-08-03 18:04:55 -070011AUDIO_FEATURE_ENABLED_DYNAMIC_ECNS := false
Sharad Sangled39232d2017-08-08 20:27:18 +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
16AUDIO_FEATURE_ENABLED_HDMI_SPK := true
17AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true
18AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true
19AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true
20AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true
21AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true
22AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true
23AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true
24AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true
25AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
26AUDIO_FEATURE_ENABLED_SSR := true
27AUDIO_FEATURE_ENABLED_DTS_EAGLE := false
Revathi Uddaraju074d9c62017-09-13 15:10:29 +053028AUDIO_FEATURE_ENABLED_DYNAMIC_LOG := true
Sharad Sangled39232d2017-08-08 20:27:18 +053029BOARD_USES_SRS_TRUEMEDIA := false
30DTS_CODEC_M_ := false
31MM_AUDIO_ENABLED_SAFX := true
32AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
33AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
34AUDIO_FEATURE_ENABLED_USB_TUNNEL_AUDIO := true
35AUDIO_FEATURE_ENABLED_SPLIT_A2DP := true
36AUDIO_FEATURE_ENABLED_3D_AUDIO := false
37AUDIO_FEATURE_ENABLED_VOICE_PRINT := false
38USE_LEGACY_AUDIO_DAEMON := false
39USE_LEGACY_AUDIO_MEASUREMENT := false
40DOLBY_ENABLE := false
41endif
42
43USE_XML_AUDIO_POLICY_CONF := 1
44BOARD_SUPPORTS_SOUND_TRIGGER := true
45AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true
46AUDIO_FEATURE_ENABLED_HIFI_AUDIO := true
47AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
48AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
49AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true
50AUDIO_FEATURE_ENABLED_FLUENCE := true
51AUDIO_FEATURE_ENABLED_HDMI_EDID := true
52AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH := true
53#AUDIO_FEATURE_ENABLED_KEEP_ALIVE := true
54AUDIO_FEATURE_ENABLED_DISPLAY_PORT := true
55AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := false
56AUDIO_FEATURE_ENABLED_HFP := true
57AUDIO_FEATURE_ENABLED_INCALL_MUSIC := false
58AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
59AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
60AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
61AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true
62AUDIO_FEATURE_ENABLED_DEV_ARBI := false
63MM_AUDIO_ENABLED_FTM := true
64TARGET_USES_QCOM_MM_AUDIO := true
65AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
66AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
Naresh Tanniru42e0e602018-03-16 19:45:21 +053067BOARD_SUPPORTS_QAHW := false
Sachin Mohan Gadag54db5282017-12-13 15:46:00 +053068BOARD_SUPPORTS_QSTHW_API := true
Sharad Sangled39232d2017-08-08 20:27:18 +053069AUDIO_FEATURE_ENABLED_RAS := true
70AUDIO_FEATURE_ENABLED_SND_MONITOR := true
Sharad Sangleda75d9c2018-03-29 13:30:54 +053071AUDIO_FEATURE_ENABLED_DLKM := true
Sharad Sangled39232d2017-08-08 20:27:18 +053072##AUDIO_FEATURE_FLAGS
73
74#Audio Specific device overlays
75DEVICE_PACKAGE_OVERLAYS += hardware/qcom/audio/configs/common/overlay
76
77# Audio configuration file
78ifeq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
79PRODUCT_COPY_FILES += \
80 device/qcom/common/media/audio_policy.conf:system/etc/audio_policy.conf
81else
82PRODUCT_COPY_FILES += \
Naresh Tanniru42e0e602018-03-16 19:45:21 +053083 hardware/qcom/audio/configs/sdm710/audio_policy.conf:system/etc/audio_policy.conf
Sharad Sangled39232d2017-08-08 20:27:18 +053084endif
85
86PRODUCT_COPY_FILES += \
Naresh Tanniru42e0e602018-03-16 19:45:21 +053087 hardware/qcom/audio/configs/sdm710/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
88 hardware/qcom/audio/configs/sdm710/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
Lakshman Chaluvarajuc57b29c2018-05-08 19:42:03 +053089 hardware/qcom/audio/configs/sdm710/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
Naresh Tanniru42e0e602018-03-16 19:45:21 +053090 hardware/qcom/audio/configs/sdm710/mixer_paths_tavil.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tavil.xml \
91 hardware/qcom/audio/configs/sdm710/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
92 hardware/qcom/audio/configs/sdm710/mixer_paths_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_mtp.xml \
93 hardware/qcom/audio/configs/sdm710/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml \
94 hardware/qcom/audio/configs/sdm710/mixer_paths_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tashalite.xml \
95 hardware/qcom/audio/configs/sdm710/mixer_paths_i2s.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_i2s.xml \
96 hardware/qcom/audio/configs/sdm710/mixer_paths_skuw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_skuw.xml \
97 hardware/qcom/audio/configs/sdm710/mixer_paths_360cam.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_360cam.xml \
98 hardware/qcom/audio/configs/sdm710/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
99 hardware/qcom/audio/configs/sdm710/audio_tuning_mixer_tavil.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer_tavil.txt \
100 hardware/qcom/audio/configs/sdm710/audio_tuning_mixer_tasha.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer_tasha.txt \
101 hardware/qcom/audio/configs/sdm710/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
102 hardware/qcom/audio/configs/sdm710/audio_platform_info_i2s.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_i2s.xml \
103 hardware/qcom/audio/configs/sdm710/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
104 hardware/qcom/audio/configs/sdm710/audio_platform_info_skuw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_skuw.xml \
105 hardware/qcom/audio/configs/sdm710/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \
106 hardware/qcom/audio/configs/sdm710/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
107 hardware/qcom/audio/configs/sdm710/sound_trigger_mixer_paths_skuw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_skuw.xml \
108 hardware/qcom/audio/configs/sdm710/sound_trigger_mixer_paths_wcd9335.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9335.xml \
109 hardware/qcom/audio/configs/sdm710/sound_trigger_mixer_paths_wcd9340.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9340.xml \
110 hardware/qcom/audio/configs/sdm710/sound_trigger_mixer_paths_wcd9340.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9340.xml \
111 hardware/qcom/audio/configs/sdm710/graphite_ipc_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/graphite_ipc_platform_info.xml
Sharad Sangled39232d2017-08-08 20:27:18 +0530112
113#XML Audio configuration files
114ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
115ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
116PRODUCT_COPY_FILES += \
Naresh Tanniru42e0e602018-03-16 19:45:21 +0530117 $(TOPDIR)hardware/qcom/audio/configs/sdm710/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml
Sharad Sangled39232d2017-08-08 20:27:18 +0530118endif
119PRODUCT_COPY_FILES += \
120 $(TOPDIR)hardware/qcom/audio/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
121 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
122 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
123 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
124 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
125 $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
126endif
127
128# Listen configuration file
129PRODUCT_COPY_FILES += \
Naresh Tanniru42e0e602018-03-16 19:45:21 +0530130 hardware/qcom/audio/configs/sdm710/listen_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/listen_platform_info.xml
Sharad Sangled39232d2017-08-08 20:27:18 +0530131
132# Reduce client buffer size for fast audio output tracks
133PRODUCT_PROPERTY_OVERRIDES += \
134 af.fast_track_multiplier=1
135
136# Low latency audio buffer size in frames
137PRODUCT_PROPERTY_OVERRIDES += \
138 vendor.audio_hal.period_size=192
139
140##fluencetype can be "fluence" or "fluencepro" or "none"
141PRODUCT_PROPERTY_OVERRIDES += \
142ro.vendor.audio.sdk.fluencetype=none\
143persist.vendor.audio.fluence.voicecall=true\
144persist.vendor.audio.fluence.voicerec=false\
Aditya Bavanari9f43d442017-12-13 13:32:19 +0530145persist.vendor.audio.fluence.speaker=true\
Sachin Mohan Gadagd9624702018-01-04 10:33:59 +0530146persist.vendor.audio.fluence.audiorec=false\
Aditya Bavanari9f43d442017-12-13 13:32:19 +0530147persist.vendor.audio.fluence.tmic.enabled=false
Sharad Sangled39232d2017-08-08 20:27:18 +0530148
Sachin Mohan Gadagd9624702018-01-04 10:33:59 +0530149# Mutlirec Apptype
150PRODUCT_PROPERTY_OVERRIDES += \
151 vendor.audio.apptype.multirec.enabled=false \
152 vendor.audio.record.multiple.enabled=false
153
Xiaojun Sang533231c2017-10-25 22:55:19 +0800154##speaker protection v3 switch and ADSP AFE API version
155PRODUCT_PROPERTY_OVERRIDES += \
156persist.vendor.audio.spv3.enable=true\
157persist.vendor.audio.avs.afe_api_version=2
158
Sharad Sangled39232d2017-08-08 20:27:18 +0530159#disable tunnel encoding
160PRODUCT_PROPERTY_OVERRIDES += \
161vendor.audio.tunnel.encode=false
162
163#Disable RAS Feature by default
164PRODUCT_PROPERTY_OVERRIDES += \
165persist.vendor.audio.ras.enabled=false
166
167#Buffer size in kbytes for compress offload playback
168PRODUCT_PROPERTY_OVERRIDES += \
169vendor.audio.offload.buffer.size.kb=64
170
171#Minimum duration for offload playback in secs
172PRODUCT_PROPERTY_OVERRIDES += \
173audio.offload.min.duration.secs=30
174
175#Enable offload audio video playback by default
176PRODUCT_PROPERTY_OVERRIDES += \
177audio.offload.video=true
178
179#Enable audio track offload by default
180PRODUCT_PROPERTY_OVERRIDES += \
181vendor.audio.offload.track.enable=true
182
183#Enable music through deep buffer
184PRODUCT_PROPERTY_OVERRIDES += \
185audio.deep_buffer.media=true
186
187#enable voice path for PCM VoIP by default
188PRODUCT_PROPERTY_OVERRIDES += \
189vendor.voice.path.for.pcm.voip=true
190
191#Enable multi channel aac through offload
192PRODUCT_PROPERTY_OVERRIDES += \
193vendor.audio.offload.multiaac.enable=true
194
195#Enable DS2, Hardbypass feature for Dolby
196PRODUCT_PROPERTY_OVERRIDES += \
197vendor.audio.dolby.ds2.enabled=false\
198vendor.audio.dolby.ds2.hardbypass=false
199
200#Disable Multiple offload sesison
201PRODUCT_PROPERTY_OVERRIDES += \
202vendor.audio.offload.multiple.enabled=false
203
204#Disable Compress passthrough playback
205PRODUCT_PROPERTY_OVERRIDES += \
206vendor.audio.offload.passthrough=false
207
208#Disable surround sound recording
209PRODUCT_PROPERTY_OVERRIDES += \
210ro.vendor.audio.sdk.ssr=false
211
212#enable dsp gapless mode by default
213PRODUCT_PROPERTY_OVERRIDES += \
214vendor.audio.offload.gapless.enabled=true
215
216#enable pbe effects
217PRODUCT_PROPERTY_OVERRIDES += \
218vendor.audio.safx.pbe.enabled=true
219
220#parser input buffer size(256kb) in byte stream mode
221PRODUCT_PROPERTY_OVERRIDES += \
222vendor.audio.parser.ip.buffer.size=262144
223
224#flac sw decoder 24 bit decode capability
225PRODUCT_PROPERTY_OVERRIDES += \
226vendor.audio.flac.sw.decoder.24bit=true
227
228#split a2dp DSP supported encoder list
229PRODUCT_PROPERTY_OVERRIDES += \
230persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxhd-aac
231
232#enable software decoders for ALAC and APE
233PRODUCT_PROPERTY_OVERRIDES += \
234vendor.audio.use.sw.alac.decoder=true
235PRODUCT_PROPERTY_OVERRIDES += \
236vendor.audio.use.sw.ape.decoder=true
237
238#enable hw aac encoder by default
239PRODUCT_PROPERTY_OVERRIDES += \
240vendor.audio.hw.aac.encoder=true
241
242#Disable FM a2dp concurrency
243PRODUCT_PROPERTY_OVERRIDES += \
244vendor.fm.a2dp.conc.disabled=true
245
246#audio becoming noisy intent broadcast delay
247PRODUCT_PROPERTY_OVERRIDES += \
248vendor.audio.noisy.broadcast.delay=600
249
250#Enable HIFI audio support for internal codec
251PRODUCT_PROPERTY_OVERRIDES += \
252persist.vendor.audio.hifi.int_codec=true
253
254#offload pausetime out duration to 3 secs to inline with other outputs
255PRODUCT_PROPERTY_OVERRIDES += \
256vendor.audio.offload.pstimeout.secs=3
257
Sharad Sangle0ed3a2c2017-10-18 23:09:08 +0530258#Set AudioFlinger client heap size
259PRODUCT_PROPERTY_OVERRIDES += \
260ro.af.client_heap_size_kbyte=7168
261
Sharad Sangled39232d2017-08-08 20:27:18 +0530262# for HIDL related packages
263PRODUCT_PACKAGES += \
264 android.hardware.audio@2.0-service \
265 android.hardware.audio@2.0-impl \
266 android.hardware.audio.effect@2.0-impl \
267 android.hardware.soundtrigger@2.0-impl