mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-09-19 05:04:27 +00:00
ALSA: AACI: fix AC97 multiple-open bug
commit 4acd57c3de62374fe5bb52e5cd24538190f4eab2 upstream. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b381ea627f
commit
c20be9b482
@@ -504,6 +504,10 @@ static int aaci_pcm_hw_params(struct snd_pcm_substream *substream,
|
||||
int err;
|
||||
|
||||
aaci_pcm_hw_free(substream);
|
||||
if (aacirun->pcm_open) {
|
||||
snd_ac97_pcm_close(aacirun->pcm);
|
||||
aacirun->pcm_open = 0;
|
||||
}
|
||||
|
||||
err = devdma_hw_alloc(NULL, substream,
|
||||
params_buffer_bytes(params));
|
||||
|
||||
Reference in New Issue
Block a user