blob: 42bead627f44e23ea477a7fe506c9252897faf9d [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
Sharad Sangle8ecefdc2016-09-26 13:50:41 +05304
vivek mehta02a52022017-01-27 15:36:19 -08005ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
Ashish Jain1221b522016-03-30 15:09:20 +05306USE_CUSTOM_AUDIO_POLICY := 1
Vara Prasad A V S Gbbef79e2016-04-26 21:12:43 +05307#AUDIO_FEATURE_ENABLED_VOICE_CONCURRENCY := true
Ashish Jain1221b522016-03-30 15:09:20 +05308AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true
Ashish Jain1221b522016-03-30 15:09:20 +05309AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false
10AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true
Ashish Jain1221b522016-03-30 15:09:20 +053011AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
12AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true
13AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := true
14AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
Ashish Jain1221b522016-03-30 15:09:20 +053015AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true
16AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true
17AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true
18AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true
19AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true
20AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true
21AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true
Ashish Jainad78edc2016-04-11 12:22:28 +053022AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
Ashish Jain1221b522016-03-30 15:09:20 +053023AUDIO_FEATURE_ENABLED_SSR := true
Ashish Jain1221b522016-03-30 15:09:20 +053024AUDIO_FEATURE_ENABLED_DTS_EAGLE := false
Divya Narayanan Poojary87cfbd72017-02-15 12:16:58 +053025BOARD_USES_SRS_TRUEMEDIA := false
Ashish Jain1221b522016-03-30 15:09:20 +053026DTS_CODEC_M_ := true
27#AUDIO_FEATURE_ENABLED_MULTIPLE_TUNNEL := true
Ashish Jain1221b522016-03-30 15:09:20 +053028MM_AUDIO_ENABLED_SAFX := true
Ashish Jain1221b522016-03-30 15:09:20 +053029AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
Sharad Sangle5c0163d2016-10-17 14:58:11 +053030AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true
Ashish Jain1221b522016-03-30 15:09:20 +053031AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
Dhananjay Kumar29b894e2017-04-05 02:41:14 +053032DOLBY_ENABLE := false
Sharad Sangle8ecefdc2016-09-26 13:50:41 +053033endif
Ashish Jain1221b522016-03-30 15:09:20 +053034
Sharad Sangle8ecefdc2016-09-26 13:50:41 +053035USE_XML_AUDIO_POLICY_CONF := 1
36BOARD_SUPPORTS_SOUND_TRIGGER := true
37AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true
38AUDIO_FEATURE_ENABLED_HIFI_AUDIO := true
39AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
40AUDIO_FEATURE_ENABLED_NT_PAUSE_TIMEOUT := true
41AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
42AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true
43AUDIO_FEATURE_ENABLED_FLUENCE := true
44AUDIO_FEATURE_ENABLED_HDMI_SPK := true
45AUDIO_FEATURE_ENABLED_HDMI_EDID := true
46AUDIO_FEATURE_ENABLED_EXT_HDMI := true
47AUDIO_FEATURE_ENABLED_HFP := true
48AUDIO_FEATURE_ENABLED_INCALL_MUSIC := false
49AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
50AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
51AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
52AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true
53AUDIO_FEATURE_ENABLED_DEV_ARBI := false
54MM_AUDIO_ENABLED_FTM := true
55TARGET_USES_QCOM_MM_AUDIO := true
56AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
Dhananjay Kumar23a3bec2017-01-11 18:38:09 +053057BOARD_SUPPORTS_QAHW := true
Ashish Jain1221b522016-03-30 15:09:20 +053058##AUDIO_FEATURE_FLAGS
59
Ashish Jain440a4d92016-04-06 23:03:56 +053060#Audio Specific device overlays
61DEVICE_PACKAGE_OVERLAYS += hardware/qcom/audio/configs/common/overlay
62
Sharad Sangle8ecefdc2016-09-26 13:50:41 +053063# Audio configuration file
vivek mehta02a52022017-01-27 15:36:19 -080064ifeq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
Sharad Sangle8ecefdc2016-09-26 13:50:41 +053065PRODUCT_COPY_FILES += \
66 device/qcom/common/media/audio_policy.conf:system/etc/audio_policy.conf
67else
68PRODUCT_COPY_FILES += \
69 hardware/qcom/audio/configs/msm8953/audio_policy.conf:system/etc/audio_policy.conf
70endif
Ashish Jain1221b522016-03-30 15:09:20 +053071
72PRODUCT_COPY_FILES += \
David Ng06ccd872017-03-15 11:39:33 -070073hardware/qcom/audio/configs/msm8953/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
74hardware/qcom/audio/configs/msm8953/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
Ashish Jain1221b522016-03-30 15:09:20 +053075hardware/qcom/audio/configs/msm8953/mixer_paths_mtp.xml:system/etc/mixer_paths_mtp.xml \
76hardware/qcom/audio/configs/msm8953/mixer_paths_qrd_skuh.xml:system/etc/mixer_paths_qrd_skuh.xml \
77hardware/qcom/audio/configs/msm8953/mixer_paths_qrd_skui.xml:system/etc/mixer_paths_qrd_skui.xml \
78hardware/qcom/audio/configs/msm8953/mixer_paths_qrd_skuhf.xml:system/etc/mixer_paths_qrd_skuhf.xml \
79hardware/qcom/audio/configs/msm8953/mixer_paths_qrd_skum.xml:system/etc/mixer_paths_qrd_skum.xml \
80hardware/qcom/audio/configs/msm8953/mixer_paths_qrd_sku3.xml:system/etc/mixer_paths_qrd_sku3.xml \
81hardware/qcom/audio/configs/msm8953/mixer_paths_wcd9330.xml:system/etc/mixer_paths_wcd9330.xml \
82hardware/qcom/audio/configs/msm8953/mixer_paths_wcd9306.xml:system/etc/mixer_paths_wcd9306.xml \
83hardware/qcom/audio/configs/msm8953/mixer_paths_wcd9335.xml:system/etc/mixer_paths_wcd9335.xml \
84hardware/qcom/audio/configs/msm8953/mixer_paths_wcd9326.xml:system/etc/mixer_paths_wcd9326.xml \
85hardware/qcom/audio/configs/msm8953/mixer_paths_qrd_skun.xml:system/etc/mixer_paths_qrd_skun.xml \
86hardware/qcom/audio/configs/msm8953/mixer_paths_skuk.xml:system/etc/mixer_paths_skuk.xml \
87hardware/qcom/audio/configs/msm8953/mixer_paths.xml:system/etc/mixer_paths.xml \
88hardware/qcom/audio/configs/msm8953/sound_trigger_mixer_paths.xml:system/etc/sound_trigger_mixer_paths.xml \
89hardware/qcom/audio/configs/msm8953/sound_trigger_mixer_paths_wcd9306.xml:system/etc/sound_trigger_mixer_paths_wcd9306.xml \
90hardware/qcom/audio/configs/msm8953/sound_trigger_mixer_paths_wcd9330.xml:system/etc/sound_trigger_mixer_paths_wcd9330.xml \
91hardware/qcom/audio/configs/msm8953/sound_trigger_mixer_paths_wcd9335.xml:system/etc/sound_trigger_mixer_paths_wcd9335.xml \
92hardware/qcom/audio/configs/msm8953/sound_trigger_platform_info.xml:system/etc/sound_trigger_platform_info.xml \
93hardware/qcom/audio/configs/msm8953/audio_platform_info.xml:system/etc/audio_platform_info.xml \
94hardware/qcom/audio/configs/msm8953/audio_platform_info_extcodec.xml:system/etc/audio_platform_info_extcodec.xml \
95hardware/qcom/audio/configs/msm8953/aanc_tuning_mixer.txt:system/etc/aanc_tuning_mixer.txt
96
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +053097#XML Audio configuration files
98ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
vivek mehta02a52022017-01-27 15:36:19 -080099ifeq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +0530100PRODUCT_COPY_FILES += \
Satya Krishna Pindiproli87a95f92016-05-09 19:58:33 +0530101 $(TOPDIR)hardware/qcom/audio/configs/common/audio_policy_configuration.xml:/system/etc/audio_policy_configuration.xml
102else
103PRODUCT_COPY_FILES += \
104 $(TOPDIR)hardware/qcom/audio/configs/msm8953/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml
105endif
106PRODUCT_COPY_FILES += \
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +0530107 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:/system/etc/a2dp_audio_policy_configuration.xml \
108 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:/system/etc/audio_policy_volumes.xml \
109 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:/system/etc/default_volume_tables.xml \
110 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:/system/etc/r_submix_audio_policy_configuration.xml \
111 $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:/system/etc/usb_audio_policy_configuration.xml
112endif
113
Ashish Jain1221b522016-03-30 15:09:20 +0530114# Reduce client buffer size for fast audio output tracks
115PRODUCT_PROPERTY_OVERRIDES += \
116af.fast_track_multiplier=1
117
118#Low latency audio buffer size in frames
119PRODUCT_PROPERTY_OVERRIDES += \
120audio_hal.period_size=192
121
122##fluencetype can be "fluence" or "fluencepro" or "none"
123PRODUCT_PROPERTY_OVERRIDES += \
124ro.qc.sdk.audio.fluencetype=none\
125persist.audio.fluence.voicecall=true\
126persist.audio.fluence.voicerec=false\
127persist.audio.fluence.speaker=true
128
129#disable tunnel encoding
130PRODUCT_PROPERTY_OVERRIDES += \
131tunnel.audio.encode=false
132
133#Buffer size in kbytes for compress offload playback
134PRODUCT_PROPERTY_OVERRIDES += \
135audio.offload.buffer.size.kb=64
136
137#Minimum duration for offload playback in secs
138PRODUCT_PROPERTY_OVERRIDES += \
139audio.offload.min.duration.secs=30
140
141#Enable offload audio video playback by default
142PRODUCT_PROPERTY_OVERRIDES += \
143audio.offload.video=true
144
145#Enable 16 bit PCM offload by default
146PRODUCT_PROPERTY_OVERRIDES += \
147audio.offload.pcm.16bit.enable=true
148
149#Enable 24 bit PCM offload by default
150PRODUCT_PROPERTY_OVERRIDES += \
151audio.offload.pcm.24bit.enable=true
152
153#Enable audio track offload by default
154PRODUCT_PROPERTY_OVERRIDES += \
155audio.offload.track.enable=true
156
157#Enable music through deep buffer
158PRODUCT_PROPERTY_OVERRIDES += \
159audio.deep_buffer.media=true
160
Aalique Grahamece9b6d42016-10-24 11:07:13 -0700161#QC property used when calculating client heap size in audio flinger
Dhanalakshmi Siddani6faf8fa2016-05-12 10:08:25 +0530162PRODUCT_PROPERTY_OVERRIDES += \
Aalique Grahamece9b6d42016-10-24 11:07:13 -0700163audio.heap.size.multiplier=7
Dhanalakshmi Siddani6faf8fa2016-05-12 10:08:25 +0530164
Ashish Jain1221b522016-03-30 15:09:20 +0530165#enable voice path for PCM VoIP by default
166PRODUCT_PROPERTY_OVERRIDES += \
167use.voice.path.for.pcm.voip=true
168
169#Enable multi channel aac through offload
170PRODUCT_PROPERTY_OVERRIDES += \
171audio.offload.multiaac.enable=true
172
173#Enable DS2, Hardbypass feature for Dolby
174PRODUCT_PROPERTY_OVERRIDES += \
175audio.dolby.ds2.enabled=true\
176audio.dolby.ds2.hardbypass=true
177
178#Disable Multiple offload sesison
179PRODUCT_PROPERTY_OVERRIDES += \
180audio.offload.multiple.enabled=false
181
182#Disable Compress passthrough playback
183PRODUCT_PROPERTY_OVERRIDES += \
184audio.offload.passthrough=false
185
186#Disable surround sound recording
187PRODUCT_PROPERTY_OVERRIDES += \
188ro.qc.sdk.audio.ssr=false
189
190#enable dsp gapless mode by default
191PRODUCT_PROPERTY_OVERRIDES += \
192audio.offload.gapless.enabled=true
193
194#enable pbe effects
195PRODUCT_PROPERTY_OVERRIDES += \
196audio.safx.pbe.enabled=true
197
198#parser input buffer size(256kb) in byte stream mode
199PRODUCT_PROPERTY_OVERRIDES += \
200audio.parser.ip.buffer.size=262144
201
202#enable downsampling for multi-channel content > 48Khz
203PRODUCT_PROPERTY_OVERRIDES += \
204audio.playback.mch.downsample=true
205
206#enable software decoders for ALAC and APE.
207PRODUCT_PROPERTY_OVERRIDES += \
208use.qti.sw.alac.decoder=true\
209use.qti.sw.ape.decoder=true
210
211#property for AudioSphere Post processing
212PRODUCT_PROPERTY_OVERRIDES += \
213audio.pp.asphere.enabled=false
214
215#Audio voice concurrency related flags
216PRODUCT_PROPERTY_OVERRIDES += \
217voice.playback.conc.disabled=true\
218voice.record.conc.disabled=false\
219voice.voip.conc.disabled=true
220
221#Decides the audio fallback path during voice call,
222#deep-buffer and fast are the two allowed fallback paths now.
223PRODUCT_PROPERTY_OVERRIDES += \
224voice.conc.fallbackpath=deep-buffer
225
226#Disable speaker protection by default
227PRODUCT_PROPERTY_OVERRIDES += \
228persist.speaker.prot.enable=false
229
230#Enable HW AAC Encoder by default
231PRODUCT_PROPERTY_OVERRIDES += \
232qcom.hw.aac.encoder=true
Satya Krishna Pindiprolid2837402016-08-01 14:16:34 +0530233
234#flac sw decoder 24 bit decode capability
235PRODUCT_PROPERTY_OVERRIDES += \
236flac.sw.decoder.24bit.support=true
Bharat Pawar50185962017-03-30 14:39:22 +0530237
238# for HIDL related packages
239PRODUCT_PACKAGES += \
240 android.hardware.audio@2.0-service \
241 android.hardware.audio@2.0-impl \
242 android.hardware.audio.effect@2.0-impl \
243 android.hardware.soundtrigger@2.0-impl