[Bug 262229] When mixer(8) is used to change the default, there follows information about the previous default (not the default)

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 27 Feb 2022 13:46:44 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262229

            Bug ID: 262229
           Summary: When mixer(8) is used to change the default, there
                    follows information about the previous default (not
                    the default)
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: grahamperrin@gmail.com

Changing from 3 to 1 presents information about 3, and so on: 


% mixer -d1
default_unit: 3 -> 1
pcm3:mixer: <USB audio> at ? kld snd_uaudio (play/rec)
    vol.volume      = 0.75:0.75  pbk
    pcm.volume      = 0.75:0.75  pbk
    mic.volume      = 0.53:0.53  rec src
% mixer -d3
default_unit: 1 -> 3
pcm1:mixer: <IDT 92HD81B1X (Analog 2.0+HP/2.0)> on hdaa1  (play/rec)
    vol.volume      = 0.95:0.95  pbk
    pcm.volume      = 1.00:1.00  pbk
    speaker.volume  = 1.00:1.00  pbk
    line.volume     = 0.01:0.01  rec
    mic.volume      = 0.67:0.67  rec src
    mix.volume      = 0.01:0.01  rec
    rec.volume      = 0.01:0.01  pbk
    ogain.volume    = 1.00:1.00  pbk
% mixer -d3
default_unit: 3 -> 3
pcm3:mixer: <USB audio> at ? kld snd_uaudio (play/rec) (default)
    vol.volume      = 0.75:0.75  pbk
    pcm.volume      = 0.75:0.75  pbk
    mic.volume      = 0.53:0.53  rec src
% date ; uname -aKU
Sun 27 Feb 2022 13:40:01 GMT
FreeBSD mowa219-gjp4-8570p-freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT #4
main-n253343-9835900cb95-dirty: Wed Feb 23 00:14:15 GMT 2022    
root@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG
amd64 1400053 1400053
% 

----

Please, is this intended? 

I imagine that it will be more useful to see information about the current
default (not the previous default).

-- 
You are receiving this mail because:
You are the assignee for the bug.