ALSA: sh: Remove superfluous snd_dma_continuous_data()
authorTakashi Iwai <tiwai@suse.de>
Tue, 5 Nov 2019 15:18:36 +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-5-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/sh/aica.c
sound/sh/sh_dac_audio.c

index 52e9cfb4f81976400248e56f02a82235ac462827..bf1fb0d8a9306513334b846bf7905cb01c6c9533 100644 (file)
@@ -443,7 +443,7 @@ static int __init snd_aicapcmchip(struct snd_card_aica
        /* Allocate the DMA buffers */
        snd_pcm_lib_preallocate_pages_for_all(pcm,
                                              SNDRV_DMA_TYPE_CONTINUOUS,
-                                             snd_dma_continuous_data(GFP_KERNEL),
+                                             NULL,
                                              AICA_BUFFER_SIZE,
                                              AICA_BUFFER_SIZE);
        return 0;
index ed877a138965dc632c58dab8073e6a9aa6e41b62..f9e36abc98ac706ce73a085beebcca4dcb85155e 100644 (file)
@@ -268,7 +268,7 @@ static int snd_sh_dac_pcm(struct snd_sh_dac *chip, int device)
 
        /* buffer size=48K */
        snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS,
-                                         snd_dma_continuous_data(GFP_KERNEL),
+                                             NULL,
                                                        48 * 1024,
                                                        48 * 1024);