Skip to contentSkip to conversation

ALSA: AACI: fix AC97 multiple-open bug

PATCH In review Russell King - ARM Linux 1 participant 1 message Nov 29, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ALSA: AACI: fix AC97 multiple-open bug

---
 sound/arm/aaci.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
sound/arm/aaci.c +4 -0
index a03fe80..1456fc7 100644
@@ -501,6 +501,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));
Signature · 1 line
1.6.2.5