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)
Apr 27 2024, 8:49 AM
Unknown Object (File)
Apr 27 2024, 8:06 AM
Unknown Object (File)
Apr 27 2024, 8:01 AM
Unknown Object (File)
Apr 27 2024, 8:00 AM
Unknown Object (File)
Apr 27 2024, 7:32 AM
Unknown Object (File)
Apr 22 2024, 5:37 PM
Unknown Object (File)
Apr 22 2024, 4:42 PM
Unknown Object (File)
Apr 5 2024, 2:54 PM
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