ALSA: ALSA: ctxfi - Release PCM resources at each prepare call
authorTakashi Iwai <tiwai@suse.de>
Tue, 2 Jun 2009 12:12:17 +0000 (14:12 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 2 Jun 2009 13:54:46 +0000 (15:54 +0200)
commit822fa19b5c23746577687a0ec48eae0ec1cd22a0
tree62c40ba1705313a09649f954aef5b8a1da100560
parent8a4259bf89d23bfd58d87e275ef6da29cea6b3c5
ALSA: ALSA: ctxfi - Release PCM resources at each prepare call

The prepare callback can be called multiple times, thus it needs to
release and acquire the resource again by itself at the second or later
call.

Simply add pcm_release_resources() at the beginning of each prepare
callback in ctatc.c.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ctxfi/ctatc.c