diff options
author | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2008-10-02 18:29:41 +0000 |
---|---|---|
committer | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2008-10-02 18:29:41 +0000 |
commit | 2a7874f99de410f1f945ddabeab314800c8c52bd (patch) | |
tree | c58c904fb15668a834c26f90bb92f04e419836bc /sys/dev/pci/auviavar.h | |
parent | 062f4c18445ce835506656182a95f522dbf7b5b8 (diff) |
according to the alsa driver for these devices, the hardware provides
256 buffer descriptors, and the 256th descriptor is flakey. this
driver uses one descriptor for each block of the buffer, so we need
to make sure buffer size / block size < 256, or we will run out of
usable descriptors.
lets me play youtube videos via gnash on my auvia equipped machine.
ok ratchov@
Diffstat (limited to 'sys/dev/pci/auviavar.h')
-rw-r--r-- | sys/dev/pci/auviavar.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/auviavar.h b/sys/dev/pci/auviavar.h index 93904ccb69f..d83879ab9c4 100644 --- a/sys/dev/pci/auviavar.h +++ b/sys/dev/pci/auviavar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: auviavar.h,v 1.9 2008/06/26 05:42:17 ray Exp $ */ +/* $OpenBSD: auviavar.h,v 1.10 2008/10/02 18:29:40 jakemsr Exp $ */ /* $NetBSD: auviavar.h,v 1.1 2000/03/31 04:45:29 tsarna Exp $ */ /*- @@ -62,10 +62,13 @@ struct auvia_softc { struct ac97_host_if host_if; struct ac97_codec_if *codec_if; + int bufsize; struct auvia_dma *sc_dmas; struct auvia_softc_chan sc_play, sc_record; }; +#define AUVIA_DMALIST_MAX 255 + #endif |