From lvd@wonder.mndmttr.nl  Sat Mar  8 14:32:29 2003
Return-Path: <lvd@wonder.mndmttr.nl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id ABB6337B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  8 Mar 2003 14:32:29 -0800 (PST)
Received: from wonder.mndmttr.nl (mndmttr.nl [194.109.241.141])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7067943F93
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  8 Mar 2003 14:32:28 -0800 (PST)
	(envelope-from lvd@wonder.mndmttr.nl)
Received: from wonder.mndmttr.nl (localhost [127.0.0.1])
	by wonder.mndmttr.nl (8.12.6/8.12.6) with ESMTP id h28MR7Ti000421
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 8 Mar 2003 23:27:07 +0100 (CET)
	(envelope-from lvd@wonder.mndmttr.nl)
Received: (from root@localhost)
	by wonder.mndmttr.nl (8.12.6/8.12.6/Submit) id h28MR6lG000420;
	Sat, 8 Mar 2003 23:27:06 +0100 (CET)
Message-Id: <200303082227.h28MR6lG000420@wonder.mndmttr.nl>
Date: Sat, 8 Mar 2003 23:27:06 +0100 (CET)
From: Luuk van Dijk <lvd@mndmttr.nl>
Reply-To: Luuk van Dijk <lvd@mndmttr.nl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ESS Maestro chip misdetected as 'chip2'
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         49037
>Category:       kern
>Synopsis:       [sound] [patch] ESS Maestro chip misdetected as 'chip2'
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-multimedia
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 08 14:40:06 PST 2003
>Closed-Date:    Sun Sep 11 19:05:31 GMT 2005
>Last-Modified:  Sun Sep 11 19:05:31 GMT 2005
>Originator:     Luuk van Dijk
>Release:        FreeBSD 4.7-RELEASE i386
>Organization:
Mind over Matter B.V (http://www.mndmttr.nl)
>Environment:
System: FreeBSD wonder.mndmttr.nl 4.7-RELEASE FreeBSD 4.7-RELEASE #3: Fri Dec 27 07:26:14 CET 2002 root@wonder.mndmttr.nl:/usr/src/sys/compile/WONDER i386

Compaq Armada M300 with
pcm0@pci0:8:0:  class=0x040100 card=0xb1120e11 chip=0x1978125d rev=0x10 hdr=0x00
    vendor   = 'ESS Technology'
    device   = 'ES1978 Maestro-2E Audiodrive, ES1970 Canyon3D'
    class    = multimedia
    subclass = audio

(that is after the fix, before that it is detected as chip2@pci0:8:0)

>Description:
because the ESS Maestro chip is detected as chip2 on my machine in 
pci/pcisupport.c:chip_match(), it is not probed when I kldload snd_maestro.
making chip_match() return NULL for the maestro's pci id fixes this.

>How-To-Repeat:
	kldload snd_maestro
	pciconf -l -v

>Fix:

the following patch:
--- pci/pcisupport.c.ORIG       Sat Mar  8 23:23:18 2003
+++ pci/pcisupport.c    Fri Dec 27 07:25:59 2002
@@ -1329,6 +1329,7 @@
 
        /* ESS Technology Inc -- vendor 0x125d */
        case 0x1978125d:
+               return NULL; /* if probed as 'chip' the kld won't load LVD */
                return ("ESS Technology Maestro 2E Audio controller");
 
        /* Toshiba -- vendor 0x1179 */


(maybe it would be better if 'chip' devices were re-attached if better
drivers came along in a kldload)

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sound 
Responsible-Changed-By: kris 
Responsible-Changed-When: Sun Jul 13 02:51:13 PDT 2003 
Responsible-Changed-Why:  
Assign to sound maintainers 

http://www.freebsd.org/cgi/query-pr.cgi?pr=49037 
State-Changed-From-To: open->feedback 
State-Changed-By: netchild 
State-Changed-When: Sun Sep 11 14:19:38 GMT 2005 
State-Changed-Why:  
Do you still have this problem with a recent -current? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=49037 
State-Changed-From-To: feedback->closed 
State-Changed-By: netchild 
State-Changed-When: Sun Sep 11 19:04:49 GMT 2005 
State-Changed-Why:  
Problem is fixed. 

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