Update of /cvsroot/alsa/alsa-kernel/pci/ali5451
In directory sc8-pr-cvs1:/tmp/cvs-serv15155/pci/ali5451
Modified Files:
ali5451.c
Log Message:
fixed timeout check; using standard time_xxx macros.
Index: ali5451.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ali5451/ali5451.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- ali5451.c 25 Feb 2003 13:35:43 -0000 1.30
+++ ali5451.c 24 Mar 2003 16:32:34 -0000 1.31
@@ -375,7 +375,7 @@
unsigned int port,
int sched )
{
- signed long end_time;
+ unsigned long end_time;
end_time = jiffies + 10 * (HZ >> 2);
do {
@@ -385,14 +385,14 @@
set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout(1);
}
- } while (end_time - (signed long)jiffies >= 0);
+ } while (time_after_eq(end_time, jiffies));
snd_printk("ali_codec_ready: codec is not ready.\n ");
return -EIO;
}
static int snd_ali_stimer_ready(ali_t *codec, int sched)
{
- signed long end_time;
+ unsigned long end_time;
unsigned long dwChk1,dwChk2;
dwChk1 = snd_ali_5451_peek(codec, ALI_STIMER);
@@ -407,7 +407,7 @@
set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout(1);
}
- } while (end_time - (signed long)jiffies >= 0);
+ } while (time_after_eq(end_time, jiffies));
snd_printk("ali_stimer_read: stimer is not ready.\n");
return -EIO;
}
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog