Dhananjay Kumar | d3ab9f4 | 2016-07-20 17:05:47 +0530 | [diff] [blame] | 1 | #BOARD_USES_GENERIC_AUDIO := true |
| 2 | # |
| 3 | #AUDIO_FEATURE_FLAGS |
| 4 | BOARD_USES_ALSA_AUDIO := true |
Dhananjay Kumar | 05f20b1 | 2017-03-31 03:46:42 +0530 | [diff] [blame] | 5 | TARGET_USES_AOSP_FOR_AUDIO:=true |
| 6 | |
| 7 | ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true) |
Dhananjay Kumar | d3ab9f4 | 2016-07-20 17:05:47 +0530 | [diff] [blame] | 8 | USE_CUSTOM_AUDIO_POLICY := 1 |
Dhananjay Kumar | d3ab9f4 | 2016-07-20 17:05:47 +0530 | [diff] [blame] | 9 | AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false |
| 10 | AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true |
| 11 | AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true |
| 12 | AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true |
| 13 | AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true |
| 14 | AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := true |
| 15 | AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true |
Dhananjay Kumar | d3ab9f4 | 2016-07-20 17:05:47 +0530 | [diff] [blame] | 16 | AUDIO_FEATURE_ENABLED_HDMI_SPK := true |
| 17 | AUDIO_FEATURE_ENABLED_HDMI_EDID := true |
Naresh Tanniru | 01223b9 | 2016-11-01 13:50:57 +0530 | [diff] [blame] | 18 | AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH := true |
| 19 | #AUDIO_FEATURE_ENABLED_KEEP_ALIVE := true |
| 20 | AUDIO_FEATURE_ENABLED_DISPLAY_PORT := true |
Dhananjay Kumar | d3ab9f4 | 2016-07-20 17:05:47 +0530 | [diff] [blame] | 21 | AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true |
| 22 | AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true |
| 23 | AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true |
| 24 | AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true |
| 25 | AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true |
| 26 | AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true |
| 27 | AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true |
| 28 | AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true |
| 29 | AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true |
Naresh Tanniru | 01223b9 | 2016-11-01 13:50:57 +0530 | [diff] [blame] | 30 | AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true |
Dhananjay Kumar | d3ab9f4 | 2016-07-20 17:05:47 +0530 | [diff] [blame] | 31 | AUDIO_FEATURE_ENABLED_SSR := true |
Dhananjay Kumar | 05f20b1 | 2017-03-31 03:46:42 +0530 | [diff] [blame] | 32 | AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true |
| 33 | AUDIO_FEATURE_ENABLED_HFP := true |
Dhananjay Kumar | d3ab9f4 | 2016-07-20 17:05:47 +0530 | [diff] [blame] | 34 | AUDIO_FEATURE_ENABLED_DTS_EAGLE := false |
| 35 | BOARD_USES_SRS_TRUEMEDIA := false |
| 36 | DTS_CODEC_M_ := false |
Dhananjay Kumar | d3ab9f4 | 2016-07-20 17:05:47 +0530 | [diff] [blame] | 37 | MM_AUDIO_ENABLED_SAFX := true |
Dhananjay Kumar | d3ab9f4 | 2016-07-20 17:05:47 +0530 | [diff] [blame] | 38 | AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false |
Dhananjay Kumar | d3ab9f4 | 2016-07-20 17:05:47 +0530 | [diff] [blame] | 39 | AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true |
| 40 | AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true |
Naresh Tanniru | 01223b9 | 2016-11-01 13:50:57 +0530 | [diff] [blame] | 41 | AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true |
| 42 | AUDIO_FEATURE_ENABLED_USB_TUNNEL_AUDIO := true |
Dhananjay Kumar | 29b894e | 2017-04-05 02:41:14 +0530 | [diff] [blame^] | 43 | AUDIO_FEATURE_ENABLED_SPLIT_A2DP := false |
| 44 | AUDIO_FEATURE_ENABLED_3D_AUDIO := false |
| 45 | DOLBY_ENABLE := false |
Dhananjay Kumar | 05f20b1 | 2017-03-31 03:46:42 +0530 | [diff] [blame] | 46 | endif |
| 47 | |
| 48 | USE_XML_AUDIO_POLICY_CONF := 1 |
| 49 | BOARD_SUPPORTS_SOUND_TRIGGER := true |
| 50 | AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true |
| 51 | AUDIO_FEATURE_ENABLED_HIFI_AUDIO := true |
| 52 | AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true |
| 53 | AUDIO_FEATURE_ENABLED_ANC_HEADSET := true |
| 54 | AUDIO_FEATURE_ENABLED_FLUENCE := true |
| 55 | AUDIO_FEATURE_ENABLED_INCALL_MUSIC := false |
| 56 | AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true |
| 57 | AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true |
| 58 | AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true |
| 59 | AUDIO_FEATURE_ENABLED_DEV_ARBI := false |
| 60 | MM_AUDIO_ENABLED_FTM := true |
| 61 | TARGET_USES_QCOM_MM_AUDIO := true |
Rohit Kumar | be6935f | 2017-01-20 14:58:34 +0530 | [diff] [blame] | 62 | AUDIO_FEATURE_ENABLED_RAS := true |
Dhananjay Kumar | d3ab9f4 | 2016-07-20 17:05:47 +0530 | [diff] [blame] | 63 | ##AUDIO_FEATURE_FLAGS |
| 64 | |
| 65 | #Audio Specific device overlays |
| 66 | DEVICE_PACKAGE_OVERLAYS += hardware/qcom/audio/configs/common/overlay |
| 67 | |
| 68 | # Audio configuration file |
vivek mehta | 02a5202 | 2017-01-27 15:36:19 -0800 | [diff] [blame] | 69 | ifeq ($(TARGET_USES_AOSP_FOR_AUDIO), true) |
Dhananjay Kumar | d3ab9f4 | 2016-07-20 17:05:47 +0530 | [diff] [blame] | 70 | PRODUCT_COPY_FILES += \ |
| 71 | device/qcom/common/media/audio_policy.conf:system/etc/audio_policy.conf |
| 72 | else |
| 73 | PRODUCT_COPY_FILES += \ |
Arusha Goyal | fda2915 | 2016-12-26 10:53:39 +0530 | [diff] [blame] | 74 | hardware/qcom/audio/configs/sdm660/audio_policy.conf:system/etc/audio_policy.conf |
Dhananjay Kumar | d3ab9f4 | 2016-07-20 17:05:47 +0530 | [diff] [blame] | 75 | endif |
| 76 | |
| 77 | PRODUCT_COPY_FILES += \ |
David Ng | 06ccd87 | 2017-03-15 11:39:33 -0700 | [diff] [blame] | 78 | hardware/qcom/audio/configs/sdm660/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \ |
| 79 | hardware/qcom/audio/configs/sdm660/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \ |
Arusha Goyal | fda2915 | 2016-12-26 10:53:39 +0530 | [diff] [blame] | 80 | hardware/qcom/audio/configs/sdm660/mixer_paths.xml:system/etc/mixer_paths.xml \ |
Niranjan Reddy Dumbala | 3a33679 | 2017-01-19 23:41:27 +0530 | [diff] [blame] | 81 | hardware/qcom/audio/configs/sdm660/mixer_paths_mtp.xml:system/etc/mixer_paths_mtp.xml \ |
Arusha Goyal | fda2915 | 2016-12-26 10:53:39 +0530 | [diff] [blame] | 82 | hardware/qcom/audio/configs/sdm660/mixer_paths_wcd9335.xml:system/etc/mixer_paths_wcd9335.xml \ |
| 83 | hardware/qcom/audio/configs/sdm660/mixer_paths_wcd9340.xml:system/etc/mixer_paths_wcd9340.xml \ |
| 84 | hardware/qcom/audio/configs/sdm660/mixer_paths_wcd9326.xml:system/etc/mixer_paths_wcd9326.xml \ |
Walter Yang | a5cfce4 | 2017-01-03 01:22:38 -0800 | [diff] [blame] | 85 | hardware/qcom/audio/configs/sdm660/mixer_paths_skus.xml:system/etc/mixer_paths_skus.xml \ |
Walter Yang | e4c7980 | 2017-02-13 20:55:35 +0800 | [diff] [blame] | 86 | hardware/qcom/audio/configs/sdm660/mixer_paths_skush.xml:system/etc/mixer_paths_skush.xml \ |
Arusha Goyal | fda2915 | 2016-12-26 10:53:39 +0530 | [diff] [blame] | 87 | hardware/qcom/audio/configs/sdm660/mixer_paths_i2s.xml:system/etc/mixer_paths_i2s.xml \ |
| 88 | hardware/qcom/audio/configs/sdm660/aanc_tuning_mixer.txt:system/etc/aanc_tuning_mixer.txt \ |
| 89 | hardware/qcom/audio/configs/sdm660/aanc_tuning_mixer_tavil.txt:system/etc/aanc_tuning_mixer_tavil.txt \ |
| 90 | hardware/qcom/audio/configs/sdm660/audio_platform_info_extcodec.xml:system/etc/audio_platform_info_extcodec.xml \ |
| 91 | hardware/qcom/audio/configs/sdm660/audio_platform_info.xml:system/etc/audio_platform_info.xml \ |
Walter Yang | e4c7980 | 2017-02-13 20:55:35 +0800 | [diff] [blame] | 92 | hardware/qcom/audio/configs/sdm660/audio_platform_info_skush.xml:system/etc/audio_platform_info_skush.xml \ |
Arusha Goyal | fda2915 | 2016-12-26 10:53:39 +0530 | [diff] [blame] | 93 | hardware/qcom/audio/configs/sdm660/sound_trigger_mixer_paths.xml:system/etc/sound_trigger_mixer_paths.xml \ |
| 94 | hardware/qcom/audio/configs/sdm660/sound_trigger_mixer_paths_wcd9330.xml:system/etc/sound_trigger_mixer_paths_wcd9330.xml \ |
Chaithanya Krishna Bacharaju | 9282ba3 | 2017-02-07 09:42:11 +0530 | [diff] [blame] | 95 | hardware/qcom/audio/configs/sdm660/sound_trigger_mixer_paths_wcd9335.xml:system/etc/sound_trigger_mixer_paths_wcd9335.xml \ |
Arusha Goyal | fda2915 | 2016-12-26 10:53:39 +0530 | [diff] [blame] | 96 | hardware/qcom/audio/configs/sdm660/sound_trigger_mixer_paths_wcd9340.xml:system/etc/sound_trigger_mixer_paths_wcd9340.xml \ |
| 97 | hardware/qcom/audio/configs/sdm660/sound_trigger_platform_info.xml:system/etc/sound_trigger_platform_info.xml \ |
| 98 | hardware/qcom/audio/configs/sdm660/graphite_ipc_platform_info.xml:system/etc/graphite_ipc_platform_info.xml |
Dhananjay Kumar | d3ab9f4 | 2016-07-20 17:05:47 +0530 | [diff] [blame] | 99 | |
| 100 | #XML Audio configuration files |
| 101 | ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1) |
vivek mehta | 02a5202 | 2017-01-27 15:36:19 -0800 | [diff] [blame] | 102 | ifeq ($(TARGET_USES_AOSP_FOR_AUDIO), true) |
Dhananjay Kumar | d3ab9f4 | 2016-07-20 17:05:47 +0530 | [diff] [blame] | 103 | PRODUCT_COPY_FILES += \ |
| 104 | $(TOPDIR)hardware/qcom/audio/configs/common/audio_policy_configuration.xml:/system/etc/audio_policy_configuration.xml |
| 105 | else |
| 106 | PRODUCT_COPY_FILES += \ |
Arusha Goyal | fda2915 | 2016-12-26 10:53:39 +0530 | [diff] [blame] | 107 | $(TOPDIR)hardware/qcom/audio/configs/sdm660/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml |
Dhananjay Kumar | d3ab9f4 | 2016-07-20 17:05:47 +0530 | [diff] [blame] | 108 | endif |
| 109 | PRODUCT_COPY_FILES += \ |
| 110 | $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:/system/etc/a2dp_audio_policy_configuration.xml \ |
| 111 | $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:/system/etc/audio_policy_volumes.xml \ |
| 112 | $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:/system/etc/default_volume_tables.xml \ |
| 113 | $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:/system/etc/r_submix_audio_policy_configuration.xml \ |
| 114 | $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:/system/etc/usb_audio_policy_configuration.xml |
| 115 | endif |
| 116 | |
| 117 | # Listen configuration file |
| 118 | PRODUCT_COPY_FILES += \ |
Arusha Goyal | fda2915 | 2016-12-26 10:53:39 +0530 | [diff] [blame] | 119 | hardware/qcom/audio/configs/sdm660/listen_platform_info.xml:system/etc/listen_platform_info.xml |
Dhananjay Kumar | d3ab9f4 | 2016-07-20 17:05:47 +0530 | [diff] [blame] | 120 | |
| 121 | # Reduce client buffer size for fast audio output tracks |
| 122 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 123 | af.fast_track_multiplier=1 |
| 124 | |
| 125 | # Low latency audio buffer size in frames |
| 126 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 127 | audio_hal.period_size=192 |
| 128 | |
| 129 | ##fluencetype can be "fluence" or "fluencepro" or "none" |
| 130 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 131 | ro.qc.sdk.audio.fluencetype=none\ |
| 132 | persist.audio.fluence.voicecall=true\ |
| 133 | persist.audio.fluence.voicerec=false\ |
| 134 | persist.audio.fluence.speaker=true |
| 135 | |
| 136 | #disable tunnel encoding |
| 137 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 138 | tunnel.audio.encode=false |
| 139 | |
Rohit Kumar | be6935f | 2017-01-20 14:58:34 +0530 | [diff] [blame] | 140 | #Disable RAS Feature by default |
| 141 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 142 | persist.audio.ras.enabled=false |
| 143 | |
Dhananjay Kumar | d3ab9f4 | 2016-07-20 17:05:47 +0530 | [diff] [blame] | 144 | #Buffer size in kbytes for compress offload playback |
| 145 | PRODUCT_PROPERTY_OVERRIDES += \ |
Ashish Jain | bb44d8a | 2017-01-02 11:18:44 +0530 | [diff] [blame] | 146 | audio.offload.buffer.size.kb=64 |
| 147 | |
| 148 | #Minimum duration for offload playback in secs |
| 149 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 150 | audio.offload.min.duration.secs=30 |
Dhananjay Kumar | d3ab9f4 | 2016-07-20 17:05:47 +0530 | [diff] [blame] | 151 | |
| 152 | #Enable offload audio video playback by default |
| 153 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 154 | audio.offload.video=true |
| 155 | |
| 156 | #Enable 16 bit PCM offload by default |
| 157 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 158 | audio.offload.pcm.16bit.enable=true |
| 159 | |
| 160 | #Enable 24 bit PCM offload by default |
| 161 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 162 | audio.offload.pcm.24bit.enable=true |
| 163 | |
| 164 | #Enable audio track offload by default |
| 165 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 166 | audio.offload.track.enable=true |
| 167 | |
| 168 | #Enable music through deep buffer |
| 169 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 170 | audio.deep_buffer.media=true |
| 171 | |
Aalique Grahame | ce9b6d4 | 2016-10-24 11:07:13 -0700 | [diff] [blame] | 172 | #QC property used when calculating client heap size in audio flinger |
Dhananjay Kumar | d3ab9f4 | 2016-07-20 17:05:47 +0530 | [diff] [blame] | 173 | PRODUCT_PROPERTY_OVERRIDES += \ |
Aalique Grahame | ce9b6d4 | 2016-10-24 11:07:13 -0700 | [diff] [blame] | 174 | audio.heap.size.multiplier=7 |
Dhananjay Kumar | d3ab9f4 | 2016-07-20 17:05:47 +0530 | [diff] [blame] | 175 | |
| 176 | #enable voice path for PCM VoIP by default |
| 177 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 178 | use.voice.path.for.pcm.voip=true |
| 179 | |
| 180 | #Enable multi channel aac through offload |
| 181 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 182 | audio.offload.multiaac.enable=true |
| 183 | |
| 184 | #Enable DS2, Hardbypass feature for Dolby |
| 185 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 186 | audio.dolby.ds2.enabled=true\ |
| 187 | audio.dolby.ds2.hardbypass=true |
| 188 | |
| 189 | #Disable Multiple offload sesison |
| 190 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 191 | audio.offload.multiple.enabled=false |
| 192 | |
Garmond Leung | e3e6108 | 2017-02-06 15:08:26 -0800 | [diff] [blame] | 193 | #Disable Compress passthrough playback |
Dhananjay Kumar | d3ab9f4 | 2016-07-20 17:05:47 +0530 | [diff] [blame] | 194 | PRODUCT_PROPERTY_OVERRIDES += \ |
Garmond Leung | e3e6108 | 2017-02-06 15:08:26 -0800 | [diff] [blame] | 195 | audio.offload.passthrough=false |
Dhananjay Kumar | d3ab9f4 | 2016-07-20 17:05:47 +0530 | [diff] [blame] | 196 | |
| 197 | #Disable surround sound recording |
| 198 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 199 | ro.qc.sdk.audio.ssr=false |
| 200 | |
| 201 | #enable dsp gapless mode by default |
| 202 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 203 | audio.offload.gapless.enabled=true |
| 204 | |
| 205 | #enable pbe effects |
| 206 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 207 | audio.safx.pbe.enabled=true |
| 208 | |
| 209 | #parser input buffer size(256kb) in byte stream mode |
| 210 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 211 | audio.parser.ip.buffer.size=262144 |
| 212 | |
Naresh Tanniru | 01223b9 | 2016-11-01 13:50:57 +0530 | [diff] [blame] | 213 | #flac sw decoder 24 bit decode capability |
| 214 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 215 | flac.sw.decoder.24bit.support=true |
| 216 | |
| 217 | #split a2dp DSP supported encoder list |
| 218 | PRODUCT_PROPERTY_OVERRIDES += \ |
Naresh Tanniru | ed694c8 | 2017-02-07 17:01:28 +0530 | [diff] [blame] | 219 | persist.bt.a2dp_offload_cap=sbc-aptx-aptxhd-aac |
Naresh Tanniru | 01223b9 | 2016-11-01 13:50:57 +0530 | [diff] [blame] | 220 | |
| 221 | #enable software decoders for ALAC and APE |
| 222 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 223 | use.qti.sw.alac.decoder=true |
| 224 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 225 | use.qti.sw.ape.decoder=true |
| 226 | |
| 227 | #enable hw aac encoder by default |
| 228 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 229 | qcom.hw.aac.encoder=true |
| 230 | |
| 231 | #Disable FM a2dp concurrency |
| 232 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 233 | fm.a2dp.conc.disabled=true |
| 234 | |
| 235 | #audio becoming noisy intent broadcast delay |
| 236 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 237 | audio.noisy.broadcast.delay=600 |
| 238 | |
| 239 | #Enable HIFI audio support for internal codec |
| 240 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 241 | persist.audio.hifi.int_codec=true |
Naresh Tanniru | ec59ba3 | 2016-12-21 19:11:50 +0530 | [diff] [blame] | 242 | |
| 243 | #offload pausetime out duration to 3 secs to inline with other outputs |
| 244 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 245 | audio.offload.pstimeout.secs=3 |
Dhananjay Kumar | 05f20b1 | 2017-03-31 03:46:42 +0530 | [diff] [blame] | 246 | |
| 247 | # for HIDL related packages |
| 248 | PRODUCT_PACKAGES += \ |
| 249 | android.hardware.audio@2.0-service \ |
| 250 | android.hardware.audio@2.0-impl \ |
| 251 | android.hardware.audio.effect@2.0-impl \ |
| 252 | android.hardware.soundtrigger@2.0-impl |