From owner-freebsd-bugs@FreeBSD.ORG Fri Jun 10 10:50:24 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org 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 6650C16A41C for ; Fri, 10 Jun 2005 10:50:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B242143D64 for ; Fri, 10 Jun 2005 10:50:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j5AAoMoM002387 for ; Fri, 10 Jun 2005 10:50:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j5AAoMOT002386; Fri, 10 Jun 2005 10:50:22 GMT (envelope-from gnats) Date: Fri, 10 Jun 2005 10:50:22 GMT Message-Id: <200506101050.j5AAoMOT002386@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Johannes Weiner Cc: Subject: Re: misc/82107: fm801.c fix X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Johannes Weiner List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jun 2005 10:50:24 -0000 The following reply was made to PR misc/82107; it has been noted by GNATS. From: Johannes Weiner To: bug-followup@freebsd.org Cc: Subject: Re: misc/82107: fm801.c fix Date: Fri, 10 Jun 2005 12:40:41 +0200 --0eh6TmSyL6TZE2Uz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Here the patch: ######################################## --- fm801.c.old Fri Jun 10 10:37:52 2005 +++ fm801.c Fri Jun 10 10:37:29 2005 @@ -737,7 +737,8 @@ * power-on value should be `0', while on AC97-less * tuner * card (SF64-PCR) it was 0x80. */ - if (bus_space_read_1(st, sh, 0x28) == 0) { + int busrres = bus_space_read_1(st, sh, 0x28); + if (busrres == 0 || busrres == 0x80) { device_set_desc(dev, "Forte Media FM801 Audio Controller"); result = 0; ######################################## Hope that helps. The list is expandable, i heard that more exitcodes are known like 128 instead of 0x80 or 0. Hannes. --0eh6TmSyL6TZE2Uz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCqW4o1heCLyOG8GcRAmyvAJ4p1DUWPuba4NEBqp4gaolCgOc6yACeLk57 NEPhTWievAN1N/QIn5m2gHU= =6pwm -----END PGP SIGNATURE----- --0eh6TmSyL6TZE2Uz--