Page MenuHomeFreeBSD

mixer(8): add shorthand syntax for setting the volume
ClosedPublic

Authored by christos on Mar 20 2022, 4:05 PM.
Referenced Files
F139378018: D34612.id104028.diff
Thu, Dec 11, 11:16 AM
Unknown Object (File)
Nov 10 2025, 3:39 AM
Unknown Object (File)
Nov 8 2025, 8:17 PM
Unknown Object (File)
Nov 6 2025, 3:25 PM
Unknown Object (File)
Nov 4 2025, 1:54 AM
Unknown Object (File)
Oct 25 2025, 2:18 PM
Unknown Object (File)
Oct 19 2025, 3:46 AM
Unknown Object (File)
Oct 18 2025, 6:23 PM
Subscribers

Details

Summary

dev.volume=X can now also be written as dev=X.
Requested by hselasky@ and bsduck on a forum conversation.

Diff Detail

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

Event Timeline

usr.sbin/mixer/mixer.c
150

Should this loop also check for "." characters, so that you can either do:

dev=80 or dev = 0.80 ?

--HPS

usr.sbin/mixer/mixer.c
150

It should. I totally forgot about that. My bad :-)

Accept floating point numbers as input.

This revision is now accepted and ready to land.Mar 20 2022, 4:24 PM

Don't push it. I also forgot to add suport for [+|-].