snd_hda, sound in both speaker and headphones

Jaromir Dvoracek jarek at ataxo.com
Sat Sep 1 02:29:09 PDT 2007


Hello, 

I have problems with my snd_hda on Fujitsu Siemens Lifebook S7020D - as others - sound in both PC speaker and headphones at the same time. The speaker does not mute when I plug in the headphone jack.

$ uname -srp
FreeBSD 7.0-CURRENT i386

pcm0 at pci0:27:0: class=0x040300 card=0x132610cf chip=0x26688086 rev=0x04 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '8181104 Intel High Definition Audio Controllers'
    class      = multimedia

I used version from http://people.freebsd.org/~ariff/current.diff

Verbose dmesg:

pcm0: <Intel 82801F High Definition Audio Controller> mem 0xb0000000-0xb0003fff irq 16 at device 27.0 on pci0
pcm0: TCSEL: 0x07 -> 0x00
pcm0: DMA Coherency: Uncacheable / vendor=0x8086
pcm0: Reserved 0x4000 bytes for rid 0x10 type 3 at 0xb0000000
pcm0: [MPSAFE]
pcm0: [ITHREAD]
pcm0: hdac_dma_alloc: size=1024 -> roundsz=1024
pcm0: hdac_dma_alloc: size=2048 -> roundsz=2048
pcm0: HDA_DEBUG: HDA Config: on=0x00000000 off=0x00000000
pcm0: HDA_DEBUG: Starting CORB Engine...
pcm0: HDA_DEBUG: Starting RIRB Engine...
pcm0: HDA_DEBUG: Enabling controller interrupt...
pcm0: HDA_DEBUG: Scanning HDA codecs...
pcm0: HDA_DEBUG: Probing codec: 0
pcm0: HDA_DEBUG: 	startnode=1 endnode=2
pcm0: HDA_DEBUG: 	Found AFG nid=1 [startnode=1 endnode=2]
pcm0: HDA_DEBUG: Parsing AFG nid=1 cad=0
pcm0:        Vendor: 0x000010ec
pcm0:        Device: 0x00000260
pcm0:      Revision: 0x00000004
pcm0:      Stepping: 0x00000000
pcm0: PCI Subvendor: 0x132610cf
pcm0:         Nodes: start=2 endnode=28 total=26
pcm0:     CORB size: 256
pcm0:     RIRB size: 256
pcm0:       Streams: ISS=4 OSS=4 BSS=0
pcm0:          GPIO: 0x40000004
pcm0:                NumGPIO=4 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
pcm0: HDA_DEBUG: hdac_widget_connection_parse: nid=4 entries=7 found=7
pcm0: HDA_DEBUG: hdac_widget_connection_parse: nid=5 entries=8 found=8
pcm0: HDA_DEBUG: hdac_widget_connection_parse: nid=6 entries=1 found=1
pcm0: HDA_DEBUG: hdac_widget_connection_parse: nid=7 entries=8 found=8
pcm0: HDA_DEBUG: hdac_widget_connection_parse: nid=8 entries=2 found=2
pcm0: HDA_DEBUG: hdac_widget_connection_parse: nid=9 entries=2 found=2
pcm0: HDA_DEBUG: hdac_widget_connection_parse: nid=10 entries=2 found=2
pcm0: HDA_DEBUG: hdac_widget_connection_parse: nid=11 entries=2 found=2
pcm0: HDA_DEBUG: hdac_widget_connection_parse: nid=12 entries=2 found=2
pcm0: HDA_DEBUG: hdac_widget_connection_parse: nid=13 entries=2 found=2
pcm0: HDA_DEBUG: hdac_widget_connection_parse: nid=14 entries=2 found=2
pcm0: HDA_DEBUG: hdac_widget_connection_parse: nid=15 entries=1 found=1
pcm0: HDA_DEBUG: hdac_widget_connection_parse: nid=16 entries=1 found=1
pcm0: HDA_DEBUG: hdac_widget_connection_parse: nid=17 entries=1 found=1
pcm0: HDA_DEBUG: hdac_widget_connection_parse: nid=18 entries=1 found=1
pcm0: HDA_DEBUG: hdac_widget_connection_parse: nid=19 entries=1 found=1
pcm0: HDA_DEBUG: hdac_widget_connection_parse: nid=20 entries=1 found=1
pcm0: HDA_DEBUG: hdac_widget_connection_parse: nid=21 entries=1 found=1
pcm0: HDA_DEBUG: hdac_widget_connection_parse: nid=24 entries=1 found=1
pcm0: HDA_DEBUG: Parsing Ctls...
pcm0: HDA_DEBUG: Parsing vendor patch...
pcm0: HDA_DEBUG: Building AFG tree...
pcm0: HDA_DEBUG: HWiP: HDA Widget Parser - Revision 1
pcm0: HDA_DEBUG: HWiP: Found 2 DAC path using HDA_PARSE_MIXER strategy.
pcm0: HDA_DEBUG: AFG commit...
pcm0: HDA_DEBUG: Ctls commit...
pcm0: [ 1] Ctl nid=4 DISABLED
pcm0: [ 5] Ctl nid=7 childnid=20 Bind to NONE
pcm0: [ 6] Ctl nid=7 childnid=21 DISABLED
pcm0: [ 8] Ctl nid=7 childnid=23 Bind to NONE
pcm0: [ 9] Ctl nid=7 childnid=15 DISABLED
pcm0: [10] Ctl nid=7 childnid=16 Bind to NONE
pcm0: [11] Ctl nid=8 Bind to NONE
pcm0: [13] Ctl nid=8 childnid=7 Bind to NONE
pcm0: [14] Ctl nid=9 Bind to NONE
pcm0: [16] Ctl nid=9 childnid=7 Bind to NONE
pcm0: [17] Ctl nid=10 Bind to NONE
pcm0: [18] Ctl nid=10 childnid=2 Bind to NONE
pcm0: [19] Ctl nid=10 childnid=7 Bind to NONE
pcm0: [20] Ctl nid=15 DISABLED
pcm0: [21] Ctl nid=16 Bind to NONE
pcm0: [22] Ctl nid=17 DISABLED
pcm0: [23] Ctl nid=18 Bind to NONE
pcm0: [24] Ctl nid=19 Bind to NONE
pcm0: [25] Ctl nid=20 Bind to NONE
pcm0: [26] Ctl nid=21 DISABLED
pcm0: HDA_DEBUG: PCMDIR_PLAY setup...
pcm0: HDA_DEBUG: PCMDIR_REC setup...
pcm0: HDA_DEBUG: OSS mixer initialization...
pcm0: HDA_DEBUG: Enabling Soft PCM volume
pcm0: Mixer "vol": child=0x00000010
pcm0: Mixer "pcm": parent="vol"
pcm0: Mixer "line":
pcm0: Mixer "mic":
pcm0: Mixer "cd":
pcm0: Mixer "rec":
pcm0: Soft PCM mixer ENABLED
pcm0: HDA_DEBUG: Registering PCM channels...
pcm0: clone manager: deadline=750ms flags=0x8000001e
pcm0: hdac_dma_alloc: size=4096 -> roundsz=4096
pcm0: sndbuf_setmap 18404000, 4000; 0xd5fd3000 -> 18404000
pcm0: hdac_dma_alloc: size=4096 -> roundsz=4096
pcm0: sndbuf_setmap 6594000, 4000; 0xd5fd7000 -> 6594000
pcm0: <HDA Codec: Realtek ALC260>
pcm0: <HDA Codec ID: 0x10ec0260>
pcm0: <HDA Driver Revision: 20070710_0047>
pcm0: 
pcm0: HDA config/quirks: forcestereo ivref50 ivref80 ivref100 ivref
pcm0: 
pcm0: +-------------------+
pcm0: | DUMPING HDA NODES |
pcm0: +-------------------+
pcm0: 
pcm0: Default Parameter
pcm0: -----------------
pcm0:      Stream cap: 0x00000001
pcm0:          Format: PCM
pcm0:         PCM cap: 0x000e0560
pcm0:        PCM size: 16 20 24
pcm0:        PCM rate: 44 48 96 192
pcm0:          IN amp: 0x00000000
pcm0:         OUT amp: 0x00000000
pcm0: 
pcm0:             nid: 2 [ANALOG]
pcm0:            name: audio output
pcm0:      widget_cap: 0x00000011
pcm0:     Parse flags: 0x00000001
pcm0:       Ctl flags: 0x00000011
pcm0:      Stream cap: 0x00000001
pcm0:          Format: PCM
pcm0:         PCM cap: 0x000e0560
pcm0:        PCM size: 16 20 24
pcm0:        PCM rate: 44 48 96 192
pcm0:     connections: 0
pcm0: 
pcm0:             nid: 3 [DIGITAL] [DISABLED]
pcm0:            name: audio output
pcm0:      widget_cap: 0x00000211
pcm0:     Parse flags: 0x00000000
pcm0:       Ctl flags: 0x00000000
pcm0:      Stream cap: 0x00000001
pcm0:          Format: PCM
pcm0:         PCM cap: 0x001e0560
pcm0:        PCM size: 16 20 24 32
pcm0:        PCM rate: 44 48 96 192
pcm0:     connections: 0
pcm0: 
pcm0:             nid: 4 [ANALOG] [DISABLED]
pcm0:            name: audio input
pcm0:      widget_cap: 0x0010011b
pcm0:     Parse flags: 0x00000000
pcm0:       Ctl flags: 0x00000000
pcm0:      Stream cap: 0x00000001
pcm0:          Format: PCM
pcm0:         PCM cap: 0x00060160
pcm0:        PCM size: 16 20
pcm0:        PCM rate: 44 48 96
pcm0:       Input amp: 0x80032300
pcm0:                  mute=1 step=35 size=3 offset=0
pcm0:     connections: 7
pcm0:           |
pcm0:           + <- nid=18 [pin: Mic in (jack)]
pcm0:           |
pcm0:           + <- nid=19 [pin: line in (jack)]
pcm0:           |
pcm0:           + <- nid=20 [pin: headphones out (jack)]
pcm0:           |
pcm0:           + <- nid=21 [pin: speaker (none)] [DISABLED]
pcm0:           |
pcm0:           + <- nid=22 [pin: CD (fixed)]
pcm0:           |
pcm0:           + <- nid=15 [pin: speaker (none)] [DISABLED]
pcm0:           |
pcm0:           + <- nid=16 [pin: line out (jack / fixed)]
pcm0: 
pcm0:             nid: 5 [ANALOG]
pcm0:            name: audio input
pcm0:      widget_cap: 0x0010011b
pcm0:     Parse flags: 0x00000006
pcm0:       Ctl flags: 0x00000800
pcm0:      Stream cap: 0x00000001
pcm0:          Format: PCM
pcm0:         PCM cap: 0x00060160
pcm0:        PCM size: 16 20
pcm0:        PCM rate: 44 48 96
pcm0:       Input amp: 0x80032300
pcm0:                  mute=1 step=35 size=3 offset=0
pcm0:     connections: 8
pcm0:           |
pcm0:           + <- nid=18 [pin: Mic in (jack)] (selected)
pcm0:           |
pcm0:           + <- nid=19 [pin: line in (jack)]
pcm0:           |
pcm0:           + <- nid=20 [pin: headphones out (jack)]
pcm0:           |
pcm0:           + <- nid=21 [pin: speaker (none)] [DISABLED]
pcm0:           |
pcm0:           + <- nid=22 [pin: CD (fixed)]
pcm0:           |
pcm0:           + <- nid=7 [audio mixer]
pcm0:           |
pcm0:           + <- nid=15 [pin: speaker (none)] [DISABLED]
pcm0:           |
pcm0:           + <- nid=16 [pin: line out (jack / fixed)]
pcm0: 
pcm0:             nid: 6 [DIGITAL] [DISABLED]
pcm0:            name: audio input
pcm0:      widget_cap: 0x00100391
pcm0:     Parse flags: 0x00000000
pcm0:       Ctl flags: 0x00000000
pcm0:      Stream cap: 0x00000001
pcm0:          Format: PCM
pcm0:         PCM cap: 0x001e0160
pcm0:        PCM size: 16 20 24 32
pcm0:        PCM rate: 44 48 96
pcm0:     connections: 1
pcm0:           |
pcm0:           + <- nid=25 [pin: speaker (none)] [DISABLED]
pcm0: 
pcm0:             nid: 7 [ANALOG]
pcm0:            name: audio mixer
pcm0:      widget_cap: 0x0020010b
pcm0:     Parse flags: 0x00000002
pcm0:       Ctl flags: 0x000001c1
pcm0:       Input amp: 0x80034123
pcm0:                  mute=1 step=65 size=3 offset=35
pcm0:     connections: 8
pcm0:           |
pcm0:           + <- nid=18 [pin: Mic in (jack)]
pcm0:           |
pcm0:           + <- nid=19 [pin: line in (jack)]
pcm0:           |
pcm0:           + <- nid=20 [pin: headphones out (jack)]
pcm0:           |
pcm0:           + <- nid=21 [pin: speaker (none)] [DISABLED]
pcm0:           |
pcm0:           + <- nid=22 [pin: CD (fixed)]
pcm0:           |
pcm0:           + <- nid=23 [pin: AUX (fixed)]
pcm0:           |
pcm0:           + <- nid=15 [pin: speaker (none)] [DISABLED]
pcm0:           |
pcm0:           + <- nid=16 [pin: line out (jack / fixed)]
pcm0: 
pcm0:             nid: 8 [ANALOG]
pcm0:            name: audio mixer
pcm0:      widget_cap: 0x0020010f
pcm0:     Parse flags: 0x00000001
pcm0:       Ctl flags: 0x000001d1
pcm0:      Output amp: 0x00034040
pcm0:                  mute=0 step=64 size=3 offset=64
pcm0:       Input amp: 0x80000000
pcm0:                  mute=1 step=0 size=0 offset=0
pcm0:     connections: 2
pcm0:           |
pcm0:           + <- nid=2 [audio output]
pcm0:           |
pcm0:           + <- nid=7 [audio mixer]
pcm0: 
pcm0:             nid: 9 [ANALOG]
pcm0:            name: audio mixer
pcm0:      widget_cap: 0x0020010f
pcm0:     Parse flags: 0x00000001
pcm0:       Ctl flags: 0x00000011
pcm0:      Output amp: 0x00034040
pcm0:                  mute=0 step=64 size=3 offset=64
pcm0:       Input amp: 0x80000000
pcm0:                  mute=1 step=0 size=0 offset=0
pcm0:     connections: 2
pcm0:           |
pcm0:           + <- nid=2 [audio output]
pcm0:           |
pcm0:           + <- nid=7 [audio mixer]
pcm0: 
pcm0:             nid: 10 [ANALOG]
pcm0:            name: audio mixer
pcm0:      widget_cap: 0x0020010e
pcm0:     Parse flags: 0x00000000
pcm0:       Ctl flags: 0x00000000
pcm0:      Output amp: 0x00034123
pcm0:                  mute=0 step=65 size=3 offset=35
pcm0:       Input amp: 0x80000000
pcm0:                  mute=1 step=0 size=0 offset=0
pcm0:     connections: 2
pcm0:           |
pcm0:           + <- nid=2 [audio output]
pcm0:           |
pcm0:           + <- nid=7 [audio mixer]
pcm0: 
pcm0:             nid: 11 [ANALOG]
pcm0:            name: audio selector
pcm0:      widget_cap: 0x00300101
pcm0:     Parse flags: 0x00000000
pcm0:       Ctl flags: 0x00000000
pcm0:     connections: 2
pcm0:           |
pcm0:           + <- nid=8 [audio mixer] (selected)
pcm0:           |
pcm0:           + <- nid=9 [audio mixer]
pcm0: 
pcm0:             nid: 12 [ANALOG]
pcm0:            name: audio selector
pcm0:      widget_cap: 0x00300101
pcm0:     Parse flags: 0x00000000
pcm0:       Ctl flags: 0x00000000
pcm0:     connections: 2
pcm0:           |
pcm0:           + <- nid=8 [audio mixer] (selected)
pcm0:           |
pcm0:           + <- nid=9 [audio mixer]
pcm0: 
pcm0:             nid: 13 [ANALOG]
pcm0:            name: audio selector
pcm0:      widget_cap: 0x00300101
pcm0:     Parse flags: 0x00000001
pcm0:       Ctl flags: 0x00000000
pcm0:     connections: 2
pcm0:           |
pcm0:           + <- nid=8 [audio mixer] (selected)
pcm0:           |
pcm0:           + <- nid=9 [audio mixer]
pcm0: 
pcm0:             nid: 14 [ANALOG]
pcm0:            name: audio selector
pcm0:      widget_cap: 0x00300101
pcm0:     Parse flags: 0x00000000
pcm0:       Ctl flags: 0x00000000
pcm0:     connections: 2
pcm0:           |
pcm0:           + <- nid=8 [audio mixer] (selected)
pcm0:           |
pcm0:           + <- nid=9 [audio mixer]
pcm0: 
pcm0:             nid: 15 [ANALOG] [DISABLED]
pcm0:            name: pin: speaker (none)
pcm0:      widget_cap: 0x0040018d
pcm0:     Parse flags: 0x00000000
pcm0:       Ctl flags: 0x00000000
pcm0:         Pin cap: 0x0001003f
pcm0:                  ISC TRQD HP OUT IN EAPD : UNSOL
pcm0:      Pin config: 0x411111f0
pcm0:     Pin control: 0x000000e0 HP IN OUT
pcm0:            EAPD: 0x00000002
pcm0:      Output amp: 0x80000000
pcm0:                  mute=1 step=0 size=0 offset=0
pcm0:     connections: 1
pcm0:           |
pcm0:           + <- nid=8 [audio mixer]
pcm0: 
pcm0:             nid: 16 [ANALOG]
pcm0:            name: pin: line out (jack / fixed)
pcm0:      widget_cap: 0x0040018d
pcm0:     Parse flags: 0x00000001
pcm0:       Ctl flags: 0x00000000
pcm0:         Pin cap: 0x0001003f
pcm0:                  ISC TRQD HP OUT IN EAPD : UNSOL
pcm0:      Pin config: 0xe4011110
pcm0:     Pin control: 0x00000040 OUT
pcm0:            EAPD: 0x00000002
pcm0:      Output amp: 0x80000000
pcm0:                  mute=1 step=0 size=0 offset=0
pcm0:     connections: 1
pcm0:           |
pcm0:           + <- nid=9 [audio mixer]
pcm0: 
pcm0:             nid: 17 [ANALOG] [DISABLED]
pcm0:            name: pin: speaker (none)
pcm0:      widget_cap: 0x0040010c
pcm0:     Parse flags: 0x00000000
pcm0:       Ctl flags: 0x00000000
pcm0:         Pin cap: 0x00000010
pcm0:                  OUT
pcm0:      Pin config: 0x411111f0
pcm0:     Pin control: 0x00000040 OUT
pcm0:      Output amp: 0x80000000
pcm0:                  mute=1 step=0 size=0 offset=0
pcm0:     connections: 1
pcm0:           |
pcm0:           + <- nid=10 [audio mixer]
pcm0: 
pcm0:             nid: 18 [ANALOG]
pcm0:            name: pin: Mic in (jack)
pcm0:      widget_cap: 0x0040018d
pcm0:     Parse flags: 0x00000002
pcm0:       Ctl flags: 0x00000081
pcm0:         Pin cap: 0x0000133f
pcm0:                  ISC TRQD HP OUT IN VREF[ 50 80 HIZ ] : UNSOL
pcm0:      Pin config: 0x03a11820
pcm0:     Pin control: 0x00000024 IN
pcm0:      Output amp: 0x80000000
pcm0:                  mute=1 step=0 size=0 offset=0
pcm0:     connections: 1
pcm0:           |
pcm0:           + <- nid=11 [audio selector]
pcm0: 
pcm0:             nid: 19 [ANALOG]
pcm0:            name: pin: line in (jack)
pcm0:      widget_cap: 0x0040018d
pcm0:     Parse flags: 0x00000002
pcm0:       Ctl flags: 0x00000041
pcm0:         Pin cap: 0x0000133f
pcm0:                  ISC TRQD HP OUT IN VREF[ 50 80 HIZ ] : UNSOL
pcm0:      Pin config: 0x24811121
pcm0:     Pin control: 0x00000024 IN
pcm0:      Output amp: 0x80000000
pcm0:                  mute=1 step=0 size=0 offset=0
pcm0:     connections: 1
pcm0:           |
pcm0:           + <- nid=12 [audio selector]
pcm0: 
pcm0:             nid: 20 [ANALOG]
pcm0:            name: pin: headphones out (jack)
pcm0:      widget_cap: 0x0040018d
pcm0:     Parse flags: 0x00000001
pcm0:       Ctl flags: 0x00000000
pcm0:         Pin cap: 0x0000133f
pcm0:                  ISC TRQD HP OUT IN VREF[ 50 80 HIZ ] : UNSOL
pcm0:      Pin config: 0x0321101f
pcm0:     Pin control: 0x000000c0 HP OUT
pcm0:      Output amp: 0x80000000
pcm0:                  mute=1 step=0 size=0 offset=0
pcm0:     connections: 1
pcm0:           |
pcm0:           + <- nid=13 [audio selector]
pcm0: 
pcm0:             nid: 21 [ANALOG] [DISABLED]
pcm0:            name: pin: speaker (none)
pcm0:      widget_cap: 0x0040018d
pcm0:     Parse flags: 0x00000000
pcm0:       Ctl flags: 0x00000000
pcm0:         Pin cap: 0x0000133f
pcm0:                  ISC TRQD HP OUT IN VREF[ 50 80 HIZ ] : UNSOL
pcm0:      Pin config: 0x411111f0
pcm0:     Pin control: 0x000000e0 HP IN OUT
pcm0:      Output amp: 0x80000000
pcm0:                  mute=1 step=0 size=0 offset=0
pcm0:     connections: 1
pcm0:           |
pcm0:           + <- nid=14 [audio selector]
pcm0: 
pcm0:             nid: 22 [ANALOG]
pcm0:            name: pin: CD (fixed)
pcm0:      widget_cap: 0x00400001
pcm0:     Parse flags: 0x00000002
pcm0:       Ctl flags: 0x00000101
pcm0:         Pin cap: 0x00000020
pcm0:                  IN
pcm0:      Pin config: 0x88331122
pcm0:     Pin control: 0x00000020 IN
pcm0:     connections: 0
pcm0: 
pcm0:             nid: 23 [ANALOG]
pcm0:            name: pin: AUX (fixed)
pcm0:      widget_cap: 0x00400000
pcm0:     Parse flags: 0x00000000
pcm0:       Ctl flags: 0x00000000
pcm0:         Pin cap: 0x00000020
pcm0:                  IN
pcm0:      Pin config: 0xb7931123
pcm0:     Pin control: 0x00000000
pcm0:     connections: 0
pcm0: 
pcm0:             nid: 24 [DIGITAL] [DISABLED]
pcm0:            name: pin: speaker (none)
pcm0:      widget_cap: 0x00400380
pcm0:     Parse flags: 0x00000000
pcm0:       Ctl flags: 0x00000000
pcm0:         Pin cap: 0x00000014
pcm0:                  OUT : UNSOL
pcm0:      Pin config: 0x411111f0
pcm0:     Pin control: 0x00000040 OUT
pcm0:     connections: 1
pcm0:           |
pcm0:           + <- nid=3 [audio output] [DISABLED]
pcm0: 
pcm0:             nid: 25 [DIGITAL] [DISABLED]
pcm0:            name: pin: speaker (none)
pcm0:      widget_cap: 0x00400280
pcm0:     Parse flags: 0x00000000
pcm0:       Ctl flags: 0x00000000
pcm0:         Pin cap: 0x00000024
pcm0:                  IN : UNSOL
pcm0:      Pin config: 0x411111f0
pcm0:     Pin control: 0x00000020 IN
pcm0:     connections: 0
pcm0: 
pcm0:             nid: 26 [ANALOG]
pcm0:            name: vendor widget
pcm0:      widget_cap: 0x00f00040
pcm0:     Parse flags: 0x00000000
pcm0:       Ctl flags: 0x00000000
pcm0:     connections: 0
pcm0: 
pcm0:             nid: 27 [ANALOG]
pcm0:            name: volume widget
pcm0:      widget_cap: 0x00600080
pcm0:     Parse flags: 0x00000000
pcm0:       Ctl flags: 0x00000000
pcm0:     connections: 0
pcm0: 
pcm0: +------------------------+
pcm0: | DUMPING HDA AMPLIFIERS |
pcm0: +------------------------+
pcm0: 
pcm0:   1: nid=4 dir=0x2 index=0 ossmask=0x00000000 ossdev=0 [DISABLED]
pcm0:   2: nid=5 dir=0x2 index=0 ossmask=0x00000800 ossdev=0
pcm0:   3: nid=7 cnid=18 dir=0x2 index=0 ossmask=0x00000081 ossdev=7
pcm0:   4: nid=7 cnid=19 dir=0x2 index=1 ossmask=0x00000041 ossdev=6
pcm0:   5: nid=7 cnid=20 dir=0x2 index=2 ossmask=0x00000000 ossdev=0
pcm0:   6: nid=7 cnid=21 dir=0x2 index=3 ossmask=0x00000000 ossdev=0 [DISABLED]
pcm0:   7: nid=7 cnid=22 dir=0x2 index=4 ossmask=0x00000101 ossdev=8
pcm0:   8: nid=7 cnid=23 dir=0x2 index=5 ossmask=0x00000000 ossdev=0
pcm0:   9: nid=7 cnid=15 dir=0x2 index=6 ossmask=0x00000000 ossdev=0 [DISABLED]
pcm0:  10: nid=7 cnid=16 dir=0x2 index=7 ossmask=0x00000000 ossdev=0
pcm0:  11: nid=8 dir=0x1 index=0 ossmask=0x00000000 ossdev=0
pcm0:  12: nid=8 cnid=2 dir=0x2 index=0 ossmask=0x00000011 ossdev=4
pcm0:  13: nid=8 cnid=7 dir=0x2 index=1 ossmask=0x00000000 ossdev=0
pcm0:  14: nid=9 dir=0x1 index=0 ossmask=0x00000000 ossdev=0
pcm0:  15: nid=9 cnid=2 dir=0x2 index=0 ossmask=0x00000011 ossdev=4
pcm0:  16: nid=9 cnid=7 dir=0x2 index=1 ossmask=0x00000000 ossdev=0
pcm0:  17: nid=10 dir=0x1 index=0 ossmask=0x00000000 ossdev=0
pcm0:  18: nid=10 cnid=2 dir=0x2 index=0 ossmask=0x00000000 ossdev=0
pcm0:  19: nid=10 cnid=7 dir=0x2 index=1 ossmask=0x00000000 ossdev=0
pcm0:  20: nid=15 dir=0x1 index=0 ossmask=0x00000000 ossdev=0 [DISABLED]
pcm0:  21: nid=16 dir=0x1 index=0 ossmask=0x00000000 ossdev=0
pcm0:  22: nid=17 dir=0x1 index=0 ossmask=0x00000000 ossdev=0 [DISABLED]
pcm0:  23: nid=18 dir=0x1 index=0 ossmask=0x00000000 ossdev=0
pcm0:  24: nid=19 dir=0x1 index=0 ossmask=0x00000000 ossdev=0
pcm0:  25: nid=20 dir=0x1 index=0 ossmask=0x00000000 ossdev=0
pcm0:  26: nid=21 dir=0x1 index=0 ossmask=0x00000000 ossdev=0 [DISABLED]
pcm0: 
pcm0: +-----------------------------------+
pcm0: | DUMPING HDA AUDIO/VOLUME CONTROLS |
pcm0: +-----------------------------------+
pcm0: 
pcm0: Master Volume (OSS: vol)
pcm0:    |
pcm0:    +-  nid:  7 index:  0 (nid: 18) mute: 1 step:  65 size:   3 off:  35 dir=0x2 ossmask=0x00000081
pcm0:    |
pcm0:    +-  nid:  7 index:  1 (nid: 19) mute: 1 step:  65 size:   3 off:  35 dir=0x2 ossmask=0x00000041
pcm0:    |
pcm0:    +-  nid:  7 index:  4 (nid: 22) mute: 1 step:  65 size:   3 off:  35 dir=0x2 ossmask=0x00000101
pcm0:    |
pcm0:    +-  nid:  8 index:  0 (nid:  2) mute: 1 step:   0 size:   0 off:   0 dir=0x2 ossmask=0x00000011
pcm0:    |
pcm0:    +-  nid:  9 index:  0 (nid:  2) mute: 1 step:   0 size:   0 off:   0 dir=0x2 ossmask=0x00000011
pcm0: 
pcm0: PCM Volume (OSS: pcm)
pcm0:    |
pcm0:    +-  nid:  8 index:  0 (nid:  2) mute: 1 step:   0 size:   0 off:   0 dir=0x2 ossmask=0x00000011
pcm0:    |
pcm0:    +-  nid:  9 index:  0 (nid:  2) mute: 1 step:   0 size:   0 off:   0 dir=0x2 ossmask=0x00000011
pcm0: 
pcm0: CD Volume (OSS: cd)
pcm0:    |
pcm0:    +-  nid:  7 index:  4 (nid: 22) mute: 1 step:  65 size:   3 off:  35 dir=0x2 ossmask=0x00000101
pcm0: 
pcm0: Microphone Volume (OSS: mic)
pcm0:    |
pcm0:    +-  nid:  7 index:  0 (nid: 18) mute: 1 step:  65 size:   3 off:  35 dir=0x2 ossmask=0x00000081
pcm0: 
pcm0: Line-in Volume (OSS: line)
pcm0:    |
pcm0:    +-  nid:  7 index:  1 (nid: 19) mute: 1 step:  65 size:   3 off:  35 dir=0x2 ossmask=0x00000041
pcm0: 
pcm0: Recording Level (OSS: rec)
pcm0:    |
pcm0:    +-  nid:  5 index:  0           mute: 1 step:  35 size:   3 off:   0 dir=0x2 ossmask=0x00000800
pcm0: 
pcm0: Playback path:
pcm0: 
pcm0:     nid=16 [pin: line out (jack / fixed)]
pcm0:       ^
pcm0:       |
pcm0:       +-----<------+
pcm0:                    ^
pcm0:                    |
pcm0:                  nid=9 [audio mixer]
pcm0:                    ^
pcm0:                    |
pcm0:                  nid=2 [audio output]
pcm0: 
pcm0:     nid=20 [pin: headphones out (jack)]
pcm0:       ^
pcm0:       |
pcm0:       +-----<------+
pcm0:                    ^
pcm0:                    |
pcm0:                  nid=13 [audio selector]
pcm0:                    ^
pcm0:                    |
pcm0:                  nid=8 [audio mixer]
pcm0:                    ^
pcm0:                    |
pcm0:                  nid=2 [audio output]
pcm0: 
pcm0: Recording sources:
pcm0: 
pcm0:     nid=5 [audio input]
pcm0:       |
pcm0:       + <- nid=18 [pin: Mic in (jack)] [recsrc: vol, mic]
pcm0:       |
pcm0:       + <- nid=19 [pin: line in (jack)] [recsrc: vol, line]
pcm0:       |
pcm0:       + <- nid=20 [pin: headphones out (jack)]
pcm0:       |
pcm0:       + <- nid=22 [pin: CD (fixed)] [recsrc: vol, cd]
pcm0:       |
pcm0:       + <- nid=7 [audio mixer] [recsrc: vol, line, mic, cd]
pcm0:       |
pcm0:       + <- nid=16 [pin: line out (jack / fixed)]
pcm0: 
pcm0: +--------------------------------------+
pcm0: | DUMPING PCM Playback/Record Channels |
pcm0: +--------------------------------------+
pcm0: 
pcm0:    PCM Playback: 1
pcm0:      Stream cap: 0x00000001
pcm0:          Format: PCM
pcm0:         PCM cap: 0x000e0560
pcm0:        PCM size: 16 20 24
pcm0:        PCM rate: 44 48 96 192
pcm0:             DAC: 2
pcm0: 
pcm0:      PCM Record: 1
pcm0:      Stream cap: 0x00000001
pcm0:          Format: PCM
pcm0:         PCM cap: 0x00060160
pcm0:        PCM size: 16 20
pcm0:        PCM rate: 44 48 96
pcm0:             ADC: 5

