Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic An ICH board needs reading AC97_REG_RESET before ...



details:   https://anonhg.NetBSD.org/src/rev/dbdf00315203
branches:  trunk
changeset: 555659:dbdf00315203
user:      kent <kent%NetBSD.org@localhost>
date:      Mon Nov 24 16:05:10 2003 +0000

description:
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

diffstat:

 sys/dev/ic/ac97.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 7e38d8acf24f -r dbdf00315203 sys/dev/ic/ac97.c
--- a/sys/dev/ic/ac97.c Mon Nov 24 15:06:09 2003 +0000
+++ b/sys/dev/ic/ac97.c Mon Nov 24 16:05:10 2003 +0000
@@ -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 <sys/cdefs.h>
-__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 <sys/param.h>
 #include <sys/systm.h>
@@ -887,9 +887,9 @@
                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;
 



Home | Main Index | Thread Index | Old Index