blob: 9aa03220a3927f6de7e0dab4f2f7c4f6475f5ac5 [file] [log] [blame]
Banajit Goswami8b11ffe2016-04-07 01:56:17 -07001#BOARD_USES_GENERIC_AUDIO := true
2#
3#AUDIO_FEATURE_FLAGS
4BOARD_USES_ALSA_AUDIO := true
5USE_CUSTOM_AUDIO_POLICY := 1
Garmond Leung5fd417e2016-07-15 14:47:12 -07006USE_XML_AUDIO_POLICY_CONF := 1
Banajit Goswamice1d14c2016-08-19 19:45:01 -07007BOARD_SUPPORTS_SOUND_TRIGGER_HAL := true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -07008AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true
9
10AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
11AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
12AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false
13AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true
14AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true
15AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
16AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true
17AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := true
18AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
19AUDIO_FEATURE_ENABLED_FLUENCE := true
20AUDIO_FEATURE_ENABLED_HDMI_SPK := true
21AUDIO_FEATURE_ENABLED_HDMI_EDID := true
Garmond Leungdc730762016-08-15 11:46:30 -070022AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH := true
Satish Babu Patakokila50949a62016-06-13 16:53:58 +053023#AUDIO_FEATURE_ENABLED_KEEP_ALIVE := true
Shiv Maliyappanahallifeb8a9d2016-08-12 17:47:25 -070024AUDIO_FEATURE_ENABLED_DISPLAY_PORT := true
Satish Babu Patakokila50949a62016-06-13 16:53:58 +053025#AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true
26#DOLBY_DDP := true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070027AUDIO_FEATURE_ENABLED_HFP := true
28AUDIO_FEATURE_ENABLED_INCALL_MUSIC := false
29AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
30AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true
31AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true
32AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true
33AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true
34AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true
35AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true
36AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true
37AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true
Garmond Leung5059a022016-06-22 12:05:57 -070038AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070039AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
40AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
41AUDIO_FEATURE_ENABLED_SSR := true
42AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true
43
44AUDIO_FEATURE_ENABLED_DTS_EAGLE := false
Banajit Goswami254b1042016-04-07 12:50:21 -070045BOARD_USES_SRS_TRUEMEDIA := false
46DTS_CODEC_M_ := false
Preetam Singh Ranawat82e21ea2016-10-04 18:00:37 +053047AUDIO_FEATURE_ENABLED_DEV_ARBI := false
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070048MM_AUDIO_ENABLED_FTM := true
49MM_AUDIO_ENABLED_SAFX := true
50TARGET_USES_QCOM_MM_AUDIO := true
51AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
52
53AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
54AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
Weiyin Jiang8548af52016-09-14 17:12:12 +080055AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
Kuirong Wang357e0b12016-07-06 00:29:15 -070056AUDIO_FEATURE_ENABLED_USB_TUNNEL_AUDIO := true
Naresh Tannirub4dbe7c2016-07-24 07:19:51 +053057AUDIO_FEATURE_ENABLED_SPLIT_A2DP := true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070058##AUDIO_FEATURE_FLAGS
Garmond Leung29861ff2016-05-09 15:37:55 -070059
60#Audio Specific device overlays
61DEVICE_PACKAGE_OVERLAYS += hardware/qcom/audio/configs/common/overlay
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070062
63# Audio configuration file
64ifeq ($(TARGET_USES_AOSP), true)
65PRODUCT_COPY_FILES += \
66 device/qcom/common/media/audio_policy.conf:system/etc/audio_policy.conf
67else
68PRODUCT_COPY_FILES += \
69 hardware/qcom/audio/configs/msmcobalt/audio_policy.conf:system/etc/audio_policy.conf
70endif
71
72PRODUCT_COPY_FILES += \
73 hardware/qcom/audio/configs/msmcobalt/audio_output_policy.conf:system/vendor/etc/audio_output_policy.conf \
74 hardware/qcom/audio/configs/msmcobalt/audio_effects.conf:system/vendor/etc/audio_effects.conf \
75 hardware/qcom/audio/configs/msmcobalt/mixer_paths.xml:system/etc/mixer_paths.xml \
76 hardware/qcom/audio/configs/msmcobalt/mixer_paths_tasha.xml:system/etc/mixer_paths_tasha.xml \
Shiv Maliyappanahallid4cf30c2016-07-12 15:05:31 -070077 hardware/qcom/audio/configs/msmcobalt/mixer_paths_tavil.xml:system/etc/mixer_paths_tavil.xml \
Xiaojun Sang850d32e2016-07-25 15:28:16 +080078 hardware/qcom/audio/configs/msmcobalt/mixer_paths_skuk.xml:system/etc/mixer_paths_skuk.xml \
79 hardware/qcom/audio/configs/msmcobalt/mixer_paths_skuk.xml:system/etc/mixer_paths_qvr.xml \
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070080 hardware/qcom/audio/configs/msmcobalt/mixer_paths_dtp.xml:system/etc/mixer_paths_dtp.xml \
81 hardware/qcom/audio/configs/msmcobalt/mixer_paths_i2s.xml:system/etc/mixer_paths_i2s.xml \
82 hardware/qcom/audio/configs/msmcobalt/aanc_tuning_mixer.txt:system/etc/aanc_tuning_mixer.txt \
Vidyakumar Athotacaa21b32016-09-20 10:40:47 -070083 hardware/qcom/audio/configs/msmcobalt/aanc_tuning_mixer_tavil.txt:system/etc/aanc_tuning_mixer_tavil.txt \
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070084 hardware/qcom/audio/configs/msmcobalt/audio_platform_info_i2s.xml:system/etc/audio_platform_info_i2s.xml \
85 hardware/qcom/audio/configs/msmcobalt/sound_trigger_mixer_paths.xml:system/etc/sound_trigger_mixer_paths.xml \
86 hardware/qcom/audio/configs/msmcobalt/sound_trigger_mixer_paths_wcd9330.xml:system/etc/sound_trigger_mixer_paths_wcd9330.xml \
Banajit Goswami6bdb4d02016-08-30 20:49:50 -070087 hardware/qcom/audio/configs/msmcobalt/sound_trigger_mixer_paths_wcd9340.xml:system/etc/sound_trigger_mixer_paths_wcd9340.xml \
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070088 hardware/qcom/audio/configs/msmcobalt/sound_trigger_platform_info.xml:system/etc/sound_trigger_platform_info.xml \
Vidyakumar Athota9a7cdb02016-07-05 14:44:28 -070089 hardware/qcom/audio/configs/msmcobalt/graphite_ipc_platform_info.xml:system/etc/graphite_ipc_platform_info.xml \
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070090 hardware/qcom/audio/configs/msmcobalt/audio_platform_info.xml:system/etc/audio_platform_info.xml
91
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +053092#XML Audio configuration files
93ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
Satya Krishna Pindiproli87a95f92016-05-09 19:58:33 +053094ifeq ($(TARGET_USES_AOSP), true)
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +053095PRODUCT_COPY_FILES += \
Satya Krishna Pindiproli87a95f92016-05-09 19:58:33 +053096 $(TOPDIR)hardware/qcom/audio/configs/common/audio_policy_configuration.xml:/system/etc/audio_policy_configuration.xml
97else
98PRODUCT_COPY_FILES += \
99 $(TOPDIR)hardware/qcom/audio/configs/msmcobalt/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml
100endif
101PRODUCT_COPY_FILES += \
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +0530102 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:/system/etc/a2dp_audio_policy_configuration.xml \
103 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:/system/etc/audio_policy_volumes.xml \
104 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:/system/etc/default_volume_tables.xml \
105 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:/system/etc/r_submix_audio_policy_configuration.xml \
106 $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:/system/etc/usb_audio_policy_configuration.xml
107endif
108
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700109# Listen configuration file
110PRODUCT_COPY_FILES += \
111 hardware/qcom/audio/configs/msmcobalt/listen_platform_info.xml:system/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 audio_hal.period_size=192
120
121##fluencetype can be "fluence" or "fluencepro" or "none"
122PRODUCT_PROPERTY_OVERRIDES += \
123ro.qc.sdk.audio.fluencetype=none\
124persist.audio.fluence.voicecall=true\
125persist.audio.fluence.voicerec=false\
126persist.audio.fluence.speaker=true
127
128#disable tunnel encoding
129PRODUCT_PROPERTY_OVERRIDES += \
130tunnel.audio.encode=false
131
132#Buffer size in kbytes for compress offload playback
133PRODUCT_PROPERTY_OVERRIDES += \
134audio.offload.buffer.size.kb=32
135
136#Enable offload audio video playback by default
137PRODUCT_PROPERTY_OVERRIDES += \
138audio.offload.video=true
139
140#Enable 16 bit PCM offload by default
141PRODUCT_PROPERTY_OVERRIDES += \
142audio.offload.pcm.16bit.enable=true
143
144#Enable 24 bit PCM offload by default
145PRODUCT_PROPERTY_OVERRIDES += \
146audio.offload.pcm.24bit.enable=true
147
148#Enable audio track offload by default
149PRODUCT_PROPERTY_OVERRIDES += \
150audio.offload.track.enable=true
151
152#Enable music through deep buffer
153PRODUCT_PROPERTY_OVERRIDES += \
154audio.deep_buffer.media=true
155
Dhanalakshmi Siddani6faf8fa2016-05-12 10:08:25 +0530156#Default pcm audio sink buffer size in msec. This is used in calculating framecount
157PRODUCT_PROPERTY_OVERRIDES += \
158media.stagefright.audio.sink=280
159
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700160#enable voice path for PCM VoIP by default
161PRODUCT_PROPERTY_OVERRIDES += \
162use.voice.path.for.pcm.voip=true
163
164#Enable multi channel aac through offload
165PRODUCT_PROPERTY_OVERRIDES += \
166audio.offload.multiaac.enable=true
167
168#Enable DS2, Hardbypass feature for Dolby
169PRODUCT_PROPERTY_OVERRIDES += \
170audio.dolby.ds2.enabled=true\
171audio.dolby.ds2.hardbypass=true
172
173#Disable Multiple offload sesison
174PRODUCT_PROPERTY_OVERRIDES += \
175audio.offload.multiple.enabled=false
176
Garmond Leungdc730762016-08-15 11:46:30 -0700177#Enable Compress passthrough playback
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700178PRODUCT_PROPERTY_OVERRIDES += \
Garmond Leungdc730762016-08-15 11:46:30 -0700179audio.offload.passthrough=true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700180
181#Disable surround sound recording
182PRODUCT_PROPERTY_OVERRIDES += \
183ro.qc.sdk.audio.ssr=false
184
185#enable dsp gapless mode by default
186PRODUCT_PROPERTY_OVERRIDES += \
187audio.offload.gapless.enabled=true
188
189#enable pbe effects
190PRODUCT_PROPERTY_OVERRIDES += \
191audio.safx.pbe.enabled=true
192
193#parser input buffer size(256kb) in byte stream mode
194PRODUCT_PROPERTY_OVERRIDES += \
195audio.parser.ip.buffer.size=262144
196
Satya Krishna Pindiprolid2837402016-08-01 14:16:34 +0530197#flac sw decoder 24 bit decode capability
198PRODUCT_PROPERTY_OVERRIDES += \
199flac.sw.decoder.24bit.support=true
Naresh Tannirub4dbe7c2016-07-24 07:19:51 +0530200
201#split a2dp DSP supported encoder list
202PRODUCT_PROPERTY_OVERRIDES += \
203persist.bt.a2dp_offload_cap=sbc-aptx
Garmond Leung032248a2016-08-17 15:54:20 -0700204
205#enable software decoders for ALAC and APE
206PRODUCT_PROPERTY_OVERRIDES += \
207use.qti.sw.alac.decoder=true
208PRODUCT_PROPERTY_OVERRIDES += \
Banajit Goswamice1d14c2016-08-19 19:45:01 -0700209use.qti.sw.ape.decoder=true
vivek mehtae9ff4fb2016-07-13 12:17:44 -0700210
211#enable hw aac encoder by default
212PRODUCT_PROPERTY_OVERRIDES += \
213qcom.hw.aac.encoder=true
214