From: Russell King Date: Sun, 29 Nov 2009 16:39:59 +0000 (+0000) Subject: ALSA: AACI: fix recording bug X-Git-Tag: v2.6.27.40~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec80577e2e409977d33649197c2ced7269d2c7c2;p=thirdparty%2Fkernel%2Fstable.git ALSA: AACI: fix recording bug commit 8ee763b9c82c6ca0a59a7271ce4fa29d7baf5c09 upstream. pcm->r[1].slots is the double rate slot information, not the capture information. For capture, 'pcm' will already be the capture ac97 pcm structure. Signed-off-by: Russell King Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- diff --git a/sound/arm/aaci.c b/sound/arm/aaci.c index c735a0dca7641..07b0f65f092db 100644 --- a/sound/arm/aaci.c +++ b/sound/arm/aaci.c @@ -521,7 +521,7 @@ static int aaci_pcm_hw_params(struct snd_pcm_substream *substream, else err = snd_ac97_pcm_open(aacirun->pcm, params_rate(params), params_channels(params), - aacirun->pcm->r[1].slots); + aacirun->pcm->r[0].slots); if (err) goto out;