diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-05-24 17:21:15 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-05-24 17:21:15 +0200 |
commit | 2f43b66c06ece64529e482a6dcc95cde37648252 (patch) | |
tree | 921c940f30ee35bac6d63b79a7391e8ea0087051 /src/hwdep | |
parent | 14d653d7c374f9ba6319a7c5a8ee6f0bc3071304 (diff) | |
download | alsa-lib-2f43b66c06ece64529e482a6dcc95cde37648252.tar.gz |
Allow specifying the max number of cards
Add --with-max-cards option to specify the max number of cards in
configure script, when the support for more than 32 cards is
required.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'src/hwdep')
-rw-r--r-- | src/hwdep/hwdep_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hwdep/hwdep_hw.c b/src/hwdep/hwdep_hw.c index e4fcdc39..4314e32b 100644 --- a/src/hwdep/hwdep_hw.c +++ b/src/hwdep/hwdep_hw.c @@ -112,7 +112,7 @@ int snd_hwdep_hw_open(snd_hwdep_t **handle, const char *name, int card, int devi *handle = NULL; - if (card < 0 || card >= 32) + if (card < 0 || card >= SND_MAX_CARDS) return -EINVAL; sprintf(filename, SNDRV_FILE_HWDEP, card, device); fd = snd_open_device(filename, mode); |