[alsa-devel] [PATCH 1/2] ASoC: PXA: z2: Mute internal speaker when headphones are connected

Vasily Khoruzhick anarsoul at gmail.com
Fri Mar 11 10:05:37 CET 2011


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

diff --git a/sound/soc/pxa/z2.c b/sound/soc/pxa/z2.c
index 3ceaef6..b0b6c8d 100644
--- a/sound/soc/pxa/z2.c
+++ b/sound/soc/pxa/z2.c
@@ -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 */
-- 
1.7.4.1



More information about the Alsa-devel mailing list