aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core
diff options
context:
space:
mode:
authorCliff Cai <cliff.cai@analog.com>2008-09-03 04:54:36 -0400
committerJaroslav Kysela <perex@perex.cz>2008-09-04 05:06:34 -0400
commit7003609b3bdf0336c742974bd1ad2d82ffb3b043 (patch)
tree4741a0e689db87b97176b62876af43b8e044542e /sound/core
parentb7c9d8520564eca89da8733e5248c7ce8ee8e1b0 (diff)
ALSA: add dummy function to support shared mmap in nommu Blackfin arch
Cc: Mike Frysinger <vapier.adi@gmail.com> Signed-off-by: Cliff Cai <cliff.cai@analog.com> Signed-off-by: Bryan Wu <cooloney@kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/pcm_native.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
index df2299a8cefd..e61e12506ded 100644
--- a/sound/core/pcm_native.c
+++ b/sound/core/pcm_native.c
@@ -3385,6 +3385,17 @@ out:
3385} 3385}
3386#endif /* CONFIG_SND_SUPPORT_OLD_API */ 3386#endif /* CONFIG_SND_SUPPORT_OLD_API */
3387 3387
3388#ifndef CONFIG_MMU
3389unsigned long dummy_get_unmapped_area(struct file *file, unsigned long addr,
3390 unsigned long len, unsigned long pgoff,
3391 unsigned long flags)
3392{
3393 return 0;
3394}
3395#else
3396# define dummy_get_unmapped_area NULL
3397#endif
3398
3388/* 3399/*
3389 * Register section 3400 * Register section
3390 */ 3401 */
@@ -3401,6 +3412,7 @@ const struct file_operations snd_pcm_f_ops[2] = {
3401 .compat_ioctl = snd_pcm_ioctl_compat, 3412 .compat_ioctl = snd_pcm_ioctl_compat,
3402 .mmap = snd_pcm_mmap, 3413 .mmap = snd_pcm_mmap,
3403 .fasync = snd_pcm_fasync, 3414 .fasync = snd_pcm_fasync,
3415 .get_unmapped_area = dummy_get_unmapped_area,
3404 }, 3416 },
3405 { 3417 {
3406 .owner = THIS_MODULE, 3418 .owner = THIS_MODULE,
@@ -3413,5 +3425,6 @@ const struct file_operations snd_pcm_f_ops[2] = {
3413 .compat_ioctl = snd_pcm_ioctl_compat, 3425 .compat_ioctl = snd_pcm_ioctl_compat,
3414 .mmap = snd_pcm_mmap, 3426 .mmap = snd_pcm_mmap,
3415 .fasync = snd_pcm_fasync, 3427 .fasync = snd_pcm_fasync,
3428 .get_unmapped_area = dummy_get_unmapped_area,
3416 } 3429 }
3417}; 3430};