ALSA: Refactor slot assignment code
There are two loops that are almost identical but only with differentchecks. Refactor them with a simple helper, and give a bit morecomments what's doing there.Signed-off-by: Takashi Iwai <tiwai@suse.de>
Takashi Iwai 12 years ago deb6596f 4c3773ed