From nobody@FreeBSD.org  Wed May 20 23:39:13 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 56B3A1065670
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 20 May 2009 23:39:13 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 4531E8FC22
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 20 May 2009 23:39:13 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n4KNdDUT077422
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 20 May 2009 23:39:13 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n4KNdDEI077410;
	Wed, 20 May 2009 23:39:13 GMT
	(envelope-from nobody)
Message-Id: <200905202339.n4KNdDEI077410@www.freebsd.org>
Date: Wed, 20 May 2009 23:39:13 GMT
From: Lars Hecking <lhecking@users.sourceforge.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [snd_hda] Sigmatel STAC9205X no sound under RELENG_7_2_0_RELEASE
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         134767
>Category:       kern
>Synopsis:       [sound] [snd_hda] [regression] Sigmatel STAC9205X no sound under RELENG_7_2_0_RELEASE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-multimedia
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 20 23:40:00 UTC 2009
>Closed-Date:    
>Last-Modified:  Sun Jan 31 00:40:07 UTC 2010
>Originator:     Lars Hecking
>Release:        RELENG_7_2_0_RELEASE
>Organization:
>Environment:
FreeBSD localhost.my.domain 7.2-RELEASE FreeBSD 7.2-RELEASE #16: Wed May 20 02:13:16 IST 2009     root@localhost.my.domain:/usr/obj/usr/src/sys/KERNCONF  i386

>Description:
Sound on my machine stopped working when I upgraded from 7.1 to 7.2. I have
attached the relevant parts of a verbose boot, and have posted some details here:
http://lists.freebsd.org/pipermail/freebsd-multimedia/2009-May/010078.html .
Playing with hw.snd.default_unit and hw.snd.verbose=4 did not help. Due to the
nature of my workaround, I believe this is a genuine bug rather than a
configuration issue.

>How-To-Repeat:
Boot into Gnome desktop and try anything that would produce sound (Gnome sound
effects, play CD, etc.).

>Fix:
The workaround I am using is to replace the files under /usr/src/sys/dev/sound/pci/hda with their equivalents from RELENG_7_1_0_RELEASE, and recompile the
kernel:

hda_reg.h       1.2.8.1
hdac.c          1.44.2.7.2.1
hdac.h          1.1.8.1
hdac_private.h  1.8.6.1
hdac_reg.h      1.1.8.1


Patch attached with submission follows:

  timer: 0x000100ef therm: 0x00010000 err: 0x00010000 pcm: 0x00010000
