diff options
author | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2010-10-18 23:20:16 +0000 |
---|---|---|
committer | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2010-10-18 23:20:16 +0000 |
commit | 2fef109ae4249521c99a7416d9585451e6f9bea2 (patch) | |
tree | d70a41905344da78c106920395015e56cbd26ebf /sys | |
parent | fb66b24925bc93c7cd7cffe25d6eeb0fd7d8a783 (diff) |
when configuring the streaming interface with the video probe and
commit controls, use the hardware frame idenfitier instead of the
software identifier since they can differ, and the hardware only
knows about it's own identifiers
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 8d97b9a5e12..0fa41d4a502 100644 --- a/sys/dev/usb/uvideo.c +++ b/sys/dev/usb/uvideo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvideo.c,v 1.143 2010/10/18 23:12:40 jakemsr Exp $ */ +/* $OpenBSD: uvideo.c,v 1.144 2010/10/18 23:20:15 jakemsr Exp $ */ /* * Copyright (c) 2008 Robert Nagy <robert@openbsd.org> @@ -1346,7 +1346,7 @@ uvideo_find_res(struct uvideo_softc *sc, int idx, int width, int height, diff_best = diff; r->width = w; r->height = h; - r->fidx = i; + r->fidx = sc->sc_fmtgrp[idx].frame[i]->bFrameIndex; } DPRINTF(1, "%s: %s: frame index %d: width=%d, height=%d\n", DEVNAME(sc), __func__, i, w, h); |