Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 1 | #BOARD_USES_GENERIC_AUDIO := true |
| 2 | # |
| 3 | #AUDIO_FEATURE_FLAGS |
| 4 | BOARD_USES_ALSA_AUDIO := true |
| 5 | |
| 6 | ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true) |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 7 | AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false |
Vikram Panduranga | 93f080e | 2017-06-07 18:16:14 -0700 | [diff] [blame] | 8 | AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := false |
Vikram Panduranga | df59cae | 2017-08-03 18:04:55 -0700 | [diff] [blame] | 9 | AUDIO_FEATURE_ENABLED_DYNAMIC_ECNS := false |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 10 | AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true |
| 11 | AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true |
| 12 | AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := true |
| 13 | AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true |
| 14 | AUDIO_FEATURE_ENABLED_HDMI_SPK := true |
| 15 | AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true |
| 16 | AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true |
| 17 | AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true |
| 18 | AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true |
| 19 | AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true |
| 20 | AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true |
| 21 | AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true |
| 22 | AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true |
| 23 | AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true |
Ramjee Singh | 3a836cd | 2018-04-06 19:28:20 +0530 | [diff] [blame] | 24 | AUDIO_FEATURE_ENABLED_SSR := true |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 25 | AUDIO_FEATURE_ENABLED_DTS_EAGLE := false |
| 26 | BOARD_USES_SRS_TRUEMEDIA := false |
| 27 | DTS_CODEC_M_ := false |
| 28 | MM_AUDIO_ENABLED_SAFX := true |
| 29 | AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false |
| 30 | AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true |
Aalique Grahame | 57058a6 | 2019-01-10 10:30:17 -0800 | [diff] [blame] | 31 | AUDIO_FEATURE_ENABLED_USB_TUNNEL := true |
| 32 | AUDIO_FEATURE_ENABLED_A2DP_OFFLOAD := true |
Weiyin Jiang | b21d094 | 2018-03-21 15:32:42 +0800 | [diff] [blame] | 33 | AUDIO_FEATURE_ENABLED_3D_AUDIO := true |
Sujin Panicker | b904fbe | 2019-04-04 13:28:07 +0530 | [diff] [blame] | 34 | AUDIO_FEATURE_ENABLED_AHAL_EXT := false |
Dhananjay Kumar | 29b894e | 2017-04-05 02:41:14 +0530 | [diff] [blame] | 35 | DOLBY_ENABLE := false |
Soumil Shah | 196157e | 2018-01-22 17:39:48 -0800 | [diff] [blame] | 36 | TARGET_USES_QCOM_MM_AUDIO := true |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 37 | endif |
| 38 | |
| 39 | USE_XML_AUDIO_POLICY_CONF := 1 |
| 40 | BOARD_SUPPORTS_SOUND_TRIGGER := true |
Aalique Grahame | 57058a6 | 2019-01-10 10:30:17 -0800 | [diff] [blame] | 41 | AUDIO_USE_DEEP_AS_PRIMARY_OUTPUT := false |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 42 | AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true |
| 43 | AUDIO_FEATURE_ENABLED_ANC_HEADSET := true |
| 44 | AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true |
| 45 | AUDIO_FEATURE_ENABLED_FLUENCE := true |
| 46 | AUDIO_FEATURE_ENABLED_HDMI_EDID := true |
| 47 | AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH := true |
| 48 | #AUDIO_FEATURE_ENABLED_KEEP_ALIVE := true |
| 49 | AUDIO_FEATURE_ENABLED_DISPLAY_PORT := true |
Aalique Grahame | 28395ec | 2017-05-18 11:12:23 -0700 | [diff] [blame] | 50 | AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := false |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 51 | AUDIO_FEATURE_ENABLED_HFP := true |
| 52 | AUDIO_FEATURE_ENABLED_INCALL_MUSIC := false |
| 53 | AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true |
| 54 | AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true |
| 55 | AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true |
Aalique Grahame | 28395ec | 2017-05-18 11:12:23 -0700 | [diff] [blame] | 56 | AUDIO_FEATURE_ENABLED_ACDB_LICENSE := false |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 57 | AUDIO_FEATURE_ENABLED_DEV_ARBI := false |
Revathi Uddaraju | 074d9c6 | 2017-09-13 15:10:29 +0530 | [diff] [blame] | 58 | AUDIO_FEATURE_ENABLED_DYNAMIC_LOG := true |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 59 | MM_AUDIO_ENABLED_FTM := true |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 60 | AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true |
| 61 | AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true |
Aalique Grahame | 190cfcb | 2017-04-21 11:54:14 -0700 | [diff] [blame] | 62 | BOARD_SUPPORTS_QAHW := false |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 63 | AUDIO_FEATURE_ENABLED_RAS := true |
Dhananjay Kumar | e6293dd | 2017-05-25 17:25:30 +0530 | [diff] [blame] | 64 | AUDIO_FEATURE_ENABLED_SND_MONITOR := true |
Quinn Male | da12c33 | 2018-06-18 11:07:15 -0700 | [diff] [blame] | 65 | AUDIO_FEATURE_ENABLED_SVA_MULTI_STAGE := true |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 66 | ##AUDIO_FEATURE_FLAGS |
| 67 | |
Manisha Agarwal | af4cc5e | 2019-04-02 21:01:58 +0530 | [diff] [blame] | 68 | AUDIO_HARDWARE := audio.a2dp.default |
| 69 | AUDIO_HARDWARE += audio.usb.default |
| 70 | AUDIO_HARDWARE += audio.r_submix.default |
| 71 | AUDIO_HARDWARE += audio.primary.sdm845 |
| 72 | |
| 73 | #HAL Wrapper |
| 74 | AUDIO_WRAPPER := libqahw |
| 75 | AUDIO_WRAPPER += libqahwwrapper |
| 76 | |
| 77 | #HAL Test app |
| 78 | AUDIO_HAL_TEST_APPS := hal_play_test |
| 79 | AUDIO_HAL_TEST_APPS += hal_rec_test |
| 80 | |
| 81 | PRODUCT_PACKAGES += $(AUDIO_HARDWARE) |
| 82 | PRODUCT_PACKAGES += $(AUDIO_WRAPPER) |
| 83 | PRODUCT_PACKAGES += $(AUDIO_HAL_TEST_APPS) |
| 84 | |
| 85 | BOARD_VENDOR_KERNEL_MODULES := \ |
| 86 | $(KERNEL_MODULES_OUT)/qca_cld3_wlan.ko \ |
| 87 | $(KERNEL_MODULES_OUT)/wcd-core.ko \ |
| 88 | $(KERNEL_MODULES_OUT)/pinctrl-wcd.ko \ |
| 89 | $(KERNEL_MODULES_OUT)/swr-wcd-ctrl.ko \ |
| 90 | $(KERNEL_MODULES_OUT)/snd-soc-wcd9xxx.ko \ |
| 91 | $(KERNEL_MODULES_OUT)/wcd-dsp-glink.ko \ |
| 92 | $(KERNEL_MODULES_OUT)/snd-soc-wcd934x.ko \ |
| 93 | $(KERNEL_MODULES_OUT)/snd-soc-wcd-mbhc.ko \ |
| 94 | $(KERNEL_MODULES_OUT)/snd-soc-wsa881x.ko \ |
| 95 | $(KERNEL_MODULES_OUT)/snd-soc-sdm845.ko \ |
| 96 | $(KERNEL_MODULES_OUT)/snd-soc-wcd-spi.ko \ |
| 97 | $(KERNEL_MODULES_OUT)/llcc_perfmon.ko |
| 98 | |
shoudil | ad09f43 | 2018-07-25 16:58:12 +0800 | [diff] [blame] | 99 | ifneq ($(strip $(TARGET_USES_RRO)), true) |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 100 | #Audio Specific device overlays |
Aalique Grahame | 57058a6 | 2019-01-10 10:30:17 -0800 | [diff] [blame] | 101 | DEVICE_PACKAGE_OVERLAYS += vendor/qcom/opensource/audio-hal/primary-hal/configs/common/overlay |
shoudil | 2b5e848 | 2018-05-23 17:11:17 +0800 | [diff] [blame] | 102 | endif |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 103 | |
| 104 | # Audio configuration file |
Aalique Grahame | 190cfcb | 2017-04-21 11:54:14 -0700 | [diff] [blame] | 105 | ifeq ($(TARGET_USES_AOSP_FOR_AUDIO), true) |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 106 | PRODUCT_COPY_FILES += \ |
Aalique Grahame | 57058a6 | 2019-01-10 10:30:17 -0800 | [diff] [blame] | 107 | device/qcom/common/media/audio_policy.conf:vendor/etc/audio_policy.conf |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 108 | else |
| 109 | PRODUCT_COPY_FILES += \ |
Aalique Grahame | 57058a6 | 2019-01-10 10:30:17 -0800 | [diff] [blame] | 110 | vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm845/audio_policy.conf:vendor/etc/audio_policy.conf |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 111 | endif |
| 112 | |
| 113 | PRODUCT_COPY_FILES += \ |
Aalique Grahame | 57058a6 | 2019-01-10 10:30:17 -0800 | [diff] [blame] | 114 | vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm845/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \ |
| 115 | vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm845/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \ |
| 116 | vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm845/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ |
| 117 | vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm845/mixer_paths_tavil.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tavil.xml \ |
| 118 | vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm845/mixer_paths_skuk.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_skuk.xml \ |
| 119 | vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm845/mixer_paths_qvr.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_qvr.xml \ |
| 120 | vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm845/mixer_paths_i2s.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_i2s.xml \ |
| 121 | vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm845/audio_tuning_mixer_tavil.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer_tavil.txt \ |
| 122 | vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm845/audio_platform_info_i2s.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_i2s.xml \ |
| 123 | vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm845/sound_trigger_mixer_paths_wcd9340.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9340.xml \ |
| 124 | vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm845/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \ |
| 125 | vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm845/graphite_ipc_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/graphite_ipc_platform_info.xml \ |
Sujin Panicker | b904fbe | 2019-04-04 13:28:07 +0530 | [diff] [blame] | 126 | vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm845/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \ |
| 127 | vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm845/audio_configs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_configs.xml |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 128 | |
| 129 | #XML Audio configuration files |
| 130 | ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1) |
Dhananjay Kumar | aeb58fd | 2017-07-14 22:45:34 +0530 | [diff] [blame] | 131 | ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true) |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 132 | PRODUCT_COPY_FILES += \ |
Aalique Grahame | 57058a6 | 2019-01-10 10:30:17 -0800 | [diff] [blame] | 133 | $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm845/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 134 | endif |
| 135 | PRODUCT_COPY_FILES += \ |
Aalique Grahame | 57058a6 | 2019-01-10 10:30:17 -0800 | [diff] [blame] | 136 | $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ |
Dhananjay Kumar | aeb58fd | 2017-07-14 22:45:34 +0530 | [diff] [blame] | 137 | $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \ |
| 138 | $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ |
| 139 | $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ |
| 140 | $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ |
| 141 | $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 142 | endif |
| 143 | |
| 144 | # Listen configuration file |
| 145 | PRODUCT_COPY_FILES += \ |
Aalique Grahame | 57058a6 | 2019-01-10 10:30:17 -0800 | [diff] [blame] | 146 | vendor/qcom/opensource/audio-hal/primary-hal/configs/sdm845/listen_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/listen_platform_info.xml |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 147 | |
| 148 | # Reduce client buffer size for fast audio output tracks |
| 149 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 150 | af.fast_track_multiplier=1 |
| 151 | |
| 152 | # Low latency audio buffer size in frames |
| 153 | PRODUCT_PROPERTY_OVERRIDES += \ |
Aniket Kumar Lata | e1fcd93 | 2017-04-25 11:19:00 -0700 | [diff] [blame] | 154 | vendor.audio_hal.period_size=192 |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 155 | |
| 156 | ##fluencetype can be "fluence" or "fluencepro" or "none" |
| 157 | PRODUCT_PROPERTY_OVERRIDES += \ |
Aniket Kumar Lata | e1fcd93 | 2017-04-25 11:19:00 -0700 | [diff] [blame] | 158 | ro.vendor.audio.sdk.fluencetype=none\ |
| 159 | persist.vendor.audio.fluence.voicecall=true\ |
| 160 | persist.vendor.audio.fluence.voicerec=false\ |
| 161 | persist.vendor.audio.fluence.speaker=true |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 162 | |
Manisha Agarwal | af4cc5e | 2019-04-02 21:01:58 +0530 | [diff] [blame] | 163 | # |
| 164 | #snapdragon value add features |
| 165 | # |
| 166 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 167 | ro.qc.sdk.audio.ssr=false |
| 168 | |
| 169 | ##fluencetype can be "fluence" or "fluencepro" or "none" |
| 170 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 171 | ro.qc.sdk.audio.fluencetype=none\ |
| 172 | persist.audio.fluence.voicecall=true\ |
| 173 | persist.audio.fluence.voicerec=false\ |
| 174 | persist.audio.fluence.speaker=true |
| 175 | |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 176 | #disable tunnel encoding |
| 177 | PRODUCT_PROPERTY_OVERRIDES += \ |
Aniket Kumar Lata | e1fcd93 | 2017-04-25 11:19:00 -0700 | [diff] [blame] | 178 | vendor.audio.tunnel.encode=false |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 179 | |
| 180 | #Disable RAS Feature by default |
| 181 | PRODUCT_PROPERTY_OVERRIDES += \ |
Aniket Kumar Lata | e1fcd93 | 2017-04-25 11:19:00 -0700 | [diff] [blame] | 182 | persist.vendor.audio.ras.enabled=false |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 183 | |
| 184 | #Buffer size in kbytes for compress offload playback |
| 185 | PRODUCT_PROPERTY_OVERRIDES += \ |
Aniket Kumar Lata | e1fcd93 | 2017-04-25 11:19:00 -0700 | [diff] [blame] | 186 | vendor.audio.offload.buffer.size.kb=32 |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 187 | |
| 188 | #Enable offload audio video playback by default |
| 189 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 190 | audio.offload.video=true |
| 191 | |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 192 | #Enable audio track offload by default |
| 193 | PRODUCT_PROPERTY_OVERRIDES += \ |
Aniket Kumar Lata | e1fcd93 | 2017-04-25 11:19:00 -0700 | [diff] [blame] | 194 | vendor.audio.offload.track.enable=true |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 195 | |
| 196 | #Enable music through deep buffer |
| 197 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 198 | audio.deep_buffer.media=true |
| 199 | |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 200 | #enable voice path for PCM VoIP by default |
| 201 | PRODUCT_PROPERTY_OVERRIDES += \ |
Aniket Kumar Lata | e1fcd93 | 2017-04-25 11:19:00 -0700 | [diff] [blame] | 202 | vendor.voice.path.for.pcm.voip=true |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 203 | |
| 204 | #Enable multi channel aac through offload |
| 205 | PRODUCT_PROPERTY_OVERRIDES += \ |
Aniket Kumar Lata | e1fcd93 | 2017-04-25 11:19:00 -0700 | [diff] [blame] | 206 | vendor.audio.offload.multiaac.enable=true |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 207 | |
| 208 | #Enable DS2, Hardbypass feature for Dolby |
| 209 | PRODUCT_PROPERTY_OVERRIDES += \ |
Aniket Kumar Lata | e1fcd93 | 2017-04-25 11:19:00 -0700 | [diff] [blame] | 210 | vendor.audio.dolby.ds2.enabled=false\ |
| 211 | vendor.audio.dolby.ds2.hardbypass=false |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 212 | |
| 213 | #Disable Multiple offload sesison |
| 214 | PRODUCT_PROPERTY_OVERRIDES += \ |
Aniket Kumar Lata | e1fcd93 | 2017-04-25 11:19:00 -0700 | [diff] [blame] | 215 | vendor.audio.offload.multiple.enabled=false |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 216 | |
| 217 | #Disable Compress passthrough playback |
| 218 | PRODUCT_PROPERTY_OVERRIDES += \ |
Aniket Kumar Lata | e1fcd93 | 2017-04-25 11:19:00 -0700 | [diff] [blame] | 219 | vendor.audio.offload.passthrough=false |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 220 | |
| 221 | #Disable surround sound recording |
| 222 | PRODUCT_PROPERTY_OVERRIDES += \ |
Aniket Kumar Lata | e1fcd93 | 2017-04-25 11:19:00 -0700 | [diff] [blame] | 223 | ro.vendor.audio.sdk.ssr=false |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 224 | |
| 225 | #enable dsp gapless mode by default |
| 226 | PRODUCT_PROPERTY_OVERRIDES += \ |
Aniket Kumar Lata | e1fcd93 | 2017-04-25 11:19:00 -0700 | [diff] [blame] | 227 | vendor.audio.offload.gapless.enabled=true |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 228 | |
| 229 | #enable pbe effects |
| 230 | PRODUCT_PROPERTY_OVERRIDES += \ |
Aniket Kumar Lata | e1fcd93 | 2017-04-25 11:19:00 -0700 | [diff] [blame] | 231 | vendor.audio.safx.pbe.enabled=true |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 232 | |
| 233 | #parser input buffer size(256kb) in byte stream mode |
| 234 | PRODUCT_PROPERTY_OVERRIDES += \ |
Aniket Kumar Lata | e1fcd93 | 2017-04-25 11:19:00 -0700 | [diff] [blame] | 235 | vendor.audio.parser.ip.buffer.size=262144 |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 236 | |
| 237 | #flac sw decoder 24 bit decode capability |
| 238 | PRODUCT_PROPERTY_OVERRIDES += \ |
Aniket Kumar Lata | e1fcd93 | 2017-04-25 11:19:00 -0700 | [diff] [blame] | 239 | vendor.audio.flac.sw.decoder.24bit=true |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 240 | |
| 241 | #split a2dp DSP supported encoder list |
| 242 | PRODUCT_PROPERTY_OVERRIDES += \ |
Manisha Agarwal | 5757014 | 2018-06-18 12:24:04 +0530 | [diff] [blame] | 243 | persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aac-ldac |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 244 | |
Aalique Grahame | 57058a6 | 2019-01-10 10:30:17 -0800 | [diff] [blame] | 245 | # A2DP offload support |
| 246 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 247 | ro.bluetooth.a2dp_offload.supported=true |
| 248 | |
| 249 | # Disable A2DP offload |
| 250 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 251 | persist.bluetooth.a2dp_offload.disabled=false |
| 252 | |
| 253 | # A2DP offload DSP supported encoder list |
| 254 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 255 | persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac |
| 256 | |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 257 | #enable software decoders for ALAC and APE |
| 258 | PRODUCT_PROPERTY_OVERRIDES += \ |
Aniket Kumar Lata | e1fcd93 | 2017-04-25 11:19:00 -0700 | [diff] [blame] | 259 | vendor.audio.use.sw.alac.decoder=true |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 260 | PRODUCT_PROPERTY_OVERRIDES += \ |
Aniket Kumar Lata | e1fcd93 | 2017-04-25 11:19:00 -0700 | [diff] [blame] | 261 | vendor.audio.use.sw.ape.decoder=true |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 262 | |
| 263 | #enable hw aac encoder by default |
| 264 | PRODUCT_PROPERTY_OVERRIDES += \ |
Aniket Kumar Lata | e1fcd93 | 2017-04-25 11:19:00 -0700 | [diff] [blame] | 265 | vendor.audio.hw.aac.encoder=true |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 266 | |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 267 | #audio becoming noisy intent broadcast delay |
| 268 | PRODUCT_PROPERTY_OVERRIDES += \ |
Weiyin Jiang | b21ff8c | 2019-04-28 10:38:30 +0800 | [diff] [blame^] | 269 | audio.sys.noisy.broadcast.delay=600 |
Xiaoyu Ye | 4322f15 | 2017-03-17 12:34:03 -0700 | [diff] [blame] | 270 | |
| 271 | #offload pausetime out duration to 3 secs to inline with other outputs |
| 272 | PRODUCT_PROPERTY_OVERRIDES += \ |
Weiyin Jiang | b21ff8c | 2019-04-28 10:38:30 +0800 | [diff] [blame^] | 273 | audio.sys.offload.pstimeout.secs=3 |
Aalique Grahame | 190cfcb | 2017-04-21 11:54:14 -0700 | [diff] [blame] | 274 | |
Satya Krishna Pindiproli | 650ea15 | 2017-09-13 17:10:38 +0530 | [diff] [blame] | 275 | #Set AudioFlinger client heap size |
| 276 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 277 | ro.af.client_heap_size_kbyte=7168 |
| 278 | |
Dhananjay Kumar | 57ceeb7 | 2017-10-11 22:49:28 +0530 | [diff] [blame] | 279 | #Set HAL buffer size to samples equal to 3 ms |
| 280 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 281 | vendor.audio_hal.in_period_size=144 |
| 282 | |
| 283 | #Set HAL buffer size to 3 ms |
| 284 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 285 | vendor.audio_hal.period_multiplier=3 |
| 286 | |
| 287 | #ADM Buffering size in ms |
| 288 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 289 | vendor.audio.adm.buffering.ms=2 |
| 290 | |
Aniket Kumar Lata | c78a343 | 2017-11-06 18:18:52 -0800 | [diff] [blame] | 291 | #enable keytone FR |
| 292 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 293 | vendor.audio.hal.output.suspend.supported=true |
| 294 | |
Aalique Grahame | d941eae | 2017-12-01 15:36:47 -0800 | [diff] [blame] | 295 | #enable use of display-port for voice usecases |
Aalique Grahame | 99d4563 | 2017-12-11 17:35:41 -0800 | [diff] [blame] | 296 | PRODUCT_PROPERTY_OVERRIDES += \ |
Aalique Grahame | d941eae | 2017-12-01 15:36:47 -0800 | [diff] [blame] | 297 | vendor.audio.enable.dp.for.voice=false |
| 298 | |
Aalique Grahame | 57058a6 | 2019-01-10 10:30:17 -0800 | [diff] [blame] | 299 | #enable headset calibration |
| 300 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 301 | audio.volume.headset.gain.depcal=true |
| 302 | |
| 303 | #enable dualmic fluence for voice communication |
| 304 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 305 | persist.audio.fluence.voicecomm=true |
| 306 | |
Aalique Grahame | 190cfcb | 2017-04-21 11:54:14 -0700 | [diff] [blame] | 307 | # for HIDL related packages |
| 308 | PRODUCT_PACKAGES += \ |
| 309 | android.hardware.audio@2.0-service \ |
| 310 | android.hardware.audio@2.0-impl \ |
| 311 | android.hardware.audio.effect@2.0-impl \ |
Revathi Uddaraju | 22894cc | 2018-04-26 18:10:40 +0530 | [diff] [blame] | 312 | android.hardware.soundtrigger@2.1-impl \ |
| 313 | android.hardware.audio@4.0 \ |
| 314 | android.hardware.audio.common@4.0 \ |
| 315 | android.hardware.audio.common@4.0-util \ |
| 316 | android.hardware.audio@4.0-impl \ |
| 317 | android.hardware.audio.effect@4.0 \ |
| 318 | android.hardware.audio.effect@4.0-impl |
Samyak Jain | 6df8ce8 | 2019-03-22 14:26:24 +0530 | [diff] [blame] | 319 | |
| 320 | PRODUCT_PACKAGES_ENG += \ |
| 321 | VoicePrintTest \ |
| 322 | VoicePrintDemo |
| 323 | |
| 324 | PRODUCT_PACKAGES_DEBUG += \ |
| 325 | AudioSettings |