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

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

+2 -2
+2 -2
sound/pci/rme32.c
··· 1375 1375 snd_pcm_set_ops(rme32->spdif_pcm, SNDRV_PCM_STREAM_CAPTURE, 1376 1376 &snd_rme32_capture_spdif_fd_ops); 1377 1377 snd_pcm_lib_preallocate_pages_for_all(rme32->spdif_pcm, SNDRV_DMA_TYPE_CONTINUOUS, 1378 - snd_dma_continuous_data(GFP_KERNEL), 1378 + NULL, 1379 1379 0, RME32_MID_BUFFER_SIZE); 1380 1380 rme32->spdif_pcm->info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX; 1381 1381 } else { ··· 1407 1407 snd_pcm_set_ops(rme32->adat_pcm, SNDRV_PCM_STREAM_CAPTURE, 1408 1408 &snd_rme32_capture_adat_fd_ops); 1409 1409 snd_pcm_lib_preallocate_pages_for_all(rme32->adat_pcm, SNDRV_DMA_TYPE_CONTINUOUS, 1410 - snd_dma_continuous_data(GFP_KERNEL), 1410 + NULL, 1411 1411 0, RME32_MID_BUFFER_SIZE); 1412 1412 rme32->adat_pcm->info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX; 1413 1413 } else {