Commit 95d14640 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Takashi Iwai

ASoC: xlnx: fix up for snd_pcm_lib_preallocate_pages_for_all() API change

Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 7b48b3b2
...@@ -536,10 +536,11 @@ static int xlnx_formatter_pcm_new(struct snd_soc_pcm_runtime *rtd) ...@@ -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, struct snd_soc_component *component = snd_soc_rtdcom_lookup(rtd,
DRV_NAME); 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, SNDRV_DMA_TYPE_DEV, component->dev,
xlnx_pcm_hardware.buffer_bytes_max, xlnx_pcm_hardware.buffer_bytes_max,
xlnx_pcm_hardware.buffer_bytes_max); xlnx_pcm_hardware.buffer_bytes_max);
return 0;
} }
static const struct snd_pcm_ops xlnx_formatter_pcm_ops = { static const struct snd_pcm_ops xlnx_formatter_pcm_ops = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment