diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-05-15 08:46:39 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-05-24 16:41:46 +0200 |
commit | 7bb2491b35a254fe6fd592c32a142a2f2f31fe6e (patch) | |
tree | be7933980d3449e54cad4395e3b53185324f29c3 /sound/core/Kconfig | |
parent | 8edbb198a62e2c3d0bea06ce50a4d45a009849b6 (diff) |
ALSA: Add kconfig to specify the max card numbers
Currently ALSA supports up to 32 card instances when the dynamic minor
is used. While 32 cards are usually big enough for normal use cases,
there are sometimes weird requirements with more card support.
Actually, this limitation, 32, comes from the index option, where you
can pass the bit mask to assign the card. Other than that, we can
actually give more cards up to the minor number limits (currently 256,
which can be extended more, too).
This patch adds a new Kconfig to specify the max card numbers, and
changes a few places to accept more than 32 cards.
The only incompatibility with high card numbers would be the handling
of index option. The index option can be still used to pass the
bitmask for card assignments, but this works only up to 32 slots.
More than 32, no bitmask style option is available but only a single
slot can be specified via index option.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/Kconfig')
-rw-r--r-- | sound/core/Kconfig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/core/Kconfig b/sound/core/Kconfig index b413ed05e74..c0c2f57a0d6 100644 --- a/sound/core/Kconfig +++ b/sound/core/Kconfig @@ -157,6 +157,15 @@ config SND_DYNAMIC_MINORS If you are unsure about this, say N here. +config SND_MAX_CARDS + int "Max number of sound cards" + range 4 256 + default 32 + depends on SND_DYNAMIC_MINORS + help + Specify the max number of sound cards that can be assigned + on a single machine. + config SND_SUPPORT_OLD_API bool "Support old ALSA API" default y |