public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] atiixp ac97 timeout gives error (2.6.7-rc2)
@ 2004-06-08 11:16 Ard van Breemen
  2004-06-08 12:54 ` Takashi Iwai
  0 siblings, 1 reply; 3+ messages in thread
From: Ard van Breemen @ 2004-06-08 11:16 UTC (permalink / raw)
  To: linux-kernel; +Cc: ard

[-- Attachment #1: Type: text/plain, Size: 735 bytes --]

Hi,
I found that with 2.6.7-rc2 alsa refuses to recognize my atiixp
as a working sound card.
My atiixp is of a compaq nx9110 notebook.

pci stuff:

0000:00:14.5 Class 0401: 1002:4341
        Subsystem: 103c:006b
        Flags: bus master, 66MHz, slow devsel, latency 64, IRQ 5
        Memory at d0003000 (32-bit, non-prefetchable)

or:
0000:00:14.5 Multimedia audio controller: ATI Technologies Inc SoundMAX Integrated Digital Audio

I've patched the atiixp driver by ignoring the error when the
driver loads. If I recall correctly, this was the normal
behaviour in 2.6.5: a timeout warning was issued, but the "card"
functioned is it should.

If an alsa developer could point me to the "right" way, I can
make the patch a real patch.

[-- Attachment #2: patch-atiixp-soundmax --]
[-- Type: text/plain, Size: 794 bytes --]

--- atiixp.c.org	2004-06-08 10:01:41.000000000 +0200
+++ atiixp.c	2004-06-08 10:04:30.000000000 +0200
@@ -1387,12 +1387,18 @@
 		ac97.num = i;
 		ac97.scaps = AC97_SCAP_SKIP_MODEM;
 		if ((err = snd_ac97_mixer(pbus, &ac97, &chip->ac97[i])) < 0) {
-			if (chip->codec_not_ready_bits)
+
+	 		if (chip->codec_not_ready_bits) {
 				/* codec(s) was detected but not available.
 				 * return the error
 				 */
-				return err;
-			else {
+				/*
+				 * The codec probably still is busy, which is
+				 * according to specs I thought.
+				 */
+				/* return err; */
+				printk("snd-atiixp: ignored codec not ready\n",__LINE__);
+			} else {
 				/* codec(s) was NOT detected, so just ignore here */
 				chip->ac97[i] = NULL; /* to be sure */
 				snd_printd("atiixp: codec %d not found\n", i);

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-06-13 21:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-08 11:16 [PATCH] atiixp ac97 timeout gives error (2.6.7-rc2) Ard van Breemen
2004-06-08 12:54 ` Takashi Iwai
2004-06-13 21:42   ` Ard van Breemen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox