blob: c1de588cd42232e2f68e5ad34b56d1987da0f333 [file] [log] [blame]
Sharad Sangled39232d2017-08-08 20:27:18 +05301#BOARD_USES_GENERIC_AUDIO := true
2#
3#AUDIO_FEATURE_FLAGS
4BOARD_USES_ALSA_AUDIO := true
5
6ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
7USE_CUSTOM_AUDIO_POLICY := 1
8AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false
9AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true
10AUDIO_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
14AUDIO_FEATURE_ENABLED_HDMI_SPK := true
15AUDIO_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
23AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
24AUDIO_FEATURE_ENABLED_SSR := true
25AUDIO_FEATURE_ENABLED_DTS_EAGLE := false
Revathi Uddaraju074d9c62017-09-13 15:10:29 +053026AUDIO_FEATURE_ENABLED_DYNAMIC_LOG := true
Sharad Sangled39232d2017-08-08 20:27:18 +053027BOARD_USES_SRS_TRUEMEDIA := false
28DTS_CODEC_M_ := false
29MM_AUDIO_ENABLED_SAFX := true
30AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
31AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
32AUDIO_FEATURE_ENABLED_USB_TUNNEL_AUDIO := true
33AUDIO_FEATURE_ENABLED_SPLIT_A2DP := true
34AUDIO_FEATURE_ENABLED_3D_AUDIO := false
35AUDIO_FEATURE_ENABLED_VOICE_PRINT := false
36USE_LEGACY_AUDIO_DAEMON := false
37USE_LEGACY_AUDIO_MEASUREMENT := false
38DOLBY_ENABLE := false
39endif
40
41USE_XML_AUDIO_POLICY_CONF := 1
42BOARD_SUPPORTS_SOUND_TRIGGER := true
43AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true
44AUDIO_FEATURE_ENABLED_HIFI_AUDIO := true
45AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
46AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
47AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true
48AUDIO_FEATURE_ENABLED_FLUENCE := true
49AUDIO_FEATURE_ENABLED_HDMI_EDID := true
50AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH := true
51#AUDIO_FEATURE_ENABLED_KEEP_ALIVE := true
52AUDIO_FEATURE_ENABLED_DISPLAY_PORT := true
53AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := false
54AUDIO_FEATURE_ENABLED_HFP := true
55AUDIO_FEATURE_ENABLED_INCALL_MUSIC := false
56AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
57AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
58AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
59AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true
60AUDIO_FEATURE_ENABLED_DEV_ARBI := false
61MM_AUDIO_ENABLED_FTM := true
62TARGET_USES_QCOM_MM_AUDIO := true
63AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
64AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
65BOARD_SUPPORTS_QAHW := false
66AUDIO_FEATURE_ENABLED_RAS := true
67AUDIO_FEATURE_ENABLED_SND_MONITOR := true
68##AUDIO_FEATURE_FLAGS
69
70#Audio Specific device overlays
71DEVICE_PACKAGE_OVERLAYS += hardware/qcom/audio/configs/common/overlay
72
73# Audio configuration file
74ifeq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
75PRODUCT_COPY_FILES += \
76 device/qcom/common/media/audio_policy.conf:system/etc/audio_policy.conf
77else
78PRODUCT_COPY_FILES += \
Sharad Sanglef1356842017-09-25 19:15:07 +053079 hardware/qcom/audio/configs/sdm670/audio_policy.conf:system/etc/audio_policy.conf
Sharad Sangled39232d2017-08-08 20:27:18 +053080endif
81
82PRODUCT_COPY_FILES += \
Sharad Sanglef1356842017-09-25 19:15:07 +053083 hardware/qcom/audio/configs/sdm670/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
84 hardware/qcom/audio/configs/sdm670/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
85 hardware/qcom/audio/configs/sdm670/mixer_paths_tavil.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tavil.xml \
86 hardware/qcom/audio/configs/sdm670/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
87 hardware/qcom/audio/configs/sdm670/mixer_paths_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_mtp.xml \
88 hardware/qcom/audio/configs/sdm670/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml \
89 hardware/qcom/audio/configs/sdm670/mixer_paths_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tashalite.xml \
90 hardware/qcom/audio/configs/sdm670/mixer_paths_i2s.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_i2s.xml \
91 hardware/qcom/audio/configs/sdm670/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
92 hardware/qcom/audio/configs/sdm670/audio_tuning_mixer_tavil.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer_tavil.txt \
93 hardware/qcom/audio/configs/sdm670/audio_tuning_mixer_tasha.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer_tasha.txt \
94 hardware/qcom/audio/configs/sdm670/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
95 hardware/qcom/audio/configs/sdm670/audio_platform_info_i2s.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_i2s.xml \
96 hardware/qcom/audio/configs/sdm670/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
97 hardware/qcom/audio/configs/sdm670/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \
98 hardware/qcom/audio/configs/sdm670/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
99 hardware/qcom/audio/configs/sdm670/sound_trigger_mixer_paths_wcd9335.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9335.xml \
100 hardware/qcom/audio/configs/sdm670/sound_trigger_mixer_paths_wcd9340.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9340.xml \
101 hardware/qcom/audio/configs/sdm670/sound_trigger_mixer_paths_wcd9340.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9340.xml \
102 hardware/qcom/audio/configs/sdm670/graphite_ipc_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/graphite_ipc_platform_info.xml \
Revathi Uddaraju074d9c62017-09-13 15:10:29 +0530103 vendor/qcom/proprietary/mm-audio/audio-log-utils/audio_dynamic_log.xml:$(TARGET_COPY_OUT_VENDOR)/data/vendor/misc/audio/audio_dynamic_log.xml
Sharad Sangled39232d2017-08-08 20:27:18 +0530104
105#XML Audio configuration files
106ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
107ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
108PRODUCT_COPY_FILES += \
Sharad Sanglef1356842017-09-25 19:15:07 +0530109 $(TOPDIR)hardware/qcom/audio/configs/sdm670/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml
Sharad Sangled39232d2017-08-08 20:27:18 +0530110endif
111PRODUCT_COPY_FILES += \
112 $(TOPDIR)hardware/qcom/audio/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
113 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
114 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
115 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
116 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
117 $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
118endif
119
120# Listen configuration file
121PRODUCT_COPY_FILES += \
Sharad Sanglef1356842017-09-25 19:15:07 +0530122 hardware/qcom/audio/configs/sdm670/listen_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/listen_platform_info.xml
Sharad Sangled39232d2017-08-08 20:27:18 +0530123
124# Reduce client buffer size for fast audio output tracks
125PRODUCT_PROPERTY_OVERRIDES += \
126 af.fast_track_multiplier=1
127
128# Low latency audio buffer size in frames
129PRODUCT_PROPERTY_OVERRIDES += \
130 vendor.audio_hal.period_size=192
131
132##fluencetype can be "fluence" or "fluencepro" or "none"
133PRODUCT_PROPERTY_OVERRIDES += \
134ro.vendor.audio.sdk.fluencetype=none\
135persist.vendor.audio.fluence.voicecall=true\
136persist.vendor.audio.fluence.voicerec=false\
137persist.vendor.audio.fluence.speaker=true
138
139#disable tunnel encoding
140PRODUCT_PROPERTY_OVERRIDES += \
141vendor.audio.tunnel.encode=false
142
143#Disable RAS Feature by default
144PRODUCT_PROPERTY_OVERRIDES += \
145persist.vendor.audio.ras.enabled=false
146
147#Buffer size in kbytes for compress offload playback
148PRODUCT_PROPERTY_OVERRIDES += \
149vendor.audio.offload.buffer.size.kb=64
150
151#Minimum duration for offload playback in secs
152PRODUCT_PROPERTY_OVERRIDES += \
153audio.offload.min.duration.secs=30
154
155#Enable offload audio video playback by default
156PRODUCT_PROPERTY_OVERRIDES += \
157audio.offload.video=true
158
159#Enable audio track offload by default
160PRODUCT_PROPERTY_OVERRIDES += \
161vendor.audio.offload.track.enable=true
162
163#Enable music through deep buffer
164PRODUCT_PROPERTY_OVERRIDES += \
165audio.deep_buffer.media=true
166
167#enable voice path for PCM VoIP by default
168PRODUCT_PROPERTY_OVERRIDES += \
169vendor.voice.path.for.pcm.voip=true
170
171#Enable multi channel aac through offload
172PRODUCT_PROPERTY_OVERRIDES += \
173vendor.audio.offload.multiaac.enable=true
174
175#Enable DS2, Hardbypass feature for Dolby
176PRODUCT_PROPERTY_OVERRIDES += \
177vendor.audio.dolby.ds2.enabled=false\
178vendor.audio.dolby.ds2.hardbypass=false
179
180#Disable Multiple offload sesison
181PRODUCT_PROPERTY_OVERRIDES += \
182vendor.audio.offload.multiple.enabled=false
183
184#Disable Compress passthrough playback
185PRODUCT_PROPERTY_OVERRIDES += \
186vendor.audio.offload.passthrough=false
187
188#Disable surround sound recording
189PRODUCT_PROPERTY_OVERRIDES += \
190ro.vendor.audio.sdk.ssr=false
191
192#enable dsp gapless mode by default
193PRODUCT_PROPERTY_OVERRIDES += \
194vendor.audio.offload.gapless.enabled=true
195
196#enable pbe effects
197PRODUCT_PROPERTY_OVERRIDES += \
198vendor.audio.safx.pbe.enabled=true
199
200#parser input buffer size(256kb) in byte stream mode
201PRODUCT_PROPERTY_OVERRIDES += \
202vendor.audio.parser.ip.buffer.size=262144
203
204#flac sw decoder 24 bit decode capability
205PRODUCT_PROPERTY_OVERRIDES += \
206vendor.audio.flac.sw.decoder.24bit=true
207
208#split a2dp DSP supported encoder list
209PRODUCT_PROPERTY_OVERRIDES += \
210persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxhd-aac
211
212#enable software decoders for ALAC and APE
213PRODUCT_PROPERTY_OVERRIDES += \
214vendor.audio.use.sw.alac.decoder=true
215PRODUCT_PROPERTY_OVERRIDES += \
216vendor.audio.use.sw.ape.decoder=true
217
218#enable hw aac encoder by default
219PRODUCT_PROPERTY_OVERRIDES += \
220vendor.audio.hw.aac.encoder=true
221
222#Disable FM a2dp concurrency
223PRODUCT_PROPERTY_OVERRIDES += \
224vendor.fm.a2dp.conc.disabled=true
225
226#audio becoming noisy intent broadcast delay
227PRODUCT_PROPERTY_OVERRIDES += \
228vendor.audio.noisy.broadcast.delay=600
229
230#Enable HIFI audio support for internal codec
231PRODUCT_PROPERTY_OVERRIDES += \
232persist.vendor.audio.hifi.int_codec=true
233
234#offload pausetime out duration to 3 secs to inline with other outputs
235PRODUCT_PROPERTY_OVERRIDES += \
236vendor.audio.offload.pstimeout.secs=3
237
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