Skip to content

Commit

Permalink
Merge pull request #937 from tksc/topic/add-AUKEY-PC-LM1E-support
Browse files Browse the repository at this point in the history
driver/usbvideodriver: add support for AUKEY PC-LM1E
  • Loading branch information
jluebbe authored Jun 27, 2022
2 parents 5d78a63 + 7994ac5 commit dffc61d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions labgrid/driver/usbvideodriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ def get_qualities(self):
("mid", "video/x-h264,width=1280,height=720,framerate=25/1"),
("high", "video/x-h264,width=1920,height=1080,framerate=25/1"),
])
if match == (0x0c45, 0x636d): # AUKEY PC-LM1E
return ("mid", [
("low", "image/jpeg,width=640,height=480,pixel-aspect-ratio=1/1,framerate=30/1"),
("mid", "image/jpeg,width=864,height=480,pixel-aspect-ratio=1/1,framerate=30/1"),
("high", "image/jpeg,width=1280,height=1024,pixel-aspect-ratio=1/1,framerate=30/1"),
])
self.logger.warning(
"Unkown USB video device {:04x}:{:04x}, using fallback pipeline."
.format(*match))
Expand Down Expand Up @@ -105,6 +111,9 @@ def get_pipeline(self, path, caps, controls=None):
elif match == (0x1d6c, 0x0103):
controls = controls or "focus_auto=1"
inner = "h264parse"
elif match == (0x0c54, 0x636d):
controls = controls or "focus_auto=1"
inner = None # just forward the jpeg frames
else: # fallback pipeline
inner = None # just forward the jpeg frames

Expand Down

0 comments on commit dffc61d

Please sign in to comment.