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>
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"
]