Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gspca_kinect2: probe failed with error -22 #7

Open
BOFH2k opened this issue May 31, 2020 · 5 comments · May be fixed by #8
Open

gspca_kinect2: probe failed with error -22 #7

BOFH2k opened this issue May 31, 2020 · 5 comments · May be fixed by #8

Comments

@BOFH2k
Copy link

BOFH2k commented May 31, 2020

Similar probing issue to #3 (even after adding the CFLAG from #6, fixing the Makefile and properly inserting the modules) with kernel 5.4.0-33-generic in Ubuntu 20.04:

[ 2876.003031] gspca_main: video_register_device err -22
[ 2876.003076] gspca_kinect2: probe of 11-2.1:1.0 failed with error -22

Details:
dmesg.txt

The Kinect v2 for Windows hardware work fine in Windows 10 and the simple libk4w2 libk4w2 test script runs fine as well, while the opengl test script fails:

libk4w2/src/driver_v4l2.c:50 Cannot identify '/dev/video0'; No such file or directory
@thamma
Copy link

thamma commented Jun 1, 2020

Thanks for posting.

After loading several kernel modules (including videobuf2-v4l2, videodev, videobuf2_vmalloc, videobuf2-common, videobuf2-memops), and successfully building using said make commands, I get error -22 as well on 5.6.14 on Arch Linux.

grandchild added a commit to grandchild/gspca-kinect2 that referenced this issue Jun 5, 2020
torvalds/linux@3c13505 broke this driver, requiring the video device's
device_caps be set in advance.

Set the same device caps that are reported from vidioc_querycap().

Fixes yoshimoto#7.
@grandchild grandchild linked a pull request Jun 5, 2020 that will close this issue
grandchild added a commit to grandchild/gspca-kinect2 that referenced this issue Jun 5, 2020
torvalds/linux@3c13505 broke this driver, requiring the video device's
device_caps be set in advance.

Set the same device caps that are reported from vidioc_querycap().

Fixes yoshimoto#7.
@grandchild
Copy link

I managed to fix this :)

@BOFH2k
Copy link
Author

BOFH2k commented Jun 12, 2020

I can attest to your branch solving the probe issue.
Could you actually use the webcam then?

@BOFH2k BOFH2k closed this as completed Jun 12, 2020
@grandchild
Copy link

Yes. See, again, here and above.

@grandchild
Copy link

And maybe leave the issue open, since the PR is not actually merged...

@BOFH2k BOFH2k reopened this Jun 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants