summaryrefslogtreecommitdiff
path: root/sys/dev/pci/azalia.c
diff options
context:
space:
mode:
authorJacob Meuser <jakemsr@cvs.openbsd.org>2009-09-10 22:59:47 +0000
committerJacob Meuser <jakemsr@cvs.openbsd.org>2009-09-10 22:59:47 +0000
commitc079f1bb1896f72cc5ebd5b3c332993fee7909ea (patch)
treef51dfacca33b0120dff0b0e8e15c24f72ce8db4c /sys/dev/pci/azalia.c
parentbea5f257996111c06f5cf36636fad9c452d254d7 (diff)
better to wait for codecs to finish resetting in azalia_reset()
rather than in it's user(s)
Diffstat (limited to 'sys/dev/pci/azalia.c')
-rw-r--r--sys/dev/pci/azalia.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/azalia.c b/sys/dev/pci/azalia.c
index 5f745d97d37..d5bd69cccf5 100644
--- a/sys/dev/pci/azalia.c
+++ b/sys/dev/pci/azalia.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: azalia.c,v 1.149 2009/09/09 22:25:03 jakemsr Exp $ */
+/* $OpenBSD: azalia.c,v 1.150 2009/09/10 22:59:46 jakemsr Exp $ */
/* $NetBSD: azalia.c,v 1.20 2006/05/07 08:31:44 kent Exp $ */
/*-
@@ -640,6 +640,7 @@ azalia_reset(azalia_t *az)
printf("%s: reset-exit failure\n", XNAME(az));
return(ETIMEDOUT);
}
+ DELAY(1000);
return(0);
}
@@ -667,7 +668,6 @@ azalia_init(azalia_t *az)
return(err);
/* 4.3 Codec discovery */
- DELAY(1000);
statests = AZ_READ_2(az, STATESTS);
for (i = 0, n = 0; i < 15; i++) {
if ((statests >> i) & 1) {