HomeFreeBSD

sound: Retire SD_F_PRIO_*

Description

sound: Retire SD_F_PRIO_*

The SD_F_* flags are supposed to be softc flags, but SD_F_PRIO_RD and
SD_F_PRIO_WR are just generic flags and are only used with
dsp_lock_chans() and dsp_unlock_chans(). Since we already have the
DSP_F_READ() and DSP_F_WRITE() macros, we can re-use them instead.

I am aware the FREAD and FWRITE flags are meant to be used with open(),
but I think their use here is clear enough to not cause confusion.

No functional change intended.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D49978

(cherry picked from commit abb5521bddc24581a1bcbe3e3f016504a4824c73)

Details

Provenance
christosAuthored on Apr 25 2025, 4:55 PM
Differential Revision
D49978: sound: Retire SD_F_PRIO_*
Parents
rGa9221e507747: sndstat.4: Make sndstat nvlist channel names reflect new naming scheme
Branches
Unknown
Tags
Unknown