Page MenuHomeFreeBSD

mixer(8): Allow full PCM device names as input for the -d option
ClosedPublic

Authored by christos on Feb 8 2024, 3:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 8, 5:46 PM
Unknown Object (File)
Sun, Sep 8, 1:27 PM
Unknown Object (File)
Fri, Sep 6, 2:09 AM
Unknown Object (File)
Sat, Aug 31, 10:39 AM
Unknown Object (File)
Sat, Aug 31, 10:39 AM
Unknown Object (File)
Sat, Aug 31, 10:39 AM
Unknown Object (File)
Sat, Aug 31, 10:39 AM
Unknown Object (File)
Sat, Aug 31, 10:27 AM
Subscribers

Details

Summary

The -d option is a wrapper around hw.snd.default_unit. Currently
mixer(8) expects the option argument to be just the unit's number (e.g
pcm0 -> 0). To avoid confusion, allow full device names of the form
"pcmN" as well.

While here, improve the -d option's description in the man page.

Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Feb 8 2024, 4:01 PM

Remove wrong usage info about being able to use both -d and -a at the same
time.

This revision now requires review to proceed.Feb 9 2024, 9:14 PM
This revision is now accepted and ready to land.Feb 10 2024, 12:32 AM