blob: b696b9bad5c26aa958b482522982d579969efbc8 [file] [log] [blame]
Bharath756d7dd2021-08-07 23:53:55 +05301# 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
Bharathdec76372022-10-10 20:15:42 +05308PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +05309 af.fast_track_multiplier=1
10
11#Low latency audio buffer size in frames
Bharathdec76372022-10-10 20:15:42 +053012PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +053013 vendor.audio_hal.period_size=192
14
15##fluencetype can be "fluence" or "fluencepro" or "none"
Bharathdec76372022-10-10 20:15:42 +053016PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +053017 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
Bharathdec76372022-10-10 20:15:42 +053023PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +053024 vendor.audio.tunnel.encode=false
25
26#Buffer size in kbytes for compress offload playback
Bharathdec76372022-10-10 20:15:42 +053027PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +053028 vendor.audio.offload.buffer.size.kb=64
29
30#Minimum duration for offload playback in secs
Bharathdec76372022-10-10 20:15:42 +053031PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +053032 audio.offload.min.duration.secs=30
33
34#Enable offload audio video playback by default
Bharathdec76372022-10-10 20:15:42 +053035PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +053036 audio.offload.video=true
37
38#Enable audio track offload by default
Bharathdec76372022-10-10 20:15:42 +053039PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +053040 vendor.audio.offload.track.enable=true
41
42#Enable music through deep buffer
Bharathdec76372022-10-10 20:15:42 +053043PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +053044 audio.deep_buffer.media=true
45
46#enable voice path for PCM VoIP by default
Bharathdec76372022-10-10 20:15:42 +053047PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +053048 vendor.voice.path.for.pcm.voip=true
49
50#Enable multi channel aac through offload
Bharathdec76372022-10-10 20:15:42 +053051PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +053052 vendor.audio.offload.multiaac.enable=true
53
54#Enable DS2, Hardbypass feature for Dolby
Bharathdec76372022-10-10 20:15:42 +053055PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +053056 vendor.audio.dolby.ds2.enabled=false\
57 vendor.audio.dolby.ds2.hardbypass=false
58
59#Disable Multiple offload sesison
Bharathdec76372022-10-10 20:15:42 +053060PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +053061 vendor.audio.offload.multiple.enabled=false
62
63#Disable Compress passthrough playback
Bharathdec76372022-10-10 20:15:42 +053064PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +053065 vendor.audio.offload.passthrough=false
66
67#Disable surround sound recording
Bharathdec76372022-10-10 20:15:42 +053068PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +053069 ro.vendor.audio.sdk.ssr=false
70
71#enable dsp gapless mode by default
Bharathdec76372022-10-10 20:15:42 +053072PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +053073 vendor.audio.offload.gapless.enabled=true
74
75#enable pbe effects
Bharathdec76372022-10-10 20:15:42 +053076PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +053077 vendor.audio.safx.pbe.enabled=true
78
79#parser input buffer size(256kb) in byte stream mode
Bharathdec76372022-10-10 20:15:42 +053080PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +053081 vendor.audio.parser.ip.buffer.size=262144
82
83#enable downsampling for multi-channel content > 48Khz
Bharathdec76372022-10-10 20:15:42 +053084PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +053085 vendor.audio.playback.mch.downsample=true
86
87#enable software decoders for ALAC and APE.
Bharathdec76372022-10-10 20:15:42 +053088PRODUCT_VENDOR_PROPERTIES += \
Bharatha9160f92022-06-16 15:27:46 +053089 vendor.audio.use.sw.alac.decoder=false\
Bharath756d7dd2021-08-07 23:53:55 +053090 vendor.audio.use.sw.ape.decoder=true
91
92#property for AudioSphere Post processing
Bharathdec76372022-10-10 20:15:42 +053093PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +053094 vendor.audio.pp.asphere.enabled=false
95
96#Audio voice concurrency related flags
Bharathdec76372022-10-10 20:15:42 +053097PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +053098 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.
Bharathdec76372022-10-10 20:15:42 +0530104PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +0530105 vendor.voice.conc.fallbackpath=deep-buffer
106
107#Disable speaker protection by default
Bharathdec76372022-10-10 20:15:42 +0530108PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +0530109 persist.vendor.audio.speaker.prot.enable=false
110
111#Enable HW AAC Encoder by default
Bharathdec76372022-10-10 20:15:42 +0530112PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +0530113 vendor.audio.hw.aac.encoder=true
114
115#flac sw decoder 24 bit decode capability
Bharathdec76372022-10-10 20:15:42 +0530116PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +0530117 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.
Bharathdec76372022-10-10 20:15:42 +0530121PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +0530122 vendor.audio.hal.boot.timeout.ms=20000
123
124#read wsatz name from thermal zone type
Bharathdec76372022-10-10 20:15:42 +0530125PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +0530126 vendor.audio.read.wsatz.type=true
127
128#Set AudioFlinger client heap size
Bharathdec76372022-10-10 20:15:42 +0530129PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +0530130 ro.af.client_heap_size_kbyte=7168
131
Bharathdec76372022-10-10 20:15:42 +0530132PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +0530133 persist.vendor.audio.hw.binder.size_kbyte=1024
134
135#Set speaker protection cal tx path sampling rate to 48k
Bharathdec76372022-10-10 20:15:42 +0530136PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +0530137 vendor.audio.spkr_prot.tx.sampling_rate=48000
138
Bharathdec76372022-10-10 20:15:42 +0530139PRODUCT_VENDOR_PROPERTIES += \
jackliao4ba8fda2021-04-19 09:14:13 +0800140 ro.config.vc_call_vol_steps=7
141
Bharath756d7dd2021-08-07 23:53:55 +0530142# add dynamic feature flags here
Bharathdec76372022-10-10 20:15:42 +0530143PRODUCT_VENDOR_PROPERTIES += \
Bharath756d7dd2021-08-07 23:53:55 +0530144 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