ALSA: sparc: Remove superfluous snd_dma_continuous_data()
authorTakashi Iwai <tiwai@suse.de>
Tue, 5 Nov 2019 15:18:37 +0000 (16:18 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 6 Nov 2019 14:47:41 +0000 (15:47 +0100)
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>
sound/sparc/amd7930.c
sound/sparc/dbri.c

index 441222c8e22322b3bb35a324056d566c3e8670cf..d4b8ccc61dc2ae443c189ebb184b6ee7339f0e6a 100644 (file)
@@ -777,7 +777,7 @@ static int snd_amd7930_pcm(struct snd_amd7930 *amd)
        amd->pcm = pcm;
 
        snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS,
-                                             snd_dma_continuous_data(GFP_KERNEL),
+                                             NULL,
                                              64*1024, 64*1024);
 
        return 0;
index 6e065d44060ef68325d8de04002dcd94f2a239b2..4911103421ff4f24748ad26a4d8fe6742d14e831 100644 (file)
@@ -2249,7 +2249,7 @@ static int snd_dbri_pcm(struct snd_card *card)
        strcpy(pcm->name, card->shortname);
 
        snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS,
-                                             snd_dma_continuous_data(GFP_KERNEL),
+                                             NULL,
                                              64 * 1024, 64 * 1024);
        return 0;
 }