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