[ALSA] Improve the slots option handling
authorTakashi Iwai <tiwai@suse.de>
Tue, 27 May 2008 15:59:24 +0000 (17:59 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 28 May 2008 13:14:32 +0000 (15:14 +0200)
commita93bbaa77ea61c6bad684263a65f812b31bf9791
tree46dda28fb9a4696722ae85946dc18434b9ff7cc9
parentf9423e7a94eb2dfef3503dde76d17eaf342ab962
[ALSA] Improve the slots option handling

Fix and improve the slots option handling.  The sound core tries to
find the slot with the given module name first and assign if it's
still available.  If all pre-given slots are unavailable, then try
to find another free slot.

Also, when a module name begins with '!', it means the negative match:
the slot will be given for any modules but that one.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Documentation/sound/alsa/ALSA-Configuration.txt
sound/core/init.c