Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 1 | # audio_properties.mk |
| 2 | # |
| 3 | # Product-specific audio property definitions. |
| 4 | # Taken as it is from vendor/qcom/opensource/audio-hal/primary-hal/configs/msm8953/msm8953.mk |
| 5 | # |
| 6 | |
| 7 | # Reduce client buffer size for fast audio output tracks |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 8 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 9 | af.fast_track_multiplier=1 |
| 10 | |
| 11 | #Low latency audio buffer size in frames |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 12 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 13 | vendor.audio_hal.period_size=192 |
| 14 | |
| 15 | ##fluencetype can be "fluence" or "fluencepro" or "none" |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 16 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 17 | ro.vendor.audio.sdk.fluencetype=none\ |
| 18 | persist.vendor.audio.fluence.voicecall=true\ |
| 19 | persist.vendor.audio.fluence.voicerec=false\ |
| 20 | persist.vendor.audio.fluence.speaker=true |
| 21 | |
| 22 | #disable tunnel encoding |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 23 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 24 | vendor.audio.tunnel.encode=false |
| 25 | |
| 26 | #Buffer size in kbytes for compress offload playback |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 27 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 28 | vendor.audio.offload.buffer.size.kb=64 |
| 29 | |
| 30 | #Minimum duration for offload playback in secs |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 31 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 32 | audio.offload.min.duration.secs=30 |
| 33 | |
| 34 | #Enable offload audio video playback by default |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 35 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 36 | audio.offload.video=true |
| 37 | |
| 38 | #Enable audio track offload by default |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 39 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 40 | vendor.audio.offload.track.enable=true |
| 41 | |
| 42 | #Enable music through deep buffer |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 43 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 44 | audio.deep_buffer.media=true |
| 45 | |
| 46 | #enable voice path for PCM VoIP by default |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 47 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 48 | vendor.voice.path.for.pcm.voip=true |
| 49 | |
| 50 | #Enable multi channel aac through offload |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 51 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 52 | vendor.audio.offload.multiaac.enable=true |
| 53 | |
| 54 | #Enable DS2, Hardbypass feature for Dolby |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 55 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 56 | vendor.audio.dolby.ds2.enabled=false\ |
| 57 | vendor.audio.dolby.ds2.hardbypass=false |
| 58 | |
| 59 | #Disable Multiple offload sesison |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 60 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 61 | vendor.audio.offload.multiple.enabled=false |
| 62 | |
| 63 | #Disable Compress passthrough playback |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 64 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 65 | vendor.audio.offload.passthrough=false |
| 66 | |
| 67 | #Disable surround sound recording |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 68 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 69 | ro.vendor.audio.sdk.ssr=false |
| 70 | |
| 71 | #enable dsp gapless mode by default |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 72 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 73 | vendor.audio.offload.gapless.enabled=true |
| 74 | |
| 75 | #enable pbe effects |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 76 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 77 | vendor.audio.safx.pbe.enabled=true |
| 78 | |
| 79 | #parser input buffer size(256kb) in byte stream mode |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 80 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 81 | vendor.audio.parser.ip.buffer.size=262144 |
| 82 | |
| 83 | #enable downsampling for multi-channel content > 48Khz |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 84 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 85 | vendor.audio.playback.mch.downsample=true |
| 86 | |
| 87 | #enable software decoders for ALAC and APE. |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 88 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | a9160f9 | 2022-06-16 15:27:46 +0530 | [diff] [blame] | 89 | vendor.audio.use.sw.alac.decoder=false\ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 90 | vendor.audio.use.sw.ape.decoder=true |
| 91 | |
| 92 | #property for AudioSphere Post processing |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 93 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 94 | vendor.audio.pp.asphere.enabled=false |
| 95 | |
| 96 | #Audio voice concurrency related flags |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 97 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 98 | vendor.voice.playback.conc.disabled=true\ |
| 99 | vendor.voice.record.conc.disabled=false\ |
| 100 | vendor.voice.voip.conc.disabled=true |
| 101 | |
| 102 | #Decides the audio fallback path during voice call, |
| 103 | #deep-buffer and fast are the two allowed fallback paths now. |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 104 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 105 | vendor.voice.conc.fallbackpath=deep-buffer |
| 106 | |
| 107 | #Disable speaker protection by default |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 108 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 109 | persist.vendor.audio.speaker.prot.enable=false |
| 110 | |
| 111 | #Enable HW AAC Encoder by default |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 112 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 113 | vendor.audio.hw.aac.encoder=true |
| 114 | |
| 115 | #flac sw decoder 24 bit decode capability |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 116 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 117 | vendor.audio.flac.sw.decoder.24bit=true |
| 118 | |
| 119 | #timeout crash duration set to 20sec before system is ready. |
| 120 | #timeout duration updates to default timeout of 5sec once the system is ready. |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 121 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 122 | vendor.audio.hal.boot.timeout.ms=20000 |
| 123 | |
| 124 | #read wsatz name from thermal zone type |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 125 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 126 | vendor.audio.read.wsatz.type=true |
| 127 | |
| 128 | #Set AudioFlinger client heap size |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 129 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 130 | ro.af.client_heap_size_kbyte=7168 |
| 131 | |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 132 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 133 | persist.vendor.audio.hw.binder.size_kbyte=1024 |
| 134 | |
| 135 | #Set speaker protection cal tx path sampling rate to 48k |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 136 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 137 | vendor.audio.spkr_prot.tx.sampling_rate=48000 |
| 138 | |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 139 | PRODUCT_VENDOR_PROPERTIES += \ |
jackliao | 4ba8fda | 2021-04-19 09:14:13 +0800 | [diff] [blame] | 140 | ro.config.vc_call_vol_steps=7 |
| 141 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 142 | # add dynamic feature flags here |
Bharath | dec7637 | 2022-10-10 20:15:42 +0530 | [diff] [blame] | 143 | PRODUCT_VENDOR_PROPERTIES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 144 | vendor.audio.feature.snd_mon.enable=true \ |
| 145 | vendor.audio.feature.compr_cap.enable=false \ |
| 146 | vendor.audio.feature.hifi_audio.enable=true \ |
| 147 | vendor.audio.feature.hdmi_edid.enable=true \ |
| 148 | vendor.audio.feature.dsm_feedback.enable=false \ |
| 149 | vendor.audio.feature.ssrec.enable=true \ |
| 150 | vendor.audio.feature.compr_voip.enable=true \ |
| 151 | vendor.audio.feature.kpi_optimize.enable=true \ |
| 152 | vendor.audio.feature.usb_offload.enable=false \ |
| 153 | vendor.audio.feature.usb_offload_burst_mode.enable=false \ |
| 154 | vendor.audio.feature.usb_offload_sidetone_volume.enable=false \ |
| 155 | vendor.audio.feature.src_trkn.enable=true \ |
| 156 | vendor.audio.feature.ras.enable=false \ |
| 157 | vendor.audio.feature.a2dp_offload.enable=false \ |
| 158 | vendor.audio.feature.wsa.enable=true \ |
| 159 | vendor.audio.feature.compress_meta_data.enable=true \ |
| 160 | vendor.audio.feature.vbat.enable=true \ |
| 161 | vendor.audio.feature.display_port.enable=false \ |
| 162 | vendor.audio.feature.fluence.enable=true \ |
| 163 | vendor.audio.feature.custom_stereo.enable=true \ |
| 164 | vendor.audio.feature.anc_headset.enable=true \ |
| 165 | vendor.audio.feature.spkr_prot.enable=false \ |
| 166 | vendor.audio.feature.fm.enable=true \ |
| 167 | vendor.audio.feature.external_dsp.enable=false \ |
| 168 | vendor.audio.feature.external_speaker.enable=false \ |
| 169 | vendor.audio.feature.external_speaker_tfa.enable=false \ |
| 170 | vendor.audio.feature.hwdep_cal.enable=false \ |
| 171 | vendor.audio.feature.hfp.enable=true \ |
| 172 | vendor.audio.feature.ext_hw_plugin.enable=false \ |
| 173 | vendor.audio.feature.record_play_concurency.enable=false \ |
| 174 | vendor.audio.feature.hdmi_passthrough.enable=false \ |
| 175 | vendor.audio.feature.concurrent_capture.enable=false \ |
| 176 | vendor.audio.feature.compress_in.enable=false \ |
| 177 | vendor.audio.feature.battery_listener.enable=false \ |
| 178 | vendor.audio.feature.maxx_audio.enable=false \ |
| 179 | vendor.audio.feature.audiozoom.enable=false \ |
| 180 | vendor.audio.feature.auto_hal.enable=false \ |
| 181 | vendor.audio.read.wsatz.type=true \ |
| 182 | vendor.audio.feature.multi_voice_session.enable=true \ |
| 183 | vendor.audio.feature.incall_music.enable=true |
| 184 | |