Update of /cvsroot/alsa/alsa-kernel/i2c
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5759/i2c
Modified Files:
cs8427.c
Log Message:
fixed cs8427_timeout option to use the correct value in msec.
Index: cs8427.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/i2c/cs8427.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- cs8427.c 20 Mar 2004 13:10:01 -0000 1.18
+++ cs8427.c 24 Mar 2004 11:42:54 -0000 1.19
@@ -258,6 +258,8 @@
snd_i2c_unlock(bus);
/* turn on run bit and rock'n'roll */
+ if (reset_timeout < 1)
+ reset_timeout = 1;
chip->reset_timeout = reset_timeout;
snd_cs8427_reset(device);
@@ -312,7 +314,7 @@
if (!(data & CS8427_UNLOCK))
break;
set_current_state(TASK_UNINTERRUPTIBLE);
- schedule_timeout(HZ/100);
+ schedule_timeout(1);
}
snd_i2c_lock(cs8427->bus);
chip->regmap[CS8427_REG_CLOCKSOURCE] &= ~CS8427_RXDMASK;
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog