blob: 8ce860dae3ba1aefac89e557d78f39580d675782 [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 \
89 hardware/qcom/audio/configs/trinket/mixer_paths_idp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_idp.xml \
90 hardware/qcom/audio/configs/trinket/mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_qrd.xml \
91 hardware/qcom/audio/configs/trinket/mixer_paths_tavil.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tavil.xml \
92
93#XML Audio configuration files
Hari Veerubhotlae56a5fa2018-10-14 16:52:10 +053094ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
95PRODUCT_COPY_FILES += \
96 $(TOPDIR)hardware/qcom/audio/configs/trinket/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml
97endif
98PRODUCT_COPY_FILES += \
99 $(TOPDIR)hardware/qcom/audio/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
100 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
101 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
102 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
103 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
104 $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
105
106# Listen configuration file
107PRODUCT_COPY_FILES += \
108 hardware/qcom/audio/configs/trinket/listen_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/listen_platform_info.xml
109
110# Reduce client buffer size for fast audio output tracks
111PRODUCT_PROPERTY_OVERRIDES += \
112 af.fast_track_multiplier=1
113
114# Low latency audio buffer size in frames
115PRODUCT_PROPERTY_OVERRIDES += \
116 vendor.audio_hal.period_size=192
117
118##fluencetype can be "fluence" or "fluencepro" or "none"
119PRODUCT_PROPERTY_OVERRIDES += \
120ro.vendor.audio.sdk.fluencetype=none\
121persist.vendor.audio.fluence.voicecall=true\
122persist.vendor.audio.fluence.voicerec=false\
123persist.vendor.audio.fluence.speaker=true
124
125#disable tunnel encoding
126PRODUCT_PROPERTY_OVERRIDES += \
127vendor.audio.tunnel.encode=false
128
129#Disable RAS Feature by default
130PRODUCT_PROPERTY_OVERRIDES += \
131persist.vendor.audio.ras.enabled=false
132
133#Buffer size in kbytes for compress offload playback
134PRODUCT_PROPERTY_OVERRIDES += \
135vendor.audio.offload.buffer.size.kb=32
136
Aditya Bavanaridffcdef2019-01-10 14:48:11 +0530137#Minimum duration for offload playback in secs
138PRODUCT_PROPERTY_OVERRIDES += \
139audio.offload.min.duration.secs=30
140
Hari Veerubhotlae56a5fa2018-10-14 16:52:10 +0530141#Enable offload audio video playback by default
142PRODUCT_PROPERTY_OVERRIDES += \
143audio.offload.video=true
144
145#Enable audio track offload by default
146PRODUCT_PROPERTY_OVERRIDES += \
147vendor.audio.offload.track.enable=true
148
149#Enable music through deep buffer
150PRODUCT_PROPERTY_OVERRIDES += \
151audio.deep_buffer.media=true
152
153#enable voice path for PCM VoIP by default
154PRODUCT_PROPERTY_OVERRIDES += \
155vendor.voice.path.for.pcm.voip=true
156
157#Enable multi channel aac through offload
158PRODUCT_PROPERTY_OVERRIDES += \
159vendor.audio.offload.multiaac.enable=true
160
161#Enable DS2, Hardbypass feature for Dolby
162PRODUCT_PROPERTY_OVERRIDES += \
163vendor.audio.dolby.ds2.enabled=false\
164vendor.audio.dolby.ds2.hardbypass=false
165
166#Disable Multiple offload sesison
167PRODUCT_PROPERTY_OVERRIDES += \
168vendor.audio.offload.multiple.enabled=false
169
170#Disable Compress passthrough playback
171PRODUCT_PROPERTY_OVERRIDES += \
172vendor.audio.offload.passthrough=false
173
174#Disable surround sound recording
175PRODUCT_PROPERTY_OVERRIDES += \
176ro.vendor.audio.sdk.ssr=false
177
178#enable dsp gapless mode by default
179PRODUCT_PROPERTY_OVERRIDES += \
180vendor.audio.offload.gapless.enabled=true
181
182#enable pbe effects
183PRODUCT_PROPERTY_OVERRIDES += \
184vendor.audio.safx.pbe.enabled=true
185
186#parser input buffer size(256kb) in byte stream mode
187PRODUCT_PROPERTY_OVERRIDES += \
188vendor.audio.parser.ip.buffer.size=262144
189
190#flac sw decoder 24 bit decode capability
191PRODUCT_PROPERTY_OVERRIDES += \
192vendor.audio.flac.sw.decoder.24bit=true
193
194#split a2dp DSP supported encoder list
195PRODUCT_PROPERTY_OVERRIDES += \
196persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aac
197
198#enable software decoders for ALAC and APE
199PRODUCT_PROPERTY_OVERRIDES += \
200vendor.audio.use.sw.alac.decoder=true
201PRODUCT_PROPERTY_OVERRIDES += \
202vendor.audio.use.sw.ape.decoder=true
203
204#enable hw aac encoder by default
205PRODUCT_PROPERTY_OVERRIDES += \
206vendor.audio.hw.aac.encoder=true
207
208#audio becoming noisy intent broadcast delay
209PRODUCT_PROPERTY_OVERRIDES += \
210vendor.audio.noisy.broadcast.delay=600
211
212#offload pausetime out duration to 3 secs to inline with other outputs
213PRODUCT_PROPERTY_OVERRIDES += \
214vendor.audio.offload.pstimeout.secs=3
215
216#Set AudioFlinger client heap size
217PRODUCT_PROPERTY_OVERRIDES += \
218ro.af.client_heap_size_kbyte=7168
219
220#Set HAL buffer size to samples equal to 3 ms
221PRODUCT_PROPERTY_OVERRIDES += \
222vendor.audio_hal.in_period_size=144
223
224#Set HAL buffer size to 3 ms
225PRODUCT_PROPERTY_OVERRIDES += \
226vendor.audio_hal.period_multiplier=3
227
228#ADM Buffering size in ms
229PRODUCT_PROPERTY_OVERRIDES += \
230vendor.audio.adm.buffering.ms=2
231
232# for HIDL related packages
233PRODUCT_PACKAGES += \
234 android.hardware.audio@2.0-service \
235 android.hardware.audio@2.0-impl \
236 android.hardware.audio.effect@2.0-impl \
237 android.hardware.soundtrigger@2.1-impl \
238 android.hardware.audio@4.0 \
239 android.hardware.audio.common@4.0 \
240 android.hardware.audio.common@4.0-util \
241 android.hardware.audio@4.0-impl \
242 android.hardware.audio.effect@4.0 \
243 android.hardware.audio.effect@4.0-impl