Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jun 2005 10:50:22 GMT
From:      Johannes Weiner <hnaz@tutorialzone.de>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/82107: fm801.c fix
Message-ID:  <200506101050.j5AAoMOT002386@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/82107; it has been noted by GNATS.

From: Johannes Weiner <hnaz@tutorialzone.de>
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--



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