diff options
-rw-r--r-- | include/sound/emux_synth.h | 8 | ||||
-rw-r--r-- | include/sound/opl3.h | 4 | ||||
-rw-r--r-- | sound/core/Kconfig | 2 | ||||
-rw-r--r-- | sound/core/seq/Makefile | 7 | ||||
-rw-r--r-- | sound/core/seq/oss/Makefile | 2 | ||||
-rw-r--r-- | sound/drivers/opl3/opl3_seq.c | 4 | ||||
-rw-r--r-- | sound/drivers/opl3/opl3_voice.h | 5 | ||||
-rw-r--r-- | sound/isa/sb/emu8000_callback.c | 6 | ||||
-rw-r--r-- | sound/synth/emux/emux.c | 6 | ||||
-rw-r--r-- | sound/synth/emux/emux_effect.c | 2 | ||||
-rw-r--r-- | sound/synth/emux/emux_oss.c | 4 |
11 files changed, 22 insertions, 28 deletions
diff --git a/include/sound/emux_synth.h b/include/sound/emux_synth.h index a0a40b74bf13..19a0cb561ffc 100644 --- a/include/sound/emux_synth.h +++ b/include/sound/emux_synth.h | |||
@@ -25,9 +25,7 @@ | |||
25 | #include <sound/seq_device.h> | 25 | #include <sound/seq_device.h> |
26 | #include <sound/soundfont.h> | 26 | #include <sound/soundfont.h> |
27 | #include <sound/seq_midi_emul.h> | 27 | #include <sound/seq_midi_emul.h> |
28 | #ifdef CONFIG_SND_SEQUENCER_OSS | ||
29 | #include <sound/seq_oss.h> | 28 | #include <sound/seq_oss.h> |
30 | #endif | ||
31 | #include <sound/emux_legacy.h> | 29 | #include <sound/emux_legacy.h> |
32 | #include <sound/seq_virmidi.h> | 30 | #include <sound/seq_virmidi.h> |
33 | 31 | ||
@@ -66,7 +64,7 @@ struct snd_emux_operators { | |||
66 | const void __user *data, long count); | 64 | const void __user *data, long count); |
67 | void (*sysex)(struct snd_emux *emu, char *buf, int len, int parsed, | 65 | void (*sysex)(struct snd_emux *emu, char *buf, int len, int parsed, |
68 | struct snd_midi_channel_set *chset); | 66 | struct snd_midi_channel_set *chset); |
69 | #ifdef CONFIG_SND_SEQUENCER_OSS | 67 | #if IS_ENABLED(CONFIG_SND_SEQUENCER_OSS) |
70 | int (*oss_ioctl)(struct snd_emux *emu, int cmd, int p1, int p2); | 68 | int (*oss_ioctl)(struct snd_emux *emu, int cmd, int p1, int p2); |
71 | #endif | 69 | #endif |
72 | }; | 70 | }; |
@@ -129,7 +127,7 @@ struct snd_emux { | |||
129 | struct snd_info_entry *proc; | 127 | struct snd_info_entry *proc; |
130 | #endif | 128 | #endif |
131 | 129 | ||
132 | #ifdef CONFIG_SND_SEQUENCER_OSS | 130 | #if IS_ENABLED(CONFIG_SND_SEQUENCER_OSS) |
133 | struct snd_seq_device *oss_synth; | 131 | struct snd_seq_device *oss_synth; |
134 | #endif | 132 | #endif |
135 | }; | 133 | }; |
@@ -150,7 +148,7 @@ struct snd_emux_port { | |||
150 | #ifdef SNDRV_EMUX_USE_RAW_EFFECT | 148 | #ifdef SNDRV_EMUX_USE_RAW_EFFECT |
151 | struct snd_emux_effect_table *effect; | 149 | struct snd_emux_effect_table *effect; |
152 | #endif | 150 | #endif |
153 | #ifdef CONFIG_SND_SEQUENCER_OSS | 151 | #if IS_ENABLED(CONFIG_SND_SEQUENCER_OSS) |
154 | struct snd_seq_oss_arg *oss_arg; | 152 | struct snd_seq_oss_arg *oss_arg; |
155 | #endif | 153 | #endif |
156 | }; | 154 | }; |
diff --git a/include/sound/opl3.h b/include/sound/opl3.h index 5a87641c6ae4..a4a593590cff 100644 --- a/include/sound/opl3.h +++ b/include/sound/opl3.h | |||
@@ -55,10 +55,8 @@ | |||
55 | #include <sound/hwdep.h> | 55 | #include <sound/hwdep.h> |
56 | #include <sound/timer.h> | 56 | #include <sound/timer.h> |
57 | #include <sound/seq_midi_emul.h> | 57 | #include <sound/seq_midi_emul.h> |
58 | #ifdef CONFIG_SND_SEQUENCER_OSS | ||
59 | #include <sound/seq_oss.h> | 58 | #include <sound/seq_oss.h> |
60 | #include <sound/seq_oss_legacy.h> | 59 | #include <sound/seq_oss_legacy.h> |
61 | #endif | ||
62 | #include <sound/seq_device.h> | 60 | #include <sound/seq_device.h> |
63 | #include <sound/asound_fm.h> | 61 | #include <sound/asound_fm.h> |
64 | 62 | ||
@@ -330,7 +328,7 @@ struct snd_opl3 { | |||
330 | struct snd_seq_device *seq_dev; /* sequencer device */ | 328 | struct snd_seq_device *seq_dev; /* sequencer device */ |
331 | struct snd_midi_channel_set * chset; | 329 | struct snd_midi_channel_set * chset; |
332 | 330 | ||
333 | #ifdef CONFIG_SND_SEQUENCER_OSS | 331 | #if IS_ENABLED(CONFIG_SND_SEQUENCER_OSS) |
334 | struct snd_seq_device *oss_seq_dev; /* OSS sequencer device */ | 332 | struct snd_seq_device *oss_seq_dev; /* OSS sequencer device */ |
335 | struct snd_midi_channel_set * oss_chset; | 333 | struct snd_midi_channel_set * oss_chset; |
336 | #endif | 334 | #endif |
diff --git a/sound/core/Kconfig b/sound/core/Kconfig index 3a9afc520d4e..d64dbee36986 100644 --- a/sound/core/Kconfig +++ b/sound/core/Kconfig | |||
@@ -110,7 +110,7 @@ config SND_PCM_TIMER | |||
110 | footprint, about 20KB on x86_64 platform. | 110 | footprint, about 20KB on x86_64 platform. |
111 | 111 | ||
112 | config SND_SEQUENCER_OSS | 112 | config SND_SEQUENCER_OSS |
113 | bool "OSS Sequencer API" | 113 | tristate "OSS Sequencer API" |
114 | depends on SND_SEQUENCER | 114 | depends on SND_SEQUENCER |
115 | depends on SND_OSSEMUL | 115 | depends on SND_OSSEMUL |
116 | help | 116 | help |
diff --git a/sound/core/seq/Makefile b/sound/core/seq/Makefile index b65fa5a1943b..3283b055e5ff 100644 --- a/sound/core/seq/Makefile +++ b/sound/core/seq/Makefile | |||
@@ -15,10 +15,9 @@ snd-seq-dummy-objs := seq_dummy.o | |||
15 | snd-seq-virmidi-objs := seq_virmidi.o | 15 | snd-seq-virmidi-objs := seq_virmidi.o |
16 | 16 | ||
17 | obj-$(CONFIG_SND_SEQUENCER) += snd-seq.o snd-seq-device.o | 17 | obj-$(CONFIG_SND_SEQUENCER) += snd-seq.o snd-seq-device.o |
18 | ifeq ($(CONFIG_SND_SEQUENCER_OSS),y) | 18 | obj-$(CONFIG_SND_SEQUENCER_OSS) += snd-seq-midi-event.o |
19 | obj-$(CONFIG_SND_SEQUENCER) += snd-seq-midi-event.o | 19 | obj-$(CONFIG_SND_SEQUENCER_OSS) += oss/ |
20 | obj-$(CONFIG_SND_SEQUENCER) += oss/ | 20 | |
21 | endif | ||
22 | obj-$(CONFIG_SND_SEQ_DUMMY) += snd-seq-dummy.o | 21 | obj-$(CONFIG_SND_SEQ_DUMMY) += snd-seq-dummy.o |
23 | 22 | ||
24 | # Toplevel Module Dependency | 23 | # Toplevel Module Dependency |
diff --git a/sound/core/seq/oss/Makefile b/sound/core/seq/oss/Makefile index b38406b8463c..4ea4e3eea6b7 100644 --- a/sound/core/seq/oss/Makefile +++ b/sound/core/seq/oss/Makefile | |||
@@ -7,4 +7,4 @@ snd-seq-oss-objs := seq_oss.o seq_oss_init.o seq_oss_timer.o seq_oss_ioctl.o \ | |||
7 | seq_oss_event.o seq_oss_rw.o seq_oss_synth.o \ | 7 | seq_oss_event.o seq_oss_rw.o seq_oss_synth.o \ |
8 | seq_oss_midi.o seq_oss_readq.o seq_oss_writeq.o | 8 | seq_oss_midi.o seq_oss_readq.o seq_oss_writeq.o |
9 | 9 | ||
10 | obj-$(CONFIG_SND_SEQUENCER) += snd-seq-oss.o | 10 | obj-$(CONFIG_SND_SEQUENCER_OSS) += snd-seq-oss.o |
diff --git a/sound/drivers/opl3/opl3_seq.c b/sound/drivers/opl3/opl3_seq.c index fdae5d7f421f..d3e91be8b23a 100644 --- a/sound/drivers/opl3/opl3_seq.c +++ b/sound/drivers/opl3/opl3_seq.c | |||
@@ -252,7 +252,7 @@ static int snd_opl3_seq_probe(struct device *_dev) | |||
252 | spin_lock_init(&opl3->sys_timer_lock); | 252 | spin_lock_init(&opl3->sys_timer_lock); |
253 | opl3->sys_timer_status = 0; | 253 | opl3->sys_timer_status = 0; |
254 | 254 | ||
255 | #ifdef CONFIG_SND_SEQUENCER_OSS | 255 | #if IS_ENABLED(CONFIG_SND_SEQUENCER_OSS) |
256 | snd_opl3_init_seq_oss(opl3, name); | 256 | snd_opl3_init_seq_oss(opl3, name); |
257 | #endif | 257 | #endif |
258 | return 0; | 258 | return 0; |
@@ -267,7 +267,7 @@ static int snd_opl3_seq_remove(struct device *_dev) | |||
267 | if (opl3 == NULL) | 267 | if (opl3 == NULL) |
268 | return -EINVAL; | 268 | return -EINVAL; |
269 | 269 | ||
270 | #ifdef CONFIG_SND_SEQUENCER_OSS | 270 | #if IS_ENABLED(CONFIG_SND_SEQUENCER_OSS) |
271 | snd_opl3_free_seq_oss(opl3); | 271 | snd_opl3_free_seq_oss(opl3); |
272 | #endif | 272 | #endif |
273 | if (opl3->seq_client >= 0) { | 273 | if (opl3->seq_client >= 0) { |
diff --git a/sound/drivers/opl3/opl3_voice.h b/sound/drivers/opl3/opl3_voice.h index a371c075ac87..eaef435e0528 100644 --- a/sound/drivers/opl3/opl3_voice.h +++ b/sound/drivers/opl3/opl3_voice.h | |||
@@ -44,9 +44,12 @@ void snd_opl3_load_drums(struct snd_opl3 *opl3); | |||
44 | void snd_opl3_drum_switch(struct snd_opl3 *opl3, int note, int on_off, int vel, struct snd_midi_channel *chan); | 44 | void snd_opl3_drum_switch(struct snd_opl3 *opl3, int note, int on_off, int vel, struct snd_midi_channel *chan); |
45 | 45 | ||
46 | /* Prototypes for opl3_oss.c */ | 46 | /* Prototypes for opl3_oss.c */ |
47 | #ifdef CONFIG_SND_SEQUENCER_OSS | 47 | #if IS_ENABLED(CONFIG_SND_SEQUENCER_OSS) |
48 | void snd_opl3_init_seq_oss(struct snd_opl3 *opl3, char *name); | 48 | void snd_opl3_init_seq_oss(struct snd_opl3 *opl3, char *name); |
49 | void snd_opl3_free_seq_oss(struct snd_opl3 *opl3); | 49 | void snd_opl3_free_seq_oss(struct snd_opl3 *opl3); |
50 | #else | ||
51 | #define snd_opl3_init_seq_oss(opl3, name) /* NOP */ | ||
52 | #define snd_opl3_free_seq_oss(opl3) /* NOP */ | ||
50 | #endif | 53 | #endif |
51 | 54 | ||
52 | #endif | 55 | #endif |
diff --git a/sound/isa/sb/emu8000_callback.c b/sound/isa/sb/emu8000_callback.c index 72a9ac5efb40..d28d712f99f4 100644 --- a/sound/isa/sb/emu8000_callback.c +++ b/sound/isa/sb/emu8000_callback.c | |||
@@ -36,7 +36,7 @@ static void reset_voice(struct snd_emux *emu, int ch); | |||
36 | static void terminate_voice(struct snd_emux_voice *vp); | 36 | static void terminate_voice(struct snd_emux_voice *vp); |
37 | static void sysex(struct snd_emux *emu, char *buf, int len, int parsed, | 37 | static void sysex(struct snd_emux *emu, char *buf, int len, int parsed, |
38 | struct snd_midi_channel_set *chset); | 38 | struct snd_midi_channel_set *chset); |
39 | #ifdef CONFIG_SND_SEQUENCER_OSS | 39 | #if IS_ENABLED(CONFIG_SND_SEQUENCER_OSS) |
40 | static int oss_ioctl(struct snd_emux *emu, int cmd, int p1, int p2); | 40 | static int oss_ioctl(struct snd_emux *emu, int cmd, int p1, int p2); |
41 | #endif | 41 | #endif |
42 | static int load_fx(struct snd_emux *emu, int type, int mode, | 42 | static int load_fx(struct snd_emux *emu, int type, int mode, |
@@ -76,7 +76,7 @@ static struct snd_emux_operators emu8000_ops = { | |||
76 | .sample_reset = snd_emu8000_sample_reset, | 76 | .sample_reset = snd_emu8000_sample_reset, |
77 | .load_fx = load_fx, | 77 | .load_fx = load_fx, |
78 | .sysex = sysex, | 78 | .sysex = sysex, |
79 | #ifdef CONFIG_SND_SEQUENCER_OSS | 79 | #if IS_ENABLED(CONFIG_SND_SEQUENCER_OSS) |
80 | .oss_ioctl = oss_ioctl, | 80 | .oss_ioctl = oss_ioctl, |
81 | #endif | 81 | #endif |
82 | }; | 82 | }; |
@@ -477,7 +477,7 @@ sysex(struct snd_emux *emu, char *buf, int len, int parsed, struct snd_midi_chan | |||
477 | } | 477 | } |
478 | 478 | ||
479 | 479 | ||
480 | #ifdef CONFIG_SND_SEQUENCER_OSS | 480 | #if IS_ENABLED(CONFIG_SND_SEQUENCER_OSS) |
481 | /* | 481 | /* |
482 | * OSS ioctl callback | 482 | * OSS ioctl callback |
483 | */ | 483 | */ |
diff --git a/sound/synth/emux/emux.c b/sound/synth/emux/emux.c index 9312cd8a6fdd..b9981e8c0027 100644 --- a/sound/synth/emux/emux.c +++ b/sound/synth/emux/emux.c | |||
@@ -47,7 +47,7 @@ int snd_emux_new(struct snd_emux **remu) | |||
47 | mutex_init(&emu->register_mutex); | 47 | mutex_init(&emu->register_mutex); |
48 | 48 | ||
49 | emu->client = -1; | 49 | emu->client = -1; |
50 | #ifdef CONFIG_SND_SEQUENCER_OSS | 50 | #if IS_ENABLED(CONFIG_SND_SEQUENCER_OSS) |
51 | emu->oss_synth = NULL; | 51 | emu->oss_synth = NULL; |
52 | #endif | 52 | #endif |
53 | emu->max_voices = 0; | 53 | emu->max_voices = 0; |
@@ -123,7 +123,7 @@ int snd_emux_register(struct snd_emux *emu, struct snd_card *card, int index, ch | |||
123 | snd_emux_init_voices(emu); | 123 | snd_emux_init_voices(emu); |
124 | 124 | ||
125 | snd_emux_init_seq(emu, card, index); | 125 | snd_emux_init_seq(emu, card, index); |
126 | #ifdef CONFIG_SND_SEQUENCER_OSS | 126 | #if IS_ENABLED(CONFIG_SND_SEQUENCER_OSS) |
127 | snd_emux_init_seq_oss(emu); | 127 | snd_emux_init_seq_oss(emu); |
128 | #endif | 128 | #endif |
129 | snd_emux_init_virmidi(emu, card); | 129 | snd_emux_init_virmidi(emu, card); |
@@ -150,7 +150,7 @@ int snd_emux_free(struct snd_emux *emu) | |||
150 | 150 | ||
151 | snd_emux_proc_free(emu); | 151 | snd_emux_proc_free(emu); |
152 | snd_emux_delete_virmidi(emu); | 152 | snd_emux_delete_virmidi(emu); |
153 | #ifdef CONFIG_SND_SEQUENCER_OSS | 153 | #if IS_ENABLED(CONFIG_SND_SEQUENCER_OSS) |
154 | snd_emux_detach_seq_oss(emu); | 154 | snd_emux_detach_seq_oss(emu); |
155 | #endif | 155 | #endif |
156 | snd_emux_detach_seq(emu); | 156 | snd_emux_detach_seq(emu); |
diff --git a/sound/synth/emux/emux_effect.c b/sound/synth/emux/emux_effect.c index a447218b6160..9ac0bf531b4b 100644 --- a/sound/synth/emux/emux_effect.c +++ b/sound/synth/emux/emux_effect.c | |||
@@ -150,7 +150,7 @@ effect_get_offset(struct snd_midi_channel *chan, int lo, int hi, int mode) | |||
150 | return addr; | 150 | return addr; |
151 | } | 151 | } |
152 | 152 | ||
153 | #ifdef CONFIG_SND_SEQUENCER_OSS | 153 | #if IS_ENABLED(CONFIG_SND_SEQUENCER_OSS) |
154 | /* change effects - for OSS sequencer compatibility */ | 154 | /* change effects - for OSS sequencer compatibility */ |
155 | void | 155 | void |
156 | snd_emux_send_effect_oss(struct snd_emux_port *port, | 156 | snd_emux_send_effect_oss(struct snd_emux_port *port, |
diff --git a/sound/synth/emux/emux_oss.c b/sound/synth/emux/emux_oss.c index 850fab4a8f3b..de19e108974a 100644 --- a/sound/synth/emux/emux_oss.c +++ b/sound/synth/emux/emux_oss.c | |||
@@ -23,8 +23,6 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | 25 | ||
26 | #ifdef CONFIG_SND_SEQUENCER_OSS | ||
27 | |||
28 | #include <linux/export.h> | 26 | #include <linux/export.h> |
29 | #include <linux/uaccess.h> | 27 | #include <linux/uaccess.h> |
30 | #include <sound/core.h> | 28 | #include <sound/core.h> |
@@ -505,5 +503,3 @@ fake_event(struct snd_emux *emu, struct snd_emux_port *port, int ch, int param, | |||
505 | ev.data.control.value = val; | 503 | ev.data.control.value = val; |
506 | snd_emux_event_input(&ev, 0, port, atomic, hop); | 504 | snd_emux_event_input(&ev, 0, port, atomic, hop); |
507 | } | 505 | } |
508 | |||
509 | #endif /* CONFIG_SND_SEQUENCER_OSS */ | ||