Commit 98733426 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: mips: Remove superfluous snd_dma_continuous_data()

The recent change (commit 08422d2c: "ALSA: memalloc: Allow NULL
device for SNDRV_DMA_TYPE_CONTINUOUS type") made the PCM preallocation
helper accepting NULL as the device pointer for the default usage.
Drop the snd_dma_continuous_data() usage that became superfluous from
the callers.

Link: https://lore.kernel.org/r/20191105151856.10785-3-tiwai@suse.de


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 8fd9da75
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -741,8 +741,7 @@ static int hal2_pcm_create(struct snd_hal2 *hal2)
	snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
			&hal2_capture_ops);
	snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS,
					   snd_dma_continuous_data(GFP_KERNEL),
					   0, 1024 * 1024);
					   NULL, 0, 1024 * 1024);

	return 0;
}