Set "mode" to 2 at the correct time.

Fixes recording on some isapnp(4) wss(4) chips.
This commit is contained in:
jakllsch 2011-11-22 19:33:38 +00:00
parent 0f8d4dff8d
commit bc81369a28
1 changed files with 4 additions and 3 deletions

View File

@ -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 @@ wss_isapnp_attach(device_t parent, device_t self, void *aux)
/* 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 @@ wss_isapnp_attach(device_t parent, device_t self, void *aux)
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 */