Greg's sound card configuration
Greg's diary
Photo index
Greg's home page
Network link stats
Greg's other links
Copyright information
Groogle

While debugging the sound drivers on my machine on 21 March 2011, I came across various sources of information about the drivers. There are a total of three sysctls of interest when debugging this sort of thing:

  1. hw.snd.verbose specifies the verbosity of the output of /dev/sndstat. When set to 0 or 1 it shows:

    FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386)
    Installed devices:
    pcm0: <HDA Realtek ALC885 PCM #0 Analog> at cad 3 nid 1 on hdac0 kld snd_hda (1p:1v/1r:1v) default
    pcm1: <HDA Realtek ALC885 PCM #1 Analog> at cad 3 nid 1 on hdac0 kld snd_hda (1p:1v/1r:1v)
    pcm2: <HDA Realtek ALC885 PCM #2 Digital> at cad 3 nid 1 on hdac0 kld snd_hda (1p:1v/1r:1v)

    When it is set to 2, it produces much more detail, as shown below.

  2. hw.snd.default_unit specifies which of the units gets mapped to /dev/dsp and friends. It gets reset on module load, so it needs to be set after the module is loaded and before any client opens the device.

  3. debug.bootverbose is used at boot time to provide more information about the boot process. It also works when loading modules. In the case of the sound drivers, it produces an incredible amount of output, nearly 1000 lines. It's very informative, but it seems inappropriate to put it in the log files:

<ATI SB600 High Definition Audio Controller> mem 0xfe024000-0xfe027fff irq 16 at device 20.2 on pci0
HDA Driver Revision: 20100226_0142
[MPSAFE]
[ITHREAD]
Caps: OSS 4, ISS 4, BSS 0, NSDO 1, 64bit, CORB 256, RIRB 256
Probing codec #3...
HDA Codec #3: Realtek ALC885
 HDA Codec ID: 0x10ec0885
       Vendor: 0x10ec
       Device: 0x0885
     Revision: 0x01
     Stepping: 0x01
PCI Subvendor: 0xa0021458
Found audio FG nid=1 startnode=2 endnode=39 total=37

Processing audio FG cad=3 nid=1...
GPIO: 0x40000002 NumGPIO=2 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
 nid 20 0x01014410 as  1 seq  0      Line-out  Jack jack  1 loc  1 color   Green misc 4
 nid 21 0x01011412 as  1 seq  2      Line-out  Jack jack  1 loc  1 color   Black misc 4
 nid 22 0x01016411 as  1 seq  1      Line-out  Jack jack  1 loc  1 color  Orange misc 4
 nid 23 0x01012414 as  1 seq  4      Line-out  Jack jack  1 loc  1 color    Grey misc 4
 nid 24 0x01a19c40 as  4 seq  0           Mic  Jack jack  1 loc  1 color    Pink misc 12
 nid 25 0x02a19c50 as  5 seq  0           Mic  Jack jack  1 loc  2 color    Pink misc 12
 nid 26 0x0181344f as  4 seq 15       Line-in  Jack jack  1 loc  1 color    Blue misc 4
 nid 27 0x02214c20 as  2 seq  0    Headphones  Jack jack  1 loc  2 color   Green misc 12
 nid 28 0x593301f0 as 15 seq  0            CD  None jack  3 loc 25 color Unknown misc 1
Patching widget caps nid=29 0x00400000 -> 0x00700000
 nid 30 0x014b6130 as  3 seq  0     SPDIF-out  Jack jack 11 loc  1 color  Orange misc 1
 nid 31 0x01cb7160 as  6 seq  0      SPDIF-in  Jack jack 11 loc  1 color  Yellow misc 1
Patched pins configuration:
 nid 20 0x01014410 as  1 seq  0      Line-out  Jack jack  1 loc  1 color   Green misc 4
 nid 21 0x01011412 as  1 seq  2      Line-out  Jack jack  1 loc  1 color   Black misc 4
 nid 22 0x01016411 as  1 seq  1      Line-out  Jack jack  1 loc  1 color  Orange misc 4
 nid 23 0x01012414 as  1 seq  4      Line-out  Jack jack  1 loc  1 color    Grey misc 4
 nid 24 0x01a19c40 as  4 seq  0           Mic  Jack jack  1 loc  1 color    Pink misc 12
 nid 25 0x02a19c50 as  5 seq  0           Mic  Jack jack  1 loc  2 color    Pink misc 12
 nid 26 0x0181344f as  4 seq 15       Line-in  Jack jack  1 loc  1 color    Blue misc 4
 nid 27 0x02214c20 as  2 seq  0    Headphones  Jack jack  1 loc  2 color   Green misc 12
 nid 28 0x593301f0 as 15 seq  0            CD  None jack  3 loc 25 color Unknown misc 1 [DISABLED]
 nid 30 0x014b6130 as  3 seq  0     SPDIF-out  Jack jack 11 loc  1 color  Orange misc 1
 nid 31 0x01cb7160 as  6 seq  0      SPDIF-in  Jack jack 11 loc  1 color  Yellow misc 1
6 associations found:
Association 0 (1) out:
 Pin nid=20 seq=0
 Pin nid=22 seq=1
 Pin nid=21 seq=2
 Pin nid=23 seq=4
Association 1 (2) out:
 Pin nid=27 seq=0
Association 2 (3) out:
 Pin nid=30 seq=0
Association 3 (4) in:
 Pin nid=24 seq=0
 Pin nid=26 seq=15
Association 4 (5) in:
 Pin nid=25 seq=0
Association 5 (6) in:
 Pin nid=31 seq=0
Tracing association 0 (1)
 Pin 20 traced to DAC 2
 Pin 22 traced to DAC 3
 Pin 21 traced to DAC 4
 Pin 23 traced to DAC 5
Association 0 (1) trace succeeded
Tracing association 1 (2)
 Pin 27 traced to DAC 37
Association 1 (2) trace succeeded
Tracing association 2 (3)
 Pin 30 traced to DAC 6
Association 2 (3) trace succeeded
Tracing association 3 (4)
 Pin 24 traced to ADC 7
 Pin 26 traced to ADC 7
Association 3 (4) trace succeeded
Tracing association 4 (5)
 Pin 25 traced to ADC 8
Association 4 (5) trace succeeded
Tracing association 5 (6)
 Unable to trace pin 31 to ADC 9, undo traces
 Pin 31 traced to ADC 10
Association 5 (6) trace succeeded
Tracing input monitor
 Tracing nid 11 to out
 nid 11 is input monitor
 Tracing nid 35 to out
 Tracing nid 36 to out
Tracing other input monitors
 Tracing nid 24 to out
 Tracing nid 25 to out
 Tracing nid 26 to out
 Tracing nid 31 to out
Tracing beeper
FG config/quirks: forcestereo ivref50 ivref80 ivref100 ivref

+-------------------+
| DUMPING HDA NODES |
+-------------------+

Default Parameter
-----------------
     Stream cap: 0x00000001
                 PCM
        PCM cap: 0x000e0560
                 16 20 24 bits, 44 48 96 192 KHz
         IN amp: 0x00000000
        OUT amp: 0x00000000

            nid: 2
           Name: audio output
     Widget cap: 0x00000011
                 STEREO
    Association: 0 (0x00000001)
            OSS: pcm (pcm)
     Stream cap: 0x00000001
                 PCM
        PCM cap: 0x000e0560
                 16 20 24 bits, 44 48 96 192 KHz

            nid: 3
           Name: audio output
     Widget cap: 0x00000011
                 STEREO
    Association: 0 (0x00000002)
            OSS: pcm (pcm)
     Stream cap: 0x00000001
                 PCM
        PCM cap: 0x000e0560
                 16 20 24 bits, 44 48 96 192 KHz

            nid: 4
           Name: audio output
     Widget cap: 0x00000011
                 STEREO
    Association: 0 (0x00000004)
            OSS: pcm (pcm)
     Stream cap: 0x00000001
                 PCM
        PCM cap: 0x000e0560
                 16 20 24 bits, 44 48 96 192 KHz

            nid: 5
           Name: audio output
     Widget cap: 0x00000011
                 STEREO
    Association: 0 (0x00000010)
            OSS: pcm (pcm)
     Stream cap: 0x00000001
                 PCM
        PCM cap: 0x000e0560
                 16 20 24 bits, 44 48 96 192 KHz

            nid: 6
           Name: audio output
     Widget cap: 0x00000211
                 DIGITAL STEREO
    Association: 2 (0x00000001)
            OSS: pcm (pcm)
     Stream cap: 0x00000001
                 PCM
        PCM cap: 0x001e05e0
                 16 20 24 32 bits, 44 48 88 96 192 KHz

            nid: 7
           Name: audio input
     Widget cap: 0x0010011b
                 STEREO
    Association: 3 (0x00008001)
     Stream cap: 0x00000001
                 PCM
        PCM cap: 0x000e0560
                 16 20 24 bits, 44 48 96 192 KHz
      Input amp: 0x80032e10
                 mute=1 step=46 size=3 offset=16
    connections: 1
          |
          + <- nid=36 [audio mixer]

            nid: 8
           Name: audio input
     Widget cap: 0x0010011b
                 STEREO
    Association: 4 (0x00000001)
     Stream cap: 0x00000001
                 PCM
        PCM cap: 0x000e0560
                 16 20 24 bits, 44 48 96 192 KHz
      Input amp: 0x80032e10
                 mute=1 step=46 size=3 offset=16
    connections: 1
          |
          + <- nid=35 [audio mixer]

            nid: 9 [DISABLED]
           Name: audio input
     Widget cap: 0x0010011b
                 STEREO
     Stream cap: 0x00000001
                 PCM
        PCM cap: 0x000e0560
                 16 20 24 bits, 44 48 96 192 KHz
      Input amp: 0x80032e10
                 mute=1 step=46 size=3 offset=16
    connections: 1
          |
          + [DISABLED] <- nid=34 [audio mixer] [DISABLED]

            nid: 10
           Name: audio input
     Widget cap: 0x00100391
                 DIGITAL UNSOL STEREO
    Association: 5 (0x00000001)
     Stream cap: 0x00000001
                 PCM
        PCM cap: 0x001e0560
                 16 20 24 32 bits, 44 48 96 192 KHz
    connections: 1
          |
          + <- nid=31 [pin: SPDIF-in (Yellow Jack)]

            nid: 11
           Name: audio mixer
     Widget cap: 0x0020010b
                 STEREO
    Association: 3 (0x00008001)
            OSS: mix (mix)
      Input amp: 0x80051f17
                 mute=1 step=31 size=5 offset=23
    connections: 10
          |
          + <- nid=24 [pin: Mic (Pink Jack)]
          + [DISABLED] <- nid=25 [pin: Mic (Pink Jack)]
          + <- nid=26 [pin: Line-in (Blue Jack)]
          + [DISABLED] <- nid=27 [pin: Headphones (Green Jack)]
          + [DISABLED] <- nid=28 [pin: CD (None)] [DISABLED]
          + <- nid=29 [beep widget]
          + [DISABLED] <- nid=20 [pin: Line-out (Green Jack)]
          + [DISABLED] <- nid=21 [pin: Line-out (Black Jack)]
          + [DISABLED] <- nid=22 [pin: Line-out (Orange Jack)]
          + [DISABLED] <- nid=23 [pin: Line-out (Grey Jack)]

            nid: 12
           Name: audio mixer
     Widget cap: 0x0020010f
                 STEREO
    Association: 0 (0x00000001)
            OSS: pcm, mix
     Output amp: 0x00034040
                 mute=0 step=64 size=3 offset=64
      Input amp: 0x80000000
                 mute=1 step=0 size=0 offset=0
    connections: 2
          |
          + <- nid=2 [audio output]
          + <- nid=11 [audio mixer]

            nid: 13
           Name: audio mixer
     Widget cap: 0x0020010f
                 STEREO
    Association: 0 (0x00000002)
            OSS: pcm, mix
     Output amp: 0x00034040
                 mute=0 step=64 size=3 offset=64
      Input amp: 0x80000000
                 mute=1 step=0 size=0 offset=0
    connections: 2
          |
          + <- nid=3 [audio output]
          + <- nid=11 [audio mixer]

            nid: 14
           Name: audio mixer
     Widget cap: 0x0020010f
                 STEREO
    Association: 0 (0x00000004)
            OSS: pcm, mix
     Output amp: 0x00034040
                 mute=0 step=64 size=3 offset=64
      Input amp: 0x80000000
                 mute=1 step=0 size=0 offset=0
    connections: 2
          |
          + <- nid=4 [audio output]
          + <- nid=11 [audio mixer]

            nid: 15
           Name: audio mixer
     Widget cap: 0x0020010f
                 STEREO
    Association: 0 (0x00000010)
            OSS: pcm, mix
     Output amp: 0x00034040
                 mute=0 step=64 size=3 offset=64
      Input amp: 0x80000000
                 mute=1 step=0 size=0 offset=0
    connections: 2
          |
          + <- nid=5 [audio output]
          + <- nid=11 [audio mixer]

            nid: 16 [DISABLED]
           Name: vendor widget
     Widget cap: 0x00f00000

            nid: 17 [DISABLED]
           Name: vendor widget
     Widget cap: 0x00f00000

            nid: 18 [DISABLED]
           Name: vendor widget
     Widget cap: 0x00f00000

            nid: 19 [DISABLED]
           Name: vendor widget
     Widget cap: 0x00f00000

            nid: 20
           Name: pin: Line-out (Green Jack)
     Widget cap: 0x0040018f
                 UNSOL STEREO
    Association: 0 (0x00000001)
        Pin cap: 0x0000373c
                 PDC HP OUT IN VREF[ 50 80 100 GROUND HIZ ]
     Pin config: 0x01014410
    Pin control: 0x00000040 OUT
     Output amp: 0x80000000
                 mute=1 step=0 size=0 offset=0
      Input amp: 0x00270300
                 mute=0 step=3 size=39 offset=0
    connections: 5
          |
          + <- nid=12 [audio mixer] (selected)
          + [DISABLED] <- nid=13 [audio mixer]
          + [DISABLED] <- nid=14 [audio mixer]
          + [DISABLED] <- nid=15 [audio mixer]
          + [DISABLED] <- nid=38 [audio mixer]

            nid: 21
           Name: pin: Line-out (Black Jack)
     Widget cap: 0x0040018f
                 UNSOL STEREO
    Association: 0 (0x00000004)
        Pin cap: 0x0000373c
                 PDC HP OUT IN VREF[ 50 80 100 GROUND HIZ ]
     Pin config: 0x01011412
    Pin control: 0x00000040 OUT
     Output amp: 0x80000000
                 mute=1 step=0 size=0 offset=0
      Input amp: 0x00270300
                 mute=0 step=3 size=39 offset=0
    connections: 5
          |
          + [DISABLED] <- nid=12 [audio mixer]
          + [DISABLED] <- nid=13 [audio mixer]
          + <- nid=14 [audio mixer] (selected)
          + [DISABLED] <- nid=15 [audio mixer]
          + [DISABLED] <- nid=38 [audio mixer]

            nid: 22
           Name: pin: Line-out (Orange Jack)
     Widget cap: 0x0040018f
                 UNSOL STEREO
    Association: 0 (0x00000002)
        Pin cap: 0x0000003c
                 PDC HP OUT IN
     Pin config: 0x01016411
    Pin control: 0x00000040 OUT
     Output amp: 0x80000000
                 mute=1 step=0 size=0 offset=0
      Input amp: 0x00270300
                 mute=0 step=3 size=39 offset=0
    connections: 5
          |
          + [DISABLED] <- nid=12 [audio mixer]
          + <- nid=13 [audio mixer] (selected)
          + [DISABLED] <- nid=14 [audio mixer]
          + [DISABLED] <- nid=15 [audio mixer]
          + [DISABLED] <- nid=38 [audio mixer]

            nid: 23
           Name: pin: Line-out (Grey Jack)
     Widget cap: 0x0040018f
                 UNSOL STEREO
    Association: 0 (0x00000010)
        Pin cap: 0x0000003c
                 PDC HP OUT IN
     Pin config: 0x01012414
    Pin control: 0x00000040 OUT
     Output amp: 0x80000000
                 mute=1 step=0 size=0 offset=0
      Input amp: 0x00270300
                 mute=0 step=3 size=39 offset=0
    connections: 5
          |
          + [DISABLED] <- nid=12 [audio mixer]
          + [DISABLED] <- nid=13 [audio mixer]
          + [DISABLED] <- nid=14 [audio mixer]
          + <- nid=15 [audio mixer] (selected)
          + [DISABLED] <- nid=38 [audio mixer]

            nid: 24
           Name: pin: Mic (Pink Jack)
     Widget cap: 0x0040018f
                 UNSOL STEREO
    Association: 3 (0x00000001)
            OSS: mic (mic)
        Pin cap: 0x0000373c
                 PDC HP OUT IN VREF[ 50 80 100 GROUND HIZ ]
     Pin config: 0x01a19c40
    Pin control: 0x00000025 IN VREFs
     Output amp: 0x80000000
                 mute=1 step=0 size=0 offset=0
      Input amp: 0x00270300
                 mute=0 step=3 size=39 offset=0
    connections: 5
          |
          + [DISABLED] <- nid=12 [audio mixer] (selected)
          + [DISABLED] <- nid=13 [audio mixer]
          + [DISABLED] <- nid=14 [audio mixer]
          + [DISABLED] <- nid=15 [audio mixer]
          + [DISABLED] <- nid=38 [audio mixer]

            nid: 25
           Name: pin: Mic (Pink Jack)
     Widget cap: 0x0040018f
                 UNSOL STEREO
    Association: 4 (0x00000001)
            OSS: monitor (monitor)
        Pin cap: 0x0000373c
                 PDC HP OUT IN VREF[ 50 80 100 GROUND HIZ ]
     Pin config: 0x02a19c50
    Pin control: 0x00000025 IN VREFs
     Output amp: 0x80000000
                 mute=1 step=0 size=0 offset=0
      Input amp: 0x00270300
                 mute=0 step=3 size=39 offset=0
    connections: 5
          |
          + [DISABLED] <- nid=12 [audio mixer] (selected)
          + [DISABLED] <- nid=13 [audio mixer]
          + [DISABLED] <- nid=14 [audio mixer]
          + [DISABLED] <- nid=15 [audio mixer]
          + [DISABLED] <- nid=38 [audio mixer]

            nid: 26
           Name: pin: Line-in (Blue Jack)
     Widget cap: 0x0040018f
                 UNSOL STEREO
    Association: 3 (0x00008000)
            OSS: line (line)
        Pin cap: 0x0000373c
                 PDC HP OUT IN VREF[ 50 80 100 GROUND HIZ ]
     Pin config: 0x0181344f
    Pin control: 0x00000025 IN VREFs
     Output amp: 0x80000000
                 mute=1 step=0 size=0 offset=0
      Input amp: 0x00270300
                 mute=0 step=3 size=39 offset=0
    connections: 5
          |
          + [DISABLED] <- nid=12 [audio mixer] (selected)
          + [DISABLED] <- nid=13 [audio mixer]
          + [DISABLED] <- nid=14 [audio mixer]
          + [DISABLED] <- nid=15 [audio mixer]
          + [DISABLED] <- nid=38 [audio mixer]

            nid: 27
           Name: pin: Headphones (Green Jack)
     Widget cap: 0x0040018f
                 UNSOL STEREO
    Association: 1 (0x00000001)
        Pin cap: 0x0000373c
                 PDC HP OUT IN VREF[ 50 80 100 GROUND HIZ ]
     Pin config: 0x02214c20
    Pin control: 0x000000c0 HP OUT
     Output amp: 0x80000000
                 mute=1 step=0 size=0 offset=0
      Input amp: 0x00270300
                 mute=0 step=3 size=39 offset=0
    connections: 5
          |
          + [DISABLED] <- nid=12 [audio mixer]
          + [DISABLED] <- nid=13 [audio mixer]
          + [DISABLED] <- nid=14 [audio mixer]
          + [DISABLED] <- nid=15 [audio mixer]
          + <- nid=38 [audio mixer] (selected)

            nid: 28 [DISABLED]
           Name: pin: CD (None)
     Widget cap: 0x00400001
                 STEREO
        Pin cap: 0x00000020
                 IN
     Pin config: 0x593301f0
    Pin control: 0x00000000

            nid: 29
           Name: beep widget
     Widget cap: 0x00700000
    Association: -2 (0x00000000)
            OSS: speaker (speaker)

            nid: 30
           Name: pin: SPDIF-out (Orange Jack)
     Widget cap: 0x00400300
                 DIGITAL
    Association: 2 (0x00000001)
        Pin cap: 0x00000010
                 OUT
     Pin config: 0x014b6130
    Pin control: 0x00000040 OUT
    connections: 1
          |
          + <- nid=6 [audio output]

            nid: 31
           Name: pin: SPDIF-in (Yellow Jack)
     Widget cap: 0x00400200
                 DIGITAL
    Association: 5 (0x00000001)
            OSS: dig1 (dig1)
        Pin cap: 0x00000020
                 IN
     Pin config: 0x01cb7160
    Pin control: 0x00000020 IN

            nid: 32 [DISABLED]
           Name: vendor widget
     Widget cap: 0x00f00040
                 PROC

            nid: 33 [DISABLED]
           Name: volume widget
     Widget cap: 0x00600080
                 UNSOL

            nid: 34 [DISABLED]
           Name: audio mixer
     Widget cap: 0x0020010b
                 STEREO
      Input amp: 0x80000000
                 mute=1 step=0 size=0 offset=0
    connections: 11
          |
          + [DISABLED] <- nid=24 [pin: Mic (Pink Jack)]
          + [DISABLED] <- nid=25 [pin: Mic (Pink Jack)]
          + [DISABLED] <- nid=26 [pin: Line-in (Blue Jack)]
          + [DISABLED] <- nid=27 [pin: Headphones (Green Jack)]
          + [DISABLED] <- nid=28 [pin: CD (None)] [DISABLED]
          + [DISABLED] <- nid=29 [beep widget]
          + [DISABLED] <- nid=20 [pin: Line-out (Green Jack)]
          + [DISABLED] <- nid=21 [pin: Line-out (Black Jack)]
          + [DISABLED] <- nid=22 [pin: Line-out (Orange Jack)]
          + [DISABLED] <- nid=23 [pin: Line-out (Grey Jack)]
          + [DISABLED] <- nid=11 [audio mixer]

            nid: 35
           Name: audio mixer
     Widget cap: 0x0020010b
                 STEREO
    Association: 4 (0x00000001)
            OSS: speaker, monitor
      Input amp: 0x80000000
                 mute=1 step=0 size=0 offset=0
    connections: 11
          |
          + [DISABLED] <- nid=24 [pin: Mic (Pink Jack)]
          + <- nid=25 [pin: Mic (Pink Jack)]
          + [DISABLED] <- nid=26 [pin: Line-in (Blue Jack)]
          + [DISABLED] <- nid=27 [pin: Headphones (Green Jack)]
          + [DISABLED] <- nid=28 [pin: CD (None)] [DISABLED]
          + <- nid=29 [beep widget]
          + [DISABLED] <- nid=20 [pin: Line-out (Green Jack)]
          + [DISABLED] <- nid=21 [pin: Line-out (Black Jack)]
          + [DISABLED] <- nid=22 [pin: Line-out (Orange Jack)]
          + [DISABLED] <- nid=23 [pin: Line-out (Grey Jack)]
          + [DISABLED] <- nid=11 [audio mixer]

            nid: 36
           Name: audio mixer
     Widget cap: 0x0020010b
                 STEREO
    Association: 3 (0x00008001)
            OSS: speaker, line, mic, mix
      Input amp: 0x80000000
                 mute=1 step=0 size=0 offset=0
    connections: 11
          |
          + <- nid=24 [pin: Mic (Pink Jack)]
          + [DISABLED] <- nid=25 [pin: Mic (Pink Jack)]
          + <- nid=26 [pin: Line-in (Blue Jack)]
          + [DISABLED] <- nid=27 [pin: Headphones (Green Jack)]
          + [DISABLED] <- nid=28 [pin: CD (None)] [DISABLED]
          + <- nid=29 [beep widget]
          + [DISABLED] <- nid=20 [pin: Line-out (Green Jack)]
          + [DISABLED] <- nid=21 [pin: Line-out (Black Jack)]
          + [DISABLED] <- nid=22 [pin: Line-out (Orange Jack)]
          + [DISABLED] <- nid=23 [pin: Line-out (Grey Jack)]
          + <- nid=11 [audio mixer]

            nid: 37
           Name: audio output
     Widget cap: 0x00000011
                 STEREO
    Association: 1 (0x00000001)
            OSS: pcm (pcm)
     Stream cap: 0x00000001
                 PCM
        PCM cap: 0x000e0560
                 16 20 24 bits, 44 48 96 192 KHz

            nid: 38
           Name: audio mixer
     Widget cap: 0x0020010f
                 STEREO
    Association: 1 (0x00000001)
            OSS: pcm, mix
     Output amp: 0x00034040
                 mute=0 step=64 size=3 offset=64
      Input amp: 0x80000000
                 mute=1 step=0 size=0 offset=0
    connections: 2
          |
          + <- nid=37 [audio output]
          + <- nid=11 [audio mixer]

driver added
driver added
driver added
driver added
<HDA Realtek ALC885 PCM #0 Analog> at cad 3 nid 1 on hdac0
+--------------------------------------+
| DUMPING PCM Playback/Record Channels |
+--------------------------------------+

Playback:

     Stream cap: 0x00000001
                 PCM
        PCM cap: 0x000e0560
                 16 20 24 bits, 44 48 96 192 KHz
            DAC: 2 3 4 5

Record:

     Stream cap: 0x00000001
                 PCM
        PCM cap: 0x000e0560
                 16 20 24 bits, 44 48 96 192 KHz
            ADC: 7

+-------------------------------+
| DUMPING Playback/Record Paths |
+-------------------------------+

Playback:

    nid=20 [pin: Line-out (Green Jack)]
      |
      + <- nid=12 [audio mixer] [src: pcm, mix]
             |
             + <- nid=2 [audio output] [src: pcm]
             + <- nid=11 [audio mixer] [src: mix]

    nid=22 [pin: Line-out (Orange Jack)]
      |
      + <- nid=13 [audio mixer] [src: pcm, mix]
             |
             + <- nid=3 [audio output] [src: pcm]
             + <- nid=11 [audio mixer] [src: mix]

    nid=21 [pin: Line-out (Black Jack)]
      |
      + <- nid=14 [audio mixer] [src: pcm, mix]
             |
             + <- nid=4 [audio output] [src: pcm]
             + <- nid=11 [audio mixer] [src: mix]

    nid=23 [pin: Line-out (Grey Jack)]
      |
      + <- nid=15 [audio mixer] [src: pcm, mix]
             |
             + <- nid=5 [audio output] [src: pcm]
             + <- nid=11 [audio mixer] [src: mix]

