aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/sound/pcm.h4
-rw-r--r--sound/core/pcm_native.c9
2 files changed, 1 insertions, 12 deletions
diff --git a/include/sound/pcm.h b/include/sound/pcm.h
index 430a9cc045e2..e1bad1130616 100644
--- a/include/sound/pcm.h
+++ b/include/sound/pcm.h
@@ -1031,9 +1031,7 @@ int snd_pcm_lib_mmap_iomem(struct snd_pcm_substream *substream, struct vm_area_s
1031#define snd_pcm_lib_mmap_iomem NULL 1031#define snd_pcm_lib_mmap_iomem NULL
1032#endif 1032#endif
1033 1033
1034int snd_pcm_lib_mmap_noncached(struct snd_pcm_substream *substream, 1034#define snd_pcm_lib_mmap_vmalloc NULL
1035 struct vm_area_struct *area);
1036#define snd_pcm_lib_mmap_vmalloc snd_pcm_lib_mmap_noncached
1037 1035
1038static inline void snd_pcm_limit_isa_dma_size(int dma, size_t *max) 1036static inline void snd_pcm_limit_isa_dma_size(int dma, size_t *max)
1039{ 1037{
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
index ae42b6509ce4..fe5c8036beba 100644
--- a/sound/core/pcm_native.c
+++ b/sound/core/pcm_native.c
@@ -3201,15 +3201,6 @@ int snd_pcm_lib_mmap_iomem(struct snd_pcm_substream *substream,
3201EXPORT_SYMBOL(snd_pcm_lib_mmap_iomem); 3201EXPORT_SYMBOL(snd_pcm_lib_mmap_iomem);
3202#endif /* SNDRV_PCM_INFO_MMAP */ 3202#endif /* SNDRV_PCM_INFO_MMAP */
3203 3203
3204/* mmap callback with pgprot_noncached */
3205int snd_pcm_lib_mmap_noncached(struct snd_pcm_substream *substream,
3206 struct vm_area_struct *area)
3207{
3208 area->vm_page_prot = pgprot_noncached(area->vm_page_prot);
3209 return snd_pcm_default_mmap(substream, area);
3210}
3211EXPORT_SYMBOL(snd_pcm_lib_mmap_noncached);
3212
3213/* 3204/*
3214 * mmap DMA buffer 3205 * mmap DMA buffer
3215 */ 3206 */