If a resolution which has been requested over VIDEO_TRY_FMT or
authormglocker <mglocker@openbsd.org>
Sat, 19 Jul 2008 11:30:55 +0000 (11:30 +0000)
committermglocker <mglocker@openbsd.org>
Sat, 19 Jul 2008 11:30:55 +0000 (11:30 +0000)
commit88daba3d668156f00b45e4fb069fe4cc8a3aa810
tree0a094c9a1d65e04a8f5b6029902ab13854bf5f59
parentc723f8ed6f8a92f12a936b0763753d78199330a9
If a resolution which has been requested over VIDEO_TRY_FMT or
VIDEO_S_FMT doesn't exactly match the devices available resolutions,
return the next best matching resolution which we have.

Makes some V4L2 apps happy when running them with the default resolution
(no options).
sys/dev/usb/uvideo.c
sys/dev/usb/uvideo.h