Record:

    nid=7 [audio input]
      |
      + <- nid=36 [audio mixer] [src: speaker, line, mic, mix]
             |
             + <- nid=24 [pin: Mic (Pink Jack)] [src: mic]
             + <- nid=26 [pin: Line-in (Blue Jack)] [src: line]
             + <- nid=29 [beep widget] [src: speaker]
             + <- nid=11 [audio mixer] [src: mix]

Input Mix:

    nid=11 [audio mixer]
      |
      + <- nid=24 [pin: Mic (Pink Jack)] [src: mic]
      + <- nid=26 [pin: Line-in (Blue Jack)] [src: line]
      + <- nid=29 [beep widget] [src: speaker]

+-------------------------+
| DUMPING Volume Controls |
+-------------------------+

Master Volume (OSS: vol)
   |
   +- ctl 14 (nid  12 out):    -64/0dB (65 steps)
   +- ctl 15 (nid  12 in   0): mute
   +- ctl 16 (nid  12 in   1): mute
   +- ctl 17 (nid  13 out):    -64/0dB (65 steps)
   +- ctl 18 (nid  13 in   0): mute
   +- ctl 19 (nid  13 in   1): mute
   +- ctl 20 (nid  14 out):    -64/0dB (65 steps)
   +- ctl 21 (nid  14 in   0): mute
   +- ctl 22 (nid  14 in   1): mute
   +- ctl 23 (nid  15 out):    -64/0dB (65 steps)
   +- ctl 24 (nid  15 in   0): mute
   +- ctl 25 (nid  15 in   1): mute
   +- ctl 26 (nid  20 in ):    mute
   +- ctl 28 (nid  21 in ):    mute
   +- ctl 30 (nid  22 in ):    mute
   +- ctl 32 (nid  23 in ):    mute

