From bram@abbekerk.demon.nl  Sat Jan  8 21:34:39 2005
Return-Path: <bram@abbekerk.demon.nl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6E85816A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  8 Jan 2005 21:34:39 +0000 (GMT)
Received: from mail.inimini.nl (abbekerk-2.demon.nl [212.238.180.145])
	by mx1.FreeBSD.org (Postfix) with ESMTP id AF0BE43D39
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  8 Jan 2005 21:34:38 +0000 (GMT)
	(envelope-from bram@abbekerk.demon.nl)
Received: by mail.inimini.nl (Postfix, from userid 1000)
	id 2620534D33; Sat,  8 Jan 2005 22:34:37 +0100 (CET)
Message-Id: <20050108213437.GA11932@rik.inimini.nl>
Date: Sat, 8 Jan 2005 22:34:37 +0100
From: Bram <bram@abbekerk.demon.nl>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [patch] Support for Sigmatel STAC9766/67 codec in sound driver

>Number:         75969
>Category:       kern
>Synopsis:       [sound] [patch] Support for Sigmatel STAC9766/67 codec in sound driver
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-multimedia
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 08 21:40:32 GMT 2005
>Closed-Date:    Fri Jan 06 14:59:21 GMT 2006
>Last-Modified:  Fri Jan 06 14:59:21 GMT 2006
>Originator:     Bram Abbekerk
>Release:        FreeBSD 5.3-RELEASE-p4 i386
>Organization:
>Environment:
System: FreeBSD grover.inimini.nl 5.3-RELEASE-p4 FreeBSD 5.3-RELEASE-p4 #4: Sat Jan 8 15:18:56 CET 2005 root@sien.inimini.nl:/usr/obj/usr/src/sys/LIFEBOOK i386

$FreeBSD: src/sys/dev/sound/pcm/ac97.c,v 1.51 2004/05/08 03:41:40 sanpei Exp $


>Description:
Hi Sanpei,

The STAC9766/67 codecs are not recognized with the pcm soundcard
in my lifebook C1110.  Therefore the soundcard doesn't work. After
applying attached patch the codec is recognized and the soundcard is
working.

>How-To-Repeat:
        N/A
>Fix:
Addition of codec id to ac97codecid array in sys/dev/sound/pcm/ac97.c



--- dmesg.boot begins here ---
FreeBSD 5.3-RELEASE-p4 #4: Sat Jan  8 15:18:56 CET 2005
    root@sien.inimini.nl:/usr/obj/usr/src/sys/LIFEBOOK
...
pcm0: <Intel ICH4 (82801DB)> port 0x2080-0x20bf,0x1800-0x18ff mem 0xd0100800-0xd01008ff,0xd0100c00-0xd0100dff irq 11 at device 31.5 on pci0
pcm0: [GIANT-LOCKED]
pcm0: <Unknown AC97 Codec (id=0x83847666,)>
...
--- dmesg.boot ends here ---

After patch:
--- dmesg.boot begins here ---
FreeBSD 5.3-RELEASE-p4 #4: Sat Jan  8 15:18:56 CET 2005
    root@sien.inimini.nl:/usr/obj/usr/src/sys/LIFEBOOK
...
pcm0: <Intel ICH4 (82801DB)> port 0x2080-0x20bf,0x1800-0x18ff mem 0xd0100800-0xd01008ff,0xd0100c00-0xd0100dff irq 11 at device 31.5 on pci0
pcm0: [GIANT-LOCKED]
pcm0: <SigmaTel STAC9766/67 AC97 Codec>
...
--- dmesg.boot ends here ---

--- sigmatel.patch begins here ---
*** sys/dev/sound/pcm/ac97.c.org        Sat Jan  8 14:46:34 2005
--- sys/dev/sound/pcm/ac97.c    Sat Jan  8 14:45:58 2005
***************
*** 191,196 ****
--- 191,197 ----
        { 0x83847658, 0x00, 0, "STAC9758/59",   0 },
        { 0x83847660, 0x00, 0, "STAC9760/61",   0 }, /* Extrapolated */
        { 0x83847662, 0x00, 0, "STAC9762/63",   0 }, /* Extrapolated */
+       { 0x83847666, 0x00, 0, "STAC9766/67",   0 },
        { 0x53494c22, 0x00, 0, "Si3036",        0 },
        { 0x53494c23, 0x00, 0, "Si3038",        0 },
        { 0x54524103, 0x00, 0, "TR28023",       0 }, /* Extrapolated */
--- sigmatel.patch ends here ---

Cheers,
bRAM

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sound 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Apr 3 08:49:11 GMT 2005 
Responsible-Changed-Why:  
Reassign to appropriate mailing list. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75969 
State-Changed-From-To: open->closed 
State-Changed-By: netchild 
State-Changed-When: Fri Jan 6 14:59:06 UTC 2006 
State-Changed-Why:  
This is fixed in 6-stable and -current. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75969 
>Unformatted:
