Page MenuHomeFreeBSD

sound: Remove *MINOR from midi/
ClosedPublic

Authored by christos on Jun 28 2024, 5:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Feb 8, 4:48 PM
Unknown Object (File)
Sat, Feb 8, 12:57 AM
Unknown Object (File)
Jan 9 2025, 8:51 PM
Unknown Object (File)
Jan 1 2025, 1:30 PM
Unknown Object (File)
Nov 7 2024, 8:36 PM
Unknown Object (File)
Sep 21 2024, 4:42 PM
Unknown Object (File)
Sep 12 2024, 4:04 AM
Unknown Object (File)
Sep 12 2024, 4:03 AM
Subscribers

Details

Summary

Sponsored by: The FreeBSD Foundation
MFC after: 2 days

Diff Detail

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

Event Timeline

christos retitled this revision from sound: Remove *MINOR definitions from midi/ to sound: Remove *MINOR from midi/.Jun 28 2024, 5:38 PM

What are the requirements for the unit argument to make_dev()? Should it be unique? We're always producing the same unit number in seq_addunit() now.

sys/dev/sound/midi/midi.c
75–76

Looks like MIDI_DEV_RAW is unused now?

What are the requirements for the unit argument to make_dev()? Should it be unique? We're always producing the same unit number in seq_addunit() now.

I cannot find which commit exactly removed the need for the unit argument, but it is generally no longer needed. We could even get rid of the current values we pass to make_dev(). The man page states that instead of unit, the current API uses the si_drv* fields.

sys/dev/sound/midi/midi.c
75–76

Yes. I will remove this as well.

This revision was not accepted when it landed; it landed in state Needs Review.Jul 6 2024, 6:24 PM
This revision was automatically updated to reflect the committed changes.