there is no speaker in mixer:

$ mixer
Mixer vol      is currently set to  75:75
Mixer pcm      is currently set to  75:75
Mixer line     is currently set to  75:75
Mixer mic      is currently set to   0:0
Mixer cd       is currently set to  75:75
Mixer rec      is currently set to   0:0
Recording source: mic

$ sysctl hw.snd.verbose=3 ; cat /dev/sndstat
hw.snd.verbose: 1 -> 3
FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386)
Installed devices:
pcm0: <Intel 82801F High Definition Audio Controller> at memory 0xb0000000 irq 16 kld snd_hda [20070710_0047] [MPSAFE] (1p:1v/1r:1v channels duplex default)
        [pcm0:play:dsp0.p0]: spd 48000, fmt 0x10000010, flags 0x00101000, 0x00000020
        interrupts 0, underruns 0, feed 0, ready 0 [b:4096/2048/2|bs:4096/2048/2]
        {userland} -> feeder_vchan(0x10000010) -> feeder_volume(0x10000010) -> {hardware}
        pcm0:play:dsp0.p0[pcm0:virtual:dsp0.vp0]: spd 0, fmt 0x00000000/0x00000008, flags 0x10000000, 0x00000000
        interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0]
        {userland} -> feeder_root(0x00000000) -> {hardware}
        [pcm0:record:dsp0.r0]: spd 48000, fmt 0x10000010, flags 0x00101000, 0x00000000
        interrupts 0, overruns 0, feed 0, hfree 4096, sfree 4096 [b:4096/2048/2|bs:4096/2048/2]
        {hardware} -> feeder_root(0x10000010) -> feeder_vchan(0x10000010) -> {userland}
        pcm0:record:dsp0.r0[pcm0:virtual:dsp0.vr0]: spd 0, fmt 0x00000000/0x00000008, flags 0x10000000, 0x00000000
        interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/0]
        {hardware} -> feeder_root(0x00000000) -> {userland}

