From: "Ortwin Glück" <odi@odi.ch>
To: alsa-devel@alsa-project.org
Subject: Re: hda Regression: jack doesn't mute speaker
Date: Fri, 17 Apr 2009 19:28:23 +0200 [thread overview]
Message-ID: <49E8BC37.2030202@odi.ch> (raw)
In-Reply-To: <s5h8wm1yoqv.wl%tiwai@suse.de>
Takashi Iwai wrote:
> The problem is likely because hp_detect field isn't set on your
> machine because the headphone shares the same audio-out widget with
> the speaker out.
>
> Could you try the patch below?
Yes, this patch does the trick. The HP jack correctly mutes the speakers now.
Thanks a lot. I guess this will make it into mainline with the next rc?
Cheers,
Ortwin
>
> thanks,
>
> Takashi
>
> ---
> diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
> index ce30b45..917bc5d 100644
> --- a/sound/pci/hda/patch_sigmatel.c
> +++ b/sound/pci/hda/patch_sigmatel.c
> @@ -3076,6 +3076,11 @@ static int create_multi_out_ctls(struct hda_codec *codec, int num_outs,
> unsigned int wid_caps;
>
> for (i = 0; i < num_outs && i < ARRAY_SIZE(chname); i++) {
> + if (type == AUTO_PIN_HP_OUT && !spec->hp_detect) {
> + wid_caps = get_wcaps(codec, pins[i]);
> + if (wid_caps & AC_WCAP_UNSOL_CAP)
> + spec->hp_detect = 1;
> + }
> nid = dac_nids[i];
> if (!nid)
> continue;
> @@ -3119,11 +3124,6 @@ static int create_multi_out_ctls(struct hda_codec *codec, int num_outs,
> err = create_controls_idx(codec, name, idx, nid, 3);
> if (err < 0)
> return err;
> - if (type == AUTO_PIN_HP_OUT && !spec->hp_detect) {
> - wid_caps = get_wcaps(codec, pins[i]);
> - if (wid_caps & AC_WCAP_UNSOL_CAP)
> - spec->hp_detect = 1;
> - }
> }
> }
> return 0;
next prev parent reply other threads:[~2009-04-17 17:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-15 22:01 hda Regression: jack doesn't mute speaker Ortwin Glück
2009-04-16 6:18 ` Takashi Iwai
2009-04-16 7:05 ` Ortwin Glück
2009-04-16 7:12 ` Takashi Iwai
[not found] ` <49E6DCED.90804@odi.ch>
2009-04-16 8:41 ` Takashi Iwai
2009-04-17 17:28 ` Ortwin Glück [this message]
2009-04-16 7:31 ` Ortwin Glück
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=49E8BC37.2030202@odi.ch \
--to=odi@odi.ch \
--cc=alsa-devel@alsa-project.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.