From ea4b808e7287dcacf2347ad865882c51d6d2e117 Mon Sep 17 00:00:00 2001 From: Rahul Sharma Date: Fri, 8 Mar 2019 16:42:37 +0530 Subject: [PATCH] ahal: Enable offload support for 16/24 bit pcm files Enable 16/24 bit pcm offload properties. Adding 16/24 bit pcm profiles to compress offload. Change-Id: If78e7ed76341f00211d2d4eeb3e08ba0ac8ffa6c --- configs/msmnile_au/audio_policy_configuration.xml | 6 ++++++ configs/msmnile_au/msmnile_au.mk | 8 ++++++++ configs/msmsteppe_au/audio_policy_configuration.xml | 6 ++++++ configs/msmsteppe_au/msmsteppe_au.mk | 8 ++++++++ 4 files changed, 28 insertions(+) diff --git a/configs/msmnile_au/audio_policy_configuration.xml b/configs/msmnile_au/audio_policy_configuration.xml index fcba3197..b00e62f4 100644 --- a/configs/msmnile_au/audio_policy_configuration.xml +++ b/configs/msmnile_au/audio_policy_configuration.xml @@ -168,6 +168,12 @@ + + diff --git a/configs/msmnile_au/msmnile_au.mk b/configs/msmnile_au/msmnile_au.mk index 7dd0a3e8..48b366f6 100644 --- a/configs/msmnile_au/msmnile_au.mk +++ b/configs/msmnile_au/msmnile_au.mk @@ -195,6 +195,14 @@ vendor.audio.safx.pbe.enabled=true PRODUCT_PROPERTY_OVERRIDES += \ vendor.audio.parser.ip.buffer.size=262144 +#Enable 16 bit PCM offload by default +PRODUCT_PROPERTY_OVERRIDES += \ +audio.offload.pcm.16bit.enable=true + +#Enable 24 bit PCM offload by default +PRODUCT_PROPERTY_OVERRIDES += \ +audio.offload.pcm.24bit.enable=true + #flac sw decoder 24 bit decode capability PRODUCT_PROPERTY_OVERRIDES += \ vendor.audio.flac.sw.decoder.24bit=true diff --git a/configs/msmsteppe_au/audio_policy_configuration.xml b/configs/msmsteppe_au/audio_policy_configuration.xml index e4aec165..4d9340dc 100644 --- a/configs/msmsteppe_au/audio_policy_configuration.xml +++ b/configs/msmsteppe_au/audio_policy_configuration.xml @@ -145,6 +145,12 @@ + + diff --git a/configs/msmsteppe_au/msmsteppe_au.mk b/configs/msmsteppe_au/msmsteppe_au.mk index 858077cd..51829bda 100644 --- a/configs/msmsteppe_au/msmsteppe_au.mk +++ b/configs/msmsteppe_au/msmsteppe_au.mk @@ -186,6 +186,14 @@ vendor.audio.safx.pbe.enabled=true PRODUCT_PROPERTY_OVERRIDES += \ vendor.audio.parser.ip.buffer.size=262144 +#Enable 16 bit PCM offload by default +PRODUCT_PROPERTY_OVERRIDES += \ +audio.offload.pcm.16bit.enable=true + +#Enable 24 bit PCM offload by default +PRODUCT_PROPERTY_OVERRIDES += \ +audio.offload.pcm.24bit.enable=true + #flac sw decoder 24 bit decode capability PRODUCT_PROPERTY_OVERRIDES += \ vendor.audio.flac.sw.decoder.24bit=true