From: acallan.alsa@ugnet.org
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: Alsa 1.0.13 (and others) does not work on ALC880
Date: Tue, 12 Jun 2007 00:51:48 -0500 (CDT) [thread overview]
Message-ID: <Pine.LNX.4.58.0706120045540.6306@integrity.ugnet.org> (raw)
In-Reply-To: <s5h645y3mfi.wl%tiwai@suse.de>
Yes, I had tried it, and it did not work. However, I hadn't grasped what
you were trying to accomplish with it. The problem was that
hda_set_power_state() still called snd_hda_get_sub_nodes() on the modem
codec before looping over the calls to get_wcaps(), and
snd_hda_get_sub_nodes() is the function causing problems for my chip.
The following patch works for me, and I think it accomplishes what you
wanted.
Andrew
On Fri, 8 Jun 2007, Takashi Iwai wrote:
> At Thu, 7 Jun 2007 01:01:54 -0500 (CDT),
> acallan.alsa@ugnet.org wrote:
> >
> > On Wed, 6 Jun 2007, Takashi Iwai wrote:
> >
> > > At Wed, 6 Jun 2007 01:07:15 -0500 (CDT),
> > > acallan.alsa@ugnet.org wrote:
> > > >
> > > > cat /proc/asound/card0/codec#1 works just fine, and sound still works
> > > > fine even after that. Looking at the function print_codec_info()
> > > > (hda_proc.c), there is already the check:
> > > > if (! codec->afg)
> > > > return;
> > > > after the vendor, subsystem, and revision are retrieved but before the
> > > > pcm, amp caps, and node information are retrieved.
> > >
> > > Oh silly me.
> > >
> > > I guess the following patch works alone. Could you test it?
> > >
> > >
> > > Takashi
> > >
> >
> > I had to also add in the workarounds for the power states as in the
> > following patch.
>
> Did you try my latest patch?
> It sets the power state of only the FG node, and doesn't touch child
> nodes any more for modem FG. You patch will skip the power state
> completely for modem FG.
>
>
> Takashi
>
diff -r 95e93362c92d pci/hda/hda_codec.c
--- a/pci/hda/hda_codec.c Mon Jun 11 12:23:31 2007 +0200
+++ b/pci/hda/hda_codec.c Mon Jun 11 23:27:33 2007 -0500
@@ -562,7 +562,7 @@ int __devinit snd_hda_codec_new(struct h
return -ENODEV;
}
- if (read_widget_caps(codec, codec->afg ? codec->afg : codec->mfg) < 0) {
+ if (codec->afg && read_widget_caps(codec, codec->afg) < 0) {
snd_printk(KERN_ERR "hda_codec: cannot malloc\n");
snd_hda_codec_free(codec);
return -ENOMEM;
@@ -1351,6 +1351,8 @@ static void hda_set_power_state(struct h
snd_hda_codec_write(codec, fg, 0, AC_VERB_SET_POWER_STATE,
power_state);
+ if (! codec->afg)
+ return;
nodes = snd_hda_get_sub_nodes(codec, fg, &nid_start);
for (nid = nid_start; nid < nodes + nid_start; nid++) {
if (get_wcaps(codec, nid) & AC_WCAP_POWER)
next prev parent reply other threads:[~2007-06-12 4:52 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-19 7:08 Alsa 1.0.13 (and others) does not work on ALC880 Andrew Callan
2007-05-19 15:11 ` Takashi Iwai
2007-05-19 15:47 ` Tobin Davis
2007-05-19 17:22 ` E.D.V.
2007-05-19 17:51 ` Tobin Davis
2007-05-20 2:49 ` Andrew Callan
2007-05-20 3:26 ` Andrew Callan
2007-06-03 3:20 ` acallan.alsa
2007-06-04 14:14 ` Takashi Iwai
2007-06-05 4:17 ` acallan.alsa
2007-06-05 10:42 ` Takashi Iwai
2007-06-06 6:07 ` acallan.alsa
2007-06-06 12:54 ` Takashi Iwai
2007-06-07 6:01 ` acallan.alsa
2007-06-08 8:00 ` Takashi Iwai
2007-06-12 5:51 ` acallan.alsa [this message]
2007-06-12 9:35 ` Takashi Iwai
-- strict thread matches above, loose matches on Subject: below --
2007-05-14 13:00 Eric
2007-05-14 12:56 Eric
2007-05-14 23:39 ` Tobin Davis
2007-05-15 9:02 ` E.D.V.
[not found] ` <1179415598.4415.312.camel@razman.gruemaster.com>
2007-05-18 21:09 ` Eric De Vito
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=Pine.LNX.4.58.0706120045540.6306@integrity.ugnet.org \
--to=acallan.alsa@ugnet.org \
--cc=alsa-devel@alsa-project.org \
--cc=tiwai@suse.de \
/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).