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