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

Details

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