summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2008-12-03 08:32:19 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2008-12-03 08:32:19 +0000
commit5707790b7fc9431f7603c66bd5da8e2f7ed92833 (patch)
tree9542ada72bc26fbe7bb22878db6ffa2d8dae193f /sys/dev/usb
parent1b5b6926f86e09ce4173f4cbf6f29af2cc78b9ab (diff)
- Fix unit for dwFrameInterval in DPRINTF.
- Add a comment from yuo@ which describes dwFrameInterval values a bit.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/uvideo.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/usb/uvideo.c b/sys/dev/usb/uvideo.c
index af5b4b25151..ec46bc3559d 100644
--- a/sys/dev/usb/uvideo.c
+++ b/sys/dev/usb/uvideo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvideo.c,v 1.97 2008/12/03 05:18:29 mglocker Exp $ */
+/* $OpenBSD: uvideo.c,v 1.98 2008/12/03 08:32:18 mglocker Exp $ */
/*
* Copyright (c) 2008 Robert Nagy <robert@openbsd.org>
@@ -1182,6 +1182,7 @@ uvideo_vs_negotiation(struct uvideo_softc *sc, int commit)
USETW(pc->bmHint, 0x1);
pc->bFormatIndex = sc->sc_fmtgrp_cur->format->bFormatIndex;
pc->bFrameIndex = sc->sc_fmtgrp_cur->format_dfidx;
+ /* dwFrameInterval: 30fps=333333, 15fps=666666, 10fps=100000 */
USETDW(pc->dwFrameInterval,
UGETDW(sc->sc_fmtgrp_cur->frame_cur->dwDefaultFrameInterval));
USETDW(pc->dwMaxVideoFrameSize, 0);
@@ -1238,7 +1239,8 @@ uvideo_vs_set_probe(struct uvideo_softc *sc, uint8_t *probe_data)
DPRINTF(1, "bmHint=0x%02x\n", UGETW(pc->bmHint));
DPRINTF(1, "bFormatIndex=0x%02x\n", pc->bFormatIndex);
DPRINTF(1, "bFrameIndex=0x%02x\n", pc->bFrameIndex);
- DPRINTF(1, "dwFrameInterval=%d (ns)\n", UGETDW(pc->dwFrameInterval));
+ DPRINTF(1, "dwFrameInterval=%d (100ns units)\n",
+ UGETDW(pc->dwFrameInterval));
DPRINTF(1, "wKeyFrameRate=%d\n", UGETW(pc->wKeyFrameRate));
DPRINTF(1, "wPFrameRate=%d\n", UGETW(pc->wPFrameRate));
DPRINTF(1, "wCompQuality=%d\n", UGETW(pc->wCompQuality));
@@ -1282,7 +1284,8 @@ uvideo_vs_get_probe(struct uvideo_softc *sc, uint8_t *probe_data,
DPRINTF(1, "bmHint=0x%02x\n", UGETW(pc->bmHint));
DPRINTF(1, "bFormatIndex=0x%02x\n", pc->bFormatIndex);
DPRINTF(1, "bFrameIndex=0x%02x\n", pc->bFrameIndex);
- DPRINTF(1, "dwFrameInterval=%d (ns)\n", UGETDW(pc->dwFrameInterval));
+ DPRINTF(1, "dwFrameInterval=%d (100ns units)\n",
+ UGETDW(pc->dwFrameInterval));
DPRINTF(1, "wKeyFrameRate=%d\n", UGETW(pc->wKeyFrameRate));
DPRINTF(1, "wPFrameRate=%d\n", UGETW(pc->wPFrameRate));
DPRINTF(1, "wCompQuality=%d\n", UGETW(pc->wCompQuality));