Page MenuHomeFreeBSD

mixer(3): Do not skip devices with no volume control
ClosedPublic

Authored by christos on Jan 30 2025, 5:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 1, 11:39 PM
Unknown Object (File)
Sat, May 31, 7:39 AM
Unknown Object (File)
Wed, May 21, 9:43 AM
Unknown Object (File)
Apr 21 2025, 2:10 AM
Unknown Object (File)
Apr 19 2025, 9:11 PM
Unknown Object (File)
Apr 19 2025, 6:12 PM
Unknown Object (File)
Apr 19 2025, 1:20 PM
Unknown Object (File)
Apr 17 2025, 2:30 PM
Subscribers

Details

Summary

Some devices might not have a software volume control, but still be
able to be set as recording sources.

PR: 279787
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Diff Detail

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

Event Timeline

christos retitled this revision from mixer(3): Do not skip recording-only devices to mixer(3): Do not skip devices with no volume control.Feb 1 2025, 11:08 AM
christos edited the summary of this revision. (Show Details)

Thanks for updating the title, I was confused by this originally

lib/libmixer/mixer.c
124

Probably worth a comment here explaining why we allow failure. Or maybe if (_mixer_readvol(dp) < 0 && MIX_ISDEV(m, i))?

This revision is now accepted and ready to land.Feb 3 2025, 12:21 PM
christos marked an inline comment as done.

Address Ed's comment.

This revision now requires review to proceed.Feb 3 2025, 1:25 PM

Ah yes, that's even better

This revision is now accepted and ready to land.Feb 3 2025, 2:47 PM