aboutsummaryrefslogtreecommitdiffstats
path: root/sound/arm
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2009-11-29 11:39:59 -0500
committerTakashi Iwai <tiwai@suse.de>2009-11-30 08:50:55 -0500
commit8ee763b9c82c6ca0a59a7271ce4fa29d7baf5c09 (patch)
tree2d0ac3adfbca180ec159df8adb7f8024045cd4c6 /sound/arm
parent4acd57c3de62374fe5bb52e5cd24538190f4eab2 (diff)
ALSA: AACI: fix recording bug
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> Cc: <stable@kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/arm')
-rw-r--r--sound/arm/aaci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/arm/aaci.c b/sound/arm/aaci.c
index 1cb7c282a1fb..6c160a038b23 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,
521 else 521 else
522 err = snd_ac97_pcm_open(aacirun->pcm, params_rate(params), 522 err = snd_ac97_pcm_open(aacirun->pcm, params_rate(params),
523 params_channels(params), 523 params_channels(params),
524 aacirun->pcm->r[1].slots); 524 aacirun->pcm->r[0].slots);
525 525
526 if (err) 526 if (err)
527 goto out; 527 goto out;