Commit 52262b4a authored by Takashi Iwai's avatar Takashi Iwai

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: default avatarTakashi Iwai <tiwai@suse.de>
parent 506e6ae2
...@@ -125,7 +125,7 @@ struct snd_emux { ...@@ -125,7 +125,7 @@ struct snd_emux {
struct snd_util_memhdr *memhdr; /* memory chunk information */ struct snd_util_memhdr *memhdr; /* memory chunk information */
#ifdef CONFIG_PROC_FS #ifdef CONFIG_SND_PROC_FS
struct snd_info_entry *proc; struct snd_info_entry *proc;
#endif #endif
......
...@@ -4,8 +4,9 @@ ...@@ -4,8 +4,9 @@
# #
snd-emux-synth-objs := emux.o emux_synth.o emux_seq.o emux_nrpn.o \ snd-emux-synth-objs := emux.o emux_synth.o emux_seq.o emux_nrpn.o \
emux_effect.o emux_proc.o emux_hwdep.o soundfont.o \ emux_effect.o emux_hwdep.o soundfont.o
$(if $(CONFIG_SND_SEQUENCER_OSS),emux_oss.o) snd-emux-synth-$(CONFIG_SND_PROC_FS) += emux_proc.o
snd-emux-synth-$(CONFIG_SND_SEQUENCER_OSS) += emux_oss.o
# Toplevel Module Dependencies # Toplevel Module Dependencies
obj-$(CONFIG_SND_SBAWE_SEQ) += snd-emux-synth.o obj-$(CONFIG_SND_SBAWE_SEQ) += snd-emux-synth.o
......
...@@ -128,9 +128,7 @@ int snd_emux_register(struct snd_emux *emu, struct snd_card *card, int index, ch ...@@ -128,9 +128,7 @@ int snd_emux_register(struct snd_emux *emu, struct snd_card *card, int index, ch
#endif #endif
snd_emux_init_virmidi(emu, card); snd_emux_init_virmidi(emu, card);
#ifdef CONFIG_PROC_FS
snd_emux_proc_init(emu, card, index); snd_emux_proc_init(emu, card, index);
#endif
return 0; return 0;
} }
...@@ -150,9 +148,7 @@ int snd_emux_free(struct snd_emux *emu) ...@@ -150,9 +148,7 @@ int snd_emux_free(struct snd_emux *emu)
del_timer(&emu->tlist); del_timer(&emu->tlist);
spin_unlock_irqrestore(&emu->voice_lock, flags); spin_unlock_irqrestore(&emu->voice_lock, flags);
#ifdef CONFIG_PROC_FS
snd_emux_proc_free(emu); snd_emux_proc_free(emu);
#endif
snd_emux_delete_virmidi(emu); snd_emux_delete_virmidi(emu);
#ifdef CONFIG_SND_SEQUENCER_OSS #ifdef CONFIG_SND_SEQUENCER_OSS
snd_emux_detach_seq_oss(emu); snd_emux_detach_seq_oss(emu);
......
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
#include <sound/info.h> #include <sound/info.h>
#include "emux_voice.h" #include "emux_voice.h"
#ifdef CONFIG_PROC_FS
static void static void
snd_emux_proc_info_read(struct snd_info_entry *entry, snd_emux_proc_info_read(struct snd_info_entry *entry,
struct snd_info_buffer *buf) struct snd_info_buffer *buf)
...@@ -128,5 +126,3 @@ void snd_emux_proc_free(struct snd_emux *emu) ...@@ -128,5 +126,3 @@ void snd_emux_proc_free(struct snd_emux *emu)
snd_info_free_entry(emu->proc); snd_info_free_entry(emu->proc);
emu->proc = NULL; emu->proc = NULL;
} }
#endif /* CONFIG_PROC_FS */
...@@ -82,9 +82,13 @@ void snd_emux_init_seq_oss(struct snd_emux *emu); ...@@ -82,9 +82,13 @@ void snd_emux_init_seq_oss(struct snd_emux *emu);
void snd_emux_detach_seq_oss(struct snd_emux *emu); void snd_emux_detach_seq_oss(struct snd_emux *emu);
/* emux_proc.c */ /* emux_proc.c */
#ifdef CONFIG_PROC_FS #ifdef CONFIG_SND_PROC_FS
void snd_emux_proc_init(struct snd_emux *emu, struct snd_card *card, int device); void snd_emux_proc_init(struct snd_emux *emu, struct snd_card *card, int device);
void snd_emux_proc_free(struct snd_emux *emu); void snd_emux_proc_free(struct snd_emux *emu);
#else
static inline void snd_emux_proc_init(struct snd_emux *emu,
struct snd_card *card, int device) {}
static inline void snd_emux_proc_free(struct snd_emux *emu) {}
#endif #endif
#define STATE_IS_PLAYING(s) ((s) & SNDRV_EMUX_ST_ON) #define STATE_IS_PLAYING(s) ((s) & SNDRV_EMUX_ST_ON)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment