blob: dfa6305910ee922db4215deb7bf75d0c7a4dbcd2 [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
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +05306USE_XML_AUDIO_POLICY_CONF := 0
Banajit Goswami8b11ffe2016-04-07 01:56:17 -07007BOARD_SUPPORTS_SOUND_TRIGGER := true
8AUDIO_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
22AUDIO_FEATURE_ENABLED_HFP := true
23AUDIO_FEATURE_ENABLED_INCALL_MUSIC := false
24AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
25AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true
26AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true
27AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true
28AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true
29AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true
30AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true
31AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true
32AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true
33#AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
34AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
35AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
36AUDIO_FEATURE_ENABLED_SSR := true
37AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true
38
39AUDIO_FEATURE_ENABLED_DTS_EAGLE := false
Banajit Goswami254b1042016-04-07 12:50:21 -070040BOARD_USES_SRS_TRUEMEDIA := false
41DTS_CODEC_M_ := false
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070042AUDIO_FEATURE_ENABLED_DEV_ARBI := true
43MM_AUDIO_ENABLED_FTM := true
44MM_AUDIO_ENABLED_SAFX := true
45TARGET_USES_QCOM_MM_AUDIO := true
46AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
47
48AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
49AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
50##AUDIO_FEATURE_FLAGS
Garmond Leung29861ff2016-05-09 15:37:55 -070051
52#Audio Specific device overlays
53DEVICE_PACKAGE_OVERLAYS += hardware/qcom/audio/configs/common/overlay
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070054
55# Audio configuration file
56ifeq ($(TARGET_USES_AOSP), true)
57PRODUCT_COPY_FILES += \
58 device/qcom/common/media/audio_policy.conf:system/etc/audio_policy.conf
59else
60PRODUCT_COPY_FILES += \
61 hardware/qcom/audio/configs/msmcobalt/audio_policy.conf:system/etc/audio_policy.conf
62endif
63
64PRODUCT_COPY_FILES += \
65 hardware/qcom/audio/configs/msmcobalt/audio_output_policy.conf:system/vendor/etc/audio_output_policy.conf \
66 hardware/qcom/audio/configs/msmcobalt/audio_effects.conf:system/vendor/etc/audio_effects.conf \
67 hardware/qcom/audio/configs/msmcobalt/mixer_paths.xml:system/etc/mixer_paths.xml \
68 hardware/qcom/audio/configs/msmcobalt/mixer_paths_tasha.xml:system/etc/mixer_paths_tasha.xml \
69 hardware/qcom/audio/configs/msmcobalt/mixer_paths_dtp.xml:system/etc/mixer_paths_dtp.xml \
70 hardware/qcom/audio/configs/msmcobalt/mixer_paths_i2s.xml:system/etc/mixer_paths_i2s.xml \
71 hardware/qcom/audio/configs/msmcobalt/aanc_tuning_mixer.txt:system/etc/aanc_tuning_mixer.txt \
72 hardware/qcom/audio/configs/msmcobalt/audio_platform_info_i2s.xml:system/etc/audio_platform_info_i2s.xml \
73 hardware/qcom/audio/configs/msmcobalt/sound_trigger_mixer_paths.xml:system/etc/sound_trigger_mixer_paths.xml \
74 hardware/qcom/audio/configs/msmcobalt/sound_trigger_mixer_paths_wcd9330.xml:system/etc/sound_trigger_mixer_paths_wcd9330.xml \
75 hardware/qcom/audio/configs/msmcobalt/sound_trigger_platform_info.xml:system/etc/sound_trigger_platform_info.xml \
76 hardware/qcom/audio/configs/msmcobalt/audio_platform_info.xml:system/etc/audio_platform_info.xml
77
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +053078#XML Audio configuration files
79ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
Satya Krishna Pindiproli87a95f92016-05-09 19:58:33 +053080ifeq ($(TARGET_USES_AOSP), true)
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +053081PRODUCT_COPY_FILES += \
Satya Krishna Pindiproli87a95f92016-05-09 19:58:33 +053082 $(TOPDIR)hardware/qcom/audio/configs/common/audio_policy_configuration.xml:/system/etc/audio_policy_configuration.xml
83else
84PRODUCT_COPY_FILES += \
85 $(TOPDIR)hardware/qcom/audio/configs/msmcobalt/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml
86endif
87PRODUCT_COPY_FILES += \
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +053088 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:/system/etc/a2dp_audio_policy_configuration.xml \
89 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:/system/etc/audio_policy_volumes.xml \
90 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:/system/etc/default_volume_tables.xml \
91 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:/system/etc/r_submix_audio_policy_configuration.xml \
92 $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:/system/etc/usb_audio_policy_configuration.xml
93endif
94
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070095# Listen configuration file
96PRODUCT_COPY_FILES += \
97 hardware/qcom/audio/configs/msmcobalt/listen_platform_info.xml:system/etc/listen_platform_info.xml
98
99# Reduce client buffer size for fast audio output tracks
100PRODUCT_PROPERTY_OVERRIDES += \
101 af.fast_track_multiplier=1
102
103# Low latency audio buffer size in frames
104PRODUCT_PROPERTY_OVERRIDES += \
105 audio_hal.period_size=192
106
107##fluencetype can be "fluence" or "fluencepro" or "none"
108PRODUCT_PROPERTY_OVERRIDES += \
109ro.qc.sdk.audio.fluencetype=none\
110persist.audio.fluence.voicecall=true\
111persist.audio.fluence.voicerec=false\
112persist.audio.fluence.speaker=true
113
114#disable tunnel encoding
115PRODUCT_PROPERTY_OVERRIDES += \
116tunnel.audio.encode=false
117
118#Buffer size in kbytes for compress offload playback
119PRODUCT_PROPERTY_OVERRIDES += \
120audio.offload.buffer.size.kb=32
121
122#Enable offload audio video playback by default
123PRODUCT_PROPERTY_OVERRIDES += \
124audio.offload.video=true
125
126#Enable 16 bit PCM offload by default
127PRODUCT_PROPERTY_OVERRIDES += \
128audio.offload.pcm.16bit.enable=true
129
130#Enable 24 bit PCM offload by default
131PRODUCT_PROPERTY_OVERRIDES += \
132audio.offload.pcm.24bit.enable=true
133
134#Enable audio track offload by default
135PRODUCT_PROPERTY_OVERRIDES += \
136audio.offload.track.enable=true
137
138#Enable music through deep buffer
139PRODUCT_PROPERTY_OVERRIDES += \
140audio.deep_buffer.media=true
141
142#enable voice path for PCM VoIP by default
143PRODUCT_PROPERTY_OVERRIDES += \
144use.voice.path.for.pcm.voip=true
145
146#Enable multi channel aac through offload
147PRODUCT_PROPERTY_OVERRIDES += \
148audio.offload.multiaac.enable=true
149
150#Enable DS2, Hardbypass feature for Dolby
151PRODUCT_PROPERTY_OVERRIDES += \
152audio.dolby.ds2.enabled=true\
153audio.dolby.ds2.hardbypass=true
154
155#Disable Multiple offload sesison
156PRODUCT_PROPERTY_OVERRIDES += \
157audio.offload.multiple.enabled=false
158
159#Disable Compress passthrough playback
160PRODUCT_PROPERTY_OVERRIDES += \
161audio.offload.passthrough=false
162
163#Disable surround sound recording
164PRODUCT_PROPERTY_OVERRIDES += \
165ro.qc.sdk.audio.ssr=false
166
167#enable dsp gapless mode by default
168PRODUCT_PROPERTY_OVERRIDES += \
169audio.offload.gapless.enabled=true
170
171#enable pbe effects
172PRODUCT_PROPERTY_OVERRIDES += \
173audio.safx.pbe.enabled=true
174
175#parser input buffer size(256kb) in byte stream mode
176PRODUCT_PROPERTY_OVERRIDES += \
177audio.parser.ip.buffer.size=262144
178