HomeFreeBSD

mixer(8): Use new mixer if we change the default unit

Description

mixer(8): Use new mixer if we change the default unit

If we use the -d option to change the default unit, close the current
mixer and open the one we set as the default to avoid printing and
applying changes (if any) to the old one.

Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Reviewed by: dev_submerge.ch, markj
Differential Revision: https://reviews.freebsd.org/D43809

(cherry picked from commit 5daa7cf42f4551cb2f4a452fd038807925320eac)

Details

Provenance
christosAuthored on Feb 12 2024, 10:59 AM
Reviewer
dev_submerge.ch
Differential Revision
D43809: mixer(8): Use new mixer if we change the default unit
Parents
rG96a80ca9ba72: mixer(8): Improve mute and recsrc controls
Branches
Unknown
Tags
Unknown