diff options
author | 2008-12-09 06:01:41 +0000 | |
---|---|---|
committer | 2008-12-09 06:01:41 +0000 | |
commit | c187b013a630180737534b1efc121bb70e9e3a0b (patch) | |
tree | c701b9aba554bac510affed50b3e86fe3404decd | |
parent | replace by-hand string building with xasprinf(); ok deraadt@ (diff) | |
download | wireguard-openbsd-c187b013a630180737534b1efc121bb70e9e3a0b.tar.xz wireguard-openbsd-c187b013a630180737534b1efc121bb70e9e3a0b.zip |
Also allow V4L2 apps to recognize the UYVY support.
ok mglocker@
-rw-r--r-- | sys/dev/usb/uvideo.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/usb/uvideo.c b/sys/dev/usb/uvideo.c index 450206e6635..354f3a672a7 100644 --- a/sys/dev/usb/uvideo.c +++ b/sys/dev/usb/uvideo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvideo.c,v 1.103 2008/12/08 22:02:39 deraadt Exp $ */ +/* $OpenBSD: uvideo.c,v 1.104 2008/12/09 06:01:41 brad Exp $ */ /* * Copyright (c) 2008 Robert Nagy <robert@openbsd.org> @@ -2481,6 +2481,11 @@ uvideo_enum_fmt(void *v, struct v4l2_fmtdesc *fmtdesc) (void)strlcpy(fmtdesc->description, "NV12", sizeof(fmtdesc->description)); fmtdesc->pixelformat = V4L2_PIX_FMT_NV12; + } else if (sc->sc_fmtgrp[idx].pixelformat == + V4L2_PIX_FMT_UYVY) { + (void)strlcpy(fmtdesc->description, "UYVY", + sizeof(fmtdesc->description)); + fmtdesc->pixelformat = V4L2_PIX_FMT_UYVY; } else { (void)strlcpy(fmtdesc->description, "Unknown UC Format", sizeof(fmtdesc->description)); |