]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ALSA: us122l: add snd_us122l_free()
authorKarsten Wiese <fzu@wemgehoertderstaat.de>
Fri, 24 Apr 2009 16:05:19 +0000 (16:05 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 8 May 2009 22:44:58 +0000 (15:44 -0700)
commitd2d83e1f527b6b0faf15d54b22c032ed5812d054
tree29c5e5d97f0e6311f22185e6a06a23a78a3b932a
parent5c47524b514b5bb3732c3b893338a210d67da3cd
ALSA: us122l: add snd_us122l_free()

upstream commit: 5d4af1be06affa2b42cdf59cd376752be1f934b3

Use it to clean up snd_us122l_card_used[].

Without patch unplugging of an US122L soundcard didn't reset the
corresponding element of snd_us122l_card_used[] to 0.
The (SNDRV_CARDS + 1)th plugging in did not result in creating the soundcard
device anymore.
Index values supplied with the modprobe command line were not used correctly
anymore after the first unplugging of an US122L.

Signed-off-by: Karsten Wiese <fzu@wemgehoertderstaat.de>
Cc: stable@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
[chrisw: backport to 2.6.29]
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
sound/usb/usx2y/us122l.c