hdac0: <Intel 82801H High Definition Audio Controller> mem 0xfebfc000-0xfebfffff irq 21 at device 27.0 on pci0
hdac0: HDA Driver Revision: 20090329_0131
hdac0: Reserved 0x4000 bytes for rid 0x10 type 3 at 0xfebfc000
hdac0: [MPSAFE]
hdac0: [ITHREAD]
hdac0: Probing codec #0...
hdac0: HDA Codec #0: Sigmatel STAC9205X
hdac0:  HDA Codec ID: 0x838476a0
hdac0:        Vendor: 0x8384
hdac0:        Device: 0x76a0
hdac0:      Revision: 0x02
hdac0:      Stepping: 0x04
hdac0: PCI Subvendor: 0x02281028
hdac0: 	Found audio FG nid=1 startnode=10 endnode=38 total=28
hdac0: Probing codec #1...
hdac0: HDA Codec #1: Conexant (Unknown)
hdac0:  HDA Codec ID: 0x14f12c06
hdac0:        Vendor: 0x14f1
hdac0:        Device: 0x2c06
hdac0:      Revision: 0x00
hdac0:      Stepping: 0x00
hdac0: PCI Subvendor: 0x02281028
hdac0: 	Found modem FG nid=2 startnode=112 endnode=116 total=4
hdac0: 
hdac0: Processing audio FG cad=0 nid=1...
hdac0: GPIO: 0xc0000005 NumGPIO=5 NumGPO=0 NumGPI=0 GPIWake=1 GPIUnsol=1
hdac0:  nid 10 0x0321101f as  1 seq 15    Headphones  Jack jack  1 loc  3 color   Black misc 0
hdac0:  nid 11 0x03811020 as  2 seq  0       Line-in  Jack jack  1 loc  3 color   Black misc 0
hdac0:  nid 12 0x40f000f0 as 15 seq  0         Other  None jack  0 loc  0 color Unknown misc 0
hdac0:  nid 13 0x90170110 as  1 seq  0       Speaker Fixed jack  7 loc 16 color Unknown misc 1
hdac0:  nid 14 0x40f000f1 as 15 seq  1         Other  None jack  0 loc  0 color Unknown misc 0
hdac0:  nid 15 0x40f000f2 as 15 seq  2         Other  None jack  0 loc  0 color Unknown misc 0
hdac0:  nid 20 0x40f000f3 as 15 seq  3         Other  None jack  0 loc  0 color Unknown misc 0
hdac0:  nid 22 0x40f000f4 as 15 seq  4         Other  None jack  0 loc  0 color Unknown misc 0
hdac0:  nid 23 0x90a60030 as  3 seq  0           Mic Fixed jack  6 loc 16 color Unknown misc 0
hdac0:  nid 24 0x40f000f5 as 15 seq  5         Other  None jack  0 loc  0 color Unknown misc 0
hdac0:  nid 33 0x40f000f6 as 15 seq  6         Other  None jack  0 loc  0 color Unknown misc 0
hdac0:  nid 34 0x40f000f7 as 15 seq  7         Other  None jack  0 loc  0 color Unknown misc 0
hdac0: Patched pins configuration:
hdac0:  nid 10 0x0321101f as  1 seq 15    Headphones  Jack jack  1 loc  3 color   Black misc 0
hdac0:  nid 11 0x03811020 as  2 seq  0       Line-in  Jack jack  1 loc  3 color   Black misc 0
hdac0:  nid 12 0x40f000f0 as 15 seq  0         Other  None jack  0 loc  0 color Unknown misc 0 [DISABLED]
hdac0:  nid 13 0x90170110 as  1 seq  0       Speaker Fixed jack  7 loc 16 color Unknown misc 1
hdac0:  nid 14 0x40f000f1 as 15 seq  1         Other  None jack  0 loc  0 color Unknown misc 0 [DISABLED]
hdac0:  nid 15 0x40f000f2 as 15 seq  2         Other  None jack  0 loc  0 color Unknown misc 0 [DISABLED]
hdac0:  nid 20 0x40f000f3 as 15 seq  3         Other  None jack  0 loc  0 color Unknown misc 0 [DISABLED]
hdac0:  nid 22 0x40f000f4 as 15 seq  4         Other  None jack  0 loc  0 color Unknown misc 0 [DISABLED]
hdac0:  nid 23 0x90a60030 as  3 seq  0           Mic Fixed jack  6 loc 16 color Unknown misc 0
hdac0:  nid 24 0x40f000f5 as 15 seq  5         Other  None jack  0 loc  0 color Unknown misc 0 [DISABLED]
hdac0:  nid 33 0x40f000f6 as 15 seq  6         Other  None jack  0 loc  0 color Unknown misc 0 [DISABLED]
hdac0:  nid 34 0x40f000f7 as 15 seq  7         Other  None jack  0 loc  0 color Unknown misc 0 [DISABLED]
hdac0: 3 associations found:
hdac0: Association 0 (1) out:
hdac0:  Pin nid=13 seq=0
hdac0:  Pin nid=10 seq=15
hdac0: Association 1 (2) in:
hdac0:  Pin nid=11 seq=0
hdac0: Association 2 (3) in:
hdac0:  Pin nid=23 seq=0
hdac0: Tracing association 0 (1)
hdac0:  Pin 13 traced to DAC 16
hdac0:  Pin 10 traced to DAC 16 and hpredir 0
hdac0: Association 0 (1) trace succeeded
hdac0: Tracing association 1 (2)
hdac0:  Pin 11 traced to ADC 18
hdac0: Association 1 (2) trace succeeded
hdac0: Tracing association 2 (3)
hdac0:  Pin 23 traced to ADC 19
hdac0: Association 2 (3) trace succeeded
hdac0: Tracing input monitor
hdac0: Tracing beeper
hdac0: GPIO init: data=0x00000000 mask=0x00000000 dir=0x00000000
hdac0: GPIO commit: data=0x00000001 mask=0x00000001 dir=0x00000001
hdac0: Enabling headphone/speaker audio routing switching:
hdac0: 	as=0 sense nid=10 [UNSOL]
hdac0: Pin sense: nid=10 res=0x7fffffff
hdac0: FG config/quirks: gpio0 forcestereo ivref50 ivref80 ivref100 ivref
hdac0: 
hdac0: +-------------------+
hdac0: | DUMPING HDA NODES |
hdac0: +-------------------+
hdac0: 
hdac0: Default Parameter
hdac0: -----------------
hdac0:      Stream cap: 0x00000001
hdac0:                  PCM
hdac0:         PCM cap: 0x000e07e0
hdac0:                  16 20 24 bits, 44 48 88 96 176 192 KHz
hdac0:          IN amp: 0x00050f00
hdac0:         OUT amp: 0x80027f7f
hdac0: 
hdac0:             nid: 10
hdac0:            Name: pin: Headphones (Black Jack)
hdac0:      Widget cap: 0x00400181
hdac0:                  UNSOL STEREO
hdac0:     Association: 0 (0x00008000)
hdac0:         Pin cap: 0x0000173f
hdac0:                  ISC TRQD PDC HP OUT IN VREF[ 50 80 GROUND HIZ ]
hdac0:      Pin config: 0x0321101f
hdac0:     Pin control: 0x00000080 HP
hdac0:     connections: 2
hdac0:           |
hdac0:           + <- nid=16 [audio output] (selected)
hdac0:           + [DISABLED] <- nid=17 [audio output] [DISABLED]
hdac0: 
hdac0:             nid: 11
hdac0:            Name: pin: Line-in (Black Jack)
hdac0:      Widget cap: 0x00400181
hdac0:                  UNSOL STEREO
hdac0:     Association: 1 (0x00000001)
hdac0:             OSS: line (line)
hdac0:         Pin cap: 0x00001737
hdac0:                  ISC TRQD PDC OUT IN VREF[ 50 80 GROUND HIZ ]
hdac0:      Pin config: 0x03811020
hdac0:     Pin control: 0x00000024 IN VREFs
hdac0:     connections: 2
hdac0:           |
hdac0:           + [DISABLED] <- nid=16 [audio output] (selected)
hdac0:           + [DISABLED] <- nid=17 [audio output] [DISABLED]
hdac0: 
hdac0:             nid: 12 [DISABLED]
hdac0:            Name: pin: Other (None)
hdac0:      Widget cap: 0x00400181
hdac0:                  UNSOL STEREO
hdac0:         Pin cap: 0x00001737
hdac0:                  ISC TRQD PDC OUT IN VREF[ 50 80 GROUND HIZ ]
hdac0:      Pin config: 0x40f000f0
hdac0:     Pin control: 0x00000000
hdac0:     connections: 1
hdac0:           |
hdac0:           + <- nid=17 [audio output] [DISABLED]
hdac0: 
hdac0:             nid: 13
hdac0:            Name: pin: Speaker (Fixed)
hdac0:      Widget cap: 0x00400181
hdac0:                  UNSOL STEREO
hdac0:     Association: 0 (0x00000001)
hdac0:         Pin cap: 0x0000003f
hdac0:                  ISC TRQD PDC HP OUT IN
hdac0:      Pin config: 0x90170110
hdac0:     Pin control: 0x00000040 OUT
hdac0:     connections: 1
hdac0:           |
hdac0:           + <- nid=16 [audio output]
hdac0: 
hdac0:             nid: 14 [DISABLED]
hdac0:            Name: pin: Other (None)
hdac0:      Widget cap: 0x00400181
hdac0:                  UNSOL STEREO
hdac0:         Pin cap: 0x00001737
hdac0:                  ISC TRQD PDC OUT IN VREF[ 50 80 GROUND HIZ ]
hdac0:      Pin config: 0x40f000f1
hdac0:     Pin control: 0x00000000
hdac0:     connections: 1
hdac0:           |
hdac0:           + <- nid=16 [audio output]
hdac0: 
hdac0:             nid: 15 [DISABLED]
hdac0:            Name: pin: Other (None)
hdac0:      Widget cap: 0x00400181
hdac0:                  UNSOL STEREO
hdac0:         Pin cap: 0x00001737
hdac0:                  ISC TRQD PDC OUT IN VREF[ 50 80 GROUND HIZ ]
hdac0:      Pin config: 0x40f000f2
hdac0:     Pin control: 0x00000000
hdac0:     connections: 1
hdac0:           |
hdac0:           + <- nid=17 [audio output] [DISABLED]
hdac0: 
hdac0:             nid: 16
hdac0:            Name: audio output
hdac0:      Widget cap: 0x000d0c05
hdac0:                  LRSWAP PWR STEREO
hdac0:     Association: 0 (0x00008001)
hdac0:             OSS: pcm (pcm)
hdac0:      Stream cap: 0x00000001
hdac0:                  PCM
hdac0:         PCM cap: 0x000e07e0
hdac0:                  16 20 24 bits, 44 48 88 96 176 192 KHz
hdac0:      Output amp: 0x80027f7f
hdac0:                  mute=1 step=127 size=2 offset=127
hdac0: 
hdac0:             nid: 17 [DISABLED]
hdac0:            Name: audio output
hdac0:      Widget cap: 0x000d0c05
hdac0:                  LRSWAP PWR STEREO
hdac0:      Stream cap: 0x00000001
hdac0:                  PCM
hdac0:         PCM cap: 0x000e07e0
hdac0:                  16 20 24 bits, 44 48 88 96 176 192 KHz
hdac0:      Output amp: 0x80027f7f
hdac0:                  mute=1 step=127 size=2 offset=127
hdac0: 
hdac0:             nid: 18
hdac0:            Name: audio input
hdac0:      Widget cap: 0x001d0541
hdac0:                  PWR PROC STEREO
hdac0:     Association: 1 (0x00000001)
hdac0:      Stream cap: 0x00000001
hdac0:                  PCM
hdac0:         PCM cap: 0x000e07e0
hdac0:                  16 20 24 bits, 44 48 88 96 176 192 KHz
hdac0:     connections: 1
hdac0:           |
hdac0:           + <- nid=29 [audio selector]
hdac0: 
hdac0:             nid: 19
hdac0:            Name: audio input
hdac0:      Widget cap: 0x001d0541
hdac0:                  PWR PROC STEREO
hdac0:     Association: 2 (0x00000001)
hdac0:      Stream cap: 0x00000001
hdac0:                  PCM
hdac0:         PCM cap: 0x000e07e0
hdac0:                  16 20 24 bits, 44 48 88 96 176 192 KHz
hdac0:     connections: 1
hdac0:           |
hdac0:           + <- nid=30 [audio selector]
hdac0: 
hdac0:             nid: 20 [DISABLED]
hdac0:            Name: pin: Other (None)
hdac0:      Widget cap: 0x0040010c
hdac0:         Pin cap: 0x00000010
hdac0:                  OUT
hdac0:      Pin config: 0x40f000f3
hdac0:     Pin control: 0x00000000
hdac0:      Output amp: 0x80051f1f
hdac0:                  mute=1 step=31 size=5 offset=31
hdac0:     connections: 1
hdac0:           |
hdac0:           + [DISABLED] <- nid=21 [audio mixer] [DISABLED]
hdac0: 
hdac0:             nid: 21 [DISABLED]
hdac0:            Name: audio mixer
hdac0:      Widget cap: 0x00200100
hdac0:     connections: 1
hdac0:           |
hdac0:           + <- nid=16 [audio output]
hdac0: 
hdac0:             nid: 22 [DISABLED]
hdac0:            Name: pin: Other (None)
hdac0:      Widget cap: 0x00400001
hdac0:                  STEREO
hdac0:         Pin cap: 0x00000020
hdac0:                  IN
hdac0:      Pin config: 0x40f000f4
hdac0:     Pin control: 0x00000000
hdac0: 
hdac0:             nid: 23
hdac0:            Name: pin: Mic (Fixed)
hdac0:      Widget cap: 0x00400001
hdac0:                  STEREO
hdac0:     Association: 2 (0x00000001)
hdac0:             OSS: monitor (monitor)
hdac0:         Pin cap: 0x00000020
hdac0:                  IN
hdac0:      Pin config: 0x90a60030
hdac0:     Pin control: 0x00000020 IN
hdac0: 
hdac0:             nid: 24 [DISABLED]
hdac0:            Name: pin: Other (None)
hdac0:      Widget cap: 0x00400001
hdac0:                  STEREO
hdac0:         Pin cap: 0x00000020
hdac0:                  IN
hdac0:      Pin config: 0x40f000f5
hdac0:     Pin control: 0x00000000
hdac0: 
hdac0:             nid: 25
hdac0:            Name: audio selector
hdac0:      Widget cap: 0x0030010d
hdac0:                  STEREO
hdac0:     Association: 1 (0x00000001)
hdac0:             OSS: line
hdac0:      Output amp: 0x00270400
hdac0:                  mute=0 step=4 size=39 offset=0
hdac0:     connections: 7
hdac0:           |
hdac0:           + [DISABLED] <- nid=14 [pin: Other (None)] [DISABLED]
hdac0:           + [DISABLED] <- nid=22 [pin: Other (None)] [DISABLED]
hdac0:           + [DISABLED] <- nid=15 [pin: Other (None)] [DISABLED]
hdac0:           + <- nid=11 [pin: Line-in (Black Jack)] (selected)
hdac0:           + [DISABLED] <- nid=12 [pin: Other (None)] [DISABLED]
hdac0:           + [DISABLED] <- nid=13 [pin: Speaker (Fixed)]
hdac0:           + [DISABLED] <- nid=10 [pin: Headphones (Black Jack)]
hdac0: 
hdac0:             nid: 26 [DISABLED]
hdac0:            Name: audio selector
hdac0:      Widget cap: 0x0030010d
hdac0:                  STEREO
hdac0:      Output amp: 0x00270400
hdac0:                  mute=0 step=4 size=39 offset=0
hdac0:     connections: 7
hdac0:           |
hdac0:           + [DISABLED] <- nid=14 [pin: Other (None)] [DISABLED] (selected)
hdac0:           + [DISABLED] <- nid=22 [pin: Other (None)] [DISABLED]
hdac0:           + [DISABLED] <- nid=15 [pin: Other (None)] [DISABLED]
hdac0:           + <- nid=11 [pin: Line-in (Black Jack)]
hdac0:           + [DISABLED] <- nid=12 [pin: Other (None)] [DISABLED]
hdac0:           + <- nid=13 [pin: Speaker (Fixed)]
hdac0:           + <- nid=10 [pin: Headphones (Black Jack)]
hdac0: 
hdac0:             nid: 27
hdac0:            Name: audio selector
hdac0:      Widget cap: 0x00300103
hdac0:                  STEREO
hdac0:     Association: 1 (0x00000001)
hdac0:             OSS: line
hdac0:       Input amp: 0x00050f00
hdac0:                  mute=0 step=15 size=5 offset=0
hdac0:     connections: 1
hdac0:           |
hdac0:           + <- nid=25 [audio selector]
hdac0: 
hdac0:             nid: 28 [DISABLED]
hdac0:            Name: audio selector
hdac0:      Widget cap: 0x00300103
hdac0:                  STEREO
hdac0:       Input amp: 0x00050f00
hdac0:                  mute=0 step=15 size=5 offset=0
hdac0:     connections: 1
hdac0:           |
hdac0:           + [DISABLED] <- nid=26 [audio selector] [DISABLED]
hdac0: 
hdac0:             nid: 29
hdac0:            Name: audio selector
hdac0:      Widget cap: 0x0030090d
hdac0:                  LRSWAP STEREO
hdac0:     Association: 1 (0x00000001)
hdac0:             OSS: line
hdac0:      Output amp: 0x80000000
hdac0:                  mute=1 step=0 size=0 offset=0
hdac0:     connections: 3
hdac0:           |
hdac0:           + <- nid=27 [audio selector] (selected)
hdac0:           + [DISABLED] <- nid=23 [pin: Mic (Fixed)]
hdac0:           + [DISABLED] <- nid=24 [pin: Other (None)] [DISABLED]
hdac0: 
hdac0:             nid: 30
hdac0:            Name: audio selector
hdac0:      Widget cap: 0x0030090d
hdac0:                  LRSWAP STEREO
hdac0:     Association: 2 (0x00000001)
hdac0:             OSS: monitor
hdac0:      Output amp: 0x80000000
hdac0:                  mute=1 step=0 size=0 offset=0
hdac0:     connections: 3
hdac0:           |
hdac0:           + [DISABLED] <- nid=28 [audio selector] [DISABLED]
hdac0:           + <- nid=23 [pin: Mic (Fixed)] (selected)
hdac0:           + [DISABLED] <- nid=24 [pin: Other (None)] [DISABLED]
hdac0: 
hdac0:             nid: 31 [DISABLED]
hdac0:            Name: audio output
hdac0:      Widget cap: 0x00040211
hdac0:                  DIGITAL STEREO
hdac0:      Stream cap: 0x00000005
hdac0:                  AC3 PCM
hdac0:         PCM cap: 0x000e05e0
hdac0:                  16 20 24 bits, 44 48 88 96 192 KHz
hdac0: 
hdac0:             nid: 32 [DISABLED]
hdac0:            Name: audio input
hdac0:      Widget cap: 0x00140311
hdac0:                  DIGITAL STEREO
hdac0:      Stream cap: 0x00000005
hdac0:                  AC3 PCM
hdac0:         PCM cap: 0x000e0160
hdac0:                  16 20 24 bits, 44 48 96 KHz
hdac0:     connections: 1
hdac0:           |
hdac0:           + [DISABLED] <- nid=34 [pin: Other (None)] [DISABLED]
hdac0: 
hdac0:             nid: 33 [DISABLED]
hdac0:            Name: pin: Other (None)
hdac0:      Widget cap: 0x00400301
hdac0:                  DIGITAL STEREO
hdac0:         Pin cap: 0x00000010
hdac0:                  OUT
hdac0:      Pin config: 0x40f000f6
hdac0:     Pin control: 0x00000000
hdac0:     connections: 3
hdac0:           |
hdac0:           + <- nid=31 [audio output] [DISABLED] (selected)
hdac0:           + <- nid=29 [audio selector]
hdac0:           + <- nid=30 [audio selector]
hdac0: 
hdac0:             nid: 34 [DISABLED]
hdac0:            Name: pin: Other (None)
hdac0:      Widget cap: 0x00430681
hdac0:                  PWR DIGITAL UNSOL STEREO
hdac0:         Pin cap: 0x00010024
hdac0:                  PDC IN EAPD
hdac0:      Pin config: 0x40f000f7
hdac0:     Pin control: 0x00000000
hdac0:            EAPD: 0x00000002
hdac0: 
hdac0:             nid: 35
hdac0:            Name: beep widget
hdac0:      Widget cap: 0x0070000c
hdac0:     Association: -2 (0x00000000)
hdac0:             OSS: speaker (speaker)
hdac0:      Output amp: 0x00170303
hdac0:                  mute=0 step=3 size=23 offset=3
hdac0: 
hdac0:             nid: 36 [DISABLED]
hdac0:            Name: volume widget
hdac0:      Widget cap: 0x00600000
hdac0:     connections: 2
hdac0:           |
hdac0:           + <- nid=16 [audio output] (selected)
hdac0:           + <- nid=17 [audio output] [DISABLED]
hdac0: 
hdac0:             nid: 37 [DISABLED]
hdac0:            Name: vendor widget
hdac0:      Widget cap: 0x00f00001
hdac0:                  STEREO
hdac0: 
hdac0: Processing modem FG cad=1 nid=2...
hdac0: 
pcm0: <HDA Sigmatel STAC9205X PCM #0 Analog> at cad 0 nid 1 on hdac0
pcm0: +--------------------------------------+
pcm0: | DUMPING PCM Playback/Record Channels |
pcm0: +--------------------------------------+
pcm0: 
pcm0: Playback:
pcm0: 
pcm0:      Stream cap: 0x00000001
pcm0:                  PCM
pcm0:         PCM cap: 0x000e07e0
pcm0:                  16 20 24 bits, 44 48 88 96 176 192 KHz
pcm0:             DAC: 16
pcm0: 
pcm0: Record:
pcm0: 
pcm0:      Stream cap: 0x00000001
pcm0:                  PCM
pcm0:         PCM cap: 0x000e07e0
pcm0:                  16 20 24 bits, 44 48 88 96 176 192 KHz
pcm0:             ADC: 18
pcm0: 
pcm0: +-------------------------------+
pcm0: | DUMPING Playback/Record Paths |
pcm0: +-------------------------------+
pcm0: 
pcm0: Playback:
pcm0: 
pcm0:     nid=10 [pin: Headphones (Black Jack)]
pcm0:       |
pcm0:       + <- nid=16 [audio output] [src: pcm]
pcm0: 
pcm0:     nid=13 [pin: Speaker (Fixed)]
pcm0:       |
pcm0:       + <- nid=16 [audio output] [src: pcm]
pcm0: 
pcm0: Record:
pcm0: 
pcm0:     nid=18 [audio input]
pcm0:       |
pcm0:       + <- nid=29 [audio selector] [src: line]
pcm0:              |
pcm0:              + <- nid=27 [audio selector] [src: line]
pcm0:                     |
pcm0:                     + <- nid=25 [audio selector] [src: line]
pcm0:                            |
pcm0:                            + <- nid=11 [pin: Line-in (Black Jack)] [src: line]
pcm0: 
pcm0: +-------------------------+
pcm0: | DUMPING Volume Controls |
pcm0: +-------------------------+
pcm0: 
pcm0: Master Volume (OSS: vol)
pcm0:    |
pcm0:    +- ctl  1 (nid  16 out):    -95/0dB (128 steps) + mute
pcm0: 
pcm0: PCM Volume (OSS: pcm)
pcm0:    |
pcm0:    +- ctl  1 (nid  16 out):    -95/0dB (128 steps) + mute
pcm0: 
pcm0: Line-in Volume (OSS: line)
pcm0:    |
pcm0:    +- ctl  4 (nid  25 out):    0/40dB (5 steps)
pcm0:    +- ctl  8 (nid  29 out):    mute
pcm0: 
pcm0: Speaker/Beep Volume (OSS: speaker)
pcm0:    |
pcm0:    +- ctl 10 (nid  35 out):    -18/0dB (4 steps)
pcm0: 
pcm0: Recording Level (OSS: rec)
pcm0:    |
pcm0:    +- ctl  6 (nid  27 in   0): 0/22dB (16 steps)
pcm0:    +- ctl  8 (nid  29 out):    mute
pcm0: 
pcm0: Mixer "vol":
pcm0: Mixer "pcm":
pcm0: Mixer "speaker":
pcm0: Mixer "line":
pcm0: Mixer "rec":
pcm0: clone manager: deadline=750ms flags=0x8000001e
pcm0: sndbuf_setmap 2340000, 4000; 0xe60b5000 -> 2340000
pcm0: sndbuf_setmap 2350000, 4000; 0xe60c5000 -> 2350000
pcm1: <HDA Sigmatel STAC9205X PCM #1 Analog> at cad 0 nid 1 on hdac0
pcm1: +--------------------------------------+
pcm1: | DUMPING PCM Playback/Record Channels |
pcm1: +--------------------------------------+
pcm1: 
pcm1: Record:
pcm1: 
pcm1:      Stream cap: 0x00000001
pcm1:                  PCM
pcm1:         PCM cap: 0x000e07e0
pcm1:                  16 20 24 bits, 44 48 88 96 176 192 KHz
pcm1:             ADC: 19
pcm1: 
pcm1: +-------------------------------+
pcm1: | DUMPING Playback/Record Paths |
pcm1: +-------------------------------+
pcm1: 
pcm1: Record:
pcm1: 
pcm1:     nid=19 [audio input]
pcm1:       |
pcm1:       + <- nid=30 [audio selector] [src: monitor]
pcm1:              |
pcm1:              + <- nid=23 [pin: Mic (Fixed)] [src: monitor]
pcm1: 
pcm1: +-------------------------+
pcm1: | DUMPING Volume Controls |
pcm1: +-------------------------+
pcm1: 
pcm1: Microphone2 Volume (OSS: monitor)
pcm1:    |
pcm1:    +- ctl  9 (nid  30 out):    mute
pcm1: 
pcm1: Recording Level (OSS: rec)
pcm1:    |
pcm1:    +- ctl  9 (nid  30 out):    mute
pcm1: 
pcm1: Mixer "rec":
pcm1: Mixer "monitor":
pcm1: clone manager: deadline=750ms flags=0x8000001e
pcm1: sndbuf_setmap 2360000, 4000; 0xe60d5000 -> 2360000
  timer: 0x000200ef therm: 0x00010000 err: 0x00010000 pcm: 0x00010000


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-multimedia 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu May 21 04:31:09 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=134767 

