]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5fe88b48d8df55337406a6542518eaf28ec5164b
tree62c40ba1705313a09649f954aef5b8a1da100560
parentcc7a00268aafec3c58b528c4ea8ad2cf2cd80a51
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