Page MenuHomeFreeBSD

sound: Retire SD_F_PRIO_*
Needs ReviewPublic

Authored by christos on Wed, Apr 23, 12:12 PM.
Tags
None
Referenced Files
F115560495: D49978.id154158.diff
Fri, Apr 25, 8:26 AM
F115548215: D49978.id.diff
Fri, Apr 25, 4:30 AM
F115534876: D49978.diff
Thu, Apr 24, 11:57 PM
Unknown Object (File)
Wed, Apr 23, 11:26 PM
Unknown Object (File)
Wed, Apr 23, 9:38 PM
Unknown Object (File)
Wed, Apr 23, 5:12 PM
Unknown Object (File)
Wed, Apr 23, 4:08 PM
Unknown Object (File)
Wed, Apr 23, 4:05 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 63667
Build 60551: arc lint + arc unit