Skip to content

Commit

Permalink
ALSA: AACI: fix recording bug
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russell King authored and tiwai committed Nov 30, 2009
1 parent 4acd57c commit 8ee763b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/arm/aaci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8ee763b

Please sign in to comment.