Page MenuHomeFreeBSD

sndstat: nvlist schema and API definition changes
ClosedPublic

Authored by khng on Apr 15 2021, 9:10 AM.
Tags
None
Referenced Files
F102728396: D29770.diff
Sat, Nov 16, 11:02 AM
Unknown Object (File)
Oct 12 2024, 9:06 PM
Unknown Object (File)
Oct 4 2024, 8:54 PM
Unknown Object (File)
Oct 4 2024, 3:47 PM
Unknown Object (File)
Oct 2 2024, 1:59 PM
Unknown Object (File)
Oct 2 2024, 1:59 AM
Unknown Object (File)
Sep 27 2024, 1:32 AM
Unknown Object (File)
Sep 26 2024, 6:19 PM
Subscribers

Details

Summary
  • SNDSTAT_LABEL_* are renamed to SNDST_DSPS_*, and SNDSTAT_LABEL_DSPS becomes SNDST_DSPS.
  • Centralize channel number/rate/formats into a single nvlist The above nvlist is named "info_play" and "info_rec"
  • Expose only encoding format in pfmts/rfmts. Userland has no direct access to AFMT_ENCODING/CHANNEL/EXTCHANNEL macros, thus it serves no meaning to expose too much information through this pair of labels. However pminrate/rminrate, pmaxrate/rmaxrate, pfmts/rfmts are deprecated and will be removed in future.

This commit keeps ioctls ABI compatibility with __FreeBSD_version
1400006 for now. In future the compat ABI with 1400006 will be removed
once audio/virtual_oss is rebuilt.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 38584
Build 35473: arc lint + arc unit

Event Timeline

khng requested review of this revision.Apr 15 2021, 9:10 AM

Found 3 typos, one of which was not yours. :-)

share/man/man4/sndstat.4
102

s/support/supports/

118

See above.

140–141

Oh look, a typo in the man page that was there before your change. Oops:

s/providede/provided/

You could fix this while you're here.

khng marked 3 inline comments as done.Apr 15 2021, 9:26 AM

Great, manpage part of the change is fine now.

This revision is now accepted and ready to land.Apr 15 2021, 9:35 AM

Looks good to me!

Approved by: philip (mentor)