From 73e5c8802df2dc362042640caa8000a83781e1b9 Mon Sep 17 00:00:00 2001 From: Dmitry Osipenko Date: Thu, 20 May 2021 16:53:51 +0300 Subject: [PATCH] codecs/rt5640: Turn off playback switches by default Previously RT5640 was turning off switches that are specific to the Intel BayTrail SoC. In a case of other SoCs we need to turn off the codec switches. This fixes audio playing from both speaker and headphones simultaneously on Nexus 7, until headphones are re-inserted. Signed-off-by: Dmitry Osipenko Signed-off-by: Jaroslav Kysela --- ucm2/codecs/rt5640/EnableSeq.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ucm2/codecs/rt5640/EnableSeq.conf b/ucm2/codecs/rt5640/EnableSeq.conf index e177d90..8928855 100644 --- a/ucm2/codecs/rt5640/EnableSeq.conf +++ b/ucm2/codecs/rt5640/EnableSeq.conf @@ -71,4 +71,12 @@ EnableSequence [ cset "name='Mono ADC MIXR ADC1 Switch' off" cset "name='Mono ADC MIXL ADC2 Switch' off" cset "name='Mono ADC MIXR ADC2 Switch' off" + + # Turn off playback switches by default, otherwise both Speaker + # and headphones are playing audio initially until headphones are + # re-inserted. + cset "name='HP L Playback Switch' off" + cset "name='HP R Playback Switch' off" + cset "name='Speaker L Playback Switch' off" + cset "name='Speaker R Playback Switch' off" ] -- 2.47.1