Replaced SND_CARDS with constant.

This commit is contained in:
Jaroslav Kysela 2000-12-01 12:58:34 +00:00
parent 35cb79860d
commit 22ff96036a
3 changed files with 3 additions and 3 deletions

View file

@ -46,7 +46,7 @@ int snd_hwdep_open(snd_hwdep_t **handle, int card, int device, int mode)
*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) {