From 98bc6d7dd75f589b6db55c46cf10ab3f7a0f8cba Mon Sep 17 00:00:00 2001 From: justinweng Date: Mon, 19 Jul 2021 07:52:21 +0200 Subject: [PATCH] sm6250-common: audio: Sync audio feature from coral 1. enforce 48KHz sampling rate at COPP for audio recording. 2. resize offload buffer to reduce power consumption. 3. enforce 24 bit width for offload playback and apply app_type 69940 Bug: 147027029 Test: build passed Change-Id: Ie692746f4588b5706cbab7eddf5b6b7b8766a181 Signed-off-by: justinweng --- audio/audio_io_policy.conf | 2 +- vendor.prop | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/audio/audio_io_policy.conf b/audio/audio_io_policy.conf index 6c565e4..de5d188 100644 --- a/audio/audio_io_policy.conf +++ b/audio/audio_io_policy.conf @@ -86,7 +86,7 @@ outputs { formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_PCM_16_BIT_OFFLOAD|AUDIO_FORMAT_PCM_24_BIT_OFFLOAD|AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_AAC_LC|AUDIO_FORMAT_AAC_HE_V1|AUDIO_FORMAT_AAC_HE_V2|AUDIO_FORMAT_WMA|AUDIO_FORMAT_WMA_PRO|AUDIO_FORMAT_VORBIS|AUDIO_FORMAT_AAC_ADTS_LC|AUDIO_FORMAT_AAC_ADTS_HE_V1|AUDIO_FORMAT_AAC_ADTS_HE_V2 sampling_rates 44100|48000|88200|96000|176400|192000 bit_width 16 - app_type 69936 + app_type 69940 } compress_offload_24 { flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING diff --git a/vendor.prop b/vendor.prop index b92cd89..19d7e2b 100644 --- a/vendor.prop +++ b/vendor.prop @@ -9,12 +9,14 @@ persist.vendor.audio.fluence.audiorec=true persist.vendor.audio.fluence.voicecall=true persist.vendor.audio.fluence.voicecomm=true persist.vendor.audio.fluence.voicerec=true +persist.vendor.audio_hal.dsp_bit_width_enforce_mode=24 persist.vendor.audio.ras.enabled=false persist.vendor.audio.spv3.enable=true persist.vendor.audio.voicecall.speaker.stereo=false ro.vendor.audio.sdk.fluencetype=fluence ro.vendor.audio.sdk.ssr=false vendor.audio.adm.buffering.ms=2 +vendor.audio.capture.enforce_legacy_copp_sr=true vendor.audio.dolby.ds2.enabled=false vendor.audio.dolby.ds2.hardbypass=false vendor.audio.enable.mirrorlink=false @@ -63,7 +65,7 @@ vendor.audio.feature.wsa.enable=false vendor.audio.flac.sw.decoder.24bit=true vendor.audio.hal.output.suspend.supported=true vendor.audio.hw.aac.encoder=true -vendor.audio.offload.buffer.size.kb=32 +vendor.audio.offload.buffer.size.kb=256 vendor.audio.offload.gapless.enabled=true vendor.audio.offload.multiaac.enable=true vendor.audio.offload.multiple.enabled=false