Page MenuHomeFreeBSD

sound: Remove *MINOR from midi/
ClosedPublic

Authored by christos on Jun 28 2024, 5:38 PM.
Tags
None
Referenced Files
F156688399: D45772.id140635.diff
Fri, May 15, 5:09 PM
F156688370: D45772.id140635.diff
Fri, May 15, 5:09 PM
F156688362: D45772.id140345.diff
Fri, May 15, 5:09 PM
F156687310: D45772.diff
Fri, May 15, 5:01 PM
F156687278: D45772.diff
Fri, May 15, 5:01 PM
Unknown Object (File)
Tue, Apr 28, 12:37 AM
Unknown Object (File)
Sat, Apr 25, 10:47 AM
Unknown Object (File)
Sun, Apr 19, 6:19 PM
Subscribers

Details

Summary

Sponsored by: The FreeBSD Foundation
MFC after: 2 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 58389
Build 55277: arc lint + arc unit

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
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
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.