misc/82107: fm801.c fix

Johannes Weiner hnaz at tutorialzone.de
Fri Jun 10 10:50:24 GMT 2005


The following reply was made to PR misc/82107; it has been noted by GNATS.

From: Johannes Weiner <hnaz at tutorialzone.de>
To: bug-followup at 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--


More information about the freebsd-bugs mailing list