]> git.alsa-project.org Git - alsa-tools.git/commitdiff
load the firmwares to all cards as default.
authorTakashi Iwai <tiwai@suse.de>
Fri, 28 Feb 2003 14:19:52 +0000 (14:19 +0000)
committerTakashi Iwai <tiwai@suse.de>
Fri, 28 Feb 2003 14:19:52 +0000 (14:19 +0000)
vxloader/vxloader.c

index 7b9827074de83273776fbdce7c0f134b84233b64..1ebbc3c6a6f0173773d4ef8a8923c3a9c08abdcd 100644 (file)
@@ -369,12 +369,15 @@ int main(int argc, char **argv)
                return vx_boot(name) != 0;
        }
 
-       /* probe the cards until found */
+       /* probe the all cards */
        for (c = 0; c < SND_CARDS; c++) {
                sprintf(name, "hw:%d", c);
                if (! vx_boot(name))
-                       return 0;
+                       card = c;
        }
-       fprintf(stderr, PROGNAME ": no VX-compatible cards found\n");
-       return 1;
+       if (card < 0) {
+               fprintf(stderr, PROGNAME ": no VX-compatible cards found\n");
+               return 1;
+       }
+       return 0;
 }