Update of /cvsroot/alsa/alsa-driver/usb/us428
In directory sc8-pr-cvs1:/tmp/cvs-serv7711/usb/us428

Modified Files:
        usbus428audio.c 
Log Message:
Added cond_resched() macro

Index: usbus428audio.c
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/usb/us428/usbus428audio.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- usbus428audio.c     24 Sep 2003 16:45:10 -0000      1.2
+++ usbus428audio.c     30 Sep 2003 08:54:47 -0000      1.3
@@ -616,7 +616,6 @@
                set_current_state(TASK_UNINTERRUPTIBLE);
                snd_printd("snd_us428_urbs_wait_clear waiting\n");
                schedule_timeout(1);
-               set_current_state(TASK_RUNNING);
        } while (--timeout > 0);
        if (alive)
                snd_printk(KERN_ERR "timeout: still %d active urbs..\n", alive);
@@ -931,7 +930,7 @@
                                break;
 
                        add_wait_queue(&us428_stream->us428->In04WaitQueue, &wait);
-                       current->state =        TASK_INTERRUPTIBLE;
+                       set_current_state(TASK_INTERRUPTIBLE);
                        us->submitted =         0;
                        us->len =               NOOF_SETRATE_URBS;
                        us428_stream->us428->US04 =     us;
@@ -951,7 +950,7 @@
                                us428_stream->us428->refframes = rate == 48000 ? 47 : 
44;
                        } while (0);
                
-                       current->state = TASK_RUNNING;
+                       set_current_state(TASK_RUNNING);
                        remove_wait_queue(&us428_stream->us428->In04WaitQueue, &wait);
                } while (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

Reply via email to