ALSA: seq: Mark OSS sequencer emulation as deprecated
RFC PATCH v2 1/1 ALSA: seq: Mark OSS sequencer emulation as deprecated
OSS sequencer API emulation has been implemented as a client of ALSA sequencer, decades ago, at the time where OSS was still use. But the API itself became very niche, and almost noone using it for a real purpose any longer -- only exceptions are AI and fuzzers, who have been causing significant maintenance burden for issues they hit & found.
Meanwhile, the most features of OSS sequencer API emulation can be achieved in user-space, either by ALSA-OSS layer (aoss) or oss-seq-emu program:
https://github.com/alsa-project/alsa-oss
https://github.com/tiwai/oss-seq-emu
where the former is LD_PRELOAD wrapper and the latter is a CUSE-based daemon. So we can drop the stuff from the kernel sooner or later.
Now, let's mark the OSS sequencer emulation as deprecated and give a warning when loaded, so that we can drop it later actually.
---v1->v2: put the warning for snd-seq-oss at the right place
sound/core/seq/Kconfig | 7 +++++-- sound/core/seq/oss/seq_oss.c | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-)
sound/core/seq/Kconfig +5 -2
@@ -27,14 +27,17 @@ config SND_SEQ_DUMMY will be called snd-seq-dummy. config SND_SEQUENCER_OSS - tristate "OSS Sequencer API" + tristate "OSS Sequencer API (deprecated)" depends on SND_OSSEMUL select SND_SEQ_MIDI_EVENT help Say Y here to enable OSS sequencer emulation (both /dev/sequencer and /dev/music interfaces). - Many programs still use the OSS API, so say Y. + The OSS sequencer API is almost nowhere used, hence this option will + be dropped soon. + Use user-space wrapper (alsa-oss) or CUSE daemon (oss-seq-emu) + instead of the kernel-side emulation. To compile this driver as a module, choose M here: the module will be called snd-seq-oss.
sound/core/seq/oss/seq_oss.c +3 -0
@@ -67,6 +67,9 @@ static int __init alsa_seq_oss_init(void) {int rc; +pr_warn ("seq-oss: kernel OSS sequencer emulation is deprecated\n" ); +pr_warn ("seq-oss: Use user-space solution (alsa-oss or oss-seq-emu) instead.\n" ); + rc =register_device ();if (rc <0 ) goto error;
Signature · 1 line
2.55.0
Quoted 16 lines · Takashi Iwai
OSS sequencer API emulation has been implemented as a client of ALSA sequencer, decades ago, at the time where OSS was still use. But the API itself became very niche, and almost noone using it for a real purpose any longer -- only exceptions are AI and fuzzers, who have been causing significant maintenance burden for issues they hit & found.
Meanwhile, the most features of OSS sequencer API emulation can be achieved in user-space, either by ALSA-OSS layer (aoss) or oss-seq-emu program:
https://github.com/alsa-project/alsa-oss
https://github.com/tiwai/oss-seq-emu
where the former isLD_PRELOADwrapper and the latter is a CUSE-based daemon. So we can drop the stuff from the kernel sooner or later.
Quoted 4 lines
Now, let's mark the OSS sequencer emulation as deprecated and give a warning when loaded, so that we can drop it later actually.
Signed-off-by Takashi Iwai <[email protected]>
Since there has been no objection, I'm going to queue this for 7.4.
thanks,
Takashi