From owner-freebsd-bugs Sat Mar 8 14:40:18 2003 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBA8E37B404 for ; Sat, 8 Mar 2003 14:40:14 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3058643FDD for ; Sat, 8 Mar 2003 14:40:07 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h28Me7NS087470 for ; Sat, 8 Mar 2003 14:40:07 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h28Me7pE087469; Sat, 8 Mar 2003 14:40:07 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABB6337B401 for ; 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 ; 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 ; 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 Reply-To: Luuk van Dijk To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/49037: ESS Maestro chip misdetected as 'chip2' Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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