Update of /cvsroot/alsa/alsa-kernel/core/seq/oss
In directory usw-pr-cvs1:/tmp/cvs-serv11819/oss
Modified Files:
seq_oss_readq.c seq_oss_writeq.c
Log Message:
removed snd_seq_sleep* functions.
the relevant parts are replaced with the normal spin_unlock/sleep/spin_lock
procedure.
Index: seq_oss_readq.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/seq/oss/seq_oss_readq.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- seq_oss_readq.c 12 Aug 2002 08:43:46 -0000 1.5
+++ seq_oss_readq.c 8 Oct 2002 10:54:44 -0000 1.6
@@ -159,9 +159,10 @@
spin_lock_irqsave(&q->lock, *rflags);
if (q->qlen == 0) {
if (blocking) {
- snd_seq_sleep_timeout_in_lock(&q->midi_sleep,
- &q->lock,
- q->pre_event_timeout);
+ spin_unlock(&q->lock);
+ interruptible_sleep_on_timeout(&q->midi_sleep,
+ q->pre_event_timeout);
+ spin_lock(&q->lock);
}
if (q->qlen == 0) {
spin_unlock_irqrestore(&q->lock, *rflags);
Index: seq_oss_writeq.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/seq/oss/seq_oss_writeq.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- seq_oss_writeq.c 12 Aug 2002 08:43:46 -0000 1.4
+++ seq_oss_writeq.c 8 Oct 2002 10:54:45 -0000 1.5
@@ -122,7 +122,9 @@
}
/* wait for echo event */
- snd_seq_sleep_timeout_in_lock(&q->sync_sleep, &q->sync_lock, HZ);
+ spin_unlock(&q->sync_lock);
+ interruptible_sleep_on_timeout(&q->sync_sleep, HZ);
+ spin_lock(&q->sync_lock);
if (signal_pending(current)) {
/* interrupted - return 0 to finish sync */
q->sync_event_put = 0;
-------------------------------------------------------
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