*handle = NULL;
- assert(card >= 0 && card < SND_CARDS);
+ assert(card >= 0 && card < 32);
sprintf(filename, SND_FILE_CONTROL, card);
if ((fd = open(filename, O_RDWR)) < 0) {
snd_card_load(card);
*handle = NULL;
- if (card < 0 || card >= SND_CARDS)
+ if (card < 0 || card >= 32)
return -EINVAL;
sprintf(filename, SND_FILE_HWDEP, card, device);
if ((fd = open(filename, mode)) < 0) {
*handlep = NULL;
- assert(card >= 0 && card < SND_CARDS);
+ assert(card >= 0 && card < 32);
if ((ret = snd_ctl_hw_open(&ctl, NULL, card)) < 0)
return ret;