From: Takashi Iwai <tiwai@suse.de>
To: Michal Hocko <mhocko@suse.cz>
Cc: alsa-devel@alsa-project.org, LKML <linux-kernel@vger.kernel.org>
Subject: Re: Headphone output doesn't work with 3.0.0-rc* anymore
Date: Fri, 10 Jun 2011 12:08:03 +0200 [thread overview]
Message-ID: <s5hhb7y2e4c.wl%tiwai@suse.de> (raw)
In-Reply-To: <20110610093019.GC4110@tiehlicka.suse.cz>
At Fri, 10 Jun 2011 11:30:19 +0200,
Michal Hocko wrote:
>
> On Fri 10-06-11 11:18:51, Takashi Iwai wrote:
> > At Fri, 10 Jun 2011 10:51:17 +0200,
> > Michal Hocko wrote:
> > >
> > > On Fri 10-06-11 10:14:13, Takashi Iwai wrote:
> > > > At Fri, 10 Jun 2011 09:56:40 +0200,
> > > > Michal Hocko wrote:
> > > > >
> > > > > On Fri 10-06-11 08:53:01, Takashi Iwai wrote:
> > > > > > At Thu, 9 Jun 2011 13:14:01 +0200,
> [...]
> > > > > OK, I git checkout v2.6.39 -- sound/pci/*.[ch] (see the patch bellow for
> > > > > reference). I have kept the earlier patch.
> > > >
> > > > Gah, sorry, a wrong path. It must be sound/pci/hda/*.[ch].
> > > > Also, please remove my previous patch. It's irrelevant with 2.6.39
> > > > although it should be harmless.
> > >
> > > OK, I have reverted the whole hda directory to 2.6.39 which means AFAIU
> > > that the driver is at the same state as it was in that kernel. And the
> > > sound really works. Both outputs are active whem they should be.
> >
> > Thanks, it's really good to know that we have a good working-base.
> >
> > Now, can you switch back to 3.0rc2 with my fix patch and retest?
>
> Sorry, I am confused now. How this would be different from the previous
> testing where I had that patch applied on top of rc2?
Never mind, I found the possible spot.
Could you try the patch below in addition? There was one missing
initialization in the transition.
The headphone would have been working when you mute/unmute "Master"
volume once.
thanks,
Takashi
---
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index bef7a77..20f01f8 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -1141,6 +1141,13 @@ static void update_speakers(struct hda_codec *codec)
struct alc_spec *spec = codec->spec;
int on;
+ /* Control HP pins/amps depending on master_mute state;
+ * in general, HP pins/amps control should be enabled in all cases,
+ * but currently set only for master_mute, just to be safe
+ */
+ do_automute(codec, ARRAY_SIZE(spec->autocfg.hp_pins),
+ spec->autocfg.hp_pins, spec->master_mute, true);
+
if (!spec->automute)
on = 0;
else
@@ -6202,11 +6209,6 @@ static const struct snd_kcontrol_new alc260_input_mixer[] = {
/* update HP, line and mono out pins according to the master switch */
static void alc260_hp_master_update(struct hda_codec *codec)
{
- struct alc_spec *spec = codec->spec;
-
- /* change HP pins */
- do_automute(codec, ARRAY_SIZE(spec->autocfg.hp_pins),
- spec->autocfg.hp_pins, spec->master_mute, true);
update_speakers(codec);
}
WARNING: multiple messages have this Message-ID (diff)
From: Takashi Iwai <tiwai@suse.de>
To: Michal Hocko <mhocko@suse.cz>
Cc: LKML <linux-kernel@vger.kernel.org>, alsa-devel@alsa-project.org
Subject: Re: [alsa-devel] Headphone output doesn't work with 3.0.0-rc* anymore
Date: Fri, 10 Jun 2011 12:08:03 +0200 [thread overview]
Message-ID: <s5hhb7y2e4c.wl%tiwai@suse.de> (raw)
In-Reply-To: <20110610093019.GC4110@tiehlicka.suse.cz>
At Fri, 10 Jun 2011 11:30:19 +0200,
Michal Hocko wrote:
>
> On Fri 10-06-11 11:18:51, Takashi Iwai wrote:
> > At Fri, 10 Jun 2011 10:51:17 +0200,
> > Michal Hocko wrote:
> > >
> > > On Fri 10-06-11 10:14:13, Takashi Iwai wrote:
> > > > At Fri, 10 Jun 2011 09:56:40 +0200,
> > > > Michal Hocko wrote:
> > > > >
> > > > > On Fri 10-06-11 08:53:01, Takashi Iwai wrote:
> > > > > > At Thu, 9 Jun 2011 13:14:01 +0200,
> [...]
> > > > > OK, I git checkout v2.6.39 -- sound/pci/*.[ch] (see the patch bellow for
> > > > > reference). I have kept the earlier patch.
> > > >
> > > > Gah, sorry, a wrong path. It must be sound/pci/hda/*.[ch].
> > > > Also, please remove my previous patch. It's irrelevant with 2.6.39
> > > > although it should be harmless.
> > >
> > > OK, I have reverted the whole hda directory to 2.6.39 which means AFAIU
> > > that the driver is at the same state as it was in that kernel. And the
> > > sound really works. Both outputs are active whem they should be.
> >
> > Thanks, it's really good to know that we have a good working-base.
> >
> > Now, can you switch back to 3.0rc2 with my fix patch and retest?
>
> Sorry, I am confused now. How this would be different from the previous
> testing where I had that patch applied on top of rc2?
Never mind, I found the possible spot.
Could you try the patch below in addition? There was one missing
initialization in the transition.
The headphone would have been working when you mute/unmute "Master"
volume once.
thanks,
Takashi
---
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index bef7a77..20f01f8 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -1141,6 +1141,13 @@ static void update_speakers(struct hda_codec *codec)
struct alc_spec *spec = codec->spec;
int on;
+ /* Control HP pins/amps depending on master_mute state;
+ * in general, HP pins/amps control should be enabled in all cases,
+ * but currently set only for master_mute, just to be safe
+ */
+ do_automute(codec, ARRAY_SIZE(spec->autocfg.hp_pins),
+ spec->autocfg.hp_pins, spec->master_mute, true);
+
if (!spec->automute)
on = 0;
else
@@ -6202,11 +6209,6 @@ static const struct snd_kcontrol_new alc260_input_mixer[] = {
/* update HP, line and mono out pins according to the master switch */
static void alc260_hp_master_update(struct hda_codec *codec)
{
- struct alc_spec *spec = codec->spec;
-
- /* change HP pins */
- do_automute(codec, ARRAY_SIZE(spec->autocfg.hp_pins),
- spec->autocfg.hp_pins, spec->master_mute, true);
update_speakers(codec);
}
next prev parent reply other threads:[~2011-06-10 10:08 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-07 18:05 Headphone output doesn't work with 3.0.0-rc* anymore Michal Hocko
2011-06-08 16:03 ` Takashi Iwai
2011-06-08 16:03 ` [alsa-devel] " Takashi Iwai
2011-06-08 17:48 ` Michal Hocko
2011-06-09 6:09 ` Takashi Iwai
2011-06-09 6:09 ` [alsa-devel] " Takashi Iwai
2011-06-09 6:17 ` Takashi Iwai
2011-06-09 6:17 ` [alsa-devel] " Takashi Iwai
2011-06-09 8:56 ` Michal Hocko
2011-06-09 9:06 ` Michal Hocko
2011-06-09 9:20 ` Takashi Iwai
2011-06-09 9:28 ` Michal Hocko
2011-06-09 9:44 ` Takashi Iwai
2011-06-09 9:44 ` [alsa-devel] " Takashi Iwai
2011-06-09 11:14 ` Michal Hocko
2011-06-09 11:39 ` Michal Hocko
2011-06-10 6:53 ` Takashi Iwai
2011-06-10 6:53 ` [alsa-devel] " Takashi Iwai
2011-06-10 7:56 ` Michal Hocko
2011-06-10 7:57 ` Michal Hocko
2011-06-10 8:14 ` Takashi Iwai
2011-06-10 8:14 ` [alsa-devel] " Takashi Iwai
2011-06-10 8:51 ` Michal Hocko
2011-06-10 9:18 ` Takashi Iwai
2011-06-10 9:30 ` Michal Hocko
2011-06-10 10:08 ` Takashi Iwai [this message]
2011-06-10 10:08 ` Takashi Iwai
2011-06-10 12:42 ` Michal Hocko
2011-06-10 12:43 ` Takashi Iwai
2011-06-10 12:43 ` [alsa-devel] " Takashi Iwai
2011-06-10 13:20 ` Michal Hocko
2011-06-10 13:27 ` Takashi Iwai
2011-06-10 13:27 ` [alsa-devel] " Takashi Iwai
2011-06-10 8:17 ` Takashi Iwai
2011-06-10 8:17 ` [alsa-devel] " Takashi Iwai
2011-06-10 8:39 ` Powersave doesn't work for snd_hda_intel with 3.0.0-rc2 Michal Hocko
2011-06-10 8:57 ` Takashi Iwai
2011-06-10 8:57 ` Takashi Iwai
2011-06-15 6:08 ` Pavel Machek
2011-06-15 6:08 ` Pavel Machek
2011-06-15 6:22 ` Takashi Iwai
2011-06-15 6:22 ` Takashi Iwai
2011-06-09 9:19 ` Headphone output doesn't work with 3.0.0-rc* anymore Takashi Iwai
2011-06-09 9:19 ` [alsa-devel] " Takashi Iwai
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=s5hhb7y2e4c.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mhocko@suse.cz \
/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.