blob: a66edb4298647ed520ce76876c8f0686f3f5513c [file] [log] [blame]
Ashish Jain1221b522016-03-30 15:09:20 +05301##AUDIO_FEATURE_FLAGS
2
3#BOARD_USES_GENERIC_AUDIO := true
4BOARD_USES_ALSA_AUDIO := true
5USE_CUSTOM_AUDIO_POLICY := 1
Satya Krishna Pindiproli87a95f92016-05-09 19:58:33 +05306USE_XML_AUDIO_POLICY_CONF := 1
Ashish Jain1221b522016-03-30 15:09:20 +05307BOARD_SUPPORTS_SOUND_TRIGGER := true
8AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true
9AUDIO_FEATURE_ENABLED_HIFI_AUDIO := true
10AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
Abhishek Ranjanc89058a2016-04-08 02:46:59 +053011#AUDIO_FEATURE_ENABLED_VOICE_CONCURRENCY := true
Ashish Jain1221b522016-03-30 15:09:20 +053012AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true
13AUDIO_FEATURE_ENABLED_NT_PAUSE_TIMEOUT := true
14AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
15AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false
16AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true
17AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true
18AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
19AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true
20AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := true
21AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
22AUDIO_FEATURE_ENABLED_FLUENCE := true
23AUDIO_FEATURE_ENABLED_HDMI_SPK := true
24AUDIO_FEATURE_ENABLED_HDMI_EDID := true
25AUDIO_FEATURE_ENABLED_EXT_HDMI := true
26AUDIO_FEATURE_ENABLED_HFP := true
27AUDIO_FEATURE_ENABLED_INCALL_MUSIC := false
28AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
29AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true
30AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true
31AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true
32AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true
33AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true
34AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true
35AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true
Ashish Jainad78edc2016-04-11 12:22:28 +053036AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
Ashish Jain1221b522016-03-30 15:09:20 +053037AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
38AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
39AUDIO_FEATURE_ENABLED_SSR := true
40AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true
41AUDIO_FEATURE_ENABLED_DTS_EAGLE := false
42BOARD_USES_SRS_TRUEMEDIA := true
43DTS_CODEC_M_ := true
44AUDIO_FEATURE_ENABLED_DEV_ARBI := true
45MM_AUDIO_ENABLED_FTM := true
46MM_AUDIO_ENABLED_SAFX := true
47TARGET_USES_QCOM_MM_AUDIO := true
48AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
Abhishek Ranjanc89058a2016-04-08 02:46:59 +053049#AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true
Ashish Jain1221b522016-03-30 15:09:20 +053050AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
51AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
52##AUDIO_FEATURE_FLAGS
53
Ashish Jain440a4d92016-04-06 23:03:56 +053054#Audio Specific device overlays
55DEVICE_PACKAGE_OVERLAYS += hardware/qcom/audio/configs/common/overlay
56
Ashish Jain1221b522016-03-30 15:09:20 +053057## Audio configuration file
58
59PRODUCT_COPY_FILES +=\
60hardware/qcom/audio/configs/msm8937/audio_policy.conf:system/etc/audio_policy.conf\
61hardware/qcom/audio/configs/msm8937/audio_output_policy.conf:system/vendor/etc/audio_output_policy.conf\
62hardware/qcom/audio/configs/msm8937/audio_effects.conf:system/vendor/etc/audio_effects.conf\
63hardware/qcom/audio/configs/msm8937/mixer_paths_mtp.xml:system/etc/mixer_paths_mtp.xml \
64hardware/qcom/audio/configs/msm8937/mixer_paths_qrd_skuh.xml:system/etc/mixer_paths_qrd_skuh.xml \
65hardware/qcom/audio/configs/msm8937/mixer_paths_qrd_skui.xml:system/etc/mixer_paths_qrd_skui.xml \
66hardware/qcom/audio/configs/msm8937/mixer_paths_qrd_skuhf.xml:system/etc/mixer_paths_qrd_skuhf.xml \
67hardware/qcom/audio/configs/msm8937/mixer_paths_wcd9306.xml:system/etc/mixer_paths_wcd9306.xml \
68hardware/qcom/audio/configs/msm8937/mixer_paths_skuk.xml:system/etc/mixer_paths_skuk.xml \
69hardware/qcom/audio/configs/msm8937/mixer_paths_qrd_skum.xml:system/etc/mixer_paths_qrd_skum.xml \
70hardware/qcom/audio/configs/msm8937/mixer_paths.xml:system/etc/mixer_paths.xml \
71hardware/qcom/audio/configs/msm8937/sound_trigger_mixer_paths.xml:system/etc/sound_trigger_mixer_paths.xml \
72hardware/qcom/audio/configs/msm8937/sound_trigger_mixer_paths_wcd9306.xml:system/etc/sound_trigger_mixer_paths_wcd9306.xml \
73hardware/qcom/audio/configs/msm8937/sound_trigger_mixer_paths_wcd9330.xml:system/etc/sound_trigger_mixer_paths_wcd9330.xml \
74hardware/qcom/audio/configs/msm8937/sound_trigger_mixer_paths_wcd9335.xml:system/etc/sound_trigger_mixer_paths_wcd9335.xml \
75hardware/qcom/audio/configs/msm8937/sound_trigger_platform_info.xml:system/etc/sound_trigger_platform_info.xml \
76hardware/qcom/audio/configs/msm8937/mixer_paths_wcd9330.xml:system/etc/mixer_paths_wcd9330.xml \
77hardware/qcom/audio/configs/msm8937/mixer_paths_wcd9335.xml:system/etc/mixer_paths_wcd9335.xml \
78hardware/qcom/audio/configs/msm8937/mixer_paths_wcd9326.xml:system/etc/mixer_paths_wcd9326.xml \
79hardware/qcom/audio/configs/msm8937/mixer_paths_qrd_skun.xml:system/etc/mixer_paths_qrd_skun.xml \
80hardware/qcom/audio/configs/msm8937/mixer_paths_qrd_sku1.xml:system/etc/mixer_paths_qrd_sku1.xml \
81hardware/qcom/audio/configs/msm8937/mixer_paths_qrd_sku2.xml:system/etc/mixer_paths_qrd_sku2.xml \
82hardware/qcom/audio/configs/msm8937/audio_platform_info.xml:system/etc/audio_platform_info.xml \
83hardware/qcom/audio/configs/msm8937/audio_platform_info_extcodec.xml:system/etc/audio_platform_info_extcodec.xml \
84hardware/qcom/audio/configs/msm8937/aanc_tuning_mixer.txt:system/etc/aanc_tuning_mixer.txt
85
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +053086#XML Audio configuration files
87ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
Satya Krishna Pindiproli87a95f92016-05-09 19:58:33 +053088ifeq ($(TARGET_USES_AOSP), true)
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +053089PRODUCT_COPY_FILES += \
Satya Krishna Pindiproli87a95f92016-05-09 19:58:33 +053090 $(TOPDIR)hardware/qcom/audio/configs/common/audio_policy_configuration.xml:/system/etc/audio_policy_configuration.xml
91else
92PRODUCT_COPY_FILES += \
93 $(TOPDIR)hardware/qcom/audio/configs/msm8937/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml
94endif
95PRODUCT_COPY_FILES += \
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +053096 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:/system/etc/a2dp_audio_policy_configuration.xml \
97 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:/system/etc/audio_policy_volumes.xml \
98 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:/system/etc/default_volume_tables.xml \
99 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:/system/etc/r_submix_audio_policy_configuration.xml \
100 $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:/system/etc/usb_audio_policy_configuration.xml
101endif
102
Ashish Jain1221b522016-03-30 15:09:20 +0530103# Reduce client buffer size for fast audio output tracks
104PRODUCT_PROPERTY_OVERRIDES += \
105 af.fast_track_multiplier=1
106
107# Low latency audio buffer size in frames
108PRODUCT_PROPERTY_OVERRIDES += \
109 audio_hal.period_size=192
110
111##fluencetype can be "fluence" or "fluencepro" or "none"
112PRODUCT_PROPERTY_OVERRIDES += \
113ro.qc.sdk.audio.fluencetype=none\
114persist.audio.fluence.voicecall=true\
115persist.audio.fluence.voicerec=false\
116persist.audio.fluence.speaker=true
117
118#disable tunnel encoding
119PRODUCT_PROPERTY_OVERRIDES += \
120tunnel.audio.encode=false
121
122#Buffer size in kbytes for compress offload playback
123PRODUCT_PROPERTY_OVERRIDES += \
124audio.offload.buffer.size.kb=64
125
126#Minimum duration for offload playback in secs
127PRODUCT_PROPERTY_OVERRIDES += \
128audio.offload.min.duration.secs=30
129
130#Enable offload audio video playback by default
131PRODUCT_PROPERTY_OVERRIDES += \
132audio.offload.video=true
133
134#Enable 16 bit PCM offload by default
135PRODUCT_PROPERTY_OVERRIDES += \
136audio.offload.pcm.16bit.enable=true
137
138#Enable 24 bit PCM offload by default
139PRODUCT_PROPERTY_OVERRIDES += \
140audio.offload.pcm.24bit.enable=true
141
142#Enable audio track offload by default
143PRODUCT_PROPERTY_OVERRIDES += \
144audio.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 += \
152use.voice.path.for.pcm.voip=true
153
154#Enable multi channel aac through offload
155PRODUCT_PROPERTY_OVERRIDES += \
156audio.offload.multiaac.enable=true
157
158#Enable DS2, Hardbypass feature for Dolby
159PRODUCT_PROPERTY_OVERRIDES += \
160audio.dolby.ds2.enabled=true\
161audio.dolby.ds2.hardbypass=true
162
163#Disable Multiple offload sesison
164PRODUCT_PROPERTY_OVERRIDES += \
165audio.offload.multiple.enabled=false
166
167#Disable Compress passthrough playback
168PRODUCT_PROPERTY_OVERRIDES += \
169audio.offload.passthrough=false
170
171#Disable surround sound recording
172PRODUCT_PROPERTY_OVERRIDES += \
173ro.qc.sdk.audio.ssr=false
174
175#enable dsp gapless mode by default
176PRODUCT_PROPERTY_OVERRIDES += \
177audio.offload.gapless.enabled=true
178
179#enable pbe effects
180PRODUCT_PROPERTY_OVERRIDES += \
181audio.safx.pbe.enabled=true
182
183#parser input buffer size(256kb) in byte stream mode
184PRODUCT_PROPERTY_OVERRIDES += \
185audio.parser.ip.buffer.size=262144
186
187#enable downsampling for multi-channel content > 48Khz
188PRODUCT_PROPERTY_OVERRIDES += \
189audio.playback.mch.downsample=true
190
191#enable software decoders for ALAC and APE.
192PRODUCT_PROPERTY_OVERRIDES += \
193use.qti.sw.alac.decoder=true\
194use.qti.sw.ape.decoder=true
195
196#property for AudioSphere Post processing
197PRODUCT_PROPERTY_OVERRIDES += \
198audio.pp.asphere.enabled=false
199
200#Audio voice concurrency related flags
201PRODUCT_PROPERTY_OVERRIDES += \
202voice.playback.conc.disabled=true\
203voice.record.conc.disabled=false\
204voice.voip.conc.disabled=true
205
206#Decides the audio fallback path during voice call,
207#deep-buffer and fast are the two allowed fallback paths now.
208PRODUCT_PROPERTY_OVERRIDES += \
209voice.conc.fallbackpath=deep-buffer
210
211#Disable speaker protection by default
212PRODUCT_PROPERTY_OVERRIDES += \
213persist.speaker.prot.enable=false
214
215#Enable HW AAC Encoder by default
216PRODUCT_PROPERTY_OVERRIDES += \
217qcom.hw.aac.encoder=true