]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: ctxfi - Clear PCM resources at hw_params and hw_free
authorTakashi Iwai <tiwai@suse.de>
Tue, 9 Jun 2009 06:19:02 +0000 (08:19 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 9 Jun 2009 06:19:02 +0000 (08:19 +0200)
commit8c3a7a1db0d176945a4e864ba3c3af5eb86d865a
treed5c7e3283c2827ab0ce00aaf204315a696114edd
parenta96af79e2c568b55a7f04b947a4d25fe6416c106
ALSA: ctxfi - Clear PCM resources at hw_params and hw_free

Currently the PCM resources are allocated only once and ever in prepare
callback, assuming that the PCM parameters are never changed.  But it's
not true.

This patch adds the call of atc->pcm_release_resources() at hw_params
and hw_free callbacks to assure that the PCM setup is done correctly
for each h/w parameter changes.

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