blob: 9257ae5a8f12f6cd3e069becc128f99e0b3f76e2 [file] [log] [blame]
Banajit Goswami8b11ffe2016-04-07 01:56:17 -07001#BOARD_USES_GENERIC_AUDIO := true
2#
3#AUDIO_FEATURE_FLAGS
4BOARD_USES_ALSA_AUDIO := true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -07005
vivek mehta02a52022017-01-27 15:36:19 -08006ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
Sharad Sangle8ecefdc2016-09-26 13:50:41 +05307USE_CUSTOM_AUDIO_POLICY := 1
Banajit Goswami8b11ffe2016-04-07 01:56:17 -07008AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false
9AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070010AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
11AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true
12AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := true
13AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070014AUDIO_FEATURE_ENABLED_HDMI_SPK := true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070015AUDIO_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
22AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true
Garmond Leung5059a022016-06-22 12:05:57 -070023AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070024AUDIO_FEATURE_ENABLED_SSR := true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070025AUDIO_FEATURE_ENABLED_DTS_EAGLE := false
Banajit Goswami254b1042016-04-07 12:50:21 -070026BOARD_USES_SRS_TRUEMEDIA := false
27DTS_CODEC_M_ := false
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070028MM_AUDIO_ENABLED_SAFX := true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070029AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070030AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
Kuirong Wang357e0b12016-07-06 00:29:15 -070031AUDIO_FEATURE_ENABLED_USB_TUNNEL_AUDIO := true
Naresh Tannirub4dbe7c2016-07-24 07:19:51 +053032AUDIO_FEATURE_ENABLED_SPLIT_A2DP := true
Alexy Joseph01d462b2017-01-13 14:56:59 -080033AUDIO_FEATURE_ENABLED_3D_AUDIO := true
Sharad Sangle8ecefdc2016-09-26 13:50:41 +053034endif
35
36USE_XML_AUDIO_POLICY_CONF := 1
37BOARD_SUPPORTS_SOUND_TRIGGER_HAL := true
38AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true
39AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
40AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
41AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true
42AUDIO_FEATURE_ENABLED_FLUENCE := true
43AUDIO_FEATURE_ENABLED_HDMI_EDID := true
44AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH := true
45#AUDIO_FEATURE_ENABLED_KEEP_ALIVE := true
46AUDIO_FEATURE_ENABLED_DISPLAY_PORT := true
47AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true
48AUDIO_FEATURE_ENABLED_HFP := true
49AUDIO_FEATURE_ENABLED_INCALL_MUSIC := false
50AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
51AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
52AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
53AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true
54AUDIO_FEATURE_ENABLED_DEV_ARBI := false
55MM_AUDIO_ENABLED_FTM := true
56TARGET_USES_QCOM_MM_AUDIO := true
57AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
58AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
Dhananjay Kumar23a3bec2017-01-11 18:38:09 +053059BOARD_SUPPORTS_QAHW := true
Srinivas Julakanti1ca769a2017-01-04 23:18:08 -080060AUDIO_FEATURE_ENABLED_RAS := true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070061##AUDIO_FEATURE_FLAGS
Garmond Leung29861ff2016-05-09 15:37:55 -070062
63#Audio Specific device overlays
64DEVICE_PACKAGE_OVERLAYS += hardware/qcom/audio/configs/common/overlay
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070065
66# Audio configuration file
vivek mehta02a52022017-01-27 15:36:19 -080067ifeq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070068PRODUCT_COPY_FILES += \
69 device/qcom/common/media/audio_policy.conf:system/etc/audio_policy.conf
70else
71PRODUCT_COPY_FILES += \
Ben Romberger22d41232016-11-16 14:55:25 -080072 hardware/qcom/audio/configs/msm8998/audio_policy.conf:system/etc/audio_policy.conf
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070073endif
74
75PRODUCT_COPY_FILES += \
Ben Romberger22d41232016-11-16 14:55:25 -080076 hardware/qcom/audio/configs/msm8998/audio_output_policy.conf:system/vendor/etc/audio_output_policy.conf \
77 hardware/qcom/audio/configs/msm8998/audio_effects.conf:system/vendor/etc/audio_effects.conf \
78 hardware/qcom/audio/configs/msm8998/mixer_paths.xml:system/etc/mixer_paths.xml \
79 hardware/qcom/audio/configs/msm8998/mixer_paths_tasha.xml:system/etc/mixer_paths_tasha.xml \
80 hardware/qcom/audio/configs/msm8998/mixer_paths_tavil.xml:system/etc/mixer_paths_tavil.xml \
81 hardware/qcom/audio/configs/msm8998/mixer_paths_skuk.xml:system/etc/mixer_paths_skuk.xml \
82 hardware/qcom/audio/configs/msm8998/mixer_paths_skuk.xml:system/etc/mixer_paths_qvr.xml \
83 hardware/qcom/audio/configs/msm8998/mixer_paths_dtp.xml:system/etc/mixer_paths_dtp.xml \
84 hardware/qcom/audio/configs/msm8998/mixer_paths_i2s.xml:system/etc/mixer_paths_i2s.xml \
85 hardware/qcom/audio/configs/msm8998/aanc_tuning_mixer.txt:system/etc/aanc_tuning_mixer.txt \
86 hardware/qcom/audio/configs/msm8998/aanc_tuning_mixer_tavil.txt:system/etc/aanc_tuning_mixer_tavil.txt \
87 hardware/qcom/audio/configs/msm8998/audio_platform_info_i2s.xml:system/etc/audio_platform_info_i2s.xml \
88 hardware/qcom/audio/configs/msm8998/sound_trigger_mixer_paths.xml:system/etc/sound_trigger_mixer_paths.xml \
89 hardware/qcom/audio/configs/msm8998/sound_trigger_mixer_paths_wcd9330.xml:system/etc/sound_trigger_mixer_paths_wcd9330.xml \
90 hardware/qcom/audio/configs/msm8998/sound_trigger_mixer_paths_wcd9340.xml:system/etc/sound_trigger_mixer_paths_wcd9340.xml \
91 hardware/qcom/audio/configs/msm8998/sound_trigger_platform_info.xml:system/etc/sound_trigger_platform_info.xml \
92 hardware/qcom/audio/configs/msm8998/graphite_ipc_platform_info.xml:system/etc/graphite_ipc_platform_info.xml \
93 hardware/qcom/audio/configs/msm8998/audio_platform_info.xml:system/etc/audio_platform_info.xml
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070094
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +053095#XML Audio configuration files
96ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
vivek mehta02a52022017-01-27 15:36:19 -080097ifeq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +053098PRODUCT_COPY_FILES += \
Satya Krishna Pindiproli87a95f92016-05-09 19:58:33 +053099 $(TOPDIR)hardware/qcom/audio/configs/common/audio_policy_configuration.xml:/system/etc/audio_policy_configuration.xml
100else
101PRODUCT_COPY_FILES += \
Ben Romberger22d41232016-11-16 14:55:25 -0800102 $(TOPDIR)hardware/qcom/audio/configs/msm8998/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml
Satya Krishna Pindiproli87a95f92016-05-09 19:58:33 +0530103endif
104PRODUCT_COPY_FILES += \
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +0530105 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:/system/etc/a2dp_audio_policy_configuration.xml \
106 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:/system/etc/audio_policy_volumes.xml \
107 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:/system/etc/default_volume_tables.xml \
108 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:/system/etc/r_submix_audio_policy_configuration.xml \
109 $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:/system/etc/usb_audio_policy_configuration.xml
110endif
111
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700112# Listen configuration file
113PRODUCT_COPY_FILES += \
Ben Romberger22d41232016-11-16 14:55:25 -0800114 hardware/qcom/audio/configs/msm8998/listen_platform_info.xml:system/etc/listen_platform_info.xml
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700115
116# Reduce client buffer size for fast audio output tracks
117PRODUCT_PROPERTY_OVERRIDES += \
118 af.fast_track_multiplier=1
119
120# Low latency audio buffer size in frames
121PRODUCT_PROPERTY_OVERRIDES += \
122 audio_hal.period_size=192
123
124##fluencetype can be "fluence" or "fluencepro" or "none"
125PRODUCT_PROPERTY_OVERRIDES += \
126ro.qc.sdk.audio.fluencetype=none\
127persist.audio.fluence.voicecall=true\
128persist.audio.fluence.voicerec=false\
129persist.audio.fluence.speaker=true
130
131#disable tunnel encoding
132PRODUCT_PROPERTY_OVERRIDES += \
133tunnel.audio.encode=false
134
Srinivas Julakanti1ca769a2017-01-04 23:18:08 -0800135#Disable RAS Feature by default
136PRODUCT_PROPERTY_OVERRIDES += \
137persist.audio.ras.enabled=false
138
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700139#Buffer size in kbytes for compress offload playback
140PRODUCT_PROPERTY_OVERRIDES += \
141audio.offload.buffer.size.kb=32
142
143#Enable offload audio video playback by default
144PRODUCT_PROPERTY_OVERRIDES += \
145audio.offload.video=true
146
147#Enable 16 bit PCM offload by default
148PRODUCT_PROPERTY_OVERRIDES += \
149audio.offload.pcm.16bit.enable=true
150
151#Enable 24 bit PCM offload by default
152PRODUCT_PROPERTY_OVERRIDES += \
153audio.offload.pcm.24bit.enable=true
154
155#Enable audio track offload by default
156PRODUCT_PROPERTY_OVERRIDES += \
157audio.offload.track.enable=true
158
159#Enable music through deep buffer
160PRODUCT_PROPERTY_OVERRIDES += \
161audio.deep_buffer.media=true
162
Aalique Grahamece9b6d42016-10-24 11:07:13 -0700163#QC property used when calculating client heap size in audio flinger
Dhanalakshmi Siddani6faf8fa2016-05-12 10:08:25 +0530164PRODUCT_PROPERTY_OVERRIDES += \
Aalique Grahamece9b6d42016-10-24 11:07:13 -0700165audio.heap.size.multiplier=7
Dhanalakshmi Siddani6faf8fa2016-05-12 10:08:25 +0530166
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700167#enable voice path for PCM VoIP by default
168PRODUCT_PROPERTY_OVERRIDES += \
169use.voice.path.for.pcm.voip=true
170
171#Enable multi channel aac through offload
172PRODUCT_PROPERTY_OVERRIDES += \
173audio.offload.multiaac.enable=true
174
175#Enable DS2, Hardbypass feature for Dolby
176PRODUCT_PROPERTY_OVERRIDES += \
177audio.dolby.ds2.enabled=true\
178audio.dolby.ds2.hardbypass=true
179
180#Disable Multiple offload sesison
181PRODUCT_PROPERTY_OVERRIDES += \
182audio.offload.multiple.enabled=false
183
Garmond Leunge3e61082017-02-06 15:08:26 -0800184#Disable Compress passthrough playback
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700185PRODUCT_PROPERTY_OVERRIDES += \
Garmond Leunge3e61082017-02-06 15:08:26 -0800186audio.offload.passthrough=false
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700187
188#Disable surround sound recording
189PRODUCT_PROPERTY_OVERRIDES += \
190ro.qc.sdk.audio.ssr=false
191
192#enable dsp gapless mode by default
193PRODUCT_PROPERTY_OVERRIDES += \
194audio.offload.gapless.enabled=true
195
196#enable pbe effects
197PRODUCT_PROPERTY_OVERRIDES += \
198audio.safx.pbe.enabled=true
199
200#parser input buffer size(256kb) in byte stream mode
201PRODUCT_PROPERTY_OVERRIDES += \
202audio.parser.ip.buffer.size=262144
203
Satya Krishna Pindiprolid2837402016-08-01 14:16:34 +0530204#flac sw decoder 24 bit decode capability
205PRODUCT_PROPERTY_OVERRIDES += \
206flac.sw.decoder.24bit.support=true
Naresh Tannirub4dbe7c2016-07-24 07:19:51 +0530207
208#split a2dp DSP supported encoder list
209PRODUCT_PROPERTY_OVERRIDES += \
Naresh Tannirued694c82017-02-07 17:01:28 +0530210persist.bt.a2dp_offload_cap=sbc-aptx-aptxhd-aac
Garmond Leung032248a2016-08-17 15:54:20 -0700211
212#enable software decoders for ALAC and APE
213PRODUCT_PROPERTY_OVERRIDES += \
214use.qti.sw.alac.decoder=true
215PRODUCT_PROPERTY_OVERRIDES += \
Banajit Goswamice1d14c2016-08-19 19:45:01 -0700216use.qti.sw.ape.decoder=true
vivek mehtae9ff4fb2016-07-13 12:17:44 -0700217
218#enable hw aac encoder by default
219PRODUCT_PROPERTY_OVERRIDES += \
220qcom.hw.aac.encoder=true
221
Naresh Tanniru94f1c642016-11-07 19:56:28 +0530222#Disable FM a2dp concurrency
223PRODUCT_PROPERTY_OVERRIDES += \
224fm.a2dp.conc.disabled=true
Preetam Singh Ranawat63c09d72016-11-09 12:18:22 +0530225
226#audio becoming noisy intent broadcast delay
227PRODUCT_PROPERTY_OVERRIDES += \
228audio.noisy.broadcast.delay=600
Naresh Tanniruec59ba32016-12-21 19:11:50 +0530229
230#offload pausetime out duration to 3 secs to inline with other outputs
231PRODUCT_PROPERTY_OVERRIDES += \
232audio.offload.pstimeout.secs=3
vivek mehta5538d2b2017-02-18 23:36:57 -0800233
234# for HIDL related packages
235PRODUCT_PACKAGES += \
236 android.hardware.audio@2.0-service \
237 android.hardware.audio@2.0-impl \
238 android.hardware.audio.effect@2.0-impl \
239 android.hardware.soundtrigger@2.0-impl