blob: bfe9a2adcad8d6ec9d0fbb9e28dbbcfbd512fbe1 [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
Weiyin Jiangfe7b6032018-07-15 11:25:25 +080035AUDIO_FEATURE_ENABLED_3D_AUDIO := true
Xiaoyu Yea11fdf82017-11-21 16:49:32 -080036DOLBY_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
Arun Mirpurie5c697c2018-07-17 17:58:17 -070053AUDIO_FEATURE_ENABLED_INCALL_MUSIC := true
Xiaoyu Yea11fdf82017-11-21 16:49:32 -080054AUDIO_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
shoudilad09f432018-07-25 16:58:12 +080073ifneq ($(strip $(TARGET_USES_RRO)), 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 += \
Karthikeyan Mani07faa602018-08-20 11:01:32 -070079 hardware/qcom/audio/configs/msmnile/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_io_policy.conf \
Xiaoyu Yea11fdf82017-11-21 16:49:32 -080080 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 \
Zhou Songa7c24e02018-08-20 14:10:30 +080086 hardware/qcom/audio/configs/msmnile/sound_trigger_mixer_paths_wcd9340_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9340_qrd.xml \
Xiaoyu Yea11fdf82017-11-21 16:49:32 -080087 hardware/qcom/audio/configs/msmnile/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \
88 hardware/qcom/audio/configs/msmnile/graphite_ipc_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/graphite_ipc_platform_info.xml \
89 hardware/qcom/audio/configs/msmnile/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
90 hardware/qcom/audio/configs/msmnile/mixer_paths_pahu.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_pahu.xml \
91 hardware/qcom/audio/configs/msmnile/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml
92
93#XML Audio configuration files
94ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
95PRODUCT_COPY_FILES += \
96 $(TOPDIR)hardware/qcom/audio/configs/msmnile/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml
97endif
98PRODUCT_COPY_FILES += \
99 $(TOPDIR)hardware/qcom/audio/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
100 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
101 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
102 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
103 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
104 $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
105
106# Listen configuration file
107PRODUCT_COPY_FILES += \
108 hardware/qcom/audio/configs/msmnile/listen_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/listen_platform_info.xml
109
110# Reduce client buffer size for fast audio output tracks
111PRODUCT_PROPERTY_OVERRIDES += \
112 af.fast_track_multiplier=1
113
114# Low latency audio buffer size in frames
115PRODUCT_PROPERTY_OVERRIDES += \
116 vendor.audio_hal.period_size=192
117
118##fluencetype can be "fluence" or "fluencepro" or "none"
119PRODUCT_PROPERTY_OVERRIDES += \
120ro.vendor.audio.sdk.fluencetype=none\
121persist.vendor.audio.fluence.voicecall=true\
122persist.vendor.audio.fluence.voicerec=false\
Vignesh Kulothunganf606f782018-04-10 11:49:12 -0700123persist.vendor.audio.fluence.speaker=true\
124persist.vendor.audio.fluence.tmic.enabled=false
Xiaoyu Yea11fdf82017-11-21 16:49:32 -0800125
126#disable tunnel encoding
127PRODUCT_PROPERTY_OVERRIDES += \
128vendor.audio.tunnel.encode=false
129
130#Disable RAS Feature by default
131PRODUCT_PROPERTY_OVERRIDES += \
132persist.vendor.audio.ras.enabled=false
133
134#Buffer size in kbytes for compress offload playback
135PRODUCT_PROPERTY_OVERRIDES += \
136vendor.audio.offload.buffer.size.kb=32
137
138#Enable offload audio video playback by default
139PRODUCT_PROPERTY_OVERRIDES += \
140audio.offload.video=true
141
142#Enable audio track offload by default
143PRODUCT_PROPERTY_OVERRIDES += \
144vendor.audio.offload.track.enable=true
145
146#Enable music through deep buffer
147PRODUCT_PROPERTY_OVERRIDES += \
148audio.deep_buffer.media=true
149
150#enable voice path for PCM VoIP by default
151PRODUCT_PROPERTY_OVERRIDES += \
152vendor.voice.path.for.pcm.voip=true
153
154#Enable multi channel aac through offload
155PRODUCT_PROPERTY_OVERRIDES += \
156vendor.audio.offload.multiaac.enable=true
157
158#Enable DS2, Hardbypass feature for Dolby
159PRODUCT_PROPERTY_OVERRIDES += \
160vendor.audio.dolby.ds2.enabled=false\
161vendor.audio.dolby.ds2.hardbypass=false
162
163#Disable Multiple offload sesison
164PRODUCT_PROPERTY_OVERRIDES += \
165vendor.audio.offload.multiple.enabled=false
166
167#Disable Compress passthrough playback
168PRODUCT_PROPERTY_OVERRIDES += \
169vendor.audio.offload.passthrough=false
170
171#Disable surround sound recording
172PRODUCT_PROPERTY_OVERRIDES += \
173ro.vendor.audio.sdk.ssr=false
174
175#enable dsp gapless mode by default
176PRODUCT_PROPERTY_OVERRIDES += \
177vendor.audio.offload.gapless.enabled=true
178
179#enable pbe effects
180PRODUCT_PROPERTY_OVERRIDES += \
181vendor.audio.safx.pbe.enabled=true
182
183#parser input buffer size(256kb) in byte stream mode
184PRODUCT_PROPERTY_OVERRIDES += \
185vendor.audio.parser.ip.buffer.size=262144
186
187#flac sw decoder 24 bit decode capability
188PRODUCT_PROPERTY_OVERRIDES += \
189vendor.audio.flac.sw.decoder.24bit=true
190
191#split a2dp DSP supported encoder list
192PRODUCT_PROPERTY_OVERRIDES += \
Ben Rombergercb5b3092018-05-17 17:27:21 -0700193persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aac-ldac
Xiaoyu Yea11fdf82017-11-21 16:49:32 -0800194
195#enable software decoders for ALAC and APE
196PRODUCT_PROPERTY_OVERRIDES += \
197vendor.audio.use.sw.alac.decoder=true
198PRODUCT_PROPERTY_OVERRIDES += \
199vendor.audio.use.sw.ape.decoder=true
200
201#enable hw aac encoder by default
202PRODUCT_PROPERTY_OVERRIDES += \
203vendor.audio.hw.aac.encoder=true
204
Xiaoyu Yea11fdf82017-11-21 16:49:32 -0800205#audio becoming noisy intent broadcast delay
206PRODUCT_PROPERTY_OVERRIDES += \
207vendor.audio.noisy.broadcast.delay=600
208
209#offload pausetime out duration to 3 secs to inline with other outputs
210PRODUCT_PROPERTY_OVERRIDES += \
211vendor.audio.offload.pstimeout.secs=3
212
213#Set AudioFlinger client heap size
214PRODUCT_PROPERTY_OVERRIDES += \
215ro.af.client_heap_size_kbyte=7168
216
217#Set HAL buffer size to samples equal to 3 ms
218PRODUCT_PROPERTY_OVERRIDES += \
219vendor.audio_hal.in_period_size=144
220
221#Set HAL buffer size to 3 ms
222PRODUCT_PROPERTY_OVERRIDES += \
223vendor.audio_hal.period_multiplier=3
224
225#ADM Buffering size in ms
226PRODUCT_PROPERTY_OVERRIDES += \
227vendor.audio.adm.buffering.ms=2
228
Weiyin Jiang3cdf3cc2018-08-03 14:37:55 +0800229#enable keytone FR
230PRODUCT_PROPERTY_OVERRIDES += \
231vendor.audio.hal.output.suspend.supported=true
232
Arun Mirpuriebe78a72018-10-04 18:23:46 -0700233# Enable AAudio MMAP/NOIRQ data path.
234# 2 is AAUDIO_POLICY_AUTO so it will try MMAP then fallback to Legacy path.
235PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_policy=2
236# Allow EXCLUSIVE then fall back to SHARED.
237PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_exclusive_policy=2
238PRODUCT_PROPERTY_OVERRIDES += aaudio.hw_burst_min_usec=2000
239
Aalique Grahame3381f1b2018-04-16 22:17:00 -0700240#enable mirror-link feature
241PRODUCT_PROPERTY_OVERRIDES += \
242vendor.audio.enable.mirrorlink=false
243
Vikram Panduranga1b5b2cf2018-04-27 12:34:38 -0700244#enable voicecall speaker stereo
245PRODUCT_PROPERTY_OVERRIDES += \
246persist.vendor.audio.voicecall.speaker.stereo=true
247
Xiaoyu Yea11fdf82017-11-21 16:49:32 -0800248# for HIDL related packages
249PRODUCT_PACKAGES += \
250 android.hardware.audio@2.0-service \
251 android.hardware.audio@2.0-impl \
252 android.hardware.audio.effect@2.0-impl \
Aalique Grahame804cba62018-05-11 11:07:07 -0700253 android.hardware.soundtrigger@2.1-impl \
254 android.hardware.audio@4.0 \
255 android.hardware.audio.common@4.0 \
256 android.hardware.audio.common@4.0-util \
257 android.hardware.audio@4.0-impl \
258 android.hardware.audio.effect@4.0 \
259 android.hardware.audio.effect@4.0-impl