blob: 3e87da9211bd414c9e667ada691b905753ce2c2a [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
9AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true
Vikram Pandurangadf59cae2017-08-03 18:04:55 -070010AUDIO_FEATURE_ENABLED_DYNAMIC_ECNS := false
Sharad Sangled39232d2017-08-08 20:27:18 +053011AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
12AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true
13AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := true
14AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
15AUDIO_FEATURE_ENABLED_HDMI_SPK := true
16AUDIO_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
23AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true
24AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
25AUDIO_FEATURE_ENABLED_SSR := true
26AUDIO_FEATURE_ENABLED_DTS_EAGLE := false
Revathi Uddaraju074d9c62017-09-13 15:10:29 +053027AUDIO_FEATURE_ENABLED_DYNAMIC_LOG := true
Sharad Sangled39232d2017-08-08 20:27:18 +053028BOARD_USES_SRS_TRUEMEDIA := false
29DTS_CODEC_M_ := false
30MM_AUDIO_ENABLED_SAFX := true
31AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
32AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
33AUDIO_FEATURE_ENABLED_USB_TUNNEL_AUDIO := true
34AUDIO_FEATURE_ENABLED_SPLIT_A2DP := true
35AUDIO_FEATURE_ENABLED_3D_AUDIO := false
36AUDIO_FEATURE_ENABLED_VOICE_PRINT := false
37USE_LEGACY_AUDIO_DAEMON := false
38USE_LEGACY_AUDIO_MEASUREMENT := false
39DOLBY_ENABLE := false
40endif
41
42USE_XML_AUDIO_POLICY_CONF := 1
43BOARD_SUPPORTS_SOUND_TRIGGER := true
44AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true
45AUDIO_FEATURE_ENABLED_HIFI_AUDIO := true
46AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
47AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
48AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true
49AUDIO_FEATURE_ENABLED_FLUENCE := true
50AUDIO_FEATURE_ENABLED_HDMI_EDID := true
51AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH := true
52#AUDIO_FEATURE_ENABLED_KEEP_ALIVE := true
53AUDIO_FEATURE_ENABLED_DISPLAY_PORT := true
54AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := false
55AUDIO_FEATURE_ENABLED_HFP := true
56AUDIO_FEATURE_ENABLED_INCALL_MUSIC := false
57AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
58AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
59AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
60AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true
61AUDIO_FEATURE_ENABLED_DEV_ARBI := false
62MM_AUDIO_ENABLED_FTM := true
63TARGET_USES_QCOM_MM_AUDIO := true
64AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
65AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
66BOARD_SUPPORTS_QAHW := false
67AUDIO_FEATURE_ENABLED_RAS := true
68AUDIO_FEATURE_ENABLED_SND_MONITOR := true
69##AUDIO_FEATURE_FLAGS
70
71#Audio Specific device overlays
72DEVICE_PACKAGE_OVERLAYS += hardware/qcom/audio/configs/common/overlay
73
74# Audio configuration file
75ifeq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
76PRODUCT_COPY_FILES += \
77 device/qcom/common/media/audio_policy.conf:system/etc/audio_policy.conf
78else
79PRODUCT_COPY_FILES += \
Sharad Sanglef1356842017-09-25 19:15:07 +053080 hardware/qcom/audio/configs/sdm670/audio_policy.conf:system/etc/audio_policy.conf
Sharad Sangled39232d2017-08-08 20:27:18 +053081endif
82
83PRODUCT_COPY_FILES += \
Sharad Sanglef1356842017-09-25 19:15:07 +053084 hardware/qcom/audio/configs/sdm670/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
85 hardware/qcom/audio/configs/sdm670/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
86 hardware/qcom/audio/configs/sdm670/mixer_paths_tavil.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tavil.xml \
87 hardware/qcom/audio/configs/sdm670/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
88 hardware/qcom/audio/configs/sdm670/mixer_paths_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_mtp.xml \
89 hardware/qcom/audio/configs/sdm670/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml \
90 hardware/qcom/audio/configs/sdm670/mixer_paths_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tashalite.xml \
91 hardware/qcom/audio/configs/sdm670/mixer_paths_i2s.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_i2s.xml \
92 hardware/qcom/audio/configs/sdm670/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
93 hardware/qcom/audio/configs/sdm670/audio_tuning_mixer_tavil.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer_tavil.txt \
94 hardware/qcom/audio/configs/sdm670/audio_tuning_mixer_tasha.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer_tasha.txt \
95 hardware/qcom/audio/configs/sdm670/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
96 hardware/qcom/audio/configs/sdm670/audio_platform_info_i2s.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_i2s.xml \
97 hardware/qcom/audio/configs/sdm670/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
98 hardware/qcom/audio/configs/sdm670/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \
99 hardware/qcom/audio/configs/sdm670/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
100 hardware/qcom/audio/configs/sdm670/sound_trigger_mixer_paths_wcd9335.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9335.xml \
101 hardware/qcom/audio/configs/sdm670/sound_trigger_mixer_paths_wcd9340.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9340.xml \
102 hardware/qcom/audio/configs/sdm670/sound_trigger_mixer_paths_wcd9340.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9340.xml \
103 hardware/qcom/audio/configs/sdm670/graphite_ipc_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/graphite_ipc_platform_info.xml \
Revathi Uddaraju074d9c62017-09-13 15:10:29 +0530104 vendor/qcom/proprietary/mm-audio/audio-log-utils/audio_dynamic_log.xml:$(TARGET_COPY_OUT_VENDOR)/data/vendor/misc/audio/audio_dynamic_log.xml
Sharad Sangled39232d2017-08-08 20:27:18 +0530105
106#XML Audio configuration files
107ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
108ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
109PRODUCT_COPY_FILES += \
Sharad Sanglef1356842017-09-25 19:15:07 +0530110 $(TOPDIR)hardware/qcom/audio/configs/sdm670/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml
Sharad Sangled39232d2017-08-08 20:27:18 +0530111endif
112PRODUCT_COPY_FILES += \
113 $(TOPDIR)hardware/qcom/audio/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
114 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
115 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
116 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
117 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
118 $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
119endif
120
121# Listen configuration file
122PRODUCT_COPY_FILES += \
Sharad Sanglef1356842017-09-25 19:15:07 +0530123 hardware/qcom/audio/configs/sdm670/listen_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/listen_platform_info.xml
Sharad Sangled39232d2017-08-08 20:27:18 +0530124
125# Reduce client buffer size for fast audio output tracks
126PRODUCT_PROPERTY_OVERRIDES += \
127 af.fast_track_multiplier=1
128
129# Low latency audio buffer size in frames
130PRODUCT_PROPERTY_OVERRIDES += \
131 vendor.audio_hal.period_size=192
132
133##fluencetype can be "fluence" or "fluencepro" or "none"
134PRODUCT_PROPERTY_OVERRIDES += \
135ro.vendor.audio.sdk.fluencetype=none\
136persist.vendor.audio.fluence.voicecall=true\
137persist.vendor.audio.fluence.voicerec=false\
138persist.vendor.audio.fluence.speaker=true
139
Xiaojun Sang533231c2017-10-25 22:55:19 +0800140##speaker protection v3 switch and ADSP AFE API version
141PRODUCT_PROPERTY_OVERRIDES += \
142persist.vendor.audio.spv3.enable=true\
143persist.vendor.audio.avs.afe_api_version=2
144
Sharad Sangled39232d2017-08-08 20:27:18 +0530145#disable tunnel encoding
146PRODUCT_PROPERTY_OVERRIDES += \
147vendor.audio.tunnel.encode=false
148
149#Disable RAS Feature by default
150PRODUCT_PROPERTY_OVERRIDES += \
151persist.vendor.audio.ras.enabled=false
152
153#Buffer size in kbytes for compress offload playback
154PRODUCT_PROPERTY_OVERRIDES += \
155vendor.audio.offload.buffer.size.kb=64
156
157#Minimum duration for offload playback in secs
158PRODUCT_PROPERTY_OVERRIDES += \
159audio.offload.min.duration.secs=30
160
161#Enable offload audio video playback by default
162PRODUCT_PROPERTY_OVERRIDES += \
163audio.offload.video=true
164
165#Enable audio track offload by default
166PRODUCT_PROPERTY_OVERRIDES += \
167vendor.audio.offload.track.enable=true
168
169#Enable music through deep buffer
170PRODUCT_PROPERTY_OVERRIDES += \
171audio.deep_buffer.media=true
172
173#enable voice path for PCM VoIP by default
174PRODUCT_PROPERTY_OVERRIDES += \
175vendor.voice.path.for.pcm.voip=true
176
177#Enable multi channel aac through offload
178PRODUCT_PROPERTY_OVERRIDES += \
179vendor.audio.offload.multiaac.enable=true
180
181#Enable DS2, Hardbypass feature for Dolby
182PRODUCT_PROPERTY_OVERRIDES += \
183vendor.audio.dolby.ds2.enabled=false\
184vendor.audio.dolby.ds2.hardbypass=false
185
186#Disable Multiple offload sesison
187PRODUCT_PROPERTY_OVERRIDES += \
188vendor.audio.offload.multiple.enabled=false
189
190#Disable Compress passthrough playback
191PRODUCT_PROPERTY_OVERRIDES += \
192vendor.audio.offload.passthrough=false
193
194#Disable surround sound recording
195PRODUCT_PROPERTY_OVERRIDES += \
196ro.vendor.audio.sdk.ssr=false
197
198#enable dsp gapless mode by default
199PRODUCT_PROPERTY_OVERRIDES += \
200vendor.audio.offload.gapless.enabled=true
201
202#enable pbe effects
203PRODUCT_PROPERTY_OVERRIDES += \
204vendor.audio.safx.pbe.enabled=true
205
206#parser input buffer size(256kb) in byte stream mode
207PRODUCT_PROPERTY_OVERRIDES += \
208vendor.audio.parser.ip.buffer.size=262144
209
210#flac sw decoder 24 bit decode capability
211PRODUCT_PROPERTY_OVERRIDES += \
212vendor.audio.flac.sw.decoder.24bit=true
213
214#split a2dp DSP supported encoder list
215PRODUCT_PROPERTY_OVERRIDES += \
216persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxhd-aac
217
218#enable software decoders for ALAC and APE
219PRODUCT_PROPERTY_OVERRIDES += \
220vendor.audio.use.sw.alac.decoder=true
221PRODUCT_PROPERTY_OVERRIDES += \
222vendor.audio.use.sw.ape.decoder=true
223
224#enable hw aac encoder by default
225PRODUCT_PROPERTY_OVERRIDES += \
226vendor.audio.hw.aac.encoder=true
227
228#Disable FM a2dp concurrency
229PRODUCT_PROPERTY_OVERRIDES += \
230vendor.fm.a2dp.conc.disabled=true
231
232#audio becoming noisy intent broadcast delay
233PRODUCT_PROPERTY_OVERRIDES += \
234vendor.audio.noisy.broadcast.delay=600
235
236#Enable HIFI audio support for internal codec
237PRODUCT_PROPERTY_OVERRIDES += \
238persist.vendor.audio.hifi.int_codec=true
239
240#offload pausetime out duration to 3 secs to inline with other outputs
241PRODUCT_PROPERTY_OVERRIDES += \
242vendor.audio.offload.pstimeout.secs=3
243
244# for HIDL related packages
245PRODUCT_PACKAGES += \
246 android.hardware.audio@2.0-service \
247 android.hardware.audio@2.0-impl \
248 android.hardware.audio.effect@2.0-impl \
249 android.hardware.soundtrigger@2.0-impl