Skip to content

Commit

Permalink
ALSA: AACI: fix AC97 multiple-open bug
Browse files Browse the repository at this point in the history
Signed-off-by: Russell King <[email protected]>
Cc: <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
Russell King authored and tiwai committed Nov 30, 2009
1 parent 77a9d3e commit 4acd57c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sound/arm/aaci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 4acd57c

Please sign in to comment.