Skip to content

Commit 9873342

Browse files
committed
ALSA: mips: Remove superfluous snd_dma_continuous_data()
The recent change (commit 08422d2: "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: Takashi Iwai <tiwai@suse.de>
1 parent 8fd9da7 commit 9873342

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎sound/mips/hal2.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,7 @@ static int hal2_pcm_create(struct snd_hal2 *hal2)
741741
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
742742
&hal2_capture_ops);
743743
snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS,
744-
snd_dma_continuous_data(GFP_KERNEL),
745-
0, 1024 * 1024);
744+
NULL, 0, 1024 * 1024);
746745

747746
return 0;
748747
}

0 commit comments

Comments
 (0)