Subject: kern/33272: No sound on Sony VAIO VGN-B1XP
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <dieter.NetBSD@pandora.be>
List: netbsd-bugs
Date: 04/16/2006 22:10:00
>Number:         33272
>Category:       kern
>Synopsis:       No sound on Sony VAIO VGN-B1XP
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 16 22:10:00 +0000 2006
>Originator:     Dieter Roelants
>Release:        NetBSD 3.99.18
>Organization:
>Environment:
	NetBSD origin.amelgem.be 3.99.18 NetBSD 3.99.18 (ORIGIN) #57: Sun Apr 16 23:18:30 CEST 2006  dieter@origin.amelgem.be:/usr/build/obj/sys/arch/i386/compile/ORIGIN i386
auich0 at pci0 dev 31 function 5: i82801DB/DBM (ICH4/ICH4M) AC-97 Audio
auich0: ac97: Analog Devices AD1981B codec; headphone, 20 bit DAC, no 3D stereo
auich0: ac97: ext id 601<AC97_22,AMAP,VRA>
Architecture: i386
Machine: i386
>Description:
	My sony laptop stays mute when trying to play sound files.
	The card needs the AC97_HOST_INVERTED_EAMP flag, added by
	Jared yesterday.
>How-To-Repeat:
	Try to let the laptop make some sound.
>Fix:

Index: auich.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/auich.c,v
retrieving revision 1.105
diff -u -r1.105 auich.c
--- auich.c     16 Apr 2006 07:40:00 -0000      1.105
+++ auich.c     16 Apr 2006 21:51:33 -0000
@@ -588,8 +588,9 @@
        case 0x203a161f:        /* Gateway 4028GZ */
        case 0x204c161f:        /* Kvazar-Micro Senator 3592XT */
        case 0x8144104d:        /* Sony VAIO PCG-TR* */
-       case 0x81c0104d:        /* Sony VAIO type T */
        case 0x8197104d:        /* Sony S1XP */
+       case 0x81c0104d:        /* Sony VAIO type T */
+       case 0x81c5104d:        /* Sony VAIO VGN-B1XP */
                sc->sc_codecflags = AC97_HOST_INVERTED_EAMP;
                break;
        default:

[ I also sorted the list. ]