blob: 03087a7f2912229587316818d3e7b4d27eaf69ab [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
8PRODUCT_PROPERTY_OVERRIDES += \
9 af.fast_track_multiplier=1
10
11#Low latency audio buffer size in frames
12PRODUCT_PROPERTY_OVERRIDES += \
13 vendor.audio_hal.period_size=192
14
15##fluencetype can be "fluence" or "fluencepro" or "none"
16PRODUCT_PROPERTY_OVERRIDES += \
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
23PRODUCT_PROPERTY_OVERRIDES += \
24 vendor.audio.tunnel.encode=false
25
26#Buffer size in kbytes for compress offload playback
27PRODUCT_PROPERTY_OVERRIDES += \
28 vendor.audio.offload.buffer.size.kb=64
29
30#Minimum duration for offload playback in secs
31PRODUCT_PROPERTY_OVERRIDES += \
32 audio.offload.min.duration.secs=30
33
34#Enable offload audio video playback by default
35PRODUCT_PROPERTY_OVERRIDES += \
36 audio.offload.video=true
37
38#Enable audio track offload by default
39PRODUCT_PROPERTY_OVERRIDES += \
40 vendor.audio.offload.track.enable=true
41
42#Enable music through deep buffer
43PRODUCT_PROPERTY_OVERRIDES += \
44 audio.deep_buffer.media=true
45
46#enable voice path for PCM VoIP by default
47PRODUCT_PROPERTY_OVERRIDES += \
48 vendor.voice.path.for.pcm.voip=true
49
50#Enable multi channel aac through offload
51PRODUCT_PROPERTY_OVERRIDES += \
52 vendor.audio.offload.multiaac.enable=true
53
54#Enable DS2, Hardbypass feature for Dolby
55PRODUCT_PROPERTY_OVERRIDES += \
56 vendor.audio.dolby.ds2.enabled=false\
57 vendor.audio.dolby.ds2.hardbypass=false
58
59#Disable Multiple offload sesison
60PRODUCT_PROPERTY_OVERRIDES += \
61 vendor.audio.offload.multiple.enabled=false
62
63#Disable Compress passthrough playback
64PRODUCT_PROPERTY_OVERRIDES += \
65 vendor.audio.offload.passthrough=false
66
67#Disable surround sound recording
68PRODUCT_PROPERTY_OVERRIDES += \
69 ro.vendor.audio.sdk.ssr=false
70
71#enable dsp gapless mode by default
72PRODUCT_PROPERTY_OVERRIDES += \
73 vendor.audio.offload.gapless.enabled=true
74
75#enable pbe effects
76PRODUCT_PROPERTY_OVERRIDES += \
77 vendor.audio.safx.pbe.enabled=true
78
79#parser input buffer size(256kb) in byte stream mode
80PRODUCT_PROPERTY_OVERRIDES += \
81 vendor.audio.parser.ip.buffer.size=262144
82
83#enable downsampling for multi-channel content > 48Khz
84PRODUCT_PROPERTY_OVERRIDES += \
85 vendor.audio.playback.mch.downsample=true
86
87#enable software decoders for ALAC and APE.
88PRODUCT_PROPERTY_OVERRIDES += \
89 vendor.audio.use.sw.alac.decoder=true\
90 vendor.audio.use.sw.ape.decoder=true
91
92#property for AudioSphere Post processing
93PRODUCT_PROPERTY_OVERRIDES += \
94 vendor.audio.pp.asphere.enabled=false
95
96#Audio voice concurrency related flags
97PRODUCT_PROPERTY_OVERRIDES += \
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.
104PRODUCT_PROPERTY_OVERRIDES += \
105 vendor.voice.conc.fallbackpath=deep-buffer
106
107#Disable speaker protection by default
108PRODUCT_PROPERTY_OVERRIDES += \
109 persist.vendor.audio.speaker.prot.enable=false
110
111#Enable HW AAC Encoder by default
112PRODUCT_PROPERTY_OVERRIDES += \
113 vendor.audio.hw.aac.encoder=true
114
115#flac sw decoder 24 bit decode capability
116PRODUCT_PROPERTY_OVERRIDES += \
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.
121PRODUCT_PROPERTY_OVERRIDES += \
122 vendor.audio.hal.boot.timeout.ms=20000
123
124#read wsatz name from thermal zone type
125PRODUCT_PROPERTY_OVERRIDES += \
126 vendor.audio.read.wsatz.type=true
127
128#Set AudioFlinger client heap size
129PRODUCT_PROPERTY_OVERRIDES += \
130 ro.af.client_heap_size_kbyte=7168
131
132PRODUCT_PROPERTY_OVERRIDES += \
133 persist.vendor.audio.hw.binder.size_kbyte=1024
134
135#Set speaker protection cal tx path sampling rate to 48k
136PRODUCT_PROPERTY_OVERRIDES += \
137 vendor.audio.spkr_prot.tx.sampling_rate=48000
138
139# add dynamic feature flags here
140PRODUCT_PROPERTY_OVERRIDES += \
141 vendor.audio.feature.snd_mon.enable=true \
142 vendor.audio.feature.compr_cap.enable=false \
143 vendor.audio.feature.hifi_audio.enable=true \
144 vendor.audio.feature.hdmi_edid.enable=true \
145 vendor.audio.feature.dsm_feedback.enable=false \
146 vendor.audio.feature.ssrec.enable=true \
147 vendor.audio.feature.compr_voip.enable=true \
148 vendor.audio.feature.kpi_optimize.enable=true \
149 vendor.audio.feature.usb_offload.enable=false \
150 vendor.audio.feature.usb_offload_burst_mode.enable=false \
151 vendor.audio.feature.usb_offload_sidetone_volume.enable=false \
152 vendor.audio.feature.src_trkn.enable=true \
153 vendor.audio.feature.ras.enable=false \
154 vendor.audio.feature.a2dp_offload.enable=false \
155 vendor.audio.feature.wsa.enable=true \
156 vendor.audio.feature.compress_meta_data.enable=true \
157 vendor.audio.feature.vbat.enable=true \
158 vendor.audio.feature.display_port.enable=false \
159 vendor.audio.feature.fluence.enable=true \
160 vendor.audio.feature.custom_stereo.enable=true \
161 vendor.audio.feature.anc_headset.enable=true \
162 vendor.audio.feature.spkr_prot.enable=false \
163 vendor.audio.feature.fm.enable=true \
164 vendor.audio.feature.external_dsp.enable=false \
165 vendor.audio.feature.external_speaker.enable=false \
166 vendor.audio.feature.external_speaker_tfa.enable=false \
167 vendor.audio.feature.hwdep_cal.enable=false \
168 vendor.audio.feature.hfp.enable=true \
169 vendor.audio.feature.ext_hw_plugin.enable=false \
170 vendor.audio.feature.record_play_concurency.enable=false \
171 vendor.audio.feature.hdmi_passthrough.enable=false \
172 vendor.audio.feature.concurrent_capture.enable=false \
173 vendor.audio.feature.compress_in.enable=false \
174 vendor.audio.feature.battery_listener.enable=false \
175 vendor.audio.feature.maxx_audio.enable=false \
176 vendor.audio.feature.audiozoom.enable=false \
177 vendor.audio.feature.auto_hal.enable=false \
178 vendor.audio.read.wsatz.type=true \
179 vendor.audio.feature.multi_voice_session.enable=true \
180 vendor.audio.feature.incall_music.enable=true
181