File Versions:
$FreeBSD: src/sys/dev/sound/pci/hda/hdac.c,v 1.44 2007/07/09 20:42:11 ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/vchan.c,v 1.36 2007/06/16 03:37:28 ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/sound.c,v 1.119 2007/06/17 19:02:05 ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/sndstat.c,v 1.28 2007/06/16 03:37:28 ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/mixer.c,v 1.61 2007/06/16 03:37:28 ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/feeder_volume.c,v 1.6 2007/06/16 20:36:39 ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/feeder_rate.c,v 1.23 2007/06/16 03:37:28 ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/feeder_fmt.c,v 1.23 2007/06/02 13:07:44 joel Exp $
$FreeBSD: src/sys/dev/sound/pcm/feeder.c,v 1.44 2007/06/17 15:53:11 ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/fake.c,v 1.18 2007/03/15 18:19:01 ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/dsp.c,v 1.107 2007/07/04 12:33:11 ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/channel.c,v 1.121 2007/06/16 03:37:28 ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/buffer.c,v 1.37 2007/06/16 03:37:27 ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/ac97_patch.c,v 1.10 2007/07/01 17:28:58 ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/ac97.c,v 1.73 2007/06/17 06:10:43 ariff Exp $
$FreeBSD: src/sys/dev/sound/isa/sndbuf_dma.c,v 1.3 2005/01/06 01:43:17 imp Exp $