PCM Volume (OSS: pcm)
   |
   +- ctl 15 (nid  12 in   0): mute
   +- ctl 18 (nid  13 in   0): mute
   +- ctl 21 (nid  14 in   0): mute
   +- ctl 24 (nid  15 in   0): mute

Microphone Volume (OSS: mic)
   |
   +- ctl 35 (nid  24 out):    0/30dB (4 steps)
   +- ctl 64 (nid  36 in   0): mute

Line-in Volume (OSS: line)
   |
   +- ctl 39 (nid  26 out):    0/30dB (4 steps)
   +- ctl 66 (nid  36 in   2): mute

Speaker/Beep Volume (OSS: speaker)
   |
   +- ctl  9 (nid  11 in   5): -34/12dB (32 steps) + mute
   +- ctl 69 (nid  36 in   5): mute

Recording Level (OSS: rec)
   |
   +- ctl  1 (nid   7 in   0): -16/30dB (47 steps) + mute
   +- ctl 64 (nid  36 in   0): mute
   +- ctl 66 (nid  36 in   2): mute
   +- ctl 69 (nid  36 in   5): mute
   +- ctl 74 (nid  36 in  10): mute

Input Mix Level (OSS: mix)
   |
   +- ctl  4 (nid  11 in   0): -34/12dB (32 steps) + mute
   +- ctl  6 (nid  11 in   2): -34/12dB (32 steps) + mute
   +- ctl  9 (nid  11 in   5): -34/12dB (32 steps) + mute
   +- ctl 16 (nid  12 in   1): mute
   +- ctl 19 (nid  13 in   1): mute
   +- ctl 22 (nid  14 in   1): mute
   +- ctl 25 (nid  15 in   1): mute
   +- ctl 74 (nid  36 in  10): mute

