Commit fca0513b authored by Jakob Bornecrantz's avatar Jakob Bornecrantz Committed by Jakob Bornecrantz
Browse files

d/v4l2: Print out the card name during debugging

parent 0df88ded
......@@ -272,6 +272,11 @@ v4l2_query_cap_and_validate(struct v4l2_fs *vid)
return ret;
char *card = (char *)cap.card;
snprintf(vid->, sizeof(vid->, "%s", card);
V_DEBUG(vid, "V4L2 device: '%s'", vid->;
if (!(cap.capabilities & V4L2_CAP_VIDEO_CAPTURE)) {
// not a video device
V_ERROR(vid, "error: Is not a capture device.");
......@@ -314,9 +319,6 @@ v4l2_query_cap_and_validate(struct v4l2_fs *vid)
* Find quirks
char *card = (char *)cap.card;
snprintf(vid->, sizeof(vid->, "%s", card);
vid->quirks.ps4_cam =
strcmp(card, "USB Camera-OV580: USB Camera-OV") == 0;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment