Skip to content

Commit dffc61d

Browse files
authored
Merge pull request #937 from tksc/topic/add-AUKEY-PC-LM1E-support
driver/usbvideodriver: add support for AUKEY PC-LM1E
2 parents 5d78a63 + 7994ac5 commit dffc61d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

labgrid/driver/usbvideodriver.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ def get_qualities(self):
6666
("mid", "video/x-h264,width=1280,height=720,framerate=25/1"),
6767
("high", "video/x-h264,width=1920,height=1080,framerate=25/1"),
6868
])
69+
if match == (0x0c45, 0x636d): # AUKEY PC-LM1E
70+
return ("mid", [
71+
("low", "image/jpeg,width=640,height=480,pixel-aspect-ratio=1/1,framerate=30/1"),
72+
("mid", "image/jpeg,width=864,height=480,pixel-aspect-ratio=1/1,framerate=30/1"),
73+
("high", "image/jpeg,width=1280,height=1024,pixel-aspect-ratio=1/1,framerate=30/1"),
74+
])
6975
self.logger.warning(
7076
"Unkown USB video device {:04x}:{:04x}, using fallback pipeline."
7177
.format(*match))
@@ -105,6 +111,9 @@ def get_pipeline(self, path, caps, controls=None):
105111
elif match == (0x1d6c, 0x0103):
106112
controls = controls or "focus_auto=1"
107113
inner = "h264parse"
114+
elif match == (0x0c54, 0x636d):
115+
controls = controls or "focus_auto=1"
116+
inner = None # just forward the jpeg frames
108117
else: # fallback pipeline
109118
inner = None # just forward the jpeg frames
110119

0 commit comments

Comments
 (0)