]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ALSA: AACI: fix recording bug
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 29 Nov 2009 16:39:59 +0000 (16:39 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 8 Dec 2009 19:16:53 +0000 (11:16 -0800)
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 <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/arm/aaci.c

index c735a0dca7641090e718f97cc7b9bc47b1df6aff..07b0f65f092dbf8d0569710ee5230f9f74e48927 100644 (file)
@@ -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;