aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/fsl
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-03-14 19:31:41 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-03-14 19:31:41 -0400
commit5ec942463bfbc6c98ea4a96689b498e88a031c4a (patch)
treef1641c53b07f1a56e1a6c733a33b26887cf34db9 /sound/soc/fsl
parentfbed0bc0915e2dec7452fc3e66ad03dd2b0c04c7 (diff)
parentf6e45661f9be546811b62b2b01f32f4bf0c436c0 (diff)
Merge branch 'mm-pat-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull dma_*_writecombine rename from Ingo Molnar: "Rename dma_*_writecombine() to dma_*_wc() This is a tree-wide API rename, to move the dma_*() write-combining APIs closer in name to their usual API families. (The old API names are kept as compatibility wrappers to not introduce extra breakage.) The patch was Coccinelle generated" * 'mm-pat-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: dma, mm/pat: Rename dma_*_writecombine() to dma_*_wc()
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r--sound/soc/fsl/imx-pcm-fiq.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sound/soc/fsl/imx-pcm-fiq.c b/sound/soc/fsl/imx-pcm-fiq.c
index 49d7513f429e..e63cd5ecfd8f 100644
--- a/sound/soc/fsl/imx-pcm-fiq.c
+++ b/sound/soc/fsl/imx-pcm-fiq.c
@@ -217,8 +217,8 @@ static int snd_imx_pcm_mmap(struct snd_pcm_substream *substream,
217 struct snd_pcm_runtime *runtime = substream->runtime; 217 struct snd_pcm_runtime *runtime = substream->runtime;
218 int ret; 218 int ret;
219 219
220 ret = dma_mmap_writecombine(substream->pcm->card->dev, vma, 220 ret = dma_mmap_wc(substream->pcm->card->dev, vma, runtime->dma_area,
221 runtime->dma_area, runtime->dma_addr, runtime->dma_bytes); 221 runtime->dma_addr, runtime->dma_bytes);
222 222
223 pr_debug("%s: ret: %d %p %pad 0x%08x\n", __func__, ret, 223 pr_debug("%s: ret: %d %p %pad 0x%08x\n", __func__, ret,
224 runtime->dma_area, 224 runtime->dma_area,
@@ -247,8 +247,7 @@ static int imx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream)
247 buf->dev.type = SNDRV_DMA_TYPE_DEV; 247 buf->dev.type = SNDRV_DMA_TYPE_DEV;
248 buf->dev.dev = pcm->card->dev; 248 buf->dev.dev = pcm->card->dev;
249 buf->private_data = NULL; 249 buf->private_data = NULL;
250 buf->area = dma_alloc_writecombine(pcm->card->dev, size, 250 buf->area = dma_alloc_wc(pcm->card->dev, size, &buf->addr, GFP_KERNEL);
251 &buf->addr, GFP_KERNEL);
252 if (!buf->area) 251 if (!buf->area)
253 return -ENOMEM; 252 return -ENOMEM;
254 buf->bytes = size; 253 buf->bytes = size;
@@ -330,8 +329,7 @@ static void imx_pcm_free(struct snd_pcm *pcm)
330 if (!buf->area) 329 if (!buf->area)
331 continue; 330 continue;
332 331
333 dma_free_writecombine(pcm->card->dev, buf->bytes, 332 dma_free_wc(pcm->card->dev, buf->bytes, buf->area, buf->addr);
334 buf->area, buf->addr);
335 buf->area = NULL; 333 buf->area = NULL;
336 } 334 }
337} 335}