From: Alexander Motin <mav@FreeBSD.org>
To: bug-followup@FreeBSD.org, lhecking@users.sourceforge.net
Cc:  
Subject: Re: kern/134767: [snd_hda] Sigmatel STAC9205X no sound under RELENG_7_2_0_RELEASE
 [regression]
Date: Wed, 15 Jul 2009 11:40:29 +0300

 Try to dump pin status with `sysctl dev.hdac.0.pindump=1` with speakers
 connected and not connected. Your codec is configured for automatic
 audio redirection, but it may not be implemented in hardware.
 
 You may try to disable jack sensing on headphones connector by adding to
 loader.conf:
 hint.hdac.0.cad0.nid10.config="misc=1"
 
 -- 
 Alexander Motin

From: Lars Hecking <lhecking@users.sourceforge.net>
To: bug-followup@FreeBSD.org
Cc: Lars Hecking <lhecking@users.sourceforge.net>
Subject: Re: kern/134767: [snd_hda] Sigmatel STAC9205X no sound under
 RELENG_7_2_0_RELEASE [regression]
Date: Fri, 17 Jul 2009 10:47:37 +0100

  Both times, head phones plugged in or not, I get
 
 # sysctl dev.hdac.0.pindump=1
 dev.hdac.0.pindump: 0 -> 0
 
  Disabling jack sensing in device hinst works according dmesg
 
 # dmesg|grep -i hdac
 hdac0: <Intel 82801H High Definition Audio Controller> mem
 0xfebfc000-0xfebfffff irq 21 at device 27.0 on pci0
 hdac0: HDA Driver Revision: 20090329_0131
 hdac0: [ITHREAD]
 hdac0: HDA Codec #0: Sigmatel STAC9205X
 hdac0: HDA Codec #1: Conexant (Unknown)
 hdac0: No jack detection support at pin 10
 pcm0: <HDA Sigmatel STAC9205X PCM #0 Analog> at cad 0 nid 1 on hdac0
 pcm1: <HDA Sigmatel STAC9205X PCM #1 Analog> at cad 0 nid 1 on hdac0
 
  but I still have no sound through either speakers or head phones.
 
 
 
 ---------------------------------------------------------------
 This message and any attachments may contain Cypress (or its
 subsidiaries) confidential information. If it has been received
 in error, please advise the sender and immediately delete this
 message.
 ---------------------------------------------------------------
 

From: Alexander Motin <mav@FreeBSD.org>
To: bug-followup@FreeBSD.org, lhecking@users.sourceforge.net
Cc:  
Subject: Re: kern/134767: [snd_hda] Sigmatel STAC9205X no sound under RELENG_7_2_0_RELEASE
 [regression]
Date: Sat, 18 Jul 2009 00:54:37 +0300

 pindump result is written by kernel to first text console and syslog, 
 but not to sysctl command output.
 
 -- 
 Alexander Motin

From: lhecking@users.sourceforge.net
To: bug-followup@freebsd.org
Cc: lhecking@users.sourceforge.net
Subject: Re: kern/134767: [snd_hda] Sigmatel STAC9205X no sound under
 RELENG_7_2_0_RELEASE [regression]
Date: Tue, 21 Jul 2009 00:28:12 +0100

 Here is the pindump with headphones connected:
 
 Jul 21 00:19:13 localhost kernel: hdac0: Dumping AFG cad=0 nid=1 pins:
 Jul 21 00:19:13 localhost kernel: hdac0:  nid 10 0x0321101f as  1 seq 15    Headphones  Jack jack  1 loc  3 color   Black misc 0
 Jul 21 00:19:13 localhost kernel: hdac0:        Caps: IN OUT HP      VREF Sense: 0x80002710
 Jul 21 00:19:13 localhost kernel: hdac0:  nid 11 0x03811020 as  2 seq  0       Line-in  Jack jack  1 loc  3 color   Black misc 0
 Jul 21 00:19:13 localhost kernel: hdac0:        Caps: IN OUT         VREF Sense: 0x7fffffff delay 100000us
 Jul 21 00:19:13 localhost kernel: hdac0:  nid 12 0x40f000f0 as 15 seq  0         Other  None jack  0 loc  0 color Unknown misc 0 [DISABLED]
 Jul 21 00:19:13 localhost kernel: hdac0:        Caps: IN OUT         VREF Sense: 0x00002710
 Jul 21 00:19:13 localhost kernel: hdac0:  nid 13 0x90170110 as  1 seq  0       Speaker Fixed jack  7 loc 16 color Unknown misc 1
 Jul 21 00:19:13 localhost kernel: hdac0:        Caps: IN OUT HP           Sense: 0x7fffffff delay 100000us
 Jul 21 00:19:13 localhost kernel: hdac0:  nid 14 0x40f000f1 as 15 seq  1         Other  None jack  0 loc  0 color Unknown misc 0 [DISABLED]
 Jul 21 00:19:13 localhost kernel: hdac0:        Caps: IN OUT         VREF Sense: 0x00002710
 Jul 21 00:19:13 localhost kernel: hdac0:  nid 15 0x40f000f2 as 15 seq  2         Other  None jack  0 loc  0 color Unknown misc 0 [DISABLED]
 Jul 21 00:19:13 localhost kernel: hdac0:        Caps: IN OUT         VREF Sense: 0x7fffffff delay 100000us
 Jul 21 00:19:13 localhost kernel: hdac0:  nid 20 0x40f000f3 as 15 seq  3         Other  None jack  0 loc  0 color Unknown misc 0 [DISABLED]
 Jul 21 00:19:13 localhost kernel: hdac0:        Caps:    OUT             
 Jul 21 00:19:13 localhost kernel: hdac0:  nid 22 0x40f000f4 as 15 seq  4         Other  None jack  0 loc  0 color Unknown misc 0 [DISABLED]
 Jul 21 00:19:13 localhost kernel: hdac0:        Caps: IN                 
 Jul 21 00:19:13 localhost kernel: hdac0:  nid 23 0x90a60030 as  3 seq  0           Mic Fixed jack  6 loc 16 color Unknown misc 0
 Jul 21 00:19:13 localhost kernel: hdac0:        Caps: IN                 
 Jul 21 00:19:13 localhost kernel: hdac0:  nid 24 0x40f000f5 as 15 seq  5         Other  None jack  0 loc  0 color Unknown misc 0 [DISABLED]
 Jul 21 00:19:13 localhost kernel: hdac0:        Caps: IN                 
 Jul 21 00:19:13 localhost kernel: hdac0:  nid 33 0x40f000f6 as 15 seq  6         Other  None jack  0 loc  0 color Unknown misc 0 [DISABLED]
 Jul 21 00:19:13 localhost kernel: hdac0:        Caps:    OUT             
 Jul 21 00:19:13 localhost kernel: hdac0:  nid 34 0x40f000f7 as 15 seq  7         Other  None jack  0 loc  0 color Unknown misc 0 [DISABLED]
 Jul 21 00:19:13 localhost kernel: hdac0:        Caps: IN        EAPD      Sense: 0x00000000
 Jul 21 00:19:13 localhost kernel: hdac0: NumGPIO=5 NumGPO=0 NumGPI=0 GPIWake=1 GPIUnsol=1
 Jul 21 00:19:13 localhost kernel: hdac0: GPIO: data=0x00000001 enable=0x00000001 direction=0x00000001
 Jul 21 00:19:13 localhost kernel: hdac0:       wake=0x00000000  unsol=0x00000000    sticky=0x00000000
 
 And here with headphones disconnected:
 
 Jul 21 00:18:12 localhost kernel: hdac0: Dumping AFG cad=0 nid=1 pins:
 Jul 21 00:18:12 localhost kernel: hdac0:  nid 10 0x0321101f as  1 seq 15    Headphones  Jack jack  1 loc  3 color   Black misc 0
 Jul 21 00:18:12 localhost kernel: hdac0:        Caps: IN OUT HP      VREF Sense: 0x00002710 delay 10us
 Jul 21 00:18:12 localhost kernel: hdac0:  nid 11 0x03811020 as  2 seq  0       Line-in  Jack jack  1 loc  3 color   Black misc 0
 Jul 21 00:18:12 localhost kernel: hdac0:        Caps: IN OUT         VREF Sense: 0x7fffffff delay 100000us
 Jul 21 00:18:12 localhost kernel: hdac0:  nid 12 0x40f000f0 as 15 seq  0         Other  None jack  0 loc  0 color Unknown misc 0 [DISABLED]
 Jul 21 00:18:12 localhost kernel: hdac0:        Caps: IN OUT         VREF Sense: 0x00002710 delay 20us
 Jul 21 00:18:12 localhost kernel: hdac0:  nid 13 0x90170110 as  1 seq  0       Speaker Fixed jack  7 loc 16 color Unknown misc 1
 Jul 21 00:18:12 localhost kernel: hdac0:        Caps: IN OUT HP           Sense: 0x7fffffff delay 100000us
 Jul 21 00:18:12 localhost kernel: hdac0:  nid 14 0x40f000f1 as 15 seq  1         Other  None jack  0 loc  0 color Unknown misc 0 [DISABLED]
 Jul 21 00:18:12 localhost kernel: hdac0:        Caps: IN OUT         VREF Sense: 0x00002710 delay 10us
 Jul 21 00:18:12 localhost kernel: hdac0:  nid 15 0x40f000f2 as 15 seq  2         Other  None jack  0 loc  0 color Unknown misc 0 [DISABLED]
 Jul 21 00:18:12 localhost kernel: hdac0:        Caps: IN OUT         VREF Sense: 0x7fffffff delay 100000us
 Jul 21 00:18:12 localhost kernel: hdac0:  nid 20 0x40f000f3 as 15 seq  3         Other  None jack  0 loc  0 color Unknown misc 0 [DISABLED]
 Jul 21 00:18:12 localhost kernel: hdac0:        Caps:    OUT             
 Jul 21 00:18:12 localhost kernel: hdac0:  nid 22 0x40f000f4 as 15 seq  4         Other  None jack  0 loc  0 color Unknown misc 0 [DISABLED]
 Jul 21 00:18:12 localhost kernel: hdac0:        Caps: IN                 
 Jul 21 00:18:12 localhost kernel: hdac0:  nid 23 0x90a60030 as  3 seq  0           Mic Fixed jack  6 loc 16 color Unknown misc 0
 Jul 21 00:18:12 localhost kernel: hdac0:        Caps: IN                 
 Jul 21 00:18:12 localhost kernel: hdac0:  nid 24 0x40f000f5 as 15 seq  5         Other  None jack  0 loc  0 color Unknown misc 0 [DISABLED]
 Jul 21 00:18:12 localhost kernel: hdac0:        Caps: IN                 
 Jul 21 00:18:12 localhost kernel: hdac0:  nid 33 0x40f000f6 as 15 seq  6         Other  None jack  0 loc  0 color Unknown misc 0 [DISABLED]
 Jul 21 00:18:12 localhost kernel: hdac0:        Caps:    OUT             
 Jul 21 00:18:12 localhost kernel: hdac0:  nid 34 0x40f000f7 as 15 seq  7         Other  None jack  0 loc  0 color Unknown misc 0 [DISABLED]
 Jul 21 00:18:12 localhost kernel: hdac0:        Caps: IN        EAPD      Sense: 0x00000000
 Jul 21 00:18:12 localhost kernel: hdac0: NumGPIO=5 NumGPO=0 NumGPI=0 GPIWake=1 GPIUnsol=1
 Jul 21 00:18:12 localhost kernel: hdac0: GPIO: data=0x00000001 enable=0x00000001 direction=0x00000001
 Jul 21 00:18:12 localhost kernel: hdac0:       wake=0x00000000  unsol=0x00000000    sticky=0x00000000
 
 
 
 ---------------------------------------------------------------
 This message and any attachments may contain Cypress (or its
 subsidiaries) confidential information. If it has been received
 in error, please advise the sender and immediately delete this
 message.
 ---------------------------------------------------------------
 

