Skip to content

Commit eb3b705

Browse files
committed
ALSA: Make CONFIG_SND_OSSEMUL user-selectable
Currently CONFIG_SND_OSSEMUL is selected by each config like CONFIG_SND_PCM_OSS. But, as see in the raw MIDI code that is built conditionally with CONFIG_SND_OSSEMUL, we should rather make CONFIG_SND_OSSEMUL user-selectable as the top kconfig item, and leave the rest depending on it. Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 6baca01 commit eb3b705

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎sound/core/Kconfig‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,14 @@ config SND_SEQ_DUMMY
5959
will be called snd-seq-dummy.
6060

6161
config SND_OSSEMUL
62+
bool "Enable OSS Emulation"
6263
select SOUND_OSS_CORE
63-
bool
64+
help
65+
This option enables the build of OSS emulation layer.
6466

6567
config SND_MIXER_OSS
6668
tristate "OSS Mixer API"
67-
select SND_OSSEMUL
69+
depends on SND_OSSEMUL
6870
help
6971
To enable OSS mixer API emulation (/dev/mixer*), say Y here
7072
and read <file:Documentation/sound/alsa/OSS-Emulation.txt>.
@@ -76,7 +78,7 @@ config SND_MIXER_OSS
7678

7779
config SND_PCM_OSS
7880
tristate "OSS PCM (digital audio) API"
79-
select SND_OSSEMUL
81+
depends on SND_OSSEMUL
8082
select SND_PCM
8183
help
8284
To enable OSS digital audio (PCM) emulation (/dev/dsp*), say Y
@@ -110,7 +112,7 @@ config SND_PCM_TIMER
110112
config SND_SEQUENCER_OSS
111113
bool "OSS Sequencer API"
112114
depends on SND_SEQUENCER
113-
select SND_OSSEMUL
115+
depends on SND_OSSEMUL
114116
help
115117
Say Y here to enable OSS sequencer emulation (both
116118
/dev/sequencer and /dev/music interfaces).

0 commit comments

Comments
 (0)