Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Mar 2003 23:27:06 +0100 (CET)
From:      Luuk van Dijk <lvd@mndmttr.nl>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/49037: ESS Maestro chip misdetected as 'chip2'
Message-ID:  <200303082227.h28MR6lG000420@wonder.mndmttr.nl>

next in thread | raw e-mail | index | archive | help

>Number:         49037
>Category:       kern
>Synopsis:       ESS Maestro chip misdetected as 'chip2'
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 08 14:40:06 PST 2003
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303082227.h28MR6lG000420>