ASoC: PXA: Fix jack detection on Zipit Z2
authorVasily Khoruzhick <[email protected]>
Tue, 18 Jan 2011 14:54:24 +0000 (16:54 +0200)
committerMark Brown <[email protected]>
Tue, 18 Jan 2011 19:01:57 +0000 (19:01 +0000)
Fix jack detection on Zipit Z2, otherwise it
disables headphones output when jack is connected

Signed-off-by: Vasily Khoruzhick <[email protected]>
Acked-by: Marek Vasut <[email protected]>
Acked-by: Liam Girdwood <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/pxa/z2.c

index 2d4f896d7fec56bcf792839efc30be78346eba48..ca0d7e34240792039fd6a7b3e5eb79a1d727c71a 100644 (file)
@@ -104,6 +104,7 @@ static struct snd_soc_jack_gpio hs_jack_gpios[] = {
                .name           = "hsdet-gpio",
                .report         = SND_JACK_HEADSET,
                .debounce_time  = 200,
+               .invert         = 1,
        },
 };