diff options
Diffstat (limited to 'sound/arm/aaci.c')
-rw-r--r-- | sound/arm/aaci.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/sound/arm/aaci.c b/sound/arm/aaci.c index eb715e732106..83b0328d389e 100644 --- a/sound/arm/aaci.c +++ b/sound/arm/aaci.c | |||
@@ -511,15 +511,9 @@ static int aaci_pcm_hw_params(struct snd_pcm_substream *substream, | |||
511 | if (err < 0) | 511 | if (err < 0) |
512 | goto out; | 512 | goto out; |
513 | 513 | ||
514 | if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) | 514 | err = snd_ac97_pcm_open(aacirun->pcm, params_rate(params), |
515 | err = snd_ac97_pcm_open(aacirun->pcm, params_rate(params), | 515 | params_channels(params), |
516 | params_channels(params), | 516 | aacirun->pcm->r[0].slots); |
517 | aacirun->pcm->r[0].slots); | ||
518 | else | ||
519 | err = snd_ac97_pcm_open(aacirun->pcm, params_rate(params), | ||
520 | params_channels(params), | ||
521 | aacirun->pcm->r[0].slots); | ||
522 | |||
523 | if (err) | 517 | if (err) |
524 | goto out; | 518 | goto out; |
525 | 519 | ||