blob: a018dc471007fc44aadb37ecaa2604999bdade74 [file] [log] [blame]
Banajit Goswami748497f2016-03-23 10:20:01 -07001#BOARD_USES_GENERIC_AUDIO := true
2#
3#AUDIO_FEATURE_FLAGS
4BOARD_USES_ALSA_AUDIO := true
5USE_CUSTOM_AUDIO_POLICY := 1
6BOARD_SUPPORTS_SOUND_TRIGGER := true
7AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true
Satya Krishna Pindiproli87a95f92016-05-09 19:58:33 +05308USE_XML_AUDIO_POLICY_CONF := 1
Banajit Goswami748497f2016-03-23 10:20:01 -07009
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
Naresh Tannirua7a7eca2016-04-27 16:42:08 +053022AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH := true
Banajit Goswami748497f2016-03-23 10:20:01 -070023AUDIO_FEATURE_ENABLED_HFP := true
24AUDIO_FEATURE_ENABLED_INCALL_MUSIC := false
25AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
26AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true
27AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true
28AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true
29AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true
30AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true
31AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true
32AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true
33AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true
Ashish Jainad78edc2016-04-11 12:22:28 +053034AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
Banajit Goswami748497f2016-03-23 10:20:01 -070035AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
36AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
37AUDIO_FEATURE_ENABLED_SSR := true
38AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true
39
40AUDIO_FEATURE_ENABLED_DTS_EAGLE := false
41BOARD_USES_SRS_TRUEMEDIA := true
42DTS_CODEC_M_ := true
43AUDIO_FEATURE_ENABLED_DEV_ARBI := true
44MM_AUDIO_ENABLED_FTM := true
45MM_AUDIO_ENABLED_SAFX := true
46TARGET_USES_QCOM_MM_AUDIO := true
47AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
Naresh Tanniru20e8b022016-04-28 16:54:17 +053048DOLBY_DDP := true
Ashish Jainad78edc2016-04-11 12:22:28 +053049#AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true
Banajit Goswami748497f2016-03-23 10:20:01 -070050AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
51AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
52##AUDIO_FEATURE_FLAGS
Ashish Jain440a4d92016-04-06 23:03:56 +053053
54#Audio Specific device overlays
55DEVICE_PACKAGE_OVERLAYS += hardware/qcom/audio/configs/common/overlay
Banajit Goswami748497f2016-03-23 10:20:01 -070056
57# Audio configuration file
58ifeq ($(TARGET_USES_AOSP), true)
59PRODUCT_COPY_FILES += \
60 device/qcom/common/media/audio_policy.conf:system/etc/audio_policy.conf
61else
62PRODUCT_COPY_FILES += \
63 hardware/qcom/audio/configs/msm8996/audio_policy.conf:system/etc/audio_policy.conf
64endif
65
66PRODUCT_COPY_FILES += \
67 hardware/qcom/audio/configs/msm8996/audio_output_policy.conf:system/vendor/etc/audio_output_policy.conf \
68 hardware/qcom/audio/configs/msm8996/audio_effects.conf:system/vendor/etc/audio_effects.conf \
69 hardware/qcom/audio/configs/msm8996/mixer_paths.xml:system/etc/mixer_paths.xml \
70 hardware/qcom/audio/configs/msm8996/mixer_paths_tasha.xml:system/etc/mixer_paths_tasha.xml \
71 hardware/qcom/audio/configs/msm8996/mixer_paths_dtp.xml:system/etc/mixer_paths_dtp.xml \
72 hardware/qcom/audio/configs/msm8996/mixer_paths_i2s.xml:system/etc/mixer_paths_i2s.xml \
73 hardware/qcom/audio/configs/msm8996/aanc_tuning_mixer.txt:system/etc/aanc_tuning_mixer.txt \
74 hardware/qcom/audio/configs/msm8996/audio_platform_info_i2s.xml:system/etc/audio_platform_info_i2s.xml \
75 hardware/qcom/audio/configs/msm8996/sound_trigger_mixer_paths.xml:system/etc/sound_trigger_mixer_paths.xml \
76 hardware/qcom/audio/configs/msm8996/sound_trigger_mixer_paths_wcd9330.xml:system/etc/sound_trigger_mixer_paths_wcd9330.xml \
77 hardware/qcom/audio/configs/msm8996/sound_trigger_platform_info.xml:system/etc/sound_trigger_platform_info.xml \
78 hardware/qcom/audio/configs/msm8996/audio_platform_info.xml:system/etc/audio_platform_info.xml
79
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +053080#XML Audio configuration files
81ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
Satya Krishna Pindiproli87a95f92016-05-09 19:58:33 +053082ifeq ($(TARGET_USES_AOSP), true)
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +053083PRODUCT_COPY_FILES += \
Satya Krishna Pindiproli87a95f92016-05-09 19:58:33 +053084 $(TOPDIR)hardware/qcom/audio/configs/common/audio_policy_configuration.xml:/system/etc/audio_policy_configuration.xml
85else
86PRODUCT_COPY_FILES += \
87 $(TOPDIR)hardware/qcom/audio/configs/msm8996/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml
88endif
89PRODUCT_COPY_FILES += \
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +053090 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:/system/etc/a2dp_audio_policy_configuration.xml \
91 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:/system/etc/audio_policy_volumes.xml \
92 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:/system/etc/default_volume_tables.xml \
93 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:/system/etc/r_submix_audio_policy_configuration.xml \
94 $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:/system/etc/usb_audio_policy_configuration.xml
95endif
96
Banajit Goswami748497f2016-03-23 10:20:01 -070097# Listen configuration file
98PRODUCT_COPY_FILES += \
99 hardware/qcom/audio/configs/msm8996/listen_platform_info.xml:system/etc/listen_platform_info.xml
100
101# Reduce client buffer size for fast audio output tracks
102PRODUCT_PROPERTY_OVERRIDES += \
103 af.fast_track_multiplier=1
104
105# Low latency audio buffer size in frames
106PRODUCT_PROPERTY_OVERRIDES += \
107 audio_hal.period_size=192
108
109##fluencetype can be "fluence" or "fluencepro" or "none"
110PRODUCT_PROPERTY_OVERRIDES += \
111ro.qc.sdk.audio.fluencetype=none\
112persist.audio.fluence.voicecall=true\
113persist.audio.fluence.voicerec=false\
114persist.audio.fluence.speaker=true
115
116#disable tunnel encoding
117PRODUCT_PROPERTY_OVERRIDES += \
118tunnel.audio.encode=false
119
120#Buffer size in kbytes for compress offload playback
121PRODUCT_PROPERTY_OVERRIDES += \
122audio.offload.buffer.size.kb=32
123
124#Enable offload audio video playback by default
125PRODUCT_PROPERTY_OVERRIDES += \
126audio.offload.video=true
127
128#Enable 16 bit PCM offload by default
129PRODUCT_PROPERTY_OVERRIDES += \
130audio.offload.pcm.16bit.enable=true
131
132#Enable 24 bit PCM offload by default
133PRODUCT_PROPERTY_OVERRIDES += \
134audio.offload.pcm.24bit.enable=true
135
136#Enable audio track offload by default
137PRODUCT_PROPERTY_OVERRIDES += \
138audio.offload.track.enable=true
139
140#Enable music through deep buffer
141PRODUCT_PROPERTY_OVERRIDES += \
142audio.deep_buffer.media=true
143
144#enable voice path for PCM VoIP by default
145PRODUCT_PROPERTY_OVERRIDES += \
146use.voice.path.for.pcm.voip=true
147
148#Enable multi channel aac through offload
149PRODUCT_PROPERTY_OVERRIDES += \
150audio.offload.multiaac.enable=true
151
152#Enable DS2, Hardbypass feature for Dolby
153PRODUCT_PROPERTY_OVERRIDES += \
154audio.dolby.ds2.enabled=true\
155audio.dolby.ds2.hardbypass=true
156
Naresh Tanniru6958d242016-04-27 17:20:07 +0530157#Enable compress passthrough session
158PRODUCT_PROPERTY_OVERRIDES += \
159audio.offload.passthrough=true
160
Banajit Goswami748497f2016-03-23 10:20:01 -0700161#Disable Multiple offload sesison
162PRODUCT_PROPERTY_OVERRIDES += \
163audio.offload.multiple.enabled=false
164
165#Disable Compress passthrough playback
166PRODUCT_PROPERTY_OVERRIDES += \
167audio.offload.passthrough=false
168
169#Disable surround sound recording
170PRODUCT_PROPERTY_OVERRIDES += \
171ro.qc.sdk.audio.ssr=false
172
173#enable dsp gapless mode by default
174PRODUCT_PROPERTY_OVERRIDES += \
175audio.offload.gapless.enabled=true
176
177#enable pbe effects
178PRODUCT_PROPERTY_OVERRIDES += \
179audio.safx.pbe.enabled=true
180
181#parser input buffer size(256kb) in byte stream mode
182PRODUCT_PROPERTY_OVERRIDES += \
183audio.parser.ip.buffer.size=262144
184
Sharad Sangle38a1cb02016-05-06 11:49:28 +0530185#enable hw aac encoder by default
186PRODUCT_PROPERTY_OVERRIDES += \
187qcom.hw.aac.encoder=true