]> git.alsa-project.org Git - alsa-oss.git/commit
alsa: Add OSS sequencer API emulation
authorTakashi Iwai <tiwai@suse.de>
Tue, 8 Sep 2026 12:46:50 +0000 (14:46 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 9 Sep 2026 15:09:37 +0000 (17:09 +0200)
commit1beaf8b5d13febe3f72803e7370fd7d4be75b32b
tree5b4f564eb737e0e9f62114609b4e358207f3f2cc
parentdf7b0691e75ee939894e8f1a260ae3684f415d1c
alsa: Add OSS sequencer API emulation

Implement OSS /dev/sequencer and /dev/music emulation via the ALSA
sequencer API. Enumerate available MIDI ports at open time, subscribe
to them, and translate OSS 4/8-byte event records to/from ALSA
sequencer events.

A background pthread handles incoming ALSA events and converts them
to OSS format in a ring buffer; a pipe wakes poll/select waiters.
SNDCTL_SEQ_SYNC uses an ECHO event echo-back to synchronize with the
ALSA queue.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
alsa/Makefile.am
alsa/alsa-oss-emul.h
alsa/alsa-oss.c
alsa/sequencer.c [new file with mode: 0644]