git: 0e64d19630da - stable/15 - sound: Remove stale midi module dependencies

From: Christos Margiolis <christos_at_FreeBSD.org>
Date: Fri, 20 Nov 2026 09:49:01 UTC
The branch stable/15 has been updated by christos:

URL: https://cgit.FreeBSD.org/src/commit/?id=0e64d19630daf62a2e63c637d40f0ae5ecd60425

commit 0e64d19630daf62a2e63c637d40f0ae5ecd60425
Author:     Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2026-11-16 11:32:22 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2026-11-20 09:45:31 +0000

    sound: Remove stale midi module dependencies
    
    midi(4) stopped being a module in 45bb10e0ed5a ("sound: Stop building
    midi as a module"), so snd_cmi(4) and snd_emu10k1(4) fail to load
    because they still depend on it.
    
    Fixes:          45bb10e0ed5a ("sound: Stop building midi as a module")
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 day
    
    (cherry picked from commit 563c2f27e0ffec96a0ddd77b68c7ca6614d704af)
---
 sys/dev/sound/pci/cmi.c     | 1 -
 sys/dev/sound/pci/emu10k1.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/sys/dev/sound/pci/cmi.c b/sys/dev/sound/pci/cmi.c
index 8ee2cc286688..fa43ccea256f 100644
--- a/sys/dev/sound/pci/cmi.c
+++ b/sys/dev/sound/pci/cmi.c
@@ -1107,5 +1107,4 @@ static driver_t cmi_driver = {
 
 DRIVER_MODULE(snd_cmi, pci, cmi_driver, 0, 0);
 MODULE_DEPEND(snd_cmi, sound, SOUND_MINVER, SOUND_PREFVER, SOUND_MAXVER);
-MODULE_DEPEND(snd_cmi, midi, 1,1,1);
 MODULE_VERSION(snd_cmi, 1);
diff --git a/sys/dev/sound/pci/emu10k1.c b/sys/dev/sound/pci/emu10k1.c
index 5120ec2411a1..e726cb9c79e4 100644
--- a/sys/dev/sound/pci/emu10k1.c
+++ b/sys/dev/sound/pci/emu10k1.c
@@ -2196,7 +2196,6 @@ static driver_t emu_driver = {
 DRIVER_MODULE(snd_emu10k1, pci, emu_driver, NULL, NULL);
 MODULE_DEPEND(snd_emu10k1, sound, SOUND_MINVER, SOUND_PREFVER, SOUND_MAXVER);
 MODULE_VERSION(snd_emu10k1, 1);
-MODULE_DEPEND(snd_emu10k1, midi, 1, 1, 1);
 
 /* dummy driver to silence the joystick device */
 static int