OSDN Git Service

codecs/rt5640: Turn off playback switches by default
authorDmitry Osipenko <digetx@gmail.com>
Thu, 20 May 2021 13:53:51 +0000 (16:53 +0300)
committerJaroslav Kysela <perex@perex.cz>
Thu, 27 May 2021 07:08:38 +0000 (09:08 +0200)
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 <digetx@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/codecs/rt5640/EnableSeq.conf

index e177d90..8928855 100644 (file)
@@ -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"
 ]