HomeFreeBSD

sound: Retire snd_midi->qlock

Description

sound: Retire snd_midi->qlock

snd_midi->qlock is used to protect snd_midi->{in,out}q. However, apart
from the numerous LORs present already in the code, there is no reason
not to use snd_midi->lock, as we do for the rest of the structure

Started by: https://github.com/freebsd/freebsd-src/pull/1902
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Reviewed by: dev_nicolas-provost.fr
Differential Revision: https://reviews.freebsd.org/D54129

(cherry picked from commit 4cc78f5dd7c2e82571ced6e23fa22d48c6cd1697)

Details

Provenance
christosAuthored on Jan 2 2026, 4:56 PM
Reviewer
dev_nicolas-provost.fr
Differential Revision
D54129: sound: Retire snd_midi->qlock
Parents
rG9ad643ff2e50: snd_dummy: Initial MIDI support
Branches
Unknown
Tags
Unknown