diff --git a/sys/arch/amiga/dev/repulse.c b/sys/arch/amiga/dev/repulse.c index 56e1f86d89b0..3a492d8ebd06 100644 --- a/sys/arch/amiga/dev/repulse.c +++ b/sys/arch/amiga/dev/repulse.c @@ -1,4 +1,4 @@ -/* $NetBSD: repulse.c,v 1.6 2002/10/02 04:55:52 thorpej Exp $ */ +/* $NetBSD: repulse.c,v 1.7 2002/10/08 18:01:42 kent Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: repulse.c,v 1.6 2002/10/02 04:55:52 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: repulse.c,v 1.7 2002/10/08 18:01:42 kent Exp $"); #include #include @@ -335,16 +335,13 @@ repulse_attach(struct device *parent, struct device *self, void *aux) { * XXX this should be a panic(). OTOH, audio codec speed is not * important enough to do this. */ - if (repac_read(sc, AC97_REG_EXTENDED_ID, &a) - || !(a & AC97_CODEC_DOES_VRA)) { + a = sc->sc_codec_if->vtbl->get_extcaps(sc->sc_codec_if); + if (!(a & AC97_EXT_AUDIO_VRA)) { printf("%s: warning: codec doesn't support " "hardware AC'97 2.0 Variable Rate Audio\n", sc->sc_dev.dv_xname); } #endif - /* enable VRA */ - repac_write(sc, AC97_REG_EXTENDED_STATUS, - AC97_ENAB_VRA | AC97_ENAB_MICVRA); /* * from auvia.c: disable mutes ...