diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-12-01 02:36:05 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-12-01 02:36:05 -0500 |
commit | ef47bf386e2042c2e483b4ea0259233202ad3ebf (patch) | |
tree | 02baba407d2dbae9d367865c3d52d6e9400c8773 /sound/arm/aaci.c | |
parent | 306ecee926cf79f1b3b5f6035be09ef3d83f1b76 (diff) | |
parent | 8ee763b9c82c6ca0a59a7271ce4fa29d7baf5c09 (diff) |
Merge branch 'fix/misc' into topic/misc
Diffstat (limited to 'sound/arm/aaci.c')
-rw-r--r-- | sound/arm/aaci.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/arm/aaci.c b/sound/arm/aaci.c index a03fe80a7a73..eb715e732106 100644 --- a/sound/arm/aaci.c +++ b/sound/arm/aaci.c | |||
@@ -501,6 +501,10 @@ static int aaci_pcm_hw_params(struct snd_pcm_substream *substream, | |||
501 | int err; | 501 | int err; |
502 | 502 | ||
503 | aaci_pcm_hw_free(substream); | 503 | aaci_pcm_hw_free(substream); |
504 | if (aacirun->pcm_open) { | ||
505 | snd_ac97_pcm_close(aacirun->pcm); | ||
506 | aacirun->pcm_open = 0; | ||
507 | } | ||
504 | 508 | ||
505 | err = devdma_hw_alloc(NULL, substream, | 509 | err = devdma_hw_alloc(NULL, substream, |
506 | params_buffer_bytes(params)); | 510 | params_buffer_bytes(params)); |
@@ -514,7 +518,7 @@ static int aaci_pcm_hw_params(struct snd_pcm_substream *substream, | |||
514 | else | 518 | else |
515 | err = snd_ac97_pcm_open(aacirun->pcm, params_rate(params), | 519 | err = snd_ac97_pcm_open(aacirun->pcm, params_rate(params), |
516 | params_channels(params), | 520 | params_channels(params), |
517 | aacirun->pcm->r[1].slots); | 521 | aacirun->pcm->r[0].slots); |
518 | 522 | ||
519 | if (err) | 523 | if (err) |
520 | goto out; | 524 | goto out; |