From: Stephen Rothwell Date: Fri, 8 Feb 2019 02:18:23 +0000 (+1100) Subject: ASoC: xlnx: fix up for snd_pcm_lib_preallocate_pages_for_all() API change X-Git-Tag: v5.1-rc1~148^2~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=95d14640d9843f277214893541aef3acb7456a25;p=thirdparty%2Flinux.git ASoC: xlnx: fix up for snd_pcm_lib_preallocate_pages_for_all() API change Signed-off-by: Stephen Rothwell Signed-off-by: Takashi Iwai --- diff --git a/sound/soc/xilinx/xlnx_formatter_pcm.c b/sound/soc/xilinx/xlnx_formatter_pcm.c index 97177d35652e4..dc8721f4f56bf 100644 --- a/sound/soc/xilinx/xlnx_formatter_pcm.c +++ b/sound/soc/xilinx/xlnx_formatter_pcm.c @@ -536,10 +536,11 @@ static int xlnx_formatter_pcm_new(struct snd_soc_pcm_runtime *rtd) { struct snd_soc_component *component = snd_soc_rtdcom_lookup(rtd, DRV_NAME); - return snd_pcm_lib_preallocate_pages_for_all(rtd->pcm, + snd_pcm_lib_preallocate_pages_for_all(rtd->pcm, SNDRV_DMA_TYPE_DEV, component->dev, xlnx_pcm_hardware.buffer_bytes_max, xlnx_pcm_hardware.buffer_bytes_max); + return 0; } static const struct snd_pcm_ops xlnx_formatter_pcm_ops = {