Update of /cvsroot/alsa/alsa-kernel/core
In directory sc8-pr-cvs1:/tmp/cvs-serv25276/core

Modified Files:
        timer.c 
Log Message:
Sync with the 2.6 kernel tree


Index: timer.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/timer.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -r1.45 -r1.46
--- timer.c     21 Jul 2003 16:59:06 -0000      1.45
+++ timer.c     20 Aug 2003 09:10:27 -0000      1.46
@@ -148,24 +148,19 @@
 
 static void snd_timer_request(snd_timer_id_t *tid)
 {
-       char str[32];
-       
        switch (tid->dev_class) {
        case SNDRV_TIMER_CLASS_GLOBAL:
-               if (tid->device >= timer_limit)
-                       return;
-               sprintf(str, "snd-timer-%i", tid->device);
+               if (tid->device < timer_limit)
+                       request_module("snd-timer-%i", tid->device);
                break;
        case SNDRV_TIMER_CLASS_CARD:
        case SNDRV_TIMER_CLASS_PCM:
-               if (tid->card >= snd_ecards_limit)
-                       return;
-               sprintf(str, "snd-card-%i", tid->card);
+               if (tid->card < snd_ecards_limit)
+                       request_module("snd-card-%i", tid->card);
                break;
        default:
-               return;
+               break;
        }
-       request_module(str);
 }
 
 #endif



-------------------------------------------------------
This SF.net email is sponsored by Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code=104
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to