From 06d75d3f49a694d324478394cda63599a40b87f1 Mon Sep 17 00:00:00 2001 From: Tommy Webb Date: Tue, 30 Jan 2024 21:34:52 +0000 Subject: [PATCH] sm6225-common: Don't try to play many-channel audio as is These devices don't have surround sound, as nice as that would be, so stop pretending. Otherwise, we get weird behavior, like playing surround sound audio at full volume regardless of the media volume or mute state. Now, it plays properly. Issue: calyxos#2075 Change-Id: Ic530906a9dacb2699e32f2ed91f38fab0dad1492 --- ...icy_configuration_a2dp_offload_disabled.xml | 18 +++++++++--------- audio/audio_policy_configuration_vendor.xml | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/audio/audio_policy_configuration_a2dp_offload_disabled.xml b/audio/audio_policy_configuration_a2dp_offload_disabled.xml index d8e6912..88ffd6f 100644 --- a/audio/audio_policy_configuration_a2dp_offload_disabled.xml +++ b/audio/audio_policy_configuration_a2dp_offload_disabled.xml @@ -116,16 +116,16 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. flags="AUDIO_OUTPUT_FLAG_DIRECT"> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> @@ -137,7 +137,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> @@ -152,16 +152,16 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> diff --git a/audio/audio_policy_configuration_vendor.xml b/audio/audio_policy_configuration_vendor.xml index 96ee85e..96d050d 100644 --- a/audio/audio_policy_configuration_vendor.xml +++ b/audio/audio_policy_configuration_vendor.xml @@ -116,16 +116,16 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. flags="AUDIO_OUTPUT_FLAG_DIRECT"> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> @@ -137,7 +137,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> @@ -152,16 +152,16 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/>