$ sysctl hw.snd dev.pcm
hw.snd.latency_profile: 1
hw.snd.latency: 5
hw.snd.report_soft_formats: 1
hw.snd.compat_linux_mmap: 0
hw.snd.feeder_buffersize: 16384
hw.snd.feeder_rate_round: 25
hw.snd.feeder_rate_max: 2016000
hw.snd.feeder_rate_min: 1
hw.snd.verbose: 3
hw.snd.maxautovchans: 16
hw.snd.default_unit: 0
hw.snd.version: 2007061600/i386
hw.snd.default_auto: 0
dev.pcm.0.%desc: Intel 82801F High Definition Audio Controller
dev.pcm.0.%driver: pcm
dev.pcm.0.%location: slot=27 function=0 handle=\_SB_.PCI0.AZAL
dev.pcm.0.%pnpinfo: vendor=0x8086 device=0x2668 subvendor=0x10cf subdevice=0x1326 class=0x040300
dev.pcm.0.%parent: pci0
dev.pcm.0.play.vchans: 1
dev.pcm.0.play.vchanrate: 48000
dev.pcm.0.play.vchanformat: s16le
dev.pcm.0.rec.vchans: 1
dev.pcm.0.rec.vchanrate: 48000
dev.pcm.0.rec.vchanformat: s16le
dev.pcm.0.buffersize: 16384
dev.pcm.0.polling: 0
dev.pcm.0.polling_interval: 250

Thank you, best regards, 
J. Dvoracek


More information about the freebsd-multimedia mailing list