From f2680f731e517f2aae9177a0bda1ae7fb3be9a9f Mon Sep 17 00:00:00 2001 From: kent Date: Mon, 24 Nov 2003 16:05:10 +0000 Subject: [PATCH] An ICH board needs reading AC97_REG_RESET before reading AC97_VENDOR_ID. (why?) http://mail-index.netbsd.org/current-users/2003/11/22/0007.html --- sys/dev/ic/ac97.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/ic/ac97.c b/sys/dev/ic/ac97.c index a221935fb22a..ab32ac2e15a3 100644 --- a/sys/dev/ic/ac97.c +++ b/sys/dev/ic/ac97.c @@ -1,4 +1,4 @@ -/* $NetBSD: ac97.c,v 1.51 2003/11/22 06:15:29 kent Exp $ */ +/* $NetBSD: ac97.c,v 1.52 2003/11/24 16:05:10 kent Exp $ */ /* $OpenBSD: ac97.c,v 1.8 2000/07/19 09:01:35 csapuntz Exp $ */ /* @@ -63,7 +63,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ac97.c,v 1.51 2003/11/22 06:15:29 kent Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ac97.c,v 1.52 2003/11/24 16:05:10 kent Exp $"); #include #include @@ -887,9 +887,9 @@ ac97_attach(struct ac97_host_if *host_if) as->host_flags = host_if->flags(host_if->arg); ac97_setup_defaults(as); + ac97_read(as, AC97_REG_RESET, &as->caps); ac97_read(as, AC97_REG_VENDOR_ID1, &id1); ac97_read(as, AC97_REG_VENDOR_ID2, &id2); - ac97_read(as, AC97_REG_RESET, &as->caps); id = (id1 << 16) | id2;