blob: 4d4b7860cac4e27a3e1cf5648f08cafa5da26ef5 [file] [log] [blame]
Xiaoyu Yea11fdf82017-11-21 16:49:32 -08001#BOARD_USES_GENERIC_AUDIO := true
2#
3#AUDIO_FEATURE_FLAGS
4BOARD_USES_ALSA_AUDIO := true
Aalique Grahameafbebdf2018-03-30 10:43:46 -07005TARGET_USES_AOSP_FOR_AUDIO := false
Xiaoyu Yea11fdf82017-11-21 16:49:32 -08006
7ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
8USE_CUSTOM_AUDIO_POLICY := 1
9AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false
10AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := false
Vikram Pandurangabb9456f2018-06-20 18:17:20 -070011AUDIO_FEATURE_ENABLED_DYNAMIC_ECNS := true
Aalique Grahameafbebdf2018-03-30 10:43:46 -070012AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
13AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true
Xiaoyu Yea11fdf82017-11-21 16:49:32 -080014AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := true
15AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
16AUDIO_FEATURE_ENABLED_HDMI_SPK := true
Aalique Grahameafbebdf2018-03-30 10:43:46 -070017AUDIO_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
Xiaoyu Yea11fdf82017-11-21 16:49:32 -080025AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
Aalique Grahameaf8f46f2018-05-31 11:37:57 -070026AUDIO_FEATURE_ENABLED_SSR := true
Xiaoyu Yea11fdf82017-11-21 16:49:32 -080027AUDIO_FEATURE_ENABLED_DTS_EAGLE := false
28BOARD_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
Aalique Grahameafbebdf2018-03-30 10:43:46 -070034AUDIO_FEATURE_ENABLED_SPLIT_A2DP := true
Xiaoyu Yea11fdf82017-11-21 16:49:32 -080035AUDIO_FEATURE_ENABLED_3D_AUDIO := false
36DOLBY_ENABLE := false
37endif
38
39USE_XML_AUDIO_POLICY_CONF := 1
40BOARD_SUPPORTS_SOUND_TRIGGER := true
Aditya Bavanari29bcea22017-10-03 20:10:35 +053041AUDIO_FEATURE_ENABLED_INSTANCE_ID := true
Xiaoyu Yea11fdf82017-11-21 16:49:32 -080042AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true
43AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
44AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
45AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true
46AUDIO_FEATURE_ENABLED_FLUENCE := true
47AUDIO_FEATURE_ENABLED_HDMI_EDID := true
48AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH := true
49#AUDIO_FEATURE_ENABLED_KEEP_ALIVE := true
50AUDIO_FEATURE_ENABLED_DISPLAY_PORT := true
51AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := false
52AUDIO_FEATURE_ENABLED_HFP := true
53AUDIO_FEATURE_ENABLED_INCALL_MUSIC := false
54AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
55AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
56AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
57AUDIO_FEATURE_ENABLED_ACDB_LICENSE := false
58AUDIO_FEATURE_ENABLED_DEV_ARBI := false
59AUDIO_FEATURE_ENABLED_DYNAMIC_LOG := true
60MM_AUDIO_ENABLED_FTM := true
61TARGET_USES_QCOM_MM_AUDIO := true
62AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
63AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
64BOARD_SUPPORTS_QAHW := false
65AUDIO_FEATURE_ENABLED_RAS := true
66AUDIO_FEATURE_ENABLED_SND_MONITOR := true
Sharad Sangleda75d9c2018-03-29 13:30:54 +053067AUDIO_FEATURE_ENABLED_DLKM := true
Garmond Leung1c5f2502018-06-04 15:59:58 -070068AUDIO_FEATURE_ENABLED_USB_BURST_MODE := true
Quinn Male42d16702018-05-10 16:17:17 -070069AUDIO_FEATURE_ENABLED_SVA_MULTI_STAGE := true
Haynes Mathew George01156f92018-04-13 15:29:54 -070070AUDIO_FEATURE_ENABLED_BATTERY_LISTENER := true
Xiaoyu Yea11fdf82017-11-21 16:49:32 -080071##AUDIO_FEATURE_FLAGS
72
shoudil2b5e8482018-05-23 17:11:17 +080073ifneq ($(strip $(TARGET_USES_QSSI)), true)
Xiaoyu Yea11fdf82017-11-21 16:49:32 -080074#Audio Specific device overlays
75DEVICE_PACKAGE_OVERLAYS += hardware/qcom/audio/configs/common/overlay
shoudil2b5e8482018-05-23 17:11:17 +080076endif
Xiaoyu Yea11fdf82017-11-21 16:49:32 -080077
78PRODUCT_COPY_FILES += \
79 hardware/qcom/audio/configs/msmnile/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
80 hardware/qcom/audio/configs/msmnile/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
Aalique Grahame2ab55f32018-05-30 14:58:39 -070081 hardware/qcom/audio/configs/msmnile/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
Xiaoyu Yea11fdf82017-11-21 16:49:32 -080082 hardware/qcom/audio/configs/msmnile/mixer_paths_tavil.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tavil.xml \
83 hardware/qcom/audio/configs/msmnile/audio_tuning_mixer_tavil.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer_tavil.txt \
Meng Wangdc7be7a2018-03-27 09:12:58 +080084 hardware/qcom/audio/configs/msmnile/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
Xiaoyu Yea11fdf82017-11-21 16:49:32 -080085 hardware/qcom/audio/configs/msmnile/sound_trigger_mixer_paths_wcd9340.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9340.xml \
86 hardware/qcom/audio/configs/msmnile/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \
87 hardware/qcom/audio/configs/msmnile/graphite_ipc_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/graphite_ipc_platform_info.xml \
88 hardware/qcom/audio/configs/msmnile/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
89 hardware/qcom/audio/configs/msmnile/mixer_paths_pahu.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_pahu.xml \
90 hardware/qcom/audio/configs/msmnile/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml
91
92#XML Audio configuration files
93ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
94PRODUCT_COPY_FILES += \
95 $(TOPDIR)hardware/qcom/audio/configs/msmnile/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml
96endif
97PRODUCT_COPY_FILES += \
98 $(TOPDIR)hardware/qcom/audio/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
99 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
100 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
101 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
102 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
103 $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
104
105# Listen configuration file
106PRODUCT_COPY_FILES += \
107 hardware/qcom/audio/configs/msmnile/listen_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/listen_platform_info.xml
108
109# Reduce client buffer size for fast audio output tracks
110PRODUCT_PROPERTY_OVERRIDES += \
111 af.fast_track_multiplier=1
112
113# Low latency audio buffer size in frames
114PRODUCT_PROPERTY_OVERRIDES += \
115 vendor.audio_hal.period_size=192
116
117##fluencetype can be "fluence" or "fluencepro" or "none"
118PRODUCT_PROPERTY_OVERRIDES += \
119ro.vendor.audio.sdk.fluencetype=none\
120persist.vendor.audio.fluence.voicecall=true\
121persist.vendor.audio.fluence.voicerec=false\
Vignesh Kulothunganf606f782018-04-10 11:49:12 -0700122persist.vendor.audio.fluence.speaker=true\
123persist.vendor.audio.fluence.tmic.enabled=false
Xiaoyu Yea11fdf82017-11-21 16:49:32 -0800124
125#disable tunnel encoding
126PRODUCT_PROPERTY_OVERRIDES += \
127vendor.audio.tunnel.encode=false
128
129#Disable RAS Feature by default
130PRODUCT_PROPERTY_OVERRIDES += \
131persist.vendor.audio.ras.enabled=false
132
133#Buffer size in kbytes for compress offload playback
134PRODUCT_PROPERTY_OVERRIDES += \
135vendor.audio.offload.buffer.size.kb=32
136
137#Enable offload audio video playback by default
138PRODUCT_PROPERTY_OVERRIDES += \
139audio.offload.video=true
140
141#Enable audio track offload by default
142PRODUCT_PROPERTY_OVERRIDES += \
143vendor.audio.offload.track.enable=true
144
145#Enable music through deep buffer
146PRODUCT_PROPERTY_OVERRIDES += \
147audio.deep_buffer.media=true
148
149#enable voice path for PCM VoIP by default
150PRODUCT_PROPERTY_OVERRIDES += \
151vendor.voice.path.for.pcm.voip=true
152
153#Enable multi channel aac through offload
154PRODUCT_PROPERTY_OVERRIDES += \
155vendor.audio.offload.multiaac.enable=true
156
157#Enable DS2, Hardbypass feature for Dolby
158PRODUCT_PROPERTY_OVERRIDES += \
159vendor.audio.dolby.ds2.enabled=false\
160vendor.audio.dolby.ds2.hardbypass=false
161
162#Disable Multiple offload sesison
163PRODUCT_PROPERTY_OVERRIDES += \
164vendor.audio.offload.multiple.enabled=false
165
166#Disable Compress passthrough playback
167PRODUCT_PROPERTY_OVERRIDES += \
168vendor.audio.offload.passthrough=false
169
170#Disable surround sound recording
171PRODUCT_PROPERTY_OVERRIDES += \
172ro.vendor.audio.sdk.ssr=false
173
174#enable dsp gapless mode by default
175PRODUCT_PROPERTY_OVERRIDES += \
176vendor.audio.offload.gapless.enabled=true
177
178#enable pbe effects
179PRODUCT_PROPERTY_OVERRIDES += \
180vendor.audio.safx.pbe.enabled=true
181
182#parser input buffer size(256kb) in byte stream mode
183PRODUCT_PROPERTY_OVERRIDES += \
184vendor.audio.parser.ip.buffer.size=262144
185
186#flac sw decoder 24 bit decode capability
187PRODUCT_PROPERTY_OVERRIDES += \
188vendor.audio.flac.sw.decoder.24bit=true
189
190#split a2dp DSP supported encoder list
191PRODUCT_PROPERTY_OVERRIDES += \
Ben Rombergercb5b3092018-05-17 17:27:21 -0700192persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aac-ldac
Xiaoyu Yea11fdf82017-11-21 16:49:32 -0800193
194#enable software decoders for ALAC and APE
195PRODUCT_PROPERTY_OVERRIDES += \
196vendor.audio.use.sw.alac.decoder=true
197PRODUCT_PROPERTY_OVERRIDES += \
198vendor.audio.use.sw.ape.decoder=true
199
200#enable hw aac encoder by default
201PRODUCT_PROPERTY_OVERRIDES += \
202vendor.audio.hw.aac.encoder=true
203
204#Disable FM a2dp concurrency
205PRODUCT_PROPERTY_OVERRIDES += \
206vendor.fm.a2dp.conc.disabled=true
207
208#audio becoming noisy intent broadcast delay
209PRODUCT_PROPERTY_OVERRIDES += \
210vendor.audio.noisy.broadcast.delay=600
211
212#offload pausetime out duration to 3 secs to inline with other outputs
213PRODUCT_PROPERTY_OVERRIDES += \
214vendor.audio.offload.pstimeout.secs=3
215
216#Set AudioFlinger client heap size
217PRODUCT_PROPERTY_OVERRIDES += \
218ro.af.client_heap_size_kbyte=7168
219
220#Set HAL buffer size to samples equal to 3 ms
221PRODUCT_PROPERTY_OVERRIDES += \
222vendor.audio_hal.in_period_size=144
223
224#Set HAL buffer size to 3 ms
225PRODUCT_PROPERTY_OVERRIDES += \
226vendor.audio_hal.period_multiplier=3
227
228#ADM Buffering size in ms
229PRODUCT_PROPERTY_OVERRIDES += \
230vendor.audio.adm.buffering.ms=2
231
Aalique Grahame3381f1b2018-04-16 22:17:00 -0700232#enable mirror-link feature
233PRODUCT_PROPERTY_OVERRIDES += \
234vendor.audio.enable.mirrorlink=false
235
Vikram Panduranga1b5b2cf2018-04-27 12:34:38 -0700236#enable voicecall speaker stereo
237PRODUCT_PROPERTY_OVERRIDES += \
238persist.vendor.audio.voicecall.speaker.stereo=true
239
Xiaoyu Yea11fdf82017-11-21 16:49:32 -0800240# for HIDL related packages
241PRODUCT_PACKAGES += \
242 android.hardware.audio@2.0-service \
243 android.hardware.audio@2.0-impl \
244 android.hardware.audio.effect@2.0-impl \
Aalique Grahame804cba62018-05-11 11:07:07 -0700245 android.hardware.soundtrigger@2.1-impl \
246 android.hardware.audio@4.0 \
247 android.hardware.audio.common@4.0 \
248 android.hardware.audio.common@4.0-util \
249 android.hardware.audio@4.0-impl \
250 android.hardware.audio.effect@4.0 \
251 android.hardware.audio.effect@4.0-impl