Subject: kern/32178: VT8233 AC'97 Audio revision 0x10 small display fix
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <njoly@pasteur.fr>
List: netbsd-bugs
Date: 11/28/2005 12:37:00
>Number:         32178
>Category:       kern
>Synopsis:       VT8233 AC'97 Audio revision 0x10 small display fix
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 28 12:37:00 +0000 2005
>Originator:     Nicolas Joly
>Release:        NetBSD 3.99.11
>Organization:
Institut Pasteur
>Environment:
System: NetBSD hal.sis.pasteur.fr 3.99.11 NetBSD 3.99.11 (HAL_DEVEL) #7: Wed Nov 16 20:36:37 CET 2005 njoly@hal.sis.pasteur.fr:/local/src/NetBSD/obj/i386/sys/arch/i386/compile/HAL_DEVEL i386
Architecture: i386
Machine: i386
>Description:
While installing -current on an old athlon machine, i noticed that auvia(4)
does not support VT8233 AC'97 audio revision 0x10. According to FreeBSD and
Alsa drivers, it seems to be a `Pre' version of the VT8233 audio which should
not be in the market; but it is, at least on an MSI K7T266 Pro motherboard.

mullway: {4} dmesg|grep auvia
auvia0 at pci0 dev 17 function 5: VIA Technologies VT823(null) AC'97 Audio (rev 0x10)
auvia0: interrupting at irq 10
auvia0: ac97: ICEnsemble ICE1232/VT1611A codec; headphone, 18 bit DAC, 18 bit ADC, KS Waves 3D
auvia0: ac97: ext id 201<AMAP,VRA>
audio0 at auvia0: full duplex, mmap, independent

mullway: {5} pcictl pci0 list | grep VIA
000:00:0: VIA Technologies VT8366 (Apollo KT266) CPU-PCI Bridge (host bridge)
000:01:0: VIA Technologies VT8366 (Apollo KT266) CPU-AGP Bridge (PCI bridge)
000:17:0: VIA Technologies VT8233 PCI-ISA Bridge (ISA bridge)
000:17:1: VIA Technologies VT82C586A IDE Controller (IDE mass storage, interface 0x8a, revision 0x06)
000:17:2: VIA Technologies VT83C572 USB Controller (USB serial bus, revision 0x18)
000:17:3: VIA Technologies VT83C572 USB Controller (USB serial bus, revision 0x18)
000:17:4: VIA Technologies VT83C572 USB Controller (USB serial bus, revision 0x18)
000:17:5: VIA Technologies VT8233/VT8235 AC-97 Audio Controller (audio multimedia, revision 0x10)

This looks like an esthetic problem only, as the audio seems to work fine.

>How-To-Repeat:
Boot NetBSD on a MSI K7T266 Pro motherboard with latest bios v1.9
(01/30/2002) installed.
>Fix:
Index: sys/dev/pci/auvia.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/auvia.c,v
retrieving revision 1.52
diff -u -r1.52 auvia.c
--- sys/dev/pci/auvia.c	28 Jun 2005 00:28:41 -0000	1.52
+++ sys/dev/pci/auvia.c	28 Nov 2005 10:39:10 -0000
@@ -123,6 +123,7 @@
     auvia_match, auvia_attach, NULL, NULL);
 
 /* VIA VT823xx revision number */
+#define VIA_REV_8233PRE	0x10
 #define VIA_REV_8233C	0x20
 #define VIA_REV_8233	0x30
 #define VIA_REV_8233A	0x40
@@ -321,6 +322,10 @@
 	if (sc->sc_flags & AUVIA_FLAGS_VT8233) {
 		snprintf(sc->sc_revision, sizeof(sc->sc_revision), "0x%02X", r);
 		switch(r) {
+		case VIA_REV_8233PRE:
+			/* not in market */
+			revnum = "3-Pre";
+			break;
 		case VIA_REV_8233C:
 			/* 2 rec, 4 pb, 1 multi-pb */
 			revnum = "3C";