blob: 07a4bff735d98205e3e4c85fa9f81c172a1fd408 [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
Dhananjay Kumar29b894e2017-04-05 02:41:14 +053032AUDIO_FEATURE_ENABLED_SPLIT_A2DP := false
33AUDIO_FEATURE_ENABLED_3D_AUDIO := false
34AUDIO_FEATURE_ENABLED_VOICE_PRINT := false
35USE_LEGACY_AUDIO_DAEMON := false
36USE_LEGACY_AUDIO_MEASUREMENT := false
37DOLBY_ENABLE := false
Sharad Sangle8ecefdc2016-09-26 13:50:41 +053038endif
39
40USE_XML_AUDIO_POLICY_CONF := 1
Quinn Male50845132017-03-01 12:11:29 -080041BOARD_SUPPORTS_SOUND_TRIGGER := true
Sharad Sangle8ecefdc2016-09-26 13:50:41 +053042AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true
43AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
44AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
45AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true
46AUDIO_FEATURE_ENABLED_FLUENCE := true
47AUDIO_FEATURE_ENABLED_HDMI_EDID := true
48AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH := true
49#AUDIO_FEATURE_ENABLED_KEEP_ALIVE := true
50AUDIO_FEATURE_ENABLED_DISPLAY_PORT := true
51AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true
52AUDIO_FEATURE_ENABLED_HFP := true
53AUDIO_FEATURE_ENABLED_INCALL_MUSIC := false
54AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
55AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
56AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
57AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true
58AUDIO_FEATURE_ENABLED_DEV_ARBI := false
59MM_AUDIO_ENABLED_FTM := true
60TARGET_USES_QCOM_MM_AUDIO := true
61AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
62AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
Dhananjay Kumar23a3bec2017-01-11 18:38:09 +053063BOARD_SUPPORTS_QAHW := true
Srinivas Julakanti1ca769a2017-01-04 23:18:08 -080064AUDIO_FEATURE_ENABLED_RAS := true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070065##AUDIO_FEATURE_FLAGS
Garmond Leung29861ff2016-05-09 15:37:55 -070066
67#Audio Specific device overlays
68DEVICE_PACKAGE_OVERLAYS += hardware/qcom/audio/configs/common/overlay
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070069
70# Audio configuration file
vivek mehta02a52022017-01-27 15:36:19 -080071ifeq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070072PRODUCT_COPY_FILES += \
73 device/qcom/common/media/audio_policy.conf:system/etc/audio_policy.conf
74else
75PRODUCT_COPY_FILES += \
Ben Romberger22d41232016-11-16 14:55:25 -080076 hardware/qcom/audio/configs/msm8998/audio_policy.conf:system/etc/audio_policy.conf
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070077endif
78
79PRODUCT_COPY_FILES += \
David Ng06ccd872017-03-15 11:39:33 -070080 hardware/qcom/audio/configs/msm8998/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
81 hardware/qcom/audio/configs/msm8998/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
Ben Romberger22d41232016-11-16 14:55:25 -080082 hardware/qcom/audio/configs/msm8998/mixer_paths.xml:system/etc/mixer_paths.xml \
83 hardware/qcom/audio/configs/msm8998/mixer_paths_tasha.xml:system/etc/mixer_paths_tasha.xml \
84 hardware/qcom/audio/configs/msm8998/mixer_paths_tavil.xml:system/etc/mixer_paths_tavil.xml \
85 hardware/qcom/audio/configs/msm8998/mixer_paths_skuk.xml:system/etc/mixer_paths_skuk.xml \
86 hardware/qcom/audio/configs/msm8998/mixer_paths_skuk.xml:system/etc/mixer_paths_qvr.xml \
87 hardware/qcom/audio/configs/msm8998/mixer_paths_dtp.xml:system/etc/mixer_paths_dtp.xml \
88 hardware/qcom/audio/configs/msm8998/mixer_paths_i2s.xml:system/etc/mixer_paths_i2s.xml \
89 hardware/qcom/audio/configs/msm8998/aanc_tuning_mixer.txt:system/etc/aanc_tuning_mixer.txt \
90 hardware/qcom/audio/configs/msm8998/aanc_tuning_mixer_tavil.txt:system/etc/aanc_tuning_mixer_tavil.txt \
91 hardware/qcom/audio/configs/msm8998/audio_platform_info_i2s.xml:system/etc/audio_platform_info_i2s.xml \
92 hardware/qcom/audio/configs/msm8998/sound_trigger_mixer_paths.xml:system/etc/sound_trigger_mixer_paths.xml \
93 hardware/qcom/audio/configs/msm8998/sound_trigger_mixer_paths_wcd9330.xml:system/etc/sound_trigger_mixer_paths_wcd9330.xml \
94 hardware/qcom/audio/configs/msm8998/sound_trigger_mixer_paths_wcd9340.xml:system/etc/sound_trigger_mixer_paths_wcd9340.xml \
95 hardware/qcom/audio/configs/msm8998/sound_trigger_platform_info.xml:system/etc/sound_trigger_platform_info.xml \
96 hardware/qcom/audio/configs/msm8998/graphite_ipc_platform_info.xml:system/etc/graphite_ipc_platform_info.xml \
97 hardware/qcom/audio/configs/msm8998/audio_platform_info.xml:system/etc/audio_platform_info.xml
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070098
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +053099#XML Audio configuration files
100ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
vivek mehta02a52022017-01-27 15:36:19 -0800101ifeq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +0530102PRODUCT_COPY_FILES += \
Satya Krishna Pindiproli87a95f92016-05-09 19:58:33 +0530103 $(TOPDIR)hardware/qcom/audio/configs/common/audio_policy_configuration.xml:/system/etc/audio_policy_configuration.xml
104else
105PRODUCT_COPY_FILES += \
Ben Romberger22d41232016-11-16 14:55:25 -0800106 $(TOPDIR)hardware/qcom/audio/configs/msm8998/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml
Satya Krishna Pindiproli87a95f92016-05-09 19:58:33 +0530107endif
108PRODUCT_COPY_FILES += \
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +0530109 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:/system/etc/a2dp_audio_policy_configuration.xml \
110 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:/system/etc/audio_policy_volumes.xml \
111 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:/system/etc/default_volume_tables.xml \
112 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:/system/etc/r_submix_audio_policy_configuration.xml \
113 $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:/system/etc/usb_audio_policy_configuration.xml
114endif
115
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700116# Listen configuration file
117PRODUCT_COPY_FILES += \
Ben Romberger22d41232016-11-16 14:55:25 -0800118 hardware/qcom/audio/configs/msm8998/listen_platform_info.xml:system/etc/listen_platform_info.xml
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700119
120# Reduce client buffer size for fast audio output tracks
121PRODUCT_PROPERTY_OVERRIDES += \
122 af.fast_track_multiplier=1
123
124# Low latency audio buffer size in frames
125PRODUCT_PROPERTY_OVERRIDES += \
126 audio_hal.period_size=192
127
128##fluencetype can be "fluence" or "fluencepro" or "none"
129PRODUCT_PROPERTY_OVERRIDES += \
130ro.qc.sdk.audio.fluencetype=none\
131persist.audio.fluence.voicecall=true\
132persist.audio.fluence.voicerec=false\
133persist.audio.fluence.speaker=true
134
135#disable tunnel encoding
136PRODUCT_PROPERTY_OVERRIDES += \
137tunnel.audio.encode=false
138
Srinivas Julakanti1ca769a2017-01-04 23:18:08 -0800139#Disable RAS Feature by default
140PRODUCT_PROPERTY_OVERRIDES += \
141persist.audio.ras.enabled=false
142
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700143#Buffer size in kbytes for compress offload playback
144PRODUCT_PROPERTY_OVERRIDES += \
145audio.offload.buffer.size.kb=32
146
147#Enable offload audio video playback by default
148PRODUCT_PROPERTY_OVERRIDES += \
149audio.offload.video=true
150
151#Enable 16 bit PCM offload by default
152PRODUCT_PROPERTY_OVERRIDES += \
153audio.offload.pcm.16bit.enable=true
154
155#Enable 24 bit PCM offload by default
156PRODUCT_PROPERTY_OVERRIDES += \
157audio.offload.pcm.24bit.enable=true
158
159#Enable audio track offload by default
160PRODUCT_PROPERTY_OVERRIDES += \
161audio.offload.track.enable=true
162
163#Enable music through deep buffer
164PRODUCT_PROPERTY_OVERRIDES += \
165audio.deep_buffer.media=true
166
Aalique Grahamece9b6d42016-10-24 11:07:13 -0700167#QC property used when calculating client heap size in audio flinger
Dhanalakshmi Siddani6faf8fa2016-05-12 10:08:25 +0530168PRODUCT_PROPERTY_OVERRIDES += \
Aalique Grahamece9b6d42016-10-24 11:07:13 -0700169audio.heap.size.multiplier=7
Dhanalakshmi Siddani6faf8fa2016-05-12 10:08:25 +0530170
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700171#enable voice path for PCM VoIP by default
172PRODUCT_PROPERTY_OVERRIDES += \
173use.voice.path.for.pcm.voip=true
174
175#Enable multi channel aac through offload
176PRODUCT_PROPERTY_OVERRIDES += \
177audio.offload.multiaac.enable=true
178
179#Enable DS2, Hardbypass feature for Dolby
180PRODUCT_PROPERTY_OVERRIDES += \
181audio.dolby.ds2.enabled=true\
182audio.dolby.ds2.hardbypass=true
183
184#Disable Multiple offload sesison
185PRODUCT_PROPERTY_OVERRIDES += \
186audio.offload.multiple.enabled=false
187
Garmond Leunge3e61082017-02-06 15:08:26 -0800188#Disable Compress passthrough playback
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700189PRODUCT_PROPERTY_OVERRIDES += \
Garmond Leunge3e61082017-02-06 15:08:26 -0800190audio.offload.passthrough=false
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700191
192#Disable surround sound recording
193PRODUCT_PROPERTY_OVERRIDES += \
194ro.qc.sdk.audio.ssr=false
195
196#enable dsp gapless mode by default
197PRODUCT_PROPERTY_OVERRIDES += \
198audio.offload.gapless.enabled=true
199
200#enable pbe effects
201PRODUCT_PROPERTY_OVERRIDES += \
202audio.safx.pbe.enabled=true
203
204#parser input buffer size(256kb) in byte stream mode
205PRODUCT_PROPERTY_OVERRIDES += \
206audio.parser.ip.buffer.size=262144
207
Satya Krishna Pindiprolid2837402016-08-01 14:16:34 +0530208#flac sw decoder 24 bit decode capability
209PRODUCT_PROPERTY_OVERRIDES += \
210flac.sw.decoder.24bit.support=true
Naresh Tannirub4dbe7c2016-07-24 07:19:51 +0530211
212#split a2dp DSP supported encoder list
213PRODUCT_PROPERTY_OVERRIDES += \
Naresh Tannirued694c82017-02-07 17:01:28 +0530214persist.bt.a2dp_offload_cap=sbc-aptx-aptxhd-aac
Garmond Leung032248a2016-08-17 15:54:20 -0700215
216#enable software decoders for ALAC and APE
217PRODUCT_PROPERTY_OVERRIDES += \
218use.qti.sw.alac.decoder=true
219PRODUCT_PROPERTY_OVERRIDES += \
Banajit Goswamice1d14c2016-08-19 19:45:01 -0700220use.qti.sw.ape.decoder=true
vivek mehtae9ff4fb2016-07-13 12:17:44 -0700221
222#enable hw aac encoder by default
223PRODUCT_PROPERTY_OVERRIDES += \
224qcom.hw.aac.encoder=true
225
Naresh Tanniru94f1c642016-11-07 19:56:28 +0530226#Disable FM a2dp concurrency
227PRODUCT_PROPERTY_OVERRIDES += \
228fm.a2dp.conc.disabled=true
Preetam Singh Ranawat63c09d72016-11-09 12:18:22 +0530229
230#audio becoming noisy intent broadcast delay
231PRODUCT_PROPERTY_OVERRIDES += \
232audio.noisy.broadcast.delay=600
Naresh Tanniruec59ba32016-12-21 19:11:50 +0530233
234#offload pausetime out duration to 3 secs to inline with other outputs
235PRODUCT_PROPERTY_OVERRIDES += \
236audio.offload.pstimeout.secs=3
vivek mehta5538d2b2017-02-18 23:36:57 -0800237
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