浏览代码

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>
Russell King 15 年之前
父节点
当前提交
8ee763b9c8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      sound/arm/aaci.c

+ 1 - 1
sound/arm/aaci.c

@@ -521,7 +521,7 @@ static int aaci_pcm_hw_params(struct snd_pcm_substream *substream,
 	else
 	else
 		err = snd_ac97_pcm_open(aacirun->pcm, params_rate(params),
 		err = snd_ac97_pcm_open(aacirun->pcm, params_rate(params),
 					params_channels(params),
 					params_channels(params),
-					aacirun->pcm->r[1].slots);
+					aacirun->pcm->r[0].slots);
 
 
 	if (err)
 	if (err)
 		goto out;
 		goto out;