提交 63bfc846 编写于 作者: T Takashi Iwai

ALSA: pdaudiocf: Drop superfluous GFP setup

The extra setup with GFP_DMA32 is superfluous for this driver.  The
whole operation is a simple copy loop, and there is no memory address
restriction at all.  Drop the useless GFP setup.

Link: https://lore.kernel.org/r/20220823115740.14123-3-tiwai@suse.deSigned-off-by: NTakashi Iwai <tiwai@suse.de>
上级 a5ed0c54
...@@ -257,8 +257,7 @@ int snd_pdacf_pcm_new(struct snd_pdacf *chip) ...@@ -257,8 +257,7 @@ int snd_pdacf_pcm_new(struct snd_pdacf *chip)
return err; return err;
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &pdacf_pcm_capture_ops); snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &pdacf_pcm_capture_ops);
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL,
snd_dma_continuous_data(GFP_KERNEL | GFP_DMA32),
0, 0); 0, 0);
pcm->private_data = chip; pcm->private_data = chip;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册