summaryrefslogtreecommitdiff
path: root/sys/dev/pci/envyvar.h
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2015-07-29 21:10:51 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2015-07-29 21:10:51 +0000
commitb7f8c531bdd6eae84181af0170a13e3ddca0edde (patch)
tree352e3e62b46f88d1f288114c75e78db46349c636 /sys/dev/pci/envyvar.h
parent3a229ae2b14aa48c82609b6e7aa1636a41b2d79d (diff)
Use DMA pointer determine the number of times the audio(4) layer has
to advance in time. This is needed to properly recover, when interrupts are blocked for too long. Fixes permanent distortion on MP systems. ok deraadt
Diffstat (limited to 'sys/dev/pci/envyvar.h')
-rw-r--r--sys/dev/pci/envyvar.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/envyvar.h b/sys/dev/pci/envyvar.h
index c9347f7125f..99164478275 100644
--- a/sys/dev/pci/envyvar.h
+++ b/sys/dev/pci/envyvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: envyvar.h,v 1.16 2010/10/04 09:32:43 ratchov Exp $ */
+/* $OpenBSD: envyvar.h,v 1.17 2015/07/29 21:10:50 ratchov Exp $ */
/*
* Copyright (c) 2007 Alexandre Ratchov <alex@caoua.org>
*
@@ -31,6 +31,9 @@ struct envy_buf {
bus_dmamap_t map;
caddr_t addr;
size_t size;
+ unsigned int swpos;
+ unsigned int bufsz;
+ unsigned int blksz;
};
struct envy_codec {