[alsa-devel] [PATCH 1/2] ASoC: PXA: Fix jack detection on Zipit Z2

Vasily Khoruzhick anarsoul at gmail.com
Tue Jan 18 15:54:24 CET 2011


Fix jack detection on Zipit Z2, otherwise it
disables headphones output when jack is connected

Signed-off-by: Vasily Khoruzhick <anarsoul at gmail.com>
---
 sound/soc/pxa/z2.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/sound/soc/pxa/z2.c b/sound/soc/pxa/z2.c
index 4cc841b..0da889d 100644
--- a/sound/soc/pxa/z2.c
+++ b/sound/soc/pxa/z2.c
@@ -105,6 +105,7 @@ static struct snd_soc_jack_gpio hs_jack_gpios[] = {
 		.name		= "hsdet-gpio",
 		.report		= SND_JACK_HEADSET,
 		.debounce_time	= 200,
+		.invert		= 1,
 	},
 };
 
-- 
1.7.4.rc1



More information about the Alsa-devel mailing list