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