Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/isapnp Set "mode" to 2 at the correct time.



details:   https://anonhg.NetBSD.org/src/rev/2c9439730461
branches:  trunk
changeset: 771479:2c9439730461
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Tue Nov 22 19:33:38 2011 +0000

description:
Set "mode" to 2 at the correct time.
Fixes recording on some isapnp(4) wss(4) chips.

diffstat:

 sys/dev/isapnp/wss_isapnp.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 1ac3cb5f3d53 -r 2c9439730461 sys/dev/isapnp/wss_isapnp.c
--- a/sys/dev/isapnp/wss_isapnp.c       Tue Nov 22 18:42:56 2011 +0000
+++ b/sys/dev/isapnp/wss_isapnp.c       Tue Nov 22 19:33:38 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wss_isapnp.c,v 1.26 2011/06/02 14:12:25 tsutsui Exp $  */
+/*     $NetBSD: wss_isapnp.c,v 1.27 2011/11/22 19:33:38 jakllsch Exp $ */
 
 /*
  * Copyright (c) 1997, 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wss_isapnp.c,v 1.26 2011/06/02 14:12:25 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wss_isapnp.c,v 1.27 2011/11/22 19:33:38 jakllsch Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -144,7 +144,6 @@
        /* Set up AD1848 I/O handle. */
        ac->sc_iot = sc->sc_iot;
        ac->sc_ioh = sc->sc_ioh;
-       ac->mode = 2;
 
        sc->sc_ad1848.sc_ic = ipa->ipa_ic;
 
@@ -162,6 +161,8 @@
        aprint_error_dev(self, "%s %s", ipa->ipa_devident,
            ipa->ipa_devclass);
 
+       ac->mode = 2;
+
        wssattach(sc);
 
        /* set up OPL I/O handle for ISAPNP boards w/o MAD */



Home | Main Index | Thread Index | Old Index