All of lore.kernel.org
 help / color / mirror / Atom feed
* Patch for ali5451 (ATI IGP chipset) "ali_codec_ready: codec is not ready"
@ 2003-03-29 16:25 ANDREI LAHUN
  2003-04-07 15:30 ` Takashi Iwai
  0 siblings, 1 reply; 3+ messages in thread
From: ANDREI LAHUN @ 2003-03-29 16:25 UTC (permalink / raw)
  To: alsa-devel

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

Hello.
Since i bought new laptop (Packard bell igo 3xxx) (ATI
IGP chipset, ALI 5451 sound) i had a problems with a
sound .Trident from OSS worked but quality was not
good. Alsa always hunged with messages (during
modprobe) -
"ali_codec_ready: codec is not ready" all over the
place. Finally i found a fix - to make it work like in
trident OSS driver. For me now alsa works perfectly
in native mode and in OSS emulation. Thank u for great
drivers!

Andrei

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

[-- Attachment #2: ali5451_codec_ready.patch --]
[-- Type: application/octet-stream, Size: 877 bytes --]

--- alsa-driver-0.9.2/alsa-kernel/pci/ali5451/ali5451.c	Tue Feb 25 14:35:43 2003
+++ alsa-driver-0.9.2-mod/alsa-kernel/pci/ali5451/ali5451.c	Tue Mar 25 00:26:53 2003
@@ -376,16 +376,19 @@
 				int sched )
 {
 	signed long end_time;
+	unsigned long res;
 	
 	end_time = jiffies + 10 * (HZ >> 2);
 	do {
-		if (!(snd_ali_5451_peek(codec,port) & 0x8000))
+		res = snd_ali_5451_peek(codec,port);
+		if (!(res & 0x8000))
 			return 0;
 		if (sched) {
 			set_current_state(TASK_UNINTERRUPTIBLE);
 			schedule_timeout(1);
 		}
 	} while (end_time - (signed long)jiffies >= 0);
+	snd_ali_5451_poke(codec,port, res & 0x7fff);
 	snd_printk("ali_codec_ready: codec is not ready.\n ");
 	return -EIO;
 }
@@ -408,6 +411,9 @@
 			schedule_timeout(1);
 		}
 	} while (end_time - (signed long)jiffies >= 0);
+	
+	
+	
 	snd_printk("ali_stimer_read: stimer is not ready.\n");
 	return -EIO;
 }

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

end of thread, other threads:[~2003-04-07 22:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-29 16:25 Patch for ali5451 (ATI IGP chipset) "ali_codec_ready: codec is not ready" ANDREI LAHUN
2003-04-07 15:30 ` Takashi Iwai
2003-04-07 22:28   ` ANDREI LAHUN

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.