Skip to content

Commit

Permalink
ALSA: emu10k1: Fix/cleanup ifdef CONFIG_PROC_FS
Browse files Browse the repository at this point in the history
Build emuproc.o conditionally and drop the unneeded ifdefs.
Some are replaced with the new CONFIG_SND_PROC_FS.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed May 29, 2015
1 parent 95bb625 commit 506e6ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion sound/pci/emu10k1/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

snd-emu10k1-objs := emu10k1.o emu10k1_main.o \
irq.o memory.o voice.o emumpu401.o emupcm.o io.o \
emuproc.o emumixer.o emufx.o timer.o p16v.o
emumixer.o emufx.o timer.o p16v.o
snd-emu10k1-$(CONFIG_SND_PROC_FS) += emuproc.o
snd-emu10k1-synth-objs := emu10k1_synth.o emu10k1_callback.o emu10k1_patch.o
snd-emu10k1x-objs := emu10k1x.o

Expand Down
2 changes: 1 addition & 1 deletion sound/pci/emu10k1/emu10k1_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2063,7 +2063,7 @@ int snd_emu10k1_create(struct snd_card *card,
if (err < 0)
goto error;

#ifdef CONFIG_PROC_FS
#ifdef CONFIG_SND_PROC_FS
snd_emu10k1_proc_init(emu);
#endif

Expand Down
2 changes: 0 additions & 2 deletions sound/pci/emu10k1/emuproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include <sound/emu10k1.h>
#include "p16v.h"

#ifdef CONFIG_PROC_FS
static void snd_emu10k1_proc_spdif_status(struct snd_emu10k1 * emu,
struct snd_info_buffer *buffer,
char *title,
Expand Down Expand Up @@ -656,4 +655,3 @@ int snd_emu10k1_proc_init(struct snd_emu10k1 *emu)
}
return 0;
}
#endif /* CONFIG_PROC_FS */

0 comments on commit 506e6ae

Please sign in to comment.