LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Matej Laitl <strohel@gmail.com>
Cc: alsa-devel <alsa-devel@alsa-project.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [ALSA] HDA: no sound in headphone-out caused by commit f889fa91ad47e (2.6.25-rc1 regression)
Date: Wed, 13 Feb 2008 14:06:20 +0100 [thread overview]
Message-ID: <s5h63wtt38z.wl%tiwai@suse.de> (raw)
In-Reply-To: <200802131305.48471.strohel@gmail.com>
At Wed, 13 Feb 2008 13:05:48 +0100,
Matej Laitl wrote:
>
> On Wednesday 13 of February 2008 11:59:58 Takashi Iwai wrote:
> > > Now I just found that the new "Speaker" switch forgets it's value from
> > > time to time, ie. it's muted, you go and have lunch, and when you get
> > > back and start the music, it's unmuted. It is probably related to
> > > aggressive hda-codec powersaving, which I have enabled and set to 20
> > > secs.
> >
> > Hm, does the patch below have any influence?
> > If the problem still persists, please take alsa-info.sh snapshots
> > before and after power-saving.
>
> This patch did not have any effect. (i haven't tested suspend-to-ram)
>
> alsa-info before powersaving (speaker silent, mixer says: Speaker=MM):
> http://pastebin.ca/902330
>
> alsa-info after powersaving (speaker loud, mixer says: Speaker=MM):
> http://pastebin.ca/902332
Oh, it's my thinko. The init routine shouldn't update the amp cache.
The patch below should fix this problem. Actually it reverts the code
to my first patch.
Takashi
---
diff -r f4f3c5e8931a pci/hda/patch_realtek.c
--- a/pci/hda/patch_realtek.c Tue Feb 12 18:37:26 2008 +0100
+++ b/pci/hda/patch_realtek.c Wed Feb 13 14:06:44 2008 +0100
@@ -3489,7 +3489,8 @@ static void alc_set_pin_output(struct hd
snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_PIN_WIDGET_CONTROL,
pin_type);
/* unmute pin */
- snd_hda_codec_amp_stereo(codec, nid, HDA_OUTPUT, 0, 0xff, 0x00);
+ snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_AMP_GAIN_MUTE,
+ AMP_OUT_UNMUTE);
}
static void alc880_auto_set_output_and_unmute(struct hda_codec *codec,
next prev parent reply other threads:[~2008-02-13 13:06 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-11 20:58 Matej Laitl
2008-02-12 10:13 ` Takashi Iwai
2008-02-12 10:50 ` Matej Laitl
2008-02-12 11:02 ` Takashi Iwai
2008-02-12 11:34 ` Takashi Iwai
2008-02-12 12:06 ` Matej Laitl
2008-02-12 14:02 ` Takashi Iwai
2008-02-12 14:13 ` Takashi Iwai
2008-02-12 15:27 ` Matej Laitl
2008-02-12 17:14 ` Takashi Iwai
2008-02-12 18:24 ` Matej Laitl
2008-02-12 22:57 ` Matej Laitl
2008-02-13 10:59 ` Takashi Iwai
2008-02-13 12:05 ` Matej Laitl
2008-02-13 13:06 ` Takashi Iwai [this message]
2008-02-13 15:00 ` Matej Laitl
2008-02-13 15:25 ` Takashi Iwai
2008-02-13 11:01 ` Takashi Iwai
2008-02-12 11:36 ` Matej Laitl
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=s5h63wtt38z.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=linux-kernel@vger.kernel.org \
--cc=strohel@gmail.com \
--subject='Re: [ALSA] HDA: no sound in headphone-out caused by commit f889fa91ad47e (2.6.25-rc1 regression)' \
/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
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).