Skip to content

Commit

Permalink
G: Align audio feature flags/props with CAF
Browse files Browse the repository at this point in the history
* restore some board flags which are still active
* update audio properties
* build dependencies (32bit) for newly added features
  • Loading branch information
zeelog authored and kardebayan committed May 8, 2022
1 parent 554160f commit f5855c1
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 23 deletions.
2 changes: 2 additions & 0 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ TARGET_KERNEL_VERSION := 4.9
BOARD_ANT_WIRELESS_DEVICE := "vfs-prerelease"

# Audio
AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT := true
AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true
BOARD_SUPPORTS_SOUND_TRIGGER := true
BOARD_USES_ALSA_AUDIO := true
Expand Down
7 changes: 3 additions & 4 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,14 @@ PRODUCT_PACKAGES += \
sound_trigger.primary.msm8953:32

PRODUCT_PACKAGES += \
libaudiopreprocessing \
libaudioroute \
libaacwrapper \
libaudio-resampler \
libhfp:32 \
libqcomvisualizer \
libqcomvoiceprocessing \
libqcompostprocbundle \
libvolumelistener \
libtinycompress
libsndmonitor:32 \
libspkrprot:32

# Audio configuration
PRODUCT_COPY_FILES += \
Expand Down
43 changes: 24 additions & 19 deletions vendor.prop
Original file line number Diff line number Diff line change
@@ -1,43 +1,48 @@
# Audio
af.fast_track_multiplier=1
audio.chk.cal.us=0
af.fast_track_multiplier=2
audio.deep_buffer.media=true
audio.offload.disable=false
audio.offload.disable=true
audio.offload.min.duration.secs=30
audio.offload.video=true
persist.vendor.audio.fluence.speaker=true
persist.vendor.audio.fluence.voicecall=true
persist.vendor.audio.fluence.voicerec=false
persist.vendor.audio.hw.binder.size_kbyte=1024
persist.vendor.audio.speaker.prot.enable=false
ro.audio.soundfx.dirac=true
ro.config.media_vol_steps=25
ro.vendor.audio.sdk.fluencetype=fluence
ro.vendor.audio.sdk.ssr=false
vendor.audio.dolby.ds2.enabled=false
vendor.audio.dolby.ds2.hardbypass=false
vendor.audio.feature.hifi_audio.enable=true
vendor.audio.feature.anc_headset.enable=true
vendor.audio.feature.compress_meta_data.enable=true
vendor.audio.feature.compr_voip.enable=true
vendor.audio.feature.src_trkn.enable=true
vendor.audio.feature.wsa.enable=true
vendor.audio.feature.fluence.enable=true
vendor.audio.feature.custom_stereo.enable=true
vendor.audio.feature.anc_headset.enable=true
vendor.audio.feature.fluence.enable=true
vendor.audio.feature.fm.enable=true
vendor.audio.feature.multi_voice_session.enable=true
vendor.audio.feature.hfp.enable=true
vendor.audio.feature.hifi_audio.enable=true
vendor.audio.feature.incall_music.enable=true
vendor.audio.feature.kpi_optimize.enable=true
vendor.audio.feature.multi_voice_session.enable=true
vendor.audio.feature.snd_mon.enable=true
vendor.audio.feature.spkr_prot.enable=true
vendor.audio.feature.src_trkn.enable=true
vendor.audio.feature.vbat.enable=true
vendor.audio.feature.wsa.enable=true
vendor.audio.flac.sw.decoder.24bit=true
vendor.audio_hal.period_size=192
vendor.audio.hw.aac.encoder=true
vendor.audio.hal.boot.timeout.ms=20000
vendor.audio.offload.buffer.size.kb=64
vendor.audio.offload.gapless.enabled=true
vendor.audio.offload.multiaac.enable=true
vendor.audio.offload.multiple.enabled=false
vendor.audio.offload.passthrough=false
vendor.audio.offload.track.enable=false
vendor.audio.offload.track.enable=true
vendor.audio.parser.ip.buffer.size=262144
vendor.audio.playback.mch.downsample=true
vendor.audio.pp.asphere.enabled=false
vendor.audio.read.wsatz.type=true
vendor.audio.safx.pbe.enabled=true
vendor.audio.tunnel.encode=false
vendor.audio.use.sw.alac.decoder=true
vendor.audio.use.sw.ape.decoder=true
vendor.audio_hal.period_size=192
vendor.audio.read.wsatz.type=true
vendor.fastrpc.disable.adsprpcd_sensorspd.daemon=1
vendor.voice.conc.fallbackpath=deep-buffer
vendor.voice.path.for.pcm.voip=true
vendor.voice.playback.conc.disabled=true
Expand Down

0 comments on commit f5855c1

Please sign in to comment.