]> git.alsa-project.org Git - alsa-tools.git/commitdiff
Changed from snd_ctl_card_get_type to driver
authorTakashi Iwai <tiwai@suse.de>
Wed, 27 Jun 2001 13:16:18 +0000 (13:16 +0000)
committerTakashi Iwai <tiwai@suse.de>
Wed, 27 Jun 2001 13:16:18 +0000 (13:16 +0000)
sb16_csp/cspctl.c

index 08e3c2634458498891261815a78de8b6b211a8ae..67cd4afd8c9a3f5fd07a7e2fdf9d43e921e0488f 100644 (file)
@@ -195,8 +195,8 @@ int main(int argc, char *argv[])
        }
 
        // CSP chip is present only on SB16 and SBAWE cards
-       if ((snd_ctl_card_info_get_type(card_info) != SND_CARD_TYPE_SB_16) &&
-           (snd_ctl_card_info_get_type(card_info) != SND_CARD_TYPE_SB_AWE)) {
+       if (strcmp(snd_ctl_card_info_get_driver(card_info), "SB 16") != 0 &&
+           strcmp(snd_ctl_card_info_get_driver(card_info), "SB AWE") != 0) {
                error("not a SB_16 or SB_AWE type card");
                exit(1);
        }