ASoC: PXA: z2: Mute internal speaker when headphones are connected
authorVasily Khoruzhick <anarsoul@gmail.com>
Fri, 11 Mar 2011 09:05:37 +0000 (11:05 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 11 Mar 2011 12:03:03 +0000 (12:03 +0000)
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/pxa/z2.c

index 3ceaef68e01de7aebab8d7d16a6715d3bcfedfbb..b0b6c8d7c2f3f3acdf2a668429fc053a530edd83 100644 (file)
@@ -95,6 +95,11 @@ static struct snd_soc_jack_pin hs_jack_pins[] = {
                .pin    = "Headphone Jack",
                .mask   = SND_JACK_HEADPHONE,
        },
+       {
+               .pin    = "Ext Spk",
+               .mask   = SND_JACK_HEADPHONE,
+               .invert = 1
+       },
 };
 
 /* Headset jack detection gpios */