Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: sparc: Remove superfluous snd_dma_continuous_data()

The recent change (commit 08422d2c559d: "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-6-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>

+2 -2
+1 -1
sound/sparc/amd7930.c
··· 777 777 amd->pcm = pcm; 778 778 779 779 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS, 780 - snd_dma_continuous_data(GFP_KERNEL), 780 + NULL, 781 781 64*1024, 64*1024); 782 782 783 783 return 0;
+1 -1
sound/sparc/dbri.c
··· 2249 2249 strcpy(pcm->name, card->shortname); 2250 2250 2251 2251 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS, 2252 - snd_dma_continuous_data(GFP_KERNEL), 2252 + NULL, 2253 2253 64 * 1024, 64 * 1024); 2254 2254 return 0; 2255 2255 }