blob: bb6ee95c2769c439bca0a35973093c1b3618fbce [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
24#AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true
25#DOLBY_DDP := true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070026AUDIO_FEATURE_ENABLED_HFP := true
27AUDIO_FEATURE_ENABLED_INCALL_MUSIC := false
28AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
29AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true
30AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true
31AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true
32AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true
33AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true
34AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true
35AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true
36AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true
Garmond Leung5059a022016-06-22 12:05:57 -070037AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070038AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
39AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
40AUDIO_FEATURE_ENABLED_SSR := true
41AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true
42
43AUDIO_FEATURE_ENABLED_DTS_EAGLE := false
Banajit Goswami254b1042016-04-07 12:50:21 -070044BOARD_USES_SRS_TRUEMEDIA := false
45DTS_CODEC_M_ := false
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070046AUDIO_FEATURE_ENABLED_DEV_ARBI := true
47MM_AUDIO_ENABLED_FTM := true
48MM_AUDIO_ENABLED_SAFX := true
49TARGET_USES_QCOM_MM_AUDIO := true
50AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
51
52AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
53AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
Kuirong Wang357e0b12016-07-06 00:29:15 -070054AUDIO_FEATURE_ENABLED_USB_TUNNEL_AUDIO := true
Naresh Tannirub4dbe7c2016-07-24 07:19:51 +053055AUDIO_FEATURE_ENABLED_SPLIT_A2DP := true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070056##AUDIO_FEATURE_FLAGS
Garmond Leung29861ff2016-05-09 15:37:55 -070057
58#Audio Specific device overlays
59DEVICE_PACKAGE_OVERLAYS += hardware/qcom/audio/configs/common/overlay
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070060
61# Audio configuration file
62ifeq ($(TARGET_USES_AOSP), true)
63PRODUCT_COPY_FILES += \
64 device/qcom/common/media/audio_policy.conf:system/etc/audio_policy.conf
65else
66PRODUCT_COPY_FILES += \
67 hardware/qcom/audio/configs/msmcobalt/audio_policy.conf:system/etc/audio_policy.conf
68endif
69
70PRODUCT_COPY_FILES += \
71 hardware/qcom/audio/configs/msmcobalt/audio_output_policy.conf:system/vendor/etc/audio_output_policy.conf \
72 hardware/qcom/audio/configs/msmcobalt/audio_effects.conf:system/vendor/etc/audio_effects.conf \
73 hardware/qcom/audio/configs/msmcobalt/mixer_paths.xml:system/etc/mixer_paths.xml \
74 hardware/qcom/audio/configs/msmcobalt/mixer_paths_tasha.xml:system/etc/mixer_paths_tasha.xml \
Shiv Maliyappanahallid4cf30c2016-07-12 15:05:31 -070075 hardware/qcom/audio/configs/msmcobalt/mixer_paths_tavil.xml:system/etc/mixer_paths_tavil.xml \
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070076 hardware/qcom/audio/configs/msmcobalt/mixer_paths_dtp.xml:system/etc/mixer_paths_dtp.xml \
77 hardware/qcom/audio/configs/msmcobalt/mixer_paths_i2s.xml:system/etc/mixer_paths_i2s.xml \
78 hardware/qcom/audio/configs/msmcobalt/aanc_tuning_mixer.txt:system/etc/aanc_tuning_mixer.txt \
79 hardware/qcom/audio/configs/msmcobalt/audio_platform_info_i2s.xml:system/etc/audio_platform_info_i2s.xml \
80 hardware/qcom/audio/configs/msmcobalt/sound_trigger_mixer_paths.xml:system/etc/sound_trigger_mixer_paths.xml \
81 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 -070082 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 -070083 hardware/qcom/audio/configs/msmcobalt/sound_trigger_platform_info.xml:system/etc/sound_trigger_platform_info.xml \
Vidyakumar Athota9a7cdb02016-07-05 14:44:28 -070084 hardware/qcom/audio/configs/msmcobalt/graphite_ipc_platform_info.xml:system/etc/graphite_ipc_platform_info.xml \
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070085 hardware/qcom/audio/configs/msmcobalt/audio_platform_info.xml:system/etc/audio_platform_info.xml
86
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +053087#XML Audio configuration files
88ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
Satya Krishna Pindiproli87a95f92016-05-09 19:58:33 +053089ifeq ($(TARGET_USES_AOSP), true)
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +053090PRODUCT_COPY_FILES += \
Satya Krishna Pindiproli87a95f92016-05-09 19:58:33 +053091 $(TOPDIR)hardware/qcom/audio/configs/common/audio_policy_configuration.xml:/system/etc/audio_policy_configuration.xml
92else
93PRODUCT_COPY_FILES += \
94 $(TOPDIR)hardware/qcom/audio/configs/msmcobalt/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml
95endif
96PRODUCT_COPY_FILES += \
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +053097 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:/system/etc/a2dp_audio_policy_configuration.xml \
98 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:/system/etc/audio_policy_volumes.xml \
99 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:/system/etc/default_volume_tables.xml \
100 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:/system/etc/r_submix_audio_policy_configuration.xml \
101 $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:/system/etc/usb_audio_policy_configuration.xml
102endif
103
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700104# Listen configuration file
105PRODUCT_COPY_FILES += \
106 hardware/qcom/audio/configs/msmcobalt/listen_platform_info.xml:system/etc/listen_platform_info.xml
107
108# Reduce client buffer size for fast audio output tracks
109PRODUCT_PROPERTY_OVERRIDES += \
110 af.fast_track_multiplier=1
111
112# Low latency audio buffer size in frames
113PRODUCT_PROPERTY_OVERRIDES += \
114 audio_hal.period_size=192
115
116##fluencetype can be "fluence" or "fluencepro" or "none"
117PRODUCT_PROPERTY_OVERRIDES += \
118ro.qc.sdk.audio.fluencetype=none\
119persist.audio.fluence.voicecall=true\
120persist.audio.fluence.voicerec=false\
121persist.audio.fluence.speaker=true
122
123#disable tunnel encoding
124PRODUCT_PROPERTY_OVERRIDES += \
125tunnel.audio.encode=false
126
127#Buffer size in kbytes for compress offload playback
128PRODUCT_PROPERTY_OVERRIDES += \
129audio.offload.buffer.size.kb=32
130
131#Enable offload audio video playback by default
132PRODUCT_PROPERTY_OVERRIDES += \
133audio.offload.video=true
134
135#Enable 16 bit PCM offload by default
136PRODUCT_PROPERTY_OVERRIDES += \
137audio.offload.pcm.16bit.enable=true
138
139#Enable 24 bit PCM offload by default
140PRODUCT_PROPERTY_OVERRIDES += \
141audio.offload.pcm.24bit.enable=true
142
143#Enable audio track offload by default
144PRODUCT_PROPERTY_OVERRIDES += \
145audio.offload.track.enable=true
146
147#Enable music through deep buffer
148PRODUCT_PROPERTY_OVERRIDES += \
149audio.deep_buffer.media=true
150
Dhanalakshmi Siddani6faf8fa2016-05-12 10:08:25 +0530151#Default pcm audio sink buffer size in msec. This is used in calculating framecount
152PRODUCT_PROPERTY_OVERRIDES += \
153media.stagefright.audio.sink=280
154
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700155#enable voice path for PCM VoIP by default
156PRODUCT_PROPERTY_OVERRIDES += \
157use.voice.path.for.pcm.voip=true
158
159#Enable multi channel aac through offload
160PRODUCT_PROPERTY_OVERRIDES += \
161audio.offload.multiaac.enable=true
162
163#Enable DS2, Hardbypass feature for Dolby
164PRODUCT_PROPERTY_OVERRIDES += \
165audio.dolby.ds2.enabled=true\
166audio.dolby.ds2.hardbypass=true
167
168#Disable Multiple offload sesison
169PRODUCT_PROPERTY_OVERRIDES += \
170audio.offload.multiple.enabled=false
171
Garmond Leungdc730762016-08-15 11:46:30 -0700172#Enable Compress passthrough playback
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700173PRODUCT_PROPERTY_OVERRIDES += \
Garmond Leungdc730762016-08-15 11:46:30 -0700174audio.offload.passthrough=true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700175
176#Disable surround sound recording
177PRODUCT_PROPERTY_OVERRIDES += \
178ro.qc.sdk.audio.ssr=false
179
180#enable dsp gapless mode by default
181PRODUCT_PROPERTY_OVERRIDES += \
182audio.offload.gapless.enabled=true
183
184#enable pbe effects
185PRODUCT_PROPERTY_OVERRIDES += \
186audio.safx.pbe.enabled=true
187
188#parser input buffer size(256kb) in byte stream mode
189PRODUCT_PROPERTY_OVERRIDES += \
190audio.parser.ip.buffer.size=262144
191
Satya Krishna Pindiprolid2837402016-08-01 14:16:34 +0530192#flac sw decoder 24 bit decode capability
193PRODUCT_PROPERTY_OVERRIDES += \
194flac.sw.decoder.24bit.support=true
Naresh Tannirub4dbe7c2016-07-24 07:19:51 +0530195
196#split a2dp DSP supported encoder list
197PRODUCT_PROPERTY_OVERRIDES += \
198persist.bt.a2dp_offload_cap=sbc-aptx
Garmond Leung032248a2016-08-17 15:54:20 -0700199
200#enable software decoders for ALAC and APE
201PRODUCT_PROPERTY_OVERRIDES += \
202use.qti.sw.alac.decoder=true
203PRODUCT_PROPERTY_OVERRIDES += \
Banajit Goswamice1d14c2016-08-19 19:45:01 -0700204use.qti.sw.ape.decoder=true
vivek mehtae9ff4fb2016-07-13 12:17:44 -0700205
206#enable hw aac encoder by default
207PRODUCT_PROPERTY_OVERRIDES += \
208qcom.hw.aac.encoder=true
209