diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-11-29 16:39:52 +0000 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-11-30 14:50:53 +0100 |
commit | 4acd57c3de62374fe5bb52e5cd24538190f4eab2 (patch) | |
tree | d611ef755ef4951f2308249460f805bbd1cd2dca | |
parent | 77a9d3eb774f50965106cb2937be660d093a5272 (diff) | |
download | linux-3.10-4acd57c3de62374fe5bb52e5cd24538190f4eab2.tar.gz linux-3.10-4acd57c3de62374fe5bb52e5cd24538190f4eab2.tar.bz2 linux-3.10-4acd57c3de62374fe5bb52e5cd24538190f4eab2.zip |
ALSA: AACI: fix AC97 multiple-open bug
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/arm/aaci.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/arm/aaci.c b/sound/arm/aaci.c index 1f0f8213e2d..1cb7c282a1f 100644 --- a/sound/arm/aaci.c +++ b/sound/arm/aaci.c @@ -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)); |