ASoC: Remove superfluous snd_dma_continuous_data()
authorTakashi Iwai <tiwai@suse.de>
Fri, 8 Nov 2019 09:46:34 +0000 (10:46 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 9 Nov 2019 17:02:52 +0000 (18:02 +0100)
The recent change (commit 08422d2c559d: "ALSA: memalloc: Allow NULL
device for SNDRV_DMA_TYPE_CONTINOUS 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.

Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20191108094641.20086-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/soc/au1x/dma.c
sound/soc/dwc/dwc-pcm.c
sound/soc/sh/dma-sh7760.c

index 49556eb409cdc56eaaa706b15974637924fa385b..054dfda89d3e8ac3ada5da115c7d255a9878c197 100644 (file)
@@ -293,7 +293,7 @@ static int alchemy_pcm_new(struct snd_soc_component *component,
        struct snd_pcm *pcm = rtd->pcm;
 
        snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS,
-               snd_dma_continuous_data(GFP_KERNEL), 65536, (4096 * 1024) - 1);
+                                             NULL, 65536, (4096 * 1024) - 1);
 
        return 0;
 }
index de6fcc808832bad4a70bdd847e016a1c7af48ebd..4771eb5fbe2a99c79e2414484f36e6c85040f985 100644 (file)
@@ -258,7 +258,7 @@ static int dw_pcm_new(struct snd_soc_component *component,
 
        snd_pcm_lib_preallocate_pages_for_all(rtd->pcm,
                        SNDRV_DMA_TYPE_CONTINUOUS,
-                       snd_dma_continuous_data(GFP_KERNEL), size, size);
+                       NULL, size, size);
        return 0;
 }
 
index 93bb80d089bedb28ac6fd38e6b52cffb0fdafc79..2b0eca02a8b99348576184081e730e69360325b8 100644 (file)
@@ -309,7 +309,7 @@ static int camelot_pcm_new(struct snd_soc_component *component,
         */
        snd_pcm_lib_preallocate_pages_for_all(pcm,
                SNDRV_DMA_TYPE_CONTINUOUS,
-               snd_dma_continuous_data(GFP_KERNEL),
+               NULL,
                DMABRG_PREALLOC_BUFFER, DMABRG_PREALLOC_BUFFER_MAX);
 
        return 0;