From: Takashi Iwai <tiwai@suse.de>
To: Chuck Ebbert <cebbert@redhat.com>
Cc: Pavel Machek <pavel@ucw.cz>,
kernel list <linux-kernel@vger.kernel.org>,
Ingo Molnar <mingo@elte.hu>
Subject: Re: BUG: soft lockup during suspend
Date: Tue, 20 Mar 2007 17:21:22 +0100 [thread overview]
Message-ID: <s5hzm67c2d9.wl%tiwai@suse.de> (raw)
In-Reply-To: <s5h648vdhin.wl%tiwai@suse.de>
At Tue, 20 Mar 2007 17:08:48 +0100,
I wrote:
>
> At Tue, 20 Mar 2007 12:05:07 -0400,
> Chuck Ebbert wrote:
> >
> > Takashi Iwai wrote:
> > >
> > > X60/T60 is known to be often broken regarding the communication
> > > between the controller and the codec chip. When this kind of thing
> > > happens, the driver tries to switch to a single-shot I/O without using
> > > ring-buffers and IRQs, and even in such a mode, the communication gets
> > > broken. FWIW, it doesn't happen on other machines with HD-audio, so
> > > it's fairly specific to X60/T60. No idea why.
> >
> > What about Acer Aspire 5102?
> >
> > http://lkml.org/lkml/2006/12/3/9
>
> This is a different problem.
> A known workaround is to provide probe_mask=1 module option.
BTW, does this happen on the latest linus git tree? (rc4 may work,
though)
If yes, could you try the patch below?
thanks,
Takashi
diff -r 1dd843b6ffa7 sound/pci/hda/hda_intel.c
--- a/sound/pci/hda/hda_intel.c Tue Mar 20 11:33:46 2007 +0100
+++ b/sound/pci/hda/hda_intel.c Tue Mar 20 17:16:20 2007 +0100
@@ -198,6 +198,7 @@ enum { SDI0, SDI1, SDI2, SDI3, SDO0, SDO
#define RIRB_INT_MASK 0x05
/* STATESTS int mask: SD2,SD1,SD0 */
+#define AZX_MAX_CODECS 3
#define STATESTS_INT_MASK 0x07
/* SD_CTL bits */
@@ -991,7 +992,7 @@ static int __devinit azx_codec_create(st
return err;
codecs = 0;
- for (c = 0; c < azx_max_codecs[chip->driver_type]; c++) {
+ for (c = 0; c < AZX_MAX_CODECS; c++) {
if ((chip->codec_mask & (1 << c)) & probe_mask) {
err = snd_hda_codec_new(chip->bus, c, NULL);
if (err < 0)
@@ -999,7 +1000,18 @@ static int __devinit azx_codec_create(st
codecs++;
}
}
- if (! codecs) {
+ if (!codecs) {
+ /* probe additional slots if no codec is found */
+ for (; c < azx_max_codecs[chip->driver_type]; c++) {
+ if ((chip->codec_mask & (1 << c)) & probe_mask) {
+ err = snd_hda_codec_new(chip->bus, c, NULL);
+ if (err < 0)
+ continue;
+ codecs++;
+ }
+ }
+ }
+ if (!codecs) {
snd_printk(KERN_ERR SFX "no codecs initialized\n");
return -ENXIO;
}
next prev parent reply other threads:[~2007-03-20 16:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-20 12:32 Pavel Machek
2007-03-20 12:37 ` Takashi Iwai
2007-03-20 13:22 ` Pavel Machek
2007-03-20 13:39 ` Takashi Iwai
2007-03-20 16:05 ` Chuck Ebbert
2007-03-20 16:08 ` Takashi Iwai
2007-03-20 16:21 ` Takashi Iwai [this message]
2007-03-20 16:32 ` Chuck Ebbert
2007-03-20 21:00 ` Takashi Iwai
2007-03-23 19:22 ` Chuck Ebbert
2007-03-26 9:50 ` 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=s5hzm67c2d9.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=cebbert@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=pavel@ucw.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome