blob: d240afdb1ed002bf958715b4a59860f2370f060d [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
Banajit Goswami8b11ffe2016-04-07 01:56:17 -07005
vivek mehta02a52022017-01-27 15:36:19 -08006ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
Sharad Sangle8ecefdc2016-09-26 13:50:41 +05307USE_CUSTOM_AUDIO_POLICY := 1
Banajit Goswami8b11ffe2016-04-07 01:56:17 -07008AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false
9AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070010AUDIO_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
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070014AUDIO_FEATURE_ENABLED_HDMI_SPK := true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070015AUDIO_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
Garmond Leung5059a022016-06-22 12:05:57 -070023AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070024AUDIO_FEATURE_ENABLED_SSR := true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070025AUDIO_FEATURE_ENABLED_DTS_EAGLE := false
Banajit Goswami254b1042016-04-07 12:50:21 -070026BOARD_USES_SRS_TRUEMEDIA := false
27DTS_CODEC_M_ := false
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070028MM_AUDIO_ENABLED_SAFX := true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070029AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070030AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
Kuirong Wang357e0b12016-07-06 00:29:15 -070031AUDIO_FEATURE_ENABLED_USB_TUNNEL_AUDIO := true
Satya Krishna Pindiprolif7d65712017-04-26 14:24:53 +053032AUDIO_FEATURE_ENABLED_SPLIT_A2DP := true
Weiyin Jiang4aa38402017-07-10 18:54:07 +080033AUDIO_FEATURE_ENABLED_3D_AUDIO := true
Dhananjay Kumar29b894e2017-04-05 02:41:14 +053034AUDIO_FEATURE_ENABLED_VOICE_PRINT := false
35USE_LEGACY_AUDIO_DAEMON := false
36USE_LEGACY_AUDIO_MEASUREMENT := false
37DOLBY_ENABLE := false
Sharad Sangle8ecefdc2016-09-26 13:50:41 +053038endif
39
40USE_XML_AUDIO_POLICY_CONF := 1
Quinn Male50845132017-03-01 12:11:29 -080041BOARD_SUPPORTS_SOUND_TRIGGER := true
Sharad Sangle8ecefdc2016-09-26 13:50:41 +053042AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true
43AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
44AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
45AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true
46AUDIO_FEATURE_ENABLED_FLUENCE := true
47AUDIO_FEATURE_ENABLED_HDMI_EDID := true
48AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH := true
49#AUDIO_FEATURE_ENABLED_KEEP_ALIVE := true
50AUDIO_FEATURE_ENABLED_DISPLAY_PORT := true
Satya Krishna Pindiproli4a72ae62017-07-02 16:08:11 +053051AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := false
Sharad Sangle8ecefdc2016-09-26 13:50:41 +053052AUDIO_FEATURE_ENABLED_HFP := true
53AUDIO_FEATURE_ENABLED_INCALL_MUSIC := false
54AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
55AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
56AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
57AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true
58AUDIO_FEATURE_ENABLED_DEV_ARBI := false
59MM_AUDIO_ENABLED_FTM := true
60TARGET_USES_QCOM_MM_AUDIO := true
61AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
62AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
Dhananjay Kumar23a3bec2017-01-11 18:38:09 +053063BOARD_SUPPORTS_QAHW := true
Srinivas Julakanti1ca769a2017-01-04 23:18:08 -080064AUDIO_FEATURE_ENABLED_RAS := true
Revathi Uddaraju1eac8b02017-05-18 17:13:33 +053065AUDIO_FEATURE_ENABLED_DYNAMIC_LOG := true
Dhananjay Kumare6293dd2017-05-25 17:25:30 +053066AUDIO_FEATURE_ENABLED_SND_MONITOR := true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070067##AUDIO_FEATURE_FLAGS
Garmond Leung29861ff2016-05-09 15:37:55 -070068
69#Audio Specific device overlays
70DEVICE_PACKAGE_OVERLAYS += hardware/qcom/audio/configs/common/overlay
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070071
72# Audio configuration file
vivek mehta02a52022017-01-27 15:36:19 -080073ifeq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070074PRODUCT_COPY_FILES += \
75 device/qcom/common/media/audio_policy.conf:system/etc/audio_policy.conf
76else
77PRODUCT_COPY_FILES += \
Ben Romberger22d41232016-11-16 14:55:25 -080078 hardware/qcom/audio/configs/msm8998/audio_policy.conf:system/etc/audio_policy.conf
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070079endif
80
81PRODUCT_COPY_FILES += \
David Ng06ccd872017-03-15 11:39:33 -070082 hardware/qcom/audio/configs/msm8998/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
83 hardware/qcom/audio/configs/msm8998/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
Naresh Tanniru10758b62017-06-05 21:05:53 +053084 hardware/qcom/audio/configs/msm8998/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
85 hardware/qcom/audio/configs/msm8998/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml \
86 hardware/qcom/audio/configs/msm8998/mixer_paths_tavil.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tavil.xml \
87 hardware/qcom/audio/configs/msm8998/mixer_paths_skuk.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_skuk.xml \
88 hardware/qcom/audio/configs/msm8998/mixer_paths_skuk.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_qvr.xml \
89 hardware/qcom/audio/configs/msm8998/mixer_paths_dtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_dtp.xml \
90 hardware/qcom/audio/configs/msm8998/mixer_paths_i2s.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_i2s.xml \
91 hardware/qcom/audio/configs/msm8998/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
92 hardware/qcom/audio/configs/msm8998/audio_tuning_mixer_tavil.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer_tavil.txt \
93 hardware/qcom/audio/configs/msm8998/audio_platform_info_i2s.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_i2s.xml \
94 hardware/qcom/audio/configs/msm8998/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
95 hardware/qcom/audio/configs/msm8998/sound_trigger_mixer_paths_wcd9330.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9330.xml \
96 hardware/qcom/audio/configs/msm8998/sound_trigger_mixer_paths_wcd9340.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9340.xml \
97 hardware/qcom/audio/configs/msm8998/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \
98 hardware/qcom/audio/configs/msm8998/graphite_ipc_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/graphite_ipc_platform_info.xml \
99 hardware/qcom/audio/configs/msm8998/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700100
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +0530101#XML Audio configuration files
102ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
vivek mehta02a52022017-01-27 15:36:19 -0800103ifeq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +0530104PRODUCT_COPY_FILES += \
Satya Krishna Pindiproli87a95f92016-05-09 19:58:33 +0530105 $(TOPDIR)hardware/qcom/audio/configs/common/audio_policy_configuration.xml:/system/etc/audio_policy_configuration.xml
106else
107PRODUCT_COPY_FILES += \
Ben Romberger22d41232016-11-16 14:55:25 -0800108 $(TOPDIR)hardware/qcom/audio/configs/msm8998/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml
Satya Krishna Pindiproli87a95f92016-05-09 19:58:33 +0530109endif
110PRODUCT_COPY_FILES += \
Satya Krishna Pindiproli013c3e42016-04-13 17:41:15 +0530111 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:/system/etc/a2dp_audio_policy_configuration.xml \
112 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:/system/etc/audio_policy_volumes.xml \
113 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:/system/etc/default_volume_tables.xml \
114 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:/system/etc/r_submix_audio_policy_configuration.xml \
115 $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:/system/etc/usb_audio_policy_configuration.xml
116endif
117
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700118# Listen configuration file
119PRODUCT_COPY_FILES += \
Naresh Tanniru10758b62017-06-05 21:05:53 +0530120 hardware/qcom/audio/configs/msm8998/listen_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/listen_platform_info.xml
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700121
122# Reduce client buffer size for fast audio output tracks
123PRODUCT_PROPERTY_OVERRIDES += \
124 af.fast_track_multiplier=1
125
126# Low latency audio buffer size in frames
127PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700128 vendor.audio_hal.period_size=192
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700129
130##fluencetype can be "fluence" or "fluencepro" or "none"
131PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700132ro.vendor.audio.sdk.fluencetype=none\
133persist.vendor.audio.fluence.voicecall=true\
134persist.vendor.audio.fluence.voicerec=false\
135persist.vendor.audio.fluence.speaker=true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700136
137#disable tunnel encoding
138PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700139vendor.audio.tunnel.encode=false
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700140
Srinivas Julakanti1ca769a2017-01-04 23:18:08 -0800141#Disable RAS Feature by default
142PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700143persist.vendor.audio.ras.enabled=false
Srinivas Julakanti1ca769a2017-01-04 23:18:08 -0800144
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700145#Buffer size in kbytes for compress offload playback
146PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700147vendor.audio.offload.buffer.size.kb=32
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700148
149#Enable offload audio video playback by default
150PRODUCT_PROPERTY_OVERRIDES += \
151audio.offload.video=true
152
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700153#Enable audio track offload by default
154PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700155vendor.audio.offload.track.enable=true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700156
157#Enable music through deep buffer
158PRODUCT_PROPERTY_OVERRIDES += \
159audio.deep_buffer.media=true
160
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700161#enable voice path for PCM VoIP by default
162PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700163vendor.voice.path.for.pcm.voip=true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700164
165#Enable multi channel aac through offload
166PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700167vendor.audio.offload.multiaac.enable=true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700168
169#Enable DS2, Hardbypass feature for Dolby
170PRODUCT_PROPERTY_OVERRIDES += \
Satya Krishna Pindiproli4a72ae62017-07-02 16:08:11 +0530171vendor.audio.dolby.ds2.enabled=false\
172vendor.audio.dolby.ds2.hardbypass=false
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700173
174#Disable Multiple offload sesison
175PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700176vendor.audio.offload.multiple.enabled=false
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700177
Garmond Leunge3e61082017-02-06 15:08:26 -0800178#Disable Compress passthrough playback
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700179PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700180vendor.audio.offload.passthrough=false
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700181
182#Disable surround sound recording
183PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700184ro.vendor.audio.sdk.ssr=false
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700185
186#enable dsp gapless mode by default
187PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700188vendor.audio.offload.gapless.enabled=true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700189
190#enable pbe effects
191PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700192vendor.audio.safx.pbe.enabled=true
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700193
194#parser input buffer size(256kb) in byte stream mode
195PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700196vendor.audio.parser.ip.buffer.size=262144
Banajit Goswami8b11ffe2016-04-07 01:56:17 -0700197
Satya Krishna Pindiprolid2837402016-08-01 14:16:34 +0530198#flac sw decoder 24 bit decode capability
199PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700200vendor.audio.flac.sw.decoder.24bit=true
Naresh Tannirub4dbe7c2016-07-24 07:19:51 +0530201
202#split a2dp DSP supported encoder list
203PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700204persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxhd-aac
Garmond Leung032248a2016-08-17 15:54:20 -0700205
206#enable software decoders for ALAC and APE
207PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700208vendor.audio.use.sw.alac.decoder=true
Garmond Leung032248a2016-08-17 15:54:20 -0700209PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700210vendor.audio.use.sw.ape.decoder=true
vivek mehtae9ff4fb2016-07-13 12:17:44 -0700211
212#enable hw aac encoder by default
213PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700214vendor.audio.hw.aac.encoder=true
vivek mehtae9ff4fb2016-07-13 12:17:44 -0700215
Naresh Tanniru94f1c642016-11-07 19:56:28 +0530216#Disable FM a2dp concurrency
217PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700218vendor.fm.a2dp.conc.disabled=true
Preetam Singh Ranawat63c09d72016-11-09 12:18:22 +0530219
220#audio becoming noisy intent broadcast delay
221PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700222vendor.audio.noisy.broadcast.delay=600
Naresh Tanniruec59ba32016-12-21 19:11:50 +0530223
224#offload pausetime out duration to 3 secs to inline with other outputs
225PRODUCT_PROPERTY_OVERRIDES += \
Aniket Kumar Latae1fcd932017-04-25 11:19:00 -0700226vendor.audio.offload.pstimeout.secs=3
vivek mehta5538d2b2017-02-18 23:36:57 -0800227
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