blob: 95a653d436638e373274274634cdaf42120d7034 [file] [log] [blame]
Hari Veerubhotlae56a5fa2018-10-14 16:52:10 +05301#BOARD_USES_GENERIC_AUDIO := true
2#
3#AUDIO_FEATURE_FLAGS
4BOARD_USES_ALSA_AUDIO := true
5TARGET_USES_AOSP_FOR_AUDIO := false
6
7ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
8USE_CUSTOM_AUDIO_POLICY := 1
9AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false
10AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := false
11AUDIO_FEATURE_ENABLED_DYNAMIC_ECNS := true
12AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
13AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true
14AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := true
15AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
16AUDIO_FEATURE_ENABLED_HDMI_SPK := true
17AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true
18AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true
19AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true
20AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true
21AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true
22AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true
23AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true
24AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true
25AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
26AUDIO_FEATURE_ENABLED_SSR := true
27AUDIO_FEATURE_ENABLED_DTS_EAGLE := false
28BOARD_USES_SRS_TRUEMEDIA := false
29DTS_CODEC_M_ := false
30MM_AUDIO_ENABLED_SAFX := true
31AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
32AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
33AUDIO_FEATURE_ENABLED_USB_TUNNEL_AUDIO := true
34AUDIO_FEATURE_ENABLED_SPLIT_A2DP := true
35AUDIO_FEATURE_ENABLED_3D_AUDIO := false
36DOLBY_ENABLE := false
37endif
38
39USE_XML_AUDIO_POLICY_CONF := 1
40AUDIO_FEATURE_ENABLED_DLKM := true
41BOARD_SUPPORTS_SOUND_TRIGGER := true
42AUDIO_FEATURE_ENABLED_INSTANCE_ID := true
43AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true
44AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
45AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
46AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true
47AUDIO_FEATURE_ENABLED_FLUENCE := true
48AUDIO_FEATURE_ENABLED_HDMI_EDID := true
49AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH := true
50#AUDIO_FEATURE_ENABLED_KEEP_ALIVE := true
51AUDIO_FEATURE_ENABLED_DISPLAY_PORT := true
52AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := false
53AUDIO_FEATURE_ENABLED_HFP := true
Aditya Bavanaridffcdef2019-01-10 14:48:11 +053054AUDIO_FEATURE_ENABLED_INCALL_MUSIC := true
Hari Veerubhotlae56a5fa2018-10-14 16:52:10 +053055AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
56AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
57AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
58AUDIO_FEATURE_ENABLED_ACDB_LICENSE := false
59AUDIO_FEATURE_ENABLED_DEV_ARBI := false
60AUDIO_FEATURE_ENABLED_DYNAMIC_LOG := true
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
68AUDIO_FEATURE_ENABLED_SVA_MULTI_STAGE := true
69AUDIO_FEATURE_ENABLED_BATTERY_LISTENER := true
Aditya Bavanaridffcdef2019-01-10 14:48:11 +053070AUDIO_FEATURE_ENABLED_USB_BURST_MODE := true
Hari Veerubhotlae56a5fa2018-10-14 16:52:10 +053071##AUDIO_FEATURE_FLAGS
72
73#Audio Specific device overlays
74DEVICE_PACKAGE_OVERLAYS += hardware/qcom/audio/configs/common/overlay
75
76PRODUCT_COPY_FILES += \
Aditya Bavanaridffcdef2019-01-10 14:48:11 +053077 hardware/qcom/audio/configs/trinket/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_io_policy.conf \
Hari Veerubhotlae56a5fa2018-10-14 16:52:10 +053078 hardware/qcom/audio/configs/trinket/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
79 hardware/qcom/audio/configs/trinket/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
80 hardware/qcom/audio/configs/trinket/audio_tuning_mixer_tavil.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer_tavil.txt \
81 hardware/qcom/audio/configs/trinket/sound_trigger_mixer_paths_wcd9340.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9340.xml \
82 hardware/qcom/audio/configs/trinket/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \
83 hardware/qcom/audio/configs/trinket/graphite_ipc_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/graphite_ipc_platform_info.xml \
84 hardware/qcom/audio/configs/trinket/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
85 hardware/qcom/audio/configs/trinket/audio_platform_info_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_qrd.xml \
86 hardware/qcom/audio/configs/trinket/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
87 hardware/qcom/audio/configs/trinket/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
88 hardware/qcom/audio/configs/trinket/sound_trigger_mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_qrd.xml \
Tanya Dixit82e37512019-01-16 14:21:56 +053089 hardware/qcom/audio/configs/trinket/sound_trigger_mixer_paths_wcd9335.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9335.xml \
Hari Veerubhotlae56a5fa2018-10-14 16:52:10 +053090 hardware/qcom/audio/configs/trinket/mixer_paths_idp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_idp.xml \
91 hardware/qcom/audio/configs/trinket/mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_qrd.xml \
92 hardware/qcom/audio/configs/trinket/mixer_paths_tavil.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tavil.xml \
Aditya Bavanari7ae4a452019-01-14 14:50:42 +053093 hardware/qcom/audio/configs/trinket/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml \
94 hardware/qcom/audio/configs/trinket/mixer_paths_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tashalite.xml \
Hari Veerubhotlae56a5fa2018-10-14 16:52:10 +053095
96#XML Audio configuration files
Hari Veerubhotlae56a5fa2018-10-14 16:52:10 +053097ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
98PRODUCT_COPY_FILES += \
99 $(TOPDIR)hardware/qcom/audio/configs/trinket/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml
100endif
101PRODUCT_COPY_FILES += \
102 $(TOPDIR)hardware/qcom/audio/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
103 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
104 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
105 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
106 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
107 $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
108
109# Listen configuration file
110PRODUCT_COPY_FILES += \
111 hardware/qcom/audio/configs/trinket/listen_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/listen_platform_info.xml
112
113# Reduce client buffer size for fast audio output tracks
114PRODUCT_PROPERTY_OVERRIDES += \
115 af.fast_track_multiplier=1
116
117# Low latency audio buffer size in frames
118PRODUCT_PROPERTY_OVERRIDES += \
119 vendor.audio_hal.period_size=192
120
121##fluencetype can be "fluence" or "fluencepro" or "none"
122PRODUCT_PROPERTY_OVERRIDES += \
123ro.vendor.audio.sdk.fluencetype=none\
124persist.vendor.audio.fluence.voicecall=true\
125persist.vendor.audio.fluence.voicerec=false\
126persist.vendor.audio.fluence.speaker=true
127
128#disable tunnel encoding
129PRODUCT_PROPERTY_OVERRIDES += \
130vendor.audio.tunnel.encode=false
131
132#Disable RAS Feature by default
133PRODUCT_PROPERTY_OVERRIDES += \
134persist.vendor.audio.ras.enabled=false
135
136#Buffer size in kbytes for compress offload playback
137PRODUCT_PROPERTY_OVERRIDES += \
138vendor.audio.offload.buffer.size.kb=32
139
Aditya Bavanaridffcdef2019-01-10 14:48:11 +0530140#Minimum duration for offload playback in secs
141PRODUCT_PROPERTY_OVERRIDES += \
142audio.offload.min.duration.secs=30
143
Hari Veerubhotlae56a5fa2018-10-14 16:52:10 +0530144#Enable offload audio video playback by default
145PRODUCT_PROPERTY_OVERRIDES += \
146audio.offload.video=true
147
148#Enable audio track offload by default
149PRODUCT_PROPERTY_OVERRIDES += \
150vendor.audio.offload.track.enable=true
151
152#Enable music through deep buffer
153PRODUCT_PROPERTY_OVERRIDES += \
154audio.deep_buffer.media=true
155
156#enable voice path for PCM VoIP by default
157PRODUCT_PROPERTY_OVERRIDES += \
158vendor.voice.path.for.pcm.voip=true
159
160#Enable multi channel aac through offload
161PRODUCT_PROPERTY_OVERRIDES += \
162vendor.audio.offload.multiaac.enable=true
163
164#Enable DS2, Hardbypass feature for Dolby
165PRODUCT_PROPERTY_OVERRIDES += \
166vendor.audio.dolby.ds2.enabled=false\
167vendor.audio.dolby.ds2.hardbypass=false
168
169#Disable Multiple offload sesison
170PRODUCT_PROPERTY_OVERRIDES += \
171vendor.audio.offload.multiple.enabled=false
172
173#Disable Compress passthrough playback
174PRODUCT_PROPERTY_OVERRIDES += \
175vendor.audio.offload.passthrough=false
176
177#Disable surround sound recording
178PRODUCT_PROPERTY_OVERRIDES += \
179ro.vendor.audio.sdk.ssr=false
180
181#enable dsp gapless mode by default
182PRODUCT_PROPERTY_OVERRIDES += \
183vendor.audio.offload.gapless.enabled=true
184
185#enable pbe effects
186PRODUCT_PROPERTY_OVERRIDES += \
187vendor.audio.safx.pbe.enabled=true
188
189#parser input buffer size(256kb) in byte stream mode
190PRODUCT_PROPERTY_OVERRIDES += \
191vendor.audio.parser.ip.buffer.size=262144
192
193#flac sw decoder 24 bit decode capability
194PRODUCT_PROPERTY_OVERRIDES += \
195vendor.audio.flac.sw.decoder.24bit=true
196
197#split a2dp DSP supported encoder list
198PRODUCT_PROPERTY_OVERRIDES += \
199persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aac
200
201#enable software decoders for ALAC and APE
202PRODUCT_PROPERTY_OVERRIDES += \
203vendor.audio.use.sw.alac.decoder=true
204PRODUCT_PROPERTY_OVERRIDES += \
205vendor.audio.use.sw.ape.decoder=true
206
207#enable hw aac encoder by default
208PRODUCT_PROPERTY_OVERRIDES += \
209vendor.audio.hw.aac.encoder=true
210
211#audio becoming noisy intent broadcast delay
212PRODUCT_PROPERTY_OVERRIDES += \
Weiyin Jiangb21ff8c2019-04-28 10:38:30 +0800213audio.sys.noisy.broadcast.delay=600
Hari Veerubhotlae56a5fa2018-10-14 16:52:10 +0530214
215#offload pausetime out duration to 3 secs to inline with other outputs
216PRODUCT_PROPERTY_OVERRIDES += \
Weiyin Jiangb21ff8c2019-04-28 10:38:30 +0800217audio.sys.offload.pstimeout.secs=3
Hari Veerubhotlae56a5fa2018-10-14 16:52:10 +0530218
219#Set AudioFlinger client heap size
220PRODUCT_PROPERTY_OVERRIDES += \
221ro.af.client_heap_size_kbyte=7168
222
223#Set HAL buffer size to samples equal to 3 ms
224PRODUCT_PROPERTY_OVERRIDES += \
225vendor.audio_hal.in_period_size=144
226
227#Set HAL buffer size to 3 ms
228PRODUCT_PROPERTY_OVERRIDES += \
229vendor.audio_hal.period_multiplier=3
230
231#ADM Buffering size in ms
232PRODUCT_PROPERTY_OVERRIDES += \
233vendor.audio.adm.buffering.ms=2
234
235# for HIDL related packages
236PRODUCT_PACKAGES += \
237 android.hardware.audio@2.0-service \
238 android.hardware.audio@2.0-impl \
239 android.hardware.audio.effect@2.0-impl \
240 android.hardware.soundtrigger@2.1-impl \
241 android.hardware.audio@4.0 \
242 android.hardware.audio.common@4.0 \
243 android.hardware.audio.common@4.0-util \
244 android.hardware.audio@4.0-impl \
245 android.hardware.audio.effect@4.0 \
246 android.hardware.audio.effect@4.0-impl
Samyak Jain6df8ce82019-03-22 14:26:24 +0530247
248PRODUCT_PACKAGES_ENG += \
249 VoicePrintTest \
250 VoicePrintDemo
251
252PRODUCT_PACKAGES_DEBUG += \
253 AudioSettings