From 8276b6416f5b1b1e1e553a4f3ca92256905179d5 Mon Sep 17 00:00:00 2001 From: "Kothapeta, BikshapathiX" Date: Thu, 13 Oct 2022 10:48:59 +0530 Subject: [PATCH] mixin-update-HAL7.0 policy config for 48k,44.1K Update audio policy configuration xml as per the HAL-7.0 version. 1. 'AUDIO_CHANNEL_IN_MONO, AUDIO_CHANNEL_IN_STEREO' Above two channels, if set, any of the config need to be removed, 2. Removed "," and separated sample rates by spaces Tracked-On: OAM-104226 Signed-off-by: Deepa K G Signed-off-by: Kothapeta, BikshapathiX --- .../policy/a2dp_audio_policy_configuration.xml | 8 ++++---- .../default/policy/audio_policy_configuration.xml | 11 +++++------ .../fallback/audio_policy_configuration_generic.xml | 2 +- .../fallback/primary_audio_policy_configuration.xml | 2 +- .../policy/hdmi_audio_policy_configuration.xml | 4 ++-- 5 files changed, 13 insertions(+), 14 deletions(-) diff --git a/caas/audio/default/policy/a2dp_audio_policy_configuration.xml b/caas/audio/default/policy/a2dp_audio_policy_configuration.xml index ced746316..0dda9dacd 100644 --- a/caas/audio/default/policy/a2dp_audio_policy_configuration.xml +++ b/caas/audio/default/policy/a2dp_audio_policy_configuration.xml @@ -9,8 +9,8 @@ + samplingRates="44100 48000" + channelMasks="AUDIO_CHANNEL_IN_STEREO"/> @@ -31,8 +31,8 @@ + samplingRates="44100 48000" + channelMasks="AUDIO_CHANNEL_IN_STEREO"/> diff --git a/caas/audio/default/policy/audio_policy_configuration.xml b/caas/audio/default/policy/audio_policy_configuration.xml index b4ef12dae..1886c688c 100755 --- a/caas/audio/default/policy/audio_policy_configuration.xml +++ b/caas/audio/default/policy/audio_policy_configuration.xml @@ -35,16 +35,15 @@ + samplingRates="48000" channelMasks="AUDIO_CHANNEL_IN_STEREO"/> + samplingRates="16000" channelMasks="AUDIO_CHANNEL_IN_STEREO"/> + samplingRates="16000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> @@ -73,12 +72,12 @@ + channelMasks="AUDIO_CHANNEL_IN_STEREO"/> + channelMasks="AUDIO_CHANNEL_IN_STEREO"/> diff --git a/caas/audio/default/policy/fallback/audio_policy_configuration_generic.xml b/caas/audio/default/policy/fallback/audio_policy_configuration_generic.xml index c8cfa55a3..0d2e12d49 100644 --- a/caas/audio/default/policy/fallback/audio_policy_configuration_generic.xml +++ b/caas/audio/default/policy/fallback/audio_policy_configuration_generic.xml @@ -14,7 +14,7 @@ limitations under the License. --> - + diff --git a/caas/audio/default/policy/fallback/primary_audio_policy_configuration.xml b/caas/audio/default/policy/fallback/primary_audio_policy_configuration.xml index eedc96bf5..68a56b247 100644 --- a/caas/audio/default/policy/fallback/primary_audio_policy_configuration.xml +++ b/caas/audio/default/policy/fallback/primary_audio_policy_configuration.xml @@ -13,7 +13,7 @@ + samplingRates="8000 16000" channelMasks="AUDIO_CHANNEL_IN_MONO"/> diff --git a/caas/audio/default/policy/hdmi_audio_policy_configuration.xml b/caas/audio/default/policy/hdmi_audio_policy_configuration.xml index 0091c672c..6a44eb491 100644 --- a/caas/audio/default/policy/hdmi_audio_policy_configuration.xml +++ b/caas/audio/default/policy/hdmi_audio_policy_configuration.xml @@ -32,14 +32,14 @@ samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + samplingRates="32000 44100 48000"/> + samplingRates="32000 44100 48000"/>