diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2008-12-10 21:20:48 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2008-12-10 21:20:48 +0000 |
commit | d4b65c2b413dfe5d68842e1d160c270be28411b5 (patch) | |
tree | fcdc911e121f81e16623a0ce0579cd7f8e8ac875 /sys | |
parent | 8e2ed888f577740d6d8a46265fc595958d1beda0 (diff) |
Fix ohci xfers for some devices by adjusting the number of microframes to
a static value of 8.
Regression tested by todd@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/uvideo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uvideo.c b/sys/dev/usb/uvideo.c index fa8848b0973..c8f391de937 100644 --- a/sys/dev/usb/uvideo.c +++ b/sys/dev/usb/uvideo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvideo.c,v 1.106 2008/12/10 11:43:18 mglocker Exp $ */ +/* $OpenBSD: uvideo.c,v 1.107 2008/12/10 21:20:47 mglocker Exp $ */ /* * Copyright (c) 2008 Robert Nagy <robert@openbsd.org> @@ -1565,7 +1565,7 @@ uvideo_vs_open(struct uvideo_softc *sc) /* calculate optimal isoc xfer size */ if (strncmp(sc->sc_udev->bus->bdev.dv_xname, "ohci", 4) == 0) { /* ohci workaround */ - sc->sc_nframes = 6400 / sc->sc_vs_cur->psize; + sc->sc_nframes = 8; } else { dwMaxVideoFrameSize = UGETDW(sc->sc_desc_probe.dwMaxVideoFrameSize); |