aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/pcm.c
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@suse.cz>2006-01-13 03:12:11 -0500
committerJaroslav Kysela <perex@suse.cz>2006-03-22 04:23:12 -0500
commit21a3479a0b606d36fe24093f70a1c27328cec286 (patch)
tree484ce13d02df9f580bb6691ea3845160dc716c4a /sound/core/pcm.c
parent153abaa4ff0500070a282dd0868367d69388d527 (diff)
[ALSA] PCM midlevel & PCM OSS - make procfs & OSS plugin code optional
Modules: ALSA Core,PCM Midlevel,ALSA<-OSS emulation,USB generic driver 1) The verbose procfs code for the PCM midlevel and usb audio can be removed now (more patches will follow). CONFIG_SND_VERBOSE_PROCFS 2) The PCM OSS plugin system can be also compiled optionaly. CONFIG_SND_PCM_OSS_PLUGINS Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/core/pcm.c')
-rw-r--r--sound/core/pcm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/core/pcm.c b/sound/core/pcm.c
index 28ca61eb0b0d..d92c3ce4a4c9 100644
--- a/sound/core/pcm.c
+++ b/sound/core/pcm.c
@@ -140,6 +140,9 @@ static int snd_pcm_control_ioctl(struct snd_card *card,
140 } 140 }
141 return -ENOIOCTLCMD; 141 return -ENOIOCTLCMD;
142} 142}
143
144#if defined(CONFIG_PROC_FS) && defined(CONFIG_SND_VERBOSE_PROCFS)
145
143#define STATE(v) [SNDRV_PCM_STATE_##v] = #v 146#define STATE(v) [SNDRV_PCM_STATE_##v] = #v
144#define STREAM(v) [SNDRV_PCM_STREAM_##v] = #v 147#define STREAM(v) [SNDRV_PCM_STREAM_##v] = #v
145#define READY(v) [SNDRV_PCM_READY_##v] = #v 148#define READY(v) [SNDRV_PCM_READY_##v] = #v
@@ -197,7 +200,6 @@ const char *snd_pcm_format_name(snd_pcm_format_t format)
197 return snd_pcm_format_names[format]; 200 return snd_pcm_format_names[format];
198} 201}
199 202
200#ifdef CONFIG_PROC_FS
201static char *snd_pcm_stream_names[] = { 203static char *snd_pcm_stream_names[] = {
202 STREAM(PLAYBACK), 204 STREAM(PLAYBACK),
203 STREAM(CAPTURE), 205 STREAM(CAPTURE),