Page MenuHomeFreeBSD

sound: Retire the MIDI sequencer
ClosedPublic

Authored by christos on May 30 2025, 3:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Aug 7, 10:38 PM
Unknown Object (File)
Tue, Aug 5, 6:06 AM
Unknown Object (File)
Fri, Jul 25, 9:41 PM
Unknown Object (File)
Sun, Jul 20, 11:41 AM
Unknown Object (File)
Jul 11 2025, 11:56 PM
Unknown Object (File)
Jul 8 2025, 12:51 AM
Unknown Object (File)
Jul 7 2025, 6:01 PM
Unknown Object (File)
Jul 7 2025, 9:42 AM
Subscribers

Details

Summary

The in-kernel MIDI sequencer is not used anymore, since this is done by
userland applications nowadays. It also contains bugs, and we are not
exactly sure how it works, or if it worked properly in the first place.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Remove some more stuff from midi.c

Does this removal warrant some post on -current or so to make sure no one's using it?

Does this removal warrant some post on -current or so to make sure no one's using it?

I've already sent an email to -multimedia and no one said they, or a port, is using it, but I can send to -current as well.

Does this removal warrant some post on -current or so to make sure no one's using it?

https://lists.freebsd.org/archives/freebsd-current/2025-June/007797.html

Radio silence in the mailing lists. I take this as we are good to go. :-)

Bump (also for the other MIDI patches).

Won't be able to test till I fully get home from the K-W Hackathon next week. Just want to make sure userspace sequencing via audio/alsa-seq-server or audio/sndio (what I use) are not affected.

This revision is now accepted and ready to land.Jun 20 2025, 1:47 PM
vishwin requested changes to this revision.Jun 27 2025, 1:32 AM

pkgbase fails:

===> Creating FreeBSD-kernel-malvern-15.snap20250627004823
rm -f /usr/home/vishwin/boards/malvern/obj/usr/src/amd64.amd64/sourcestage/src.plist 2>/dev/null || :
/usr/src/release/packages/generate-ucl.lua  PKGNAME "src"  PKGGENNAME "src"  VERSION "15.snap20250627004823"  DESC "FreeBSD Kernel Sources"  COMMENT "FreeBSD Userland Sources"  PKG_NAME_PREFIX "FreeBSD"  PKG_MAINTAINER "re@FreeBSD.org"  PKG_WWW "https://www.FreeBSD.org"  /usr/src/release/packages/template.ucl  /usr/home/vishwin/boards/malvern/obj/usr/src/amd64.amd64/sourcestage/src.ucl
pkg -o ABI=FreeBSD:15:amd64  -o OSVERSION="1500048"  create -f tzst -l -1  -M /usr/home/vishwin/boards/malvern/obj/usr/src/amd64.amd64/sourcestage/src.ucl  -p /usr/home/vishwin/boards/malvern/obj/usr/src/amd64.amd64/sourcestage/src.plist  -r /usr/src  -o /usr/home/vishwin/boards/malvern/obj/usr/src/repo/FreeBSD:15:amd64/15.snap20250627004823
rm -f /usr/home/vishwin/boards/malvern/obj/usr/src/amd64.amd64/sourcestage/src-sys.plist 2>/dev/null || :
/usr/src/release/packages/generate-ucl.lua  PKGNAME "src-sys"  PKGGENNAME "src"  VERSION "15.snap20250627004823"  DESC "FreeBSD Kernel Sources"  COMMENT "FreeBSD Kernel Sources"  PKG_NAME_PREFIX "FreeBSD"  PKG_MAINTAINER "re@FreeBSD.org"  PKG_WWW "https://www.FreeBSD.org"  /usr/src/release/packages/template.ucl  /usr/home/vishwin/boards/malvern/obj/usr/src/amd64.amd64/sourcestage/src-sys.ucl
pkg -o ABI=FreeBSD:15:amd64  -o OSVERSION="1500048"  create -f tzst -l -1  -M /usr/home/vishwin/boards/malvern/obj/usr/src/amd64.amd64/sourcestage/src-sys.ucl  -p /usr/home/vishwin/boards/malvern/obj/usr/src/amd64.amd64/sourcestage/src-sys.plist  -r /usr/src  -o /usr/home/vishwin/boards/malvern/obj/usr/src/repo/FreeBSD:15:amd64/15.snap20250627004823
pkg: Unable to access file /usr/src/sys/dev/sound/midi/sequencer.c:No such file or directory
pkg: Unable to access file /usr/src/sys/dev/sound/midi/sequencer.h:No such file or directory
*** Error code 1

Stop.
make[4]: stopped making "create-source-packages" in /usr/src
*** Error code 1

Stop.
make[3]: stopped making "real-packages" in /usr/src
*** Error code 1

Stop.
make[2]: stopped making "real-packages" in /usr/src
*** Error code 1

Stop.
make[1]: stopped making "packages" in /usr/src
*** Error code 1

Stop.
make: stopped making "packages" in /usr/src/

My non-pkgbase machine has this applied but I have not tested for any MIDI regressions yet.

May also want to rebase after rG01addd846c64fc2c8be610d83bfdc84ddb57f2ec

This revision now requires changes to proceed.Jun 27 2025, 1:32 AM

False alarm. Turns out pkgbase's plist logic relies on at least staging changes in git (no need to commit).

Userspace sequencing is confirmed not affected.

This revision is now accepted and ready to land.Jun 27 2025, 5:43 PM
This revision was automatically updated to reflect the committed changes.