OSDN Git Service

Fix breakage of snd_card_load()
authorTakashi Iwai <tiwai@suse.de>
Tue, 9 Jun 2009 02:45:18 +0000 (04:45 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 9 Jun 2009 02:45:18 +0000 (04:45 +0200)
Fixed the breakage of snd_card_load() for secondary and later cards
due to changes in snd_card_load1().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/control/cards.c

index 6208c73..0bb8f86 100644 (file)
@@ -82,7 +82,7 @@ static int snd_card_load1(int card)
  */
 int snd_card_load(int card)
 {
-       return !!(snd_card_load1(card) == 0);
+       return !!(snd_card_load1(card) >= 0);
 }
 
 /**