Input Monitoring Level (OSS: igain)
   |
   +- ctl 16 (nid  12 in   1): mute
   +- ctl 19 (nid  13 in   1): mute
   +- ctl 22 (nid  14 in   1): mute
   +- ctl 25 (nid  15 in   1): mute

Enabling Soft PCM volume
Mixer "vol":

Mixer "speaker":
Mixer "line":
Mixer "mic":
Mixer "mix":
Mixer "rec":
Mixer "igain":
Soft PCM mixer ENABLED
clone manager: deadline=750ms flags=0x8000001e
sndbuf_setmap 314f0000, 4000; 0xe798f000 -> 314f0000
sndbuf_setmap 4f1a0000, 4000; 0xe799f000 -> 4f1a0000
<HDA Realtek ALC885 PCM #1 Analog> at cad 3 nid 1 on hdac0
+--------------------------------------+
| DUMPING PCM Playback/Record Channels |
+--------------------------------------+

Playback:

     Stream cap: 0x00000001
                 PCM
        PCM cap: 0x000e0560
                 16 20 24 bits, 44 48 96 192 KHz
            DAC: 37

Record:

     Stream cap: 0x00000001
                 PCM
        PCM cap: 0x000e0560
                 16 20 24 bits, 44 48 96 192 KHz
            ADC: 8

+-------------------------------+
| DUMPING Playback/Record Paths |
+-------------------------------+

Playback:

    nid=27 [pin: Headphones (Green Jack)]
      |
      + <- nid=38 [audio mixer] [src: pcm, mix]
             |
             + <- nid=37 [audio output] [src: pcm]
             + <- nid=11 [audio mixer] [src: mix]

Record:

    nid=8 [audio input]
      |
      + <- nid=35 [audio mixer] [src: speaker, monitor]
             |
             + <- nid=25 [pin: Mic (Pink Jack)] [src: monitor]
             + <- nid=29 [beep widget] [src: speaker]

+-------------------------+
| DUMPING Volume Controls |
+-------------------------+

Master Volume (OSS: vol)
   |
   +- ctl 40 (nid  27 in ):    mute
   +- ctl 75 (nid  38 out):    -64/0dB (65 steps)
   +- ctl 76 (nid  38 in   0): mute
   +- ctl 77 (nid  38 in   1): mute

PCM Volume (OSS: pcm)
   |
   +- ctl 76 (nid  38 in   0): mute

Microphone2 Volume (OSS: monitor)
   |
   +- ctl 37 (nid  25 out):    0/30dB (4 steps)
   +- ctl 54 (nid  35 in   1): mute

Speaker/Beep Volume (OSS: speaker)
   |
   +- ctl 58 (nid  35 in   5): mute

Recording Level (OSS: rec)
   |
   +- ctl  2 (nid   8 in   0): -16/30dB (47 steps) + mute
   +- ctl 54 (nid  35 in   1): mute
   +- ctl 58 (nid  35 in   5): mute

Input Mix Level (OSS: mix)
   |
   +- ctl 77 (nid  38 in   1): mute

Input Monitoring Level (OSS: igain)
   |
   +- ctl 77 (nid  38 in   1): mute

Enabling Soft PCM volume
Mixer "vol":

Mixer "speaker":
Mixer "mix":
Mixer "rec":
Mixer "igain":
Mixer "monitor":
Soft PCM mixer ENABLED
clone manager: deadline=750ms flags=0x8000001e
sndbuf_setmap 11fd0000, 4000; 0xe79af000 -> 11fd0000
sndbuf_setmap 88830000, 4000; 0xe79bf000 -> 88830000
<HDA Realtek ALC885 PCM #2 Digital> at cad 3 nid 1 on hdac0
+--------------------------------------+
| DUMPING PCM Playback/Record Channels |
+--------------------------------------+

Playback:

     Stream cap: 0x00000005
                 AC3 PCM
        PCM cap: 0x001e05e0
                 16 20 24 32 bits, 44 48 88 96 192 KHz
            DAC: 6

Record:

     Stream cap: 0x00000005
                 AC3 PCM
        PCM cap: 0x001e0560
                 16 20 24 32 bits, 44 48 96 192 KHz
            ADC: 10

+-------------------------------+
| DUMPING Playback/Record Paths |
+-------------------------------+

Playback:

    nid=30 [pin: SPDIF-out (Orange Jack)]
      |
      + <- nid=6 [audio output] [src: pcm]

Record:

    nid=10 [audio input]
      |
      + <- nid=31 [pin: SPDIF-in (Yellow Jack)] [src: dig1]

+-------------------------+
| DUMPING Volume Controls |
+-------------------------+

