diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-12-01 10:43:51 +0100 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 12:30:05 +0100 |
commit | 04f141a8800d022981f0405a8d307c98aba55105 (patch) | |
tree | 2083ebe4a2959d57db1c016f1b8fa396e5c3f2af /sound/core/oss/pcm_oss.c | |
parent | e28563cceb9f258ebe3c50fc27d8f4ff0ac4bfa4 (diff) | |
download | op-kernel-dev-04f141a8800d022981f0405a8d307c98aba55105.zip op-kernel-dev-04f141a8800d022981f0405a8d307c98aba55105.tar.gz |
[ALSA] Optimize for config without PROC_FS (seq and oss parts)
Modules: ALSA<-OSS emulation,ALSA sequencer,ALSA<-OSS sequencer
Optimize the code when compiled without CONFIG_PROC_FS (in seq and oss
emulation parts).
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/oss/pcm_oss.c')
-rw-r--r-- | sound/core/oss/pcm_oss.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/core/oss/pcm_oss.c b/sound/core/oss/pcm_oss.c index 2ae283c..16df124 100644 --- a/sound/core/oss/pcm_oss.c +++ b/sound/core/oss/pcm_oss.c @@ -2269,6 +2269,7 @@ static int snd_pcm_oss_mmap(struct file *file, struct vm_area_struct *area) return 0; } +#ifdef CONFIG_PROC_FS /* * /proc interface */ @@ -2420,6 +2421,10 @@ static void snd_pcm_oss_proc_done(struct snd_pcm *pcm) } } } +#else /* !CONFIG_PROC_FS */ +#define snd_pcm_oss_proc_init(pcm) +#define snd_pcm_oss_proc_done(pcm) +#endif /* CONFIG_PROC_FS */ /* * ENTRY functions |