diff options
author | Takashi Iwai <tiwai@suse.de> | 2010-01-21 09:27:28 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-01-21 09:27:28 -0500 |
commit | 6250b9ced23032789ca9739d6a53949637f9c836 (patch) | |
tree | 62379e6b563b45331f8d5d788e8ba7089b2fbaba /sound/core | |
parent | 8b296c8f9f660b70e958e6e6b9b4293e6ae854f2 (diff) | |
parent | c32d977b8157bf67cdf47729ce7dd054a26eb534 (diff) |
Merge branch 'topic/noncached-mmap' into topic/misc
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/pcm_native.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index 43552fd73d24..b53fa845004d 100644 --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c | |||
@@ -3165,9 +3165,7 @@ int snd_pcm_lib_mmap_iomem(struct snd_pcm_substream *substream, | |||
3165 | long size; | 3165 | long size; |
3166 | unsigned long offset; | 3166 | unsigned long offset; |
3167 | 3167 | ||
3168 | #ifdef pgprot_noncached | ||
3169 | area->vm_page_prot = pgprot_noncached(area->vm_page_prot); | 3168 | area->vm_page_prot = pgprot_noncached(area->vm_page_prot); |
3170 | #endif | ||
3171 | area->vm_flags |= VM_IO; | 3169 | area->vm_flags |= VM_IO; |
3172 | size = area->vm_end - area->vm_start; | 3170 | size = area->vm_end - area->vm_start; |
3173 | offset = area->vm_pgoff << PAGE_SHIFT; | 3171 | offset = area->vm_pgoff << PAGE_SHIFT; |
@@ -3181,6 +3179,15 @@ int snd_pcm_lib_mmap_iomem(struct snd_pcm_substream *substream, | |||
3181 | EXPORT_SYMBOL(snd_pcm_lib_mmap_iomem); | 3179 | EXPORT_SYMBOL(snd_pcm_lib_mmap_iomem); |
3182 | #endif /* SNDRV_PCM_INFO_MMAP */ | 3180 | #endif /* SNDRV_PCM_INFO_MMAP */ |
3183 | 3181 | ||
3182 | /* mmap callback with pgprot_noncached */ | ||
3183 | int snd_pcm_lib_mmap_noncached(struct snd_pcm_substream *substream, | ||
3184 | struct vm_area_struct *area) | ||
3185 | { | ||
3186 | area->vm_page_prot = pgprot_noncached(area->vm_page_prot); | ||
3187 | return snd_pcm_default_mmap(substream, area); | ||
3188 | } | ||
3189 | EXPORT_SYMBOL(snd_pcm_lib_mmap_noncached); | ||
3190 | |||
3184 | /* | 3191 | /* |
3185 | * mmap DMA buffer | 3192 | * mmap DMA buffer |
3186 | */ | 3193 | */ |