summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorkent <kent@NetBSD.org>2002-10-11 02:32:23 +0000
committerkent <kent@NetBSD.org>2002-10-11 02:32:23 +0000
commit42e4e19119bf5434ab126431ef6e9823021657d4 (patch)
tree9a17a118195826ceafd90ffc21669a98e50f3601 /sys/dev
parent4eb16a0a4f531e52c8ccdb577aaa3568487f1d44 (diff)
ac97_attach(): Restore the default rate value after VRA checking.
This change might solve PR kern/18613.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/ac97.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/ic/ac97.c b/sys/dev/ic/ac97.c
index 2c668fa8883..1dc03275bb6 100644
--- a/sys/dev/ic/ac97.c
+++ b/sys/dev/ic/ac97.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ac97.c,v 1.31 2002/10/09 12:06:17 kent Exp $ */
+/* $NetBSD: ac97.c,v 1.32 2002/10/11 02:32:23 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.31 2002/10/09 12:06:17 kent Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ac97.c,v 1.32 2002/10/11 02:32:23 kent Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -764,6 +764,9 @@ ac97_attach(host_if)
printf("%s: Ignore these capabilities.\n",
sc_dev->dv_xname);
}
+ /* restore the default value */
+ ac97_write(as, AC97_REG_PCM_FRONT_DAC_RATE,
+ AC97_SINGLE_RATE);
}
}