aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-04-25 07:02:35 -0400
committerTakashi Iwai <tiwai@suse.de>2013-04-25 07:02:35 -0400
commit2fc565e4eaf8fc633bfc741b90e1f28dba732ee1 (patch)
tree98c994692f84aee07cf1c7b4cda245ae5235a94d /sound/core
parent7fc7d047216aa4923d401c637be2ebc6e3d5bd9b (diff)
parent5cc50fc858a5ab37dc2744d72d7ffed96f23afd8 (diff)
Merge tag 'asoc-v3.10-3' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-next
ASoC: More updates for v3.10 A few more fixes, nothing too major though the DMA changes fix modular builds.
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/pcm_native.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
index 5bce9152b64e..23e3c46cd0a4 100644
--- a/sound/core/pcm_native.c
+++ b/sound/core/pcm_native.c
@@ -3235,18 +3235,10 @@ EXPORT_SYMBOL_GPL(snd_pcm_lib_default_mmap);
3235int snd_pcm_lib_mmap_iomem(struct snd_pcm_substream *substream, 3235int snd_pcm_lib_mmap_iomem(struct snd_pcm_substream *substream,
3236 struct vm_area_struct *area) 3236 struct vm_area_struct *area)
3237{ 3237{
3238 long size; 3238 struct snd_pcm_runtime *runtime = substream->runtime;;
3239 unsigned long offset;
3240 3239
3241 area->vm_page_prot = pgprot_noncached(area->vm_page_prot); 3240 area->vm_page_prot = pgprot_noncached(area->vm_page_prot);
3242 area->vm_flags |= VM_IO; 3241 return vm_iomap_memory(area, runtime->dma_addr, runtime->dma_bytes);
3243 size = area->vm_end - area->vm_start;
3244 offset = area->vm_pgoff << PAGE_SHIFT;
3245 if (io_remap_pfn_range(area, area->vm_start,
3246 (substream->runtime->dma_addr + offset) >> PAGE_SHIFT,
3247 size, area->vm_page_prot))
3248 return -EAGAIN;
3249 return 0;
3250} 3242}
3251 3243
3252EXPORT_SYMBOL(snd_pcm_lib_mmap_iomem); 3244EXPORT_SYMBOL(snd_pcm_lib_mmap_iomem);