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, Feb 9, 11:39 PM
Unknown Object (File)
Sat, Feb 8, 3:56 PM
Unknown Object (File)
Thu, Feb 6, 10:20 AM
Unknown Object (File)
Mon, Feb 3, 2:18 PM
Unknown Object (File)
Mon, Feb 3, 12:40 AM
Unknown Object (File)
Wed, Jan 29, 11:24 AM
Unknown Object (File)
Mon, Jan 27, 4:33 PM
Unknown Object (File)
Thu, Jan 23, 9:27 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