Skip to content

Commit 9b7c859

Browse files
committed
driver: add support for Guermok HDMI to USB 3.0 capture dongle
This low-cost[1] capture dongle supports MJPEG (and YUYV) and supports up to 3840x2160@18 on USB 3.0 speeds. When connected over USB 2.0, the highest supported mode is 1920x1080@50 as reported by v4l2-ctl[2]. Choose MJPEG to conserve USB bandwidth and add 1920x1080 as default mode. While at it, fix a typo two lines down. [1]: https://www.amazon.de/dp/B08Z3XDYQ7 [2]: https://gist.github.com/a3f/70b1156464caa670a469c86912e4ba9c Signed-off-by: Ahmad Fatoum <[email protected]>
1 parent 881de63 commit 9b7c859

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ New Features in 25.1
99
CTRL+D specially to halt autoboot countdown without running interactive
1010
hooks like bringing up network interfaces automatically.
1111

12+
- Guermok HDMI to USB 3.0 capture dongle supported
13+
1214
Breaking changes in 25.1
1315
~~~~~~~~~~~~~~~~~~~~~~~~
1416
- The deprecated pytest plugin option ``--env-config`` has been removed. Use

labgrid/driver/usbvideodriver.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,14 @@ def get_qualities(self):
7575
("mid", "image/jpeg,width=864,height=480,pixel-aspect-ratio=1/1,framerate=30/1"),
7676
("high", "image/jpeg,width=1280,height=1024,pixel-aspect-ratio=1/1,framerate=30/1"),
7777
])
78+
elif match == (0x345f, 0x2130): # UltraSemi USB3 Video
79+
return ("mid", [
80+
("low", "image/jpeg,width=1024,height=768,pixel-aspect-ratio=1/1,framerate=30/1"),
81+
("mid", "image/jpeg,width=1920,height=1080,pixel-aspect-ratio=1/1,framerate=30/1"),
82+
("high", "image/jpeg,width=3840,height=2160,pixel-aspect-ratio=1/1,framerate=18/1"),
83+
])
7884
self.logger.warning(
79-
"Unkown USB video device {:04x}:{:04x}, using fallback pipeline."
85+
"Unknown USB video device {:04x}:{:04x}, using fallback pipeline."
8086
.format(*match))
8187
return ("mid", [
8288
("low", "image/jpeg,width=640,height=480,framerate=30/1"),

0 commit comments

Comments
 (0)