alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: David Henningsson <david.henningsson@canonical.com>
Cc: ALSA Development Mailing List <alsa-devel@alsa-project.org>
Subject: Re: [PATCH] ALSA: HDA: Realtek: Fixup jack detection to input subsystem
Date: Mon, 28 Feb 2011 16:25:52 +0100	[thread overview]
Message-ID: <s5h1v2sp4e7.wl%tiwai@suse.de> (raw)
In-Reply-To: <4D6BBA28.8080506@canonical.com>

At Mon, 28 Feb 2011 16:07:20 +0100,
David Henningsson wrote:
> 
> >From 70f1b37d58c9c6322bb84368c9da299bfe2b0c57 Mon Sep 17 00:00:00 2001
> From: David Henningsson <david.henningsson@canonical.com>
> Date: Mon, 28 Feb 2011 15:58:07 +0100
> Subject: [PATCH] ALSA: HDA: Realtek: Fixup jack detection to input subsystem
> 
> This patch fixes an error in the jack detection reporting,
> causing the jack detection sometimes not to be reported
> correctly to the input subsystem. It should apply to several
> Realtek codecs.
> 
> Cc: stable@kernel.org
> Signed-off-by: David Henningsson <david.henningsson@canonical.com>

Applied now.  Thanks.


Takashi

> ---
>  sound/pci/hda/patch_realtek.c |    7 ++-----
>  1 files changed, 2 insertions(+), 5 deletions(-)
> 
> diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
> index 3328a25..c052fc5 100644
> --- a/sound/pci/hda/patch_realtek.c
> +++ b/sound/pci/hda/patch_realtek.c
> @@ -1133,11 +1133,8 @@ static void alc_automute_speaker(struct hda_codec *codec, int pinctl)
>  		nid = spec->autocfg.hp_pins[i];
>  		if (!nid)
>  			break;
> -		if (snd_hda_jack_detect(codec, nid)) {
> -			spec->jack_present = 1;
> -			break;
> -		}
> -		alc_report_jack(codec, spec->autocfg.hp_pins[i]);
> +		alc_report_jack(codec, nid);
> +		spec->jack_present |= snd_hda_jack_detect(codec, nid);
>  	}
>  
>  	mute = spec->jack_present ? HDA_AMP_MUTE : 0;
> -- 
> 1.7.1
> 

      reply	other threads:[~2011-02-28 15:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-28 15:07 [PATCH] ALSA: HDA: Realtek: Fixup jack detection to input subsystem David Henningsson
2011-02-28 15:25 ` Takashi Iwai [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5h1v2sp4e7.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=david.henningsson@canonical.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).