From: Dmitry Osipenko Date: Thu, 20 May 2021 13:53:51 +0000 (+0300) Subject: codecs/rt5640: Turn off playback switches by default X-Git-Tag: android-x86-8.1-r6~10 X-Git-Url: http://git.osdn.net/view?p=android-x86%2Fexternal-alsa-ucm-conf.git;a=commitdiff_plain;h=73e5c8802df2dc362042640caa8000a83781e1b9 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 --- 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" ]