All of lore.kernel.org
 help / color / mirror / Atom feed
* Fix for slow snd-ali5451 initialization
@ 2005-11-05 19:38 Vince Busam
  2005-11-05 20:22 ` Lee Revell
  2005-11-07 10:54 ` Takashi Iwai
  0 siblings, 2 replies; 13+ messages in thread
From: Vince Busam @ 2005-11-05 19:38 UTC (permalink / raw)
  To: alsa-devel

The snd-ali5451 driver takes 10 seconds to load, which is quite annoying 
on a laptop that boots every day.  This patch lowers that to a much more 
managable time, and still works fine on my laptop.

Vince

     Summary: Speed up ali5451 initialization

     The patch speeds up loading the ali5451 driver by lowering the
     wait time in snd_ali_codec_ready()

     Author: Vince Busam <vince@sixpak.org
     Signed-off-by: Vince Busam <vince@sixpak.org>

--- linux-source-2.6.12/sound/pci/ali5451/ali5451.c	2005-10-10 05:12:34.000000000 -0700
+++ linux-source-2.6.12-new/sound/pci/ali5451/ali5451.c	2005-11-05 11:25:11.000000000 -0800
@@ -399,7 +399,7 @@ static int snd_ali_codec_ready(	ali_t *c
  	unsigned long end_time;
  	unsigned int res;

-	end_time = jiffies + 10 * (HZ >> 2);
+	end_time = jiffies + 10 * (HZ >> 6);
  	do {
  		res = snd_ali_5451_peek(codec,port);
  		if (! (res & 0x8000))

-- 
Vince Busam
vince@sixpak.org
http://sixpak.org/vince/


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php

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

end of thread, other threads:[~2005-11-14  6:45 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-05 19:38 Fix for slow snd-ali5451 initialization Vince Busam
2005-11-05 20:22 ` Lee Revell
2005-11-06  2:14   ` Vince Busam
2005-11-07 10:54 ` Takashi Iwai
2005-11-07 15:46   ` Sasha Khapyorsky
2005-11-07 15:48     ` Takashi Iwai
2005-11-08  5:14       ` Vince Busam
2005-11-08 10:23         ` Takashi Iwai
2005-11-10  5:17           ` Vince Busam
2005-11-11 14:14             ` Takashi Iwai
2005-11-14  6:45               ` Vince Busam
2005-11-08  5:17     ` Vince Busam
2005-11-08 17:48       ` Sasha Khapyorsky

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.