提交 b66b3cfe 编写于 作者: J Jaroslav Kysela

[ALSA] hda_intel: increase maximum DMA buffer size to 1024MB

See ALSA bug#2481 .
Signed-off-by: NJaroslav Kysela <perex@suse.cz>
上级 bbb53551
...@@ -1285,7 +1285,7 @@ static int __devinit create_codec_pcm(struct azx *chip, struct hda_codec *codec, ...@@ -1285,7 +1285,7 @@ static int __devinit create_codec_pcm(struct azx *chip, struct hda_codec *codec,
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &azx_pcm_ops); snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &azx_pcm_ops);
snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,
snd_dma_pci_data(chip->pci), snd_dma_pci_data(chip->pci),
1024 * 64, 1024 * 128); 1024 * 64, 1024 * 1024);
chip->pcm[pcm_dev] = pcm; chip->pcm[pcm_dev] = pcm;
if (chip->pcm_devs < pcm_dev + 1) if (chip->pcm_devs < pcm_dev + 1)
chip->pcm_devs = pcm_dev + 1; chip->pcm_devs = pcm_dev + 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册