From: Per Hedeland <per@hedeland.org>
To: bug-followup@FreeBSD.org, lhecking@users.sourceforge.net
Cc:  
Subject: Re: kern/134767: [sound] [snd_hda] [regression] Sigmatel STAC9205X no sound under RELENG_7_2_0_RELEASE
Date: Mon, 10 Aug 2009 09:34:34 +0200 (CEST)

 I believe I'm seeing the same problem with a slightly different codec
 model:
 
 Aug  7 16:03:58 mars kernel: hdac0: HDA Codec #0: Sigmatel STAC9220
 Aug  7 16:03:58 mars kernel: pcm0: <HDA Sigmatel STAC9220 PCM #0 Analog> at cad 0 nid 1 on hdac0
 
 Worked fine in 7.0-RELEASE, no sound in 7.2-RELEASE - using the
 7.1-RELEASE sources for snd_hda brings it back to life.
 
 --Per Hedeland

From: Lars Hecking <lhecking@users.sourceforge.net>
To: bug-followup@FreeBSD.org, lhecking@users.sourceforge.net
Cc:  
Subject: Re: kern/134767: [snd_hda] Sigmatel STAC9205X no sound under
 RELENG_7_2_0_RELEASE [regression]
Date: Fri, 27 Nov 2009 23:07:34 +0000

 Back to square one. The problem persists in FreeBSD 8.0, and comparing the
 code with 7.x, I don't think my workaround from 7.2 will work.
 
 

From: Lars Hecking <lhecking@users.sourceforge.net>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/134767: [snd_hda] Sigmatel STAC9205X no sound under
 RELENG_7_2_0_RELEASE [regression]
Date: Sun, 31 Jan 2010 00:36:12 +0000

  Another update: playing with gnome-sound-recorder and headphones, I found
  that there is sound. It's just barely audible. 
 
  Any suggestions?
 
 
>Unformatted:
