Ashish Jain | 1221b52 | 2016-03-30 15:09:20 +0530 | [diff] [blame] | 1 | ##AUDIO_FEATURE_FLAGS |
| 2 | |
| 3 | #BOARD_USES_GENERIC_AUDIO := true |
| 4 | BOARD_USES_ALSA_AUDIO := true |
| 5 | USE_CUSTOM_AUDIO_POLICY := 1 |
| 6 | BOARD_SUPPORTS_SOUND_TRIGGER := true |
| 7 | AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true |
| 8 | AUDIO_FEATURE_ENABLED_HIFI_AUDIO := true |
| 9 | AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true |
Abhishek Ranjan | c89058a | 2016-04-08 02:46:59 +0530 | [diff] [blame^] | 10 | #AUDIO_FEATURE_ENABLED_VOICE_CONCURRENCY := true |
Ashish Jain | 1221b52 | 2016-03-30 15:09:20 +0530 | [diff] [blame] | 11 | AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true |
| 12 | AUDIO_FEATURE_ENABLED_NT_PAUSE_TIMEOUT := true |
| 13 | AUDIO_FEATURE_ENABLED_ANC_HEADSET := true |
| 14 | AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false |
| 15 | AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true |
| 16 | AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true |
| 17 | AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true |
| 18 | AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true |
| 19 | AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := true |
| 20 | AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true |
| 21 | AUDIO_FEATURE_ENABLED_FLUENCE := true |
| 22 | AUDIO_FEATURE_ENABLED_HDMI_SPK := true |
| 23 | AUDIO_FEATURE_ENABLED_HDMI_EDID := true |
| 24 | AUDIO_FEATURE_ENABLED_EXT_HDMI := true |
| 25 | AUDIO_FEATURE_ENABLED_HFP := true |
| 26 | AUDIO_FEATURE_ENABLED_INCALL_MUSIC := false |
| 27 | AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true |
| 28 | AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true |
| 29 | AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true |
| 30 | AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true |
| 31 | AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true |
| 32 | AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true |
| 33 | AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true |
| 34 | AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true |
| 35 | #AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true |
| 36 | AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true |
| 37 | AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true |
| 38 | AUDIO_FEATURE_ENABLED_SSR := true |
| 39 | AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true |
| 40 | AUDIO_FEATURE_ENABLED_DTS_EAGLE := false |
| 41 | BOARD_USES_SRS_TRUEMEDIA := true |
| 42 | DTS_CODEC_M_ := true |
| 43 | AUDIO_FEATURE_ENABLED_DEV_ARBI := true |
| 44 | MM_AUDIO_ENABLED_FTM := true |
| 45 | MM_AUDIO_ENABLED_SAFX := true |
| 46 | TARGET_USES_QCOM_MM_AUDIO := true |
| 47 | AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false |
Abhishek Ranjan | c89058a | 2016-04-08 02:46:59 +0530 | [diff] [blame^] | 48 | #AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true |
Ashish Jain | 1221b52 | 2016-03-30 15:09:20 +0530 | [diff] [blame] | 49 | AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true |
| 50 | AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true |
| 51 | ##AUDIO_FEATURE_FLAGS |
| 52 | |
| 53 | ## Audio configuration file |
| 54 | |
| 55 | PRODUCT_COPY_FILES +=\ |
| 56 | hardware/qcom/audio/configs/msm8937/audio_policy.conf:system/etc/audio_policy.conf\ |
| 57 | hardware/qcom/audio/configs/msm8937/audio_output_policy.conf:system/vendor/etc/audio_output_policy.conf\ |
| 58 | hardware/qcom/audio/configs/msm8937/audio_effects.conf:system/vendor/etc/audio_effects.conf\ |
| 59 | hardware/qcom/audio/configs/msm8937/mixer_paths_mtp.xml:system/etc/mixer_paths_mtp.xml \ |
| 60 | hardware/qcom/audio/configs/msm8937/mixer_paths_qrd_skuh.xml:system/etc/mixer_paths_qrd_skuh.xml \ |
| 61 | hardware/qcom/audio/configs/msm8937/mixer_paths_qrd_skui.xml:system/etc/mixer_paths_qrd_skui.xml \ |
| 62 | hardware/qcom/audio/configs/msm8937/mixer_paths_qrd_skuhf.xml:system/etc/mixer_paths_qrd_skuhf.xml \ |
| 63 | hardware/qcom/audio/configs/msm8937/mixer_paths_wcd9306.xml:system/etc/mixer_paths_wcd9306.xml \ |
| 64 | hardware/qcom/audio/configs/msm8937/mixer_paths_skuk.xml:system/etc/mixer_paths_skuk.xml \ |
| 65 | hardware/qcom/audio/configs/msm8937/mixer_paths_qrd_skum.xml:system/etc/mixer_paths_qrd_skum.xml \ |
| 66 | hardware/qcom/audio/configs/msm8937/mixer_paths.xml:system/etc/mixer_paths.xml \ |
| 67 | hardware/qcom/audio/configs/msm8937/sound_trigger_mixer_paths.xml:system/etc/sound_trigger_mixer_paths.xml \ |
| 68 | hardware/qcom/audio/configs/msm8937/sound_trigger_mixer_paths_wcd9306.xml:system/etc/sound_trigger_mixer_paths_wcd9306.xml \ |
| 69 | hardware/qcom/audio/configs/msm8937/sound_trigger_mixer_paths_wcd9330.xml:system/etc/sound_trigger_mixer_paths_wcd9330.xml \ |
| 70 | hardware/qcom/audio/configs/msm8937/sound_trigger_mixer_paths_wcd9335.xml:system/etc/sound_trigger_mixer_paths_wcd9335.xml \ |
| 71 | hardware/qcom/audio/configs/msm8937/sound_trigger_platform_info.xml:system/etc/sound_trigger_platform_info.xml \ |
| 72 | hardware/qcom/audio/configs/msm8937/mixer_paths_wcd9330.xml:system/etc/mixer_paths_wcd9330.xml \ |
| 73 | hardware/qcom/audio/configs/msm8937/mixer_paths_wcd9335.xml:system/etc/mixer_paths_wcd9335.xml \ |
| 74 | hardware/qcom/audio/configs/msm8937/mixer_paths_wcd9326.xml:system/etc/mixer_paths_wcd9326.xml \ |
| 75 | hardware/qcom/audio/configs/msm8937/mixer_paths_qrd_skun.xml:system/etc/mixer_paths_qrd_skun.xml \ |
| 76 | hardware/qcom/audio/configs/msm8937/mixer_paths_qrd_sku1.xml:system/etc/mixer_paths_qrd_sku1.xml \ |
| 77 | hardware/qcom/audio/configs/msm8937/mixer_paths_qrd_sku2.xml:system/etc/mixer_paths_qrd_sku2.xml \ |
| 78 | hardware/qcom/audio/configs/msm8937/audio_platform_info.xml:system/etc/audio_platform_info.xml \ |
| 79 | hardware/qcom/audio/configs/msm8937/audio_platform_info_extcodec.xml:system/etc/audio_platform_info_extcodec.xml \ |
| 80 | hardware/qcom/audio/configs/msm8937/aanc_tuning_mixer.txt:system/etc/aanc_tuning_mixer.txt |
| 81 | |
| 82 | # Reduce client buffer size for fast audio output tracks |
| 83 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 84 | af.fast_track_multiplier=1 |
| 85 | |
| 86 | # Low latency audio buffer size in frames |
| 87 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 88 | audio_hal.period_size=192 |
| 89 | |
| 90 | ##fluencetype can be "fluence" or "fluencepro" or "none" |
| 91 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 92 | ro.qc.sdk.audio.fluencetype=none\ |
| 93 | persist.audio.fluence.voicecall=true\ |
| 94 | persist.audio.fluence.voicerec=false\ |
| 95 | persist.audio.fluence.speaker=true |
| 96 | |
| 97 | #disable tunnel encoding |
| 98 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 99 | tunnel.audio.encode=false |
| 100 | |
| 101 | #Buffer size in kbytes for compress offload playback |
| 102 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 103 | audio.offload.buffer.size.kb=64 |
| 104 | |
| 105 | #Minimum duration for offload playback in secs |
| 106 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 107 | audio.offload.min.duration.secs=30 |
| 108 | |
| 109 | #Enable offload audio video playback by default |
| 110 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 111 | audio.offload.video=true |
| 112 | |
| 113 | #Enable 16 bit PCM offload by default |
| 114 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 115 | audio.offload.pcm.16bit.enable=true |
| 116 | |
| 117 | #Enable 24 bit PCM offload by default |
| 118 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 119 | audio.offload.pcm.24bit.enable=true |
| 120 | |
| 121 | #Enable audio track offload by default |
| 122 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 123 | audio.offload.track.enable=true |
| 124 | |
| 125 | #Enable music through deep buffer |
| 126 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 127 | audio.deep_buffer.media=true |
| 128 | |
| 129 | #enable voice path for PCM VoIP by default |
| 130 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 131 | use.voice.path.for.pcm.voip=true |
| 132 | |
| 133 | #Enable multi channel aac through offload |
| 134 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 135 | audio.offload.multiaac.enable=true |
| 136 | |
| 137 | #Enable DS2, Hardbypass feature for Dolby |
| 138 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 139 | audio.dolby.ds2.enabled=true\ |
| 140 | audio.dolby.ds2.hardbypass=true |
| 141 | |
| 142 | #Disable Multiple offload sesison |
| 143 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 144 | audio.offload.multiple.enabled=false |
| 145 | |
| 146 | #Disable Compress passthrough playback |
| 147 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 148 | audio.offload.passthrough=false |
| 149 | |
| 150 | #Disable surround sound recording |
| 151 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 152 | ro.qc.sdk.audio.ssr=false |
| 153 | |
| 154 | #enable dsp gapless mode by default |
| 155 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 156 | audio.offload.gapless.enabled=true |
| 157 | |
| 158 | #enable pbe effects |
| 159 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 160 | audio.safx.pbe.enabled=true |
| 161 | |
| 162 | #parser input buffer size(256kb) in byte stream mode |
| 163 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 164 | audio.parser.ip.buffer.size=262144 |
| 165 | |
| 166 | #enable downsampling for multi-channel content > 48Khz |
| 167 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 168 | audio.playback.mch.downsample=true |
| 169 | |
| 170 | #enable software decoders for ALAC and APE. |
| 171 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 172 | use.qti.sw.alac.decoder=true\ |
| 173 | use.qti.sw.ape.decoder=true |
| 174 | |
| 175 | #property for AudioSphere Post processing |
| 176 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 177 | audio.pp.asphere.enabled=false |
| 178 | |
| 179 | #Audio voice concurrency related flags |
| 180 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 181 | voice.playback.conc.disabled=true\ |
| 182 | voice.record.conc.disabled=false\ |
| 183 | voice.voip.conc.disabled=true |
| 184 | |
| 185 | #Decides the audio fallback path during voice call, |
| 186 | #deep-buffer and fast are the two allowed fallback paths now. |
| 187 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 188 | voice.conc.fallbackpath=deep-buffer |
| 189 | |
| 190 | #Disable speaker protection by default |
| 191 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 192 | persist.speaker.prot.enable=false |
| 193 | |
| 194 | #Enable HW AAC Encoder by default |
| 195 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 196 | qcom.hw.aac.encoder=true |