[alsa-devel] [PATCH 1/2] ASoC: PXA: z2: Mute internal speaker when headphones are connected
Liam Girdwood
lrg at slimlogic.co.uk
Fri Mar 11 12:15:04 CET 2011
On Fri, 2011-03-11 at 11:05 +0200, Vasily Khoruzhick wrote:
> 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 */
Both
Acked-by: Liam Girdwood <lrg at ti.com>
More information about the Alsa-devel
mailing list