Page MenuHomeFreeBSD

sound: Improve sndstat nvlist feederchain format
ClosedPublic

Authored by christos on Aug 15 2024, 4:12 PM.
Tags
None
Referenced Files
F167180163: D46309.id142267.diff
Wed, Aug 19, 4:57 PM
F167171879: D46309.id142404.diff
Wed, Aug 19, 3:55 PM
F167152575: D46309.id142119.diff
Wed, Aug 19, 12:57 PM
Unknown Object (File)
Tue, Aug 18, 8:35 PM
Unknown Object (File)
Tue, Aug 18, 8:10 PM
Unknown Object (File)
Tue, Aug 18, 8:05 PM
Unknown Object (File)
Sun, Aug 16, 9:29 PM
Unknown Object (File)
Tue, Aug 11, 12:55 PM
Subscribers

Details

Summary
  • Use snd_afmt2str() to display format conversions in feeder_format, instead of the plain hex value.
  • Simplify feeder_rate contents.
  • Print "ch" (e.g 2.1ch) after matrix values in feeder_matrix.
  • Use snd_afmt2str() instead of a plain hex for the the rest of the feeder classes.

Sponsored by: The FreeBSD Foundation
MFC after: 2 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 59038
Build 55925: arc lint + arc unit

Event Timeline

sys/dev/sound/pcm/sndstat.c
552

I think we could omit the hex here.

sys/dev/sound/pcm/sndstat.c
552

I suppose we can use snd_afmt2str() as in feeder_format, otherwise it looks a bit strange in the feeder chain.

christos marked an inline comment as done.

Use snd_aftm2str() instead of plain hex value for the rest of the feeder
classes.

This revision is now accepted and ready to land.Aug 23 2024, 8:53 PM