Skip to content

Commit

Permalink
ALSA: mips: Remove superfluous snd_dma_continuous_data()
Browse files Browse the repository at this point in the history
The recent change (commit 08422d2: "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/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai committed Nov 6, 2019
1 parent 8fd9da7 commit 9873342
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sound/mips/hal2.c
Original file line number Diff line number Diff line change
Expand Up @@ -741,8 +741,7 @@ static int hal2_pcm_create(struct snd_hal2 *hal2)
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
&hal2_capture_ops);
snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS,
snd_dma_continuous_data(GFP_KERNEL),
0, 1024 * 1024);
NULL, 0, 1024 * 1024);

return 0;
}
Expand Down

0 comments on commit 9873342

Please sign in to comment.