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

ALSA: sh: 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-5-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>

+2 -2
+1 -1
sound/sh/aica.c
··· 443 443 /* Allocate the DMA buffers */ 444 444 snd_pcm_lib_preallocate_pages_for_all(pcm, 445 445 SNDRV_DMA_TYPE_CONTINUOUS, 446 - snd_dma_continuous_data(GFP_KERNEL), 446 + NULL, 447 447 AICA_BUFFER_SIZE, 448 448 AICA_BUFFER_SIZE); 449 449 return 0;
+1 -1
sound/sh/sh_dac_audio.c
··· 268 268 269 269 /* buffer size=48K */ 270 270 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS, 271 - snd_dma_continuous_data(GFP_KERNEL), 271 + NULL, 272 272 48 * 1024, 273 273 48 * 1024); 274 274