summaryrefslogtreecommitdiffstats
path: root/sound/synth
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-05-29 01:58:11 -0400
committerTakashi Iwai <tiwai@suse.de>2015-05-29 01:58:11 -0400
commit52262b4a5d7c3d3549985a47d96fe7d661220162 (patch)
tree7803277ddc46447456e77878e7554b6baa050035 /sound/synth
parent506e6ae2561fbee9a7c8f395178c46616e93bfda (diff)
ALSA: emux: Fix/cleanup old ifdef CONFIG_PROC_FS
Build emux_proc.o and drop the unneeded ifdefs. Replace the left CONFIG_PROC with the new CONFIG_SND_PROC_FS. Along with this, fix the build of emux_oss.o in Makefile, too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/synth')
-rw-r--r--sound/synth/emux/Makefile5
-rw-r--r--sound/synth/emux/emux.c4
-rw-r--r--sound/synth/emux/emux_proc.c4
-rw-r--r--sound/synth/emux/emux_voice.h6
4 files changed, 8 insertions, 11 deletions
diff --git a/sound/synth/emux/Makefile b/sound/synth/emux/Makefile
index 328594e6152d..fb761c2c2b50 100644
--- a/sound/synth/emux/Makefile
+++ b/sound/synth/emux/Makefile
@@ -4,8 +4,9 @@
4# 4#
5 5
6snd-emux-synth-objs := emux.o emux_synth.o emux_seq.o emux_nrpn.o \ 6snd-emux-synth-objs := emux.o emux_synth.o emux_seq.o emux_nrpn.o \
7 emux_effect.o emux_proc.o emux_hwdep.o soundfont.o \ 7 emux_effect.o emux_hwdep.o soundfont.o
8 $(if $(CONFIG_SND_SEQUENCER_OSS),emux_oss.o) 8snd-emux-synth-$(CONFIG_SND_PROC_FS) += emux_proc.o
9snd-emux-synth-$(CONFIG_SND_SEQUENCER_OSS) += emux_oss.o
9 10
10# Toplevel Module Dependencies 11# Toplevel Module Dependencies
11obj-$(CONFIG_SND_SBAWE_SEQ) += snd-emux-synth.o 12obj-$(CONFIG_SND_SBAWE_SEQ) += snd-emux-synth.o
diff --git a/sound/synth/emux/emux.c b/sound/synth/emux/emux.c
index 49195325fdf6..9312cd8a6fdd 100644
--- a/sound/synth/emux/emux.c
+++ b/sound/synth/emux/emux.c
@@ -128,9 +128,7 @@ int snd_emux_register(struct snd_emux *emu, struct snd_card *card, int index, ch
128#endif 128#endif
129 snd_emux_init_virmidi(emu, card); 129 snd_emux_init_virmidi(emu, card);
130 130
131#ifdef CONFIG_PROC_FS
132 snd_emux_proc_init(emu, card, index); 131 snd_emux_proc_init(emu, card, index);
133#endif
134 return 0; 132 return 0;
135} 133}
136 134
@@ -150,9 +148,7 @@ int snd_emux_free(struct snd_emux *emu)
150 del_timer(&emu->tlist); 148 del_timer(&emu->tlist);
151 spin_unlock_irqrestore(&emu->voice_lock, flags); 149 spin_unlock_irqrestore(&emu->voice_lock, flags);
152 150
153#ifdef CONFIG_PROC_FS
154 snd_emux_proc_free(emu); 151 snd_emux_proc_free(emu);
155#endif
156 snd_emux_delete_virmidi(emu); 152 snd_emux_delete_virmidi(emu);
157#ifdef CONFIG_SND_SEQUENCER_OSS 153#ifdef CONFIG_SND_SEQUENCER_OSS
158 snd_emux_detach_seq_oss(emu); 154 snd_emux_detach_seq_oss(emu);
diff --git a/sound/synth/emux/emux_proc.c b/sound/synth/emux/emux_proc.c
index 58a32a10d115..a82b4053bee8 100644
--- a/sound/synth/emux/emux_proc.c
+++ b/sound/synth/emux/emux_proc.c
@@ -24,8 +24,6 @@
24#include <sound/info.h> 24#include <sound/info.h>
25#include "emux_voice.h" 25#include "emux_voice.h"
26 26
27#ifdef CONFIG_PROC_FS
28
29static void 27static void
30snd_emux_proc_info_read(struct snd_info_entry *entry, 28snd_emux_proc_info_read(struct snd_info_entry *entry,
31 struct snd_info_buffer *buf) 29 struct snd_info_buffer *buf)
@@ -128,5 +126,3 @@ void snd_emux_proc_free(struct snd_emux *emu)
128 snd_info_free_entry(emu->proc); 126 snd_info_free_entry(emu->proc);
129 emu->proc = NULL; 127 emu->proc = NULL;
130} 128}
131
132#endif /* CONFIG_PROC_FS */
diff --git a/sound/synth/emux/emux_voice.h b/sound/synth/emux/emux_voice.h
index 09711f84ed30..a7073c371bcc 100644
--- a/sound/synth/emux/emux_voice.h
+++ b/sound/synth/emux/emux_voice.h
@@ -82,9 +82,13 @@ void snd_emux_init_seq_oss(struct snd_emux *emu);
82void snd_emux_detach_seq_oss(struct snd_emux *emu); 82void snd_emux_detach_seq_oss(struct snd_emux *emu);
83 83
84/* emux_proc.c */ 84/* emux_proc.c */
85#ifdef CONFIG_PROC_FS 85#ifdef CONFIG_SND_PROC_FS
86void snd_emux_proc_init(struct snd_emux *emu, struct snd_card *card, int device); 86void snd_emux_proc_init(struct snd_emux *emu, struct snd_card *card, int device);
87void snd_emux_proc_free(struct snd_emux *emu); 87void snd_emux_proc_free(struct snd_emux *emu);
88#else
89static inline void snd_emux_proc_init(struct snd_emux *emu,
90 struct snd_card *card, int device) {}
91static inline void snd_emux_proc_free(struct snd_emux *emu) {}
88#endif 92#endif
89 93
90#define STATE_IS_PLAYING(s) ((s) & SNDRV_EMUX_ST_ON) 94#define STATE_IS_PLAYING(s) ((s) & SNDRV_EMUX_ST_ON)