From e842745a1e1cf91e44fdc4ad17abdd36a7fdb57d Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 18 May 2021 16:25:17 +0200 Subject: [PATCH] remap mixer controls for rt5682 Suggested-by: Hans de Goede Signed-off-by: Jaroslav Kysela --- ucm2/codecs/rt5682/init.conf | 8 ++++++++ ucm2/sof-soundwire/sof-soundwire.conf | 3 +++ 2 files changed, 11 insertions(+) diff --git a/ucm2/codecs/rt5682/init.conf b/ucm2/codecs/rt5682/init.conf index 11ce9db..fb88a7d 100644 --- a/ucm2/codecs/rt5682/init.conf +++ b/ucm2/codecs/rt5682/init.conf @@ -1,5 +1,13 @@ # RT5682 specific volume control settings +LibraryConfig.remap.Config { + + ctl.default.remap { + "name='STO1 ADC Boost Gain Volume'" "name='STO1 ADC Boost Capture Volume'" + } + +} + BootSequence [ cset "name='rt5682 Stereo1 DAC MIXL DAC L1 Switch' 1" cset "name='rt5682 Stereo1 DAC MIXR DAC R1 Switch' 1" diff --git a/ucm2/sof-soundwire/sof-soundwire.conf b/ucm2/sof-soundwire/sof-soundwire.conf index 8c2187f..1040c93 100644 --- a/ucm2/sof-soundwire/sof-soundwire.conf +++ b/ucm2/sof-soundwire/sof-soundwire.conf @@ -5,6 +5,9 @@ SectionUseCase."HiFi" { Comment "Play HiFi quality Music" } +Include.card-init.File "/lib/card-init.conf" +Include.ctl-remap.File "/lib/ctl-remap.conf" + Define { SpeakerCodec1 "" SpeakerChannels1 "2" -- 2.47.1