Page MenuHomeFreeBSD

sound: Improve sndstat nvlist feederchain format
ClosedPublic

Authored by christos on Aug 15 2024, 4:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 4, 10:19 AM
Unknown Object (File)
Sat, May 3, 7:58 AM
Unknown Object (File)
Wed, Apr 30, 9:13 PM
Unknown Object (File)
Mon, Apr 28, 10:53 AM
Unknown Object (File)
Fri, Apr 25, 6:09 AM
Unknown Object (File)
Thu, Apr 24, 10:53 PM
Unknown Object (File)
Sat, Apr 12, 10:26 AM
Unknown Object (File)
Mar 16 2025, 11:59 AM
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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

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

I think we could omit the hex here.

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

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