]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ASoC: PXA: Fix jack detection on Zipit Z2
authorVasily Khoruzhick <anarsoul@gmail.com>
Tue, 18 Jan 2011 14:54:24 +0000 (16:54 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
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 <anarsoul@gmail.com>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
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,
        },
 };