Forcing Soft PCM volume
Forcing master volume with PCM
Mixer "vol" -> "none": child=0x00000010
parent="vol"
Soft PCM mixer ENABLED
clone manager: deadline=750ms flags=0x8000001e
sndbuf_setmap 6a170000, 4000; 0xe79cf000 -> 6a170000
sndbuf_setmap 460d0000, 4000; 0xe79df000 -> 460d0000

/dev/sndstat

You can also get information from /dev/sndstat. It seems that you first need to set the sysctl hw.snd.verbose to 2.

FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386)
Installed devices:
pcm0: <HDA Realtek ALC885 PCM #0 Analog> at cad 3 nid 1 on hdac0 kld snd_hda (1p:1v/1r:1v) default
snddev flags=0x2e6<AUTOVCHAN,SOFTPCMVOL,BUSY,MPSAFE,REGISTERED,VPC>
[pcm0:play:dsp0.p0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000004
interrupts 83, underruns 0, feed 83, ready 0 [b:4096/2048/2|bs:4096/2048/2]
channel flags=0x2100<BUSY,HAS_VCHAN>
{userland} -> feeder_mixer(0x00200010) -> {hardware}
pcm0:play:dsp0.p0[pcm0:virtual:dsp0.vp0]: spd 48000, fmt 0x00200010, flags 0x10000000, 0x00000021
interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:65536/2048/32]
channel flags=0x10000000<VIRTUAL>
{userland} -> feeder_root(0x00200010) -> feeder_volume(0x00200010) -> {hardware}
[pcm0:record:dsp0.r0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000005
interrupts 0, overruns 0, feed 0, hfree 4096, sfree 4096 [b:4096/2048/2|bs:4096/2048/2]
channel flags=0x2100<BUSY,HAS_VCHAN>
{hardware} -> feeder_root(0x00200010) -> feeder_mixer(0x00200010) -> {userland}
pcm0:record:dsp0.r0[pcm0:virtual:dsp0.vr0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000
interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/0]
channel flags=0x10000000<VIRTUAL>
{hardware} -> feeder_root(0x00000000) -> {userland}
pcm1: <HDA Realtek ALC885 PCM #1 Analog> at cad 3 nid 1 on hdac0 kld snd_hda (1p:1v/1r:1v)
snddev flags=0x2e6<AUTOVCHAN,SOFTPCMVOL,BUSY,MPSAFE,REGISTERED,VPC>
[pcm1:play:dsp1.p0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000004
interrupts 0, underruns 0, feed 0, ready 0 [b:4096/2048/2|bs:4096/2048/2]
channel flags=0x2100<BUSY,HAS_VCHAN>
{userland} -> feeder_mixer(0x00200010) -> {hardware}
pcm1:play:dsp1.p0[pcm1:virtual:dsp1.vp0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000
interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0]
channel flags=0x10000000<VIRTUAL>
{userland} -> feeder_root(0x00000000) -> {hardware}
[pcm1:record:dsp1.r0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000005
interrupts 0, overruns 0, feed 0, hfree 4096, sfree 4096 [b:4096/2048/2|bs:4096/2048/2]
channel flags=0x2100<BUSY,HAS_VCHAN>
{hardware} -> feeder_root(0x00200010) -> feeder_mixer(0x00200010) -> {userland}
pcm1:record:dsp1.r0[pcm1:virtual:dsp1.vr0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000
interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/0]
channel flags=0x10000000<VIRTUAL>
{hardware} -> feeder_root(0x00000000) -> {userland}
pcm2: <HDA Realtek ALC885 PCM #2 Digital> at cad 3 nid 1 on hdac0 kld snd_hda (1p:1v/1r:1v)
snddev flags=0x2e6<AUTOVCHAN,SOFTPCMVOL,BUSY,MPSAFE,REGISTERED,VPC>
[pcm2:play:dsp2.p0]: spd 48000, fmt 0x00200010, flags 0x00006100, 0x00000004
interrupts 0, underruns 0, feed 0, ready 0 [b:4096/2048/2|bs:4096/2048/2]
channel flags=0x6100<BUSY,HAS_VCHAN,VCHAN_PASSTHROUGH>
{userland} -> feeder_mixer(0x00200010) -> {hardware}
pcm2:play:dsp2.p0[pcm2:virtual:dsp2.vp0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000
interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0]
channel flags=0x10000000<VIRTUAL>
{userland} -> feeder_root(0x00000000) -> {hardware}
[pcm2:record:dsp2.r0]: spd 48000, fmt 0x00200010, flags 0x00006100, 0x00000005
interrupts 0, overruns 0, feed 0, hfree 4096, sfree 4096 [b:4096/2048/2|bs:4096/2048/2]
channel flags=0x6100<BUSY,HAS_VCHAN,VCHAN_PASSTHROUGH>
{hardware} -> feeder_root(0x00200010) -> feeder_mixer(0x00200010) -> {userland}
pcm2:record:dsp2.r0[pcm2:virtual:dsp2.vr0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000
interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/0]
channel flags=0x10000000<VIRTUAL>
{hardware} -> feeder_root(0x00000000) -> {userland}

Greg's home page Greg's diary Greg's photos Copyright

Valid XHTML 1.0!

$Id: sound-probes.php,v 1.1 2011/03/21 22:10:59 grog Exp $