blob: e9fcb7e87e81227e779d3b650093693d23501c63 [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
6BOARD_SUPPORTS_SOUND_TRIGGER := true
7AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true
8AUDIO_FEATURE_ENABLED_HIFI_AUDIO := true
9AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
Abhishek Ranjanc89058a2016-04-08 02:46:59 +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
35#AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
36AUDIO_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
43AUDIO_FEATURE_ENABLED_DEV_ARBI := true
44MM_AUDIO_ENABLED_FTM := true
45MM_AUDIO_ENABLED_SAFX := true
46TARGET_USES_QCOM_MM_AUDIO := true
47AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
Abhishek Ranjanc89058a2016-04-08 02:46:59 +053048#AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true
Ashish Jain1221b522016-03-30 15:09:20 +053049AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
50AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
51##AUDIO_FEATURE_FLAGS
52
53## Audio configuration file
54
55PRODUCT_COPY_FILES +=\
56hardware/qcom/audio/configs/msm8937/audio_policy.conf:system/etc/audio_policy.conf\
57hardware/qcom/audio/configs/msm8937/audio_output_policy.conf:system/vendor/etc/audio_output_policy.conf\
58hardware/qcom/audio/configs/msm8937/audio_effects.conf:system/vendor/etc/audio_effects.conf\
59hardware/qcom/audio/configs/msm8937/mixer_paths_mtp.xml:system/etc/mixer_paths_mtp.xml \
60hardware/qcom/audio/configs/msm8937/mixer_paths_qrd_skuh.xml:system/etc/mixer_paths_qrd_skuh.xml \
61hardware/qcom/audio/configs/msm8937/mixer_paths_qrd_skui.xml:system/etc/mixer_paths_qrd_skui.xml \
62hardware/qcom/audio/configs/msm8937/mixer_paths_qrd_skuhf.xml:system/etc/mixer_paths_qrd_skuhf.xml \
63hardware/qcom/audio/configs/msm8937/mixer_paths_wcd9306.xml:system/etc/mixer_paths_wcd9306.xml \
64hardware/qcom/audio/configs/msm8937/mixer_paths_skuk.xml:system/etc/mixer_paths_skuk.xml \
65hardware/qcom/audio/configs/msm8937/mixer_paths_qrd_skum.xml:system/etc/mixer_paths_qrd_skum.xml \
66hardware/qcom/audio/configs/msm8937/mixer_paths.xml:system/etc/mixer_paths.xml \
67hardware/qcom/audio/configs/msm8937/sound_trigger_mixer_paths.xml:system/etc/sound_trigger_mixer_paths.xml \
68hardware/qcom/audio/configs/msm8937/sound_trigger_mixer_paths_wcd9306.xml:system/etc/sound_trigger_mixer_paths_wcd9306.xml \
69hardware/qcom/audio/configs/msm8937/sound_trigger_mixer_paths_wcd9330.xml:system/etc/sound_trigger_mixer_paths_wcd9330.xml \
70hardware/qcom/audio/configs/msm8937/sound_trigger_mixer_paths_wcd9335.xml:system/etc/sound_trigger_mixer_paths_wcd9335.xml \
71hardware/qcom/audio/configs/msm8937/sound_trigger_platform_info.xml:system/etc/sound_trigger_platform_info.xml \
72hardware/qcom/audio/configs/msm8937/mixer_paths_wcd9330.xml:system/etc/mixer_paths_wcd9330.xml \
73hardware/qcom/audio/configs/msm8937/mixer_paths_wcd9335.xml:system/etc/mixer_paths_wcd9335.xml \
74hardware/qcom/audio/configs/msm8937/mixer_paths_wcd9326.xml:system/etc/mixer_paths_wcd9326.xml \
75hardware/qcom/audio/configs/msm8937/mixer_paths_qrd_skun.xml:system/etc/mixer_paths_qrd_skun.xml \
76hardware/qcom/audio/configs/msm8937/mixer_paths_qrd_sku1.xml:system/etc/mixer_paths_qrd_sku1.xml \
77hardware/qcom/audio/configs/msm8937/mixer_paths_qrd_sku2.xml:system/etc/mixer_paths_qrd_sku2.xml \
78hardware/qcom/audio/configs/msm8937/audio_platform_info.xml:system/etc/audio_platform_info.xml \
79hardware/qcom/audio/configs/msm8937/audio_platform_info_extcodec.xml:system/etc/audio_platform_info_extcodec.xml \
80hardware/qcom/audio/configs/msm8937/aanc_tuning_mixer.txt:system/etc/aanc_tuning_mixer.txt
81
82# Reduce client buffer size for fast audio output tracks
83PRODUCT_PROPERTY_OVERRIDES += \
84 af.fast_track_multiplier=1
85
86# Low latency audio buffer size in frames
87PRODUCT_PROPERTY_OVERRIDES += \
88 audio_hal.period_size=192
89
90##fluencetype can be "fluence" or "fluencepro" or "none"
91PRODUCT_PROPERTY_OVERRIDES += \
92ro.qc.sdk.audio.fluencetype=none\
93persist.audio.fluence.voicecall=true\
94persist.audio.fluence.voicerec=false\
95persist.audio.fluence.speaker=true
96
97#disable tunnel encoding
98PRODUCT_PROPERTY_OVERRIDES += \
99tunnel.audio.encode=false
100
101#Buffer size in kbytes for compress offload playback
102PRODUCT_PROPERTY_OVERRIDES += \
103audio.offload.buffer.size.kb=64
104
105#Minimum duration for offload playback in secs
106PRODUCT_PROPERTY_OVERRIDES += \
107audio.offload.min.duration.secs=30
108
109#Enable offload audio video playback by default
110PRODUCT_PROPERTY_OVERRIDES += \
111audio.offload.video=true
112
113#Enable 16 bit PCM offload by default
114PRODUCT_PROPERTY_OVERRIDES += \
115audio.offload.pcm.16bit.enable=true
116
117#Enable 24 bit PCM offload by default
118PRODUCT_PROPERTY_OVERRIDES += \
119audio.offload.pcm.24bit.enable=true
120
121#Enable audio track offload by default
122PRODUCT_PROPERTY_OVERRIDES += \
123audio.offload.track.enable=true
124
125#Enable music through deep buffer
126PRODUCT_PROPERTY_OVERRIDES += \
127audio.deep_buffer.media=true
128
129#enable voice path for PCM VoIP by default
130PRODUCT_PROPERTY_OVERRIDES += \
131use.voice.path.for.pcm.voip=true
132
133#Enable multi channel aac through offload
134PRODUCT_PROPERTY_OVERRIDES += \
135audio.offload.multiaac.enable=true
136
137#Enable DS2, Hardbypass feature for Dolby
138PRODUCT_PROPERTY_OVERRIDES += \
139audio.dolby.ds2.enabled=true\
140audio.dolby.ds2.hardbypass=true
141
142#Disable Multiple offload sesison
143PRODUCT_PROPERTY_OVERRIDES += \
144audio.offload.multiple.enabled=false
145
146#Disable Compress passthrough playback
147PRODUCT_PROPERTY_OVERRIDES += \
148audio.offload.passthrough=false
149
150#Disable surround sound recording
151PRODUCT_PROPERTY_OVERRIDES += \
152ro.qc.sdk.audio.ssr=false
153
154#enable dsp gapless mode by default
155PRODUCT_PROPERTY_OVERRIDES += \
156audio.offload.gapless.enabled=true
157
158#enable pbe effects
159PRODUCT_PROPERTY_OVERRIDES += \
160audio.safx.pbe.enabled=true
161
162#parser input buffer size(256kb) in byte stream mode
163PRODUCT_PROPERTY_OVERRIDES += \
164audio.parser.ip.buffer.size=262144
165
166#enable downsampling for multi-channel content > 48Khz
167PRODUCT_PROPERTY_OVERRIDES += \
168audio.playback.mch.downsample=true
169
170#enable software decoders for ALAC and APE.
171PRODUCT_PROPERTY_OVERRIDES += \
172use.qti.sw.alac.decoder=true\
173use.qti.sw.ape.decoder=true
174
175#property for AudioSphere Post processing
176PRODUCT_PROPERTY_OVERRIDES += \
177audio.pp.asphere.enabled=false
178
179#Audio voice concurrency related flags
180PRODUCT_PROPERTY_OVERRIDES += \
181voice.playback.conc.disabled=true\
182voice.record.conc.disabled=false\
183voice.voip.conc.disabled=true
184
185#Decides the audio fallback path during voice call,
186#deep-buffer and fast are the two allowed fallback paths now.
187PRODUCT_PROPERTY_OVERRIDES += \
188voice.conc.fallbackpath=deep-buffer
189
190#Disable speaker protection by default
191PRODUCT_PROPERTY_OVERRIDES += \
192persist.speaker.prot.enable=false
193
194#Enable HW AAC Encoder by default
195PRODUCT_PROPERTY_OVERRIDES += \
196qcom.hw.aac.encoder=true