blob: 5733ca3d0cfcdafc1e76114262f0274fc8cc763c [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
11AUDIO_FEATURE_ENABLED_DYNAMIC_ECNS := false
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
Xiaoyu Yea11fdf82017-11-21 16:49:32 -080069##AUDIO_FEATURE_FLAGS
70
shoudil2b5e8482018-05-23 17:11:17 +080071ifneq ($(strip $(TARGET_USES_QSSI)), true)
Xiaoyu Yea11fdf82017-11-21 16:49:32 -080072#Audio Specific device overlays
73DEVICE_PACKAGE_OVERLAYS += hardware/qcom/audio/configs/common/overlay
shoudil2b5e8482018-05-23 17:11:17 +080074endif
Xiaoyu Yea11fdf82017-11-21 16:49:32 -080075
76PRODUCT_COPY_FILES += \
77 hardware/qcom/audio/configs/msmnile/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
78 hardware/qcom/audio/configs/msmnile/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
79 hardware/qcom/audio/configs/msmnile/mixer_paths_tavil.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tavil.xml \
80 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 +080081 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 -080082 hardware/qcom/audio/configs/msmnile/sound_trigger_mixer_paths_wcd9340.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9340.xml \
83 hardware/qcom/audio/configs/msmnile/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \
84 hardware/qcom/audio/configs/msmnile/graphite_ipc_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/graphite_ipc_platform_info.xml \
85 hardware/qcom/audio/configs/msmnile/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
86 hardware/qcom/audio/configs/msmnile/mixer_paths_pahu.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_pahu.xml \
87 hardware/qcom/audio/configs/msmnile/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml
88
89#XML Audio configuration files
90ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
91PRODUCT_COPY_FILES += \
92 $(TOPDIR)hardware/qcom/audio/configs/msmnile/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml
93endif
94PRODUCT_COPY_FILES += \
95 $(TOPDIR)hardware/qcom/audio/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
96 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
97 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
98 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
99 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
100 $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
101
102# Listen configuration file
103PRODUCT_COPY_FILES += \
104 hardware/qcom/audio/configs/msmnile/listen_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/listen_platform_info.xml
105
106# Reduce client buffer size for fast audio output tracks
107PRODUCT_PROPERTY_OVERRIDES += \
108 af.fast_track_multiplier=1
109
110# Low latency audio buffer size in frames
111PRODUCT_PROPERTY_OVERRIDES += \
112 vendor.audio_hal.period_size=192
113
114##fluencetype can be "fluence" or "fluencepro" or "none"
115PRODUCT_PROPERTY_OVERRIDES += \
116ro.vendor.audio.sdk.fluencetype=none\
117persist.vendor.audio.fluence.voicecall=true\
118persist.vendor.audio.fluence.voicerec=false\
Vignesh Kulothunganf606f782018-04-10 11:49:12 -0700119persist.vendor.audio.fluence.speaker=true\
120persist.vendor.audio.fluence.tmic.enabled=false
Xiaoyu Yea11fdf82017-11-21 16:49:32 -0800121
122#disable tunnel encoding
123PRODUCT_PROPERTY_OVERRIDES += \
124vendor.audio.tunnel.encode=false
125
126#Disable RAS Feature by default
127PRODUCT_PROPERTY_OVERRIDES += \
128persist.vendor.audio.ras.enabled=false
129
130#Buffer size in kbytes for compress offload playback
131PRODUCT_PROPERTY_OVERRIDES += \
132vendor.audio.offload.buffer.size.kb=32
133
134#Enable offload audio video playback by default
135PRODUCT_PROPERTY_OVERRIDES += \
136audio.offload.video=true
137
138#Enable audio track offload by default
139PRODUCT_PROPERTY_OVERRIDES += \
140vendor.audio.offload.track.enable=true
141
142#Enable music through deep buffer
143PRODUCT_PROPERTY_OVERRIDES += \
144audio.deep_buffer.media=true
145
146#enable voice path for PCM VoIP by default
147PRODUCT_PROPERTY_OVERRIDES += \
148vendor.voice.path.for.pcm.voip=true
149
150#Enable multi channel aac through offload
151PRODUCT_PROPERTY_OVERRIDES += \
152vendor.audio.offload.multiaac.enable=true
153
154#Enable DS2, Hardbypass feature for Dolby
155PRODUCT_PROPERTY_OVERRIDES += \
156vendor.audio.dolby.ds2.enabled=false\
157vendor.audio.dolby.ds2.hardbypass=false
158
159#Disable Multiple offload sesison
160PRODUCT_PROPERTY_OVERRIDES += \
161vendor.audio.offload.multiple.enabled=false
162
163#Disable Compress passthrough playback
164PRODUCT_PROPERTY_OVERRIDES += \
165vendor.audio.offload.passthrough=false
166
167#Disable surround sound recording
168PRODUCT_PROPERTY_OVERRIDES += \
169ro.vendor.audio.sdk.ssr=false
170
171#enable dsp gapless mode by default
172PRODUCT_PROPERTY_OVERRIDES += \
173vendor.audio.offload.gapless.enabled=true
174
175#enable pbe effects
176PRODUCT_PROPERTY_OVERRIDES += \
177vendor.audio.safx.pbe.enabled=true
178
179#parser input buffer size(256kb) in byte stream mode
180PRODUCT_PROPERTY_OVERRIDES += \
181vendor.audio.parser.ip.buffer.size=262144
182
183#flac sw decoder 24 bit decode capability
184PRODUCT_PROPERTY_OVERRIDES += \
185vendor.audio.flac.sw.decoder.24bit=true
186
187#split a2dp DSP supported encoder list
188PRODUCT_PROPERTY_OVERRIDES += \
Ben Rombergercb5b3092018-05-17 17:27:21 -0700189persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aac-ldac
Xiaoyu Yea11fdf82017-11-21 16:49:32 -0800190
191#enable software decoders for ALAC and APE
192PRODUCT_PROPERTY_OVERRIDES += \
193vendor.audio.use.sw.alac.decoder=true
194PRODUCT_PROPERTY_OVERRIDES += \
195vendor.audio.use.sw.ape.decoder=true
196
197#enable hw aac encoder by default
198PRODUCT_PROPERTY_OVERRIDES += \
199vendor.audio.hw.aac.encoder=true
200
Xiaoyu Yea11fdf82017-11-21 16:49:32 -0800201#audio becoming noisy intent broadcast delay
202PRODUCT_PROPERTY_OVERRIDES += \
203vendor.audio.noisy.broadcast.delay=600
204
205#offload pausetime out duration to 3 secs to inline with other outputs
206PRODUCT_PROPERTY_OVERRIDES += \
207vendor.audio.offload.pstimeout.secs=3
208
209#Set AudioFlinger client heap size
210PRODUCT_PROPERTY_OVERRIDES += \
211ro.af.client_heap_size_kbyte=7168
212
213#Set HAL buffer size to samples equal to 3 ms
214PRODUCT_PROPERTY_OVERRIDES += \
215vendor.audio_hal.in_period_size=144
216
217#Set HAL buffer size to 3 ms
218PRODUCT_PROPERTY_OVERRIDES += \
219vendor.audio_hal.period_multiplier=3
220
221#ADM Buffering size in ms
222PRODUCT_PROPERTY_OVERRIDES += \
223vendor.audio.adm.buffering.ms=2
224
Aalique Grahame3381f1b2018-04-16 22:17:00 -0700225#enable mirror-link feature
226PRODUCT_PROPERTY_OVERRIDES += \
227vendor.audio.enable.mirrorlink=false
228
Vikram Panduranga1b5b2cf2018-04-27 12:34:38 -0700229#enable voicecall speaker stereo
230PRODUCT_PROPERTY_OVERRIDES += \
231persist.vendor.audio.voicecall.speaker.stereo=true
232
Xiaoyu Yea11fdf82017-11-21 16:49:32 -0800233# for HIDL related packages
234PRODUCT_PACKAGES += \
235 android.hardware.audio@2.0-service \
236 android.hardware.audio@2.0-impl \
237 android.hardware.audio.effect@2.0-impl \
Dallas Delaneyd5ad96f2018-05-16 17:12:22 -0700238 android.hardware.soundtrigger@2.1-impl