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 8, 6:20 AM
Unknown Object (File)
Sun, Feb 8, 5:16 AM
Unknown Object (File)
Sat, Feb 7, 8:35 PM
Unknown Object (File)
Sat, Jan 31, 4:30 AM
Unknown Object (File)
Wed, Jan 28, 9:15 PM
Unknown Object (File)
Mon, Jan 26, 5:10 PM
Unknown Object (File)
Sun, Jan 25, 11:14 PM
Unknown Object (File)
Dec 20 2025, 6:16 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