From 5d3041b62a1d21e88b8171e067cb467843e06f61 Mon Sep 17 00:00:00 2001 From: juyuchen Date: Thu, 23 Feb 2023 17:04:35 +0800 Subject: [PATCH] audio: sync the mixer path table 1. Modify to cirrus speaker amp controls 2. Enable gapless offload 3. Change USB bus ID 4. Assume that the value of mic id is pdm number Bug: 270518254 Test: build pass Change-Id: Ied1ec4dc1360bf3cf64e893a5e757e102204af47 Signed-off-by: juyuchen --- .../config/audio_policy_configuration.xml | 2 +- audio/comet/config/mixer_paths.xml | 146 +++++++++++++----- audio/comet/config/mixer_paths_factory.xml | 107 ++++++++++--- 3 files changed, 193 insertions(+), 62 deletions(-) diff --git a/audio/comet/config/audio_policy_configuration.xml b/audio/comet/config/audio_policy_configuration.xml index 6a88c0a..776cdb4 100644 --- a/audio/comet/config/audio_policy_configuration.xml +++ b/audio/comet/config/audio_policy_configuration.xml @@ -36,7 +36,7 @@ samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + flags="AUDIO_OUTPUT_FLAG_DIRECT AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD AUDIO_OUTPUT_FLAG_NON_BLOCKING AUDIO_OUTPUT_FLAG_GAPLESS_OFFLOAD"> diff --git a/audio/comet/config/mixer_paths.xml b/audio/comet/config/mixer_paths.xml index 894d3d3..6f7bae8 100644 --- a/audio/comet/config/mixer_paths.xml +++ b/audio/comet/config/mixer_paths.xml @@ -31,7 +31,7 @@ - + @@ -50,17 +50,69 @@ - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -188,7 +240,7 @@ - + @@ -597,21 +649,16 @@ > - - - - - - + + + - - - - - - + + + + @@ -622,31 +669,54 @@ - - + + + + + + - - - + + + + + + + + + + + + - - - + + + - - + + + + @@ -662,7 +732,7 @@ - + @@ -674,7 +744,7 @@ - + @@ -688,7 +758,7 @@ - + diff --git a/audio/comet/config/mixer_paths_factory.xml b/audio/comet/config/mixer_paths_factory.xml index 375731e..a49c9f3 100644 --- a/audio/comet/config/mixer_paths_factory.xml +++ b/audio/comet/config/mixer_paths_factory.xml @@ -3,8 +3,8 @@ - - + + @@ -19,6 +19,8 @@ + + @@ -40,6 +42,8 @@ + + @@ -103,7 +107,7 @@ - + @@ -122,7 +126,7 @@ - + @@ -142,7 +146,7 @@ - + @@ -161,7 +165,7 @@ - + @@ -177,14 +181,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -207,19 +259,19 @@ - + - + - + - + @@ -229,6 +281,8 @@ + + @@ -244,6 +298,7 @@ + @@ -253,34 +308,36 @@ - + + - - + + + - - + + - - + + - - + + @@ -296,15 +353,19 @@ + + + + - - - - + + + +