Page MenuHomeFreeBSD

sound: Retire SD_F_PRIO_*
ClosedPublic

Authored by christos on Apr 23 2025, 12:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 14, 4:39 AM
Unknown Object (File)
Fri, Oct 3, 8:30 AM
Unknown Object (File)
Fri, Oct 3, 7:50 AM
Unknown Object (File)
Tue, Sep 30, 8:29 AM
Unknown Object (File)
Mon, Sep 29, 6:21 PM
Unknown Object (File)
Wed, Sep 24, 11:58 PM
Unknown Object (File)
Sep 13 2025, 11:38 PM
Unknown Object (File)
Sep 12 2025, 11:15 PM
Subscribers

Details

Summary

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

Diff Detail

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