blob: 257115a83949023c666a1ff265ae857831fbc7bb [file] [log] [blame]
Xiaoyu Ye4322f152017-03-17 12:34:03 -07001#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
26BOARD_USES_SRS_TRUEMEDIA := false
27DTS_CODEC_M_ := false
28MM_AUDIO_ENABLED_SAFX := true
29AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
30AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
31AUDIO_FEATURE_ENABLED_USB_TUNNEL_AUDIO := true
Satya Krishna Pindiprolif7d65712017-04-26 14:24:53 +053032AUDIO_FEATURE_ENABLED_SPLIT_A2DP := true
Dhananjay Kumar29b894e2017-04-05 02:41:14 +053033AUDIO_FEATURE_ENABLED_3D_AUDIO := false
34DOLBY_ENABLE := false
Xiaoyu Ye4322f152017-03-17 12:34:03 -070035endif
36
37USE_XML_AUDIO_POLICY_CONF := 1
38BOARD_SUPPORTS_SOUND_TRIGGER := true
39AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true
40AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
41AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
42AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true
43AUDIO_FEATURE_ENABLED_FLUENCE := true
44AUDIO_FEATURE_ENABLED_HDMI_EDID := true
45AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH := true
46#AUDIO_FEATURE_ENABLED_KEEP_ALIVE := true
47AUDIO_FEATURE_ENABLED_DISPLAY_PORT := true
Aalique Grahame28395ec2017-05-18 11:12:23 -070048AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := false
Xiaoyu Ye4322f152017-03-17 12:34:03 -070049AUDIO_FEATURE_ENABLED_HFP := true
50AUDIO_FEATURE_ENABLED_INCALL_MUSIC := false
51AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
52AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
53AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
Aalique Grahame28395ec2017-05-18 11:12:23 -070054AUDIO_FEATURE_ENABLED_ACDB_LICENSE := false
Xiaoyu Ye4322f152017-03-17 12:34:03 -070055AUDIO_FEATURE_ENABLED_DEV_ARBI := false
56MM_AUDIO_ENABLED_FTM := true
57TARGET_USES_QCOM_MM_AUDIO := true
58AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
59AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
Aalique Grahame190cfcb2017-04-21 11:54:14 -070060BOARD_SUPPORTS_QAHW := false
Xiaoyu Ye4322f152017-03-17 12:34:03 -070061AUDIO_FEATURE_ENABLED_RAS := true
62##AUDIO_FEATURE_FLAGS
63
64#Audio Specific device overlays
65DEVICE_PACKAGE_OVERLAYS += hardware/qcom/audio/configs/common/overlay
66
67# Audio configuration file
Aalique Grahame190cfcb2017-04-21 11:54:14 -070068ifeq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
Xiaoyu Ye4322f152017-03-17 12:34:03 -070069PRODUCT_COPY_FILES += \
70 device/qcom/common/media/audio_policy.conf:system/etc/audio_policy.conf
71else
72PRODUCT_COPY_FILES += \
Soumild9f5bfa2017-04-04 19:31:22 -070073 hardware/qcom/audio/configs/sdm845/audio_policy.conf:system/etc/audio_policy.conf
Xiaoyu Ye4322f152017-03-17 12:34:03 -070074endif
75
76PRODUCT_COPY_FILES += \
Aalique Grahame190cfcb2017-04-21 11:54:14 -070077 hardware/qcom/audio/configs/sdm845/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
78 hardware/qcom/audio/configs/sdm845/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
Soumild9f5bfa2017-04-04 19:31:22 -070079 hardware/qcom/audio/configs/sdm845/mixer_paths_tavil.xml:system/etc/mixer_paths_tavil.xml \
Xiaoyu Ye4322f152017-03-17 12:34:03 -070080 hardware/qcom/audio/configs/msm8998/mixer_paths_skuk.xml:system/etc/mixer_paths_skuk.xml \
Soumild9f5bfa2017-04-04 19:31:22 -070081 hardware/qcom/audio/configs/sdm845/mixer_paths_i2s.xml:system/etc/mixer_paths_i2s.xml \
82 hardware/qcom/audio/configs/sdm845/aanc_tuning_mixer_tavil.txt:system/etc/aanc_tuning_mixer_tavil.txt \
83 hardware/qcom/audio/configs/sdm845/audio_platform_info_i2s.xml:system/etc/audio_platform_info_i2s.xml \
84 hardware/qcom/audio/configs/sdm845/sound_trigger_mixer_paths_wcd9340.xml:system/etc/sound_trigger_mixer_paths_wcd9340.xml \
85 hardware/qcom/audio/configs/sdm845/sound_trigger_platform_info.xml:system/etc/sound_trigger_platform_info.xml \
86 hardware/qcom/audio/configs/sdm845/graphite_ipc_platform_info.xml:system/etc/graphite_ipc_platform_info.xml \
87 hardware/qcom/audio/configs/sdm845/audio_platform_info.xml:system/etc/audio_platform_info.xml
Xiaoyu Ye4322f152017-03-17 12:34:03 -070088
89#XML Audio configuration files
90ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
Aalique Grahame190cfcb2017-04-21 11:54:14 -070091ifeq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
Xiaoyu Ye4322f152017-03-17 12:34:03 -070092PRODUCT_COPY_FILES += \
93 $(TOPDIR)hardware/qcom/audio/configs/common/audio_policy_configuration.xml:/system/etc/audio_policy_configuration.xml
94else
95PRODUCT_COPY_FILES += \
Soumild9f5bfa2017-04-04 19:31:22 -070096 $(TOPDIR)hardware/qcom/audio/configs/sdm845/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml
Xiaoyu Ye4322f152017-03-17 12:34:03 -070097endif
98PRODUCT_COPY_FILES += \
99 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:/system/etc/a2dp_audio_policy_configuration.xml \
100 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:/system/etc/audio_policy_volumes.xml \
101 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:/system/etc/default_volume_tables.xml \
102 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:/system/etc/r_submix_audio_policy_configuration.xml \
103 $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:/system/etc/usb_audio_policy_configuration.xml
104endif
105
106# Listen configuration file
107PRODUCT_COPY_FILES += \
Soumild9f5bfa2017-04-04 19:31:22 -0700108 hardware/qcom/audio/configs/sdm845/listen_platform_info.xml:system/etc/listen_platform_info.xml
Xiaoyu Ye4322f152017-03-17 12:34:03 -0700109
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 audio_hal.period_size=192
117
118##fluencetype can be "fluence" or "fluencepro" or "none"
119PRODUCT_PROPERTY_OVERRIDES += \
120ro.qc.sdk.audio.fluencetype=none\
121persist.audio.fluence.voicecall=true\
122persist.audio.fluence.voicerec=false\
123persist.audio.fluence.speaker=true
124
125#disable tunnel encoding
126PRODUCT_PROPERTY_OVERRIDES += \
127tunnel.audio.encode=false
128
129#Disable RAS Feature by default
130PRODUCT_PROPERTY_OVERRIDES += \
131persist.audio.ras.enabled=false
132
133#Buffer size in kbytes for compress offload playback
134PRODUCT_PROPERTY_OVERRIDES += \
135audio.offload.buffer.size.kb=32
136
137#Enable offload audio video playback by default
138PRODUCT_PROPERTY_OVERRIDES += \
139audio.offload.video=true
140
141#Enable 16 bit PCM offload by default
142PRODUCT_PROPERTY_OVERRIDES += \
143audio.offload.pcm.16bit.enable=true
144
145#Enable 24 bit PCM offload by default
146PRODUCT_PROPERTY_OVERRIDES += \
147audio.offload.pcm.24bit.enable=true
148
149#Enable audio track offload by default
150PRODUCT_PROPERTY_OVERRIDES += \
151audio.offload.track.enable=true
152
153#Enable music through deep buffer
154PRODUCT_PROPERTY_OVERRIDES += \
155audio.deep_buffer.media=true
156
157#QC property used when calculating client heap size in audio flinger
158PRODUCT_PROPERTY_OVERRIDES += \
159audio.heap.size.multiplier=7
160
161#enable voice path for PCM VoIP by default
162PRODUCT_PROPERTY_OVERRIDES += \
163use.voice.path.for.pcm.voip=true
164
165#Enable multi channel aac through offload
166PRODUCT_PROPERTY_OVERRIDES += \
167audio.offload.multiaac.enable=true
168
169#Enable DS2, Hardbypass feature for Dolby
170PRODUCT_PROPERTY_OVERRIDES += \
Aalique Grahame28395ec2017-05-18 11:12:23 -0700171audio.dolby.ds2.enabled=false\
172audio.dolby.ds2.hardbypass=false
Xiaoyu Ye4322f152017-03-17 12:34:03 -0700173
174#Disable Multiple offload sesison
175PRODUCT_PROPERTY_OVERRIDES += \
176audio.offload.multiple.enabled=false
177
178#Disable Compress passthrough playback
179PRODUCT_PROPERTY_OVERRIDES += \
180audio.offload.passthrough=false
181
182#Disable surround sound recording
183PRODUCT_PROPERTY_OVERRIDES += \
184ro.qc.sdk.audio.ssr=false
185
186#enable dsp gapless mode by default
187PRODUCT_PROPERTY_OVERRIDES += \
188audio.offload.gapless.enabled=true
189
190#enable pbe effects
191PRODUCT_PROPERTY_OVERRIDES += \
192audio.safx.pbe.enabled=true
193
194#parser input buffer size(256kb) in byte stream mode
195PRODUCT_PROPERTY_OVERRIDES += \
196audio.parser.ip.buffer.size=262144
197
198#flac sw decoder 24 bit decode capability
199PRODUCT_PROPERTY_OVERRIDES += \
200flac.sw.decoder.24bit.support=true
201
202#split a2dp DSP supported encoder list
203PRODUCT_PROPERTY_OVERRIDES += \
204persist.bt.a2dp_offload_cap=sbc-aptx-aptxhd-aac
205
206#enable software decoders for ALAC and APE
207PRODUCT_PROPERTY_OVERRIDES += \
208use.qti.sw.alac.decoder=true
209PRODUCT_PROPERTY_OVERRIDES += \
210use.qti.sw.ape.decoder=true
211
212#enable hw aac encoder by default
213PRODUCT_PROPERTY_OVERRIDES += \
214qcom.hw.aac.encoder=true
215
216#Disable FM a2dp concurrency
217PRODUCT_PROPERTY_OVERRIDES += \
218fm.a2dp.conc.disabled=true
219
220#audio becoming noisy intent broadcast delay
221PRODUCT_PROPERTY_OVERRIDES += \
222audio.noisy.broadcast.delay=600
223
224#offload pausetime out duration to 3 secs to inline with other outputs
225PRODUCT_PROPERTY_OVERRIDES += \
226audio.offload.pstimeout.secs=3
Aalique Grahame190cfcb2017-04-21 11:54:14 -0700227
228# for HIDL related packages
229PRODUCT_PACKAGES += \
230 android.hardware.audio@2.0-service \
231 android.hardware.audio@2.0-impl \
232 android.hardware.audio.effect@2.0-impl \
233 android.hardware.soundtrigger@2.0-impl