I encountered a strange problem regarding mx8_v4l2_cap_drm.c

cancel
Showing results for 
Search instead for 
Did you mean: 

I encountered a strange problem regarding mx8_v4l2_cap_drm.c

Jump to solution
166 Views
783435100
Contributor III

Dear technical support:
   mx8_v4l2_cap_drm.c,
   I removed part of the DRM code, kept the v4l2 code, compiled my own mx8_v4l2_cap_drm.out with aarch64-linux-gnu-gcc and run it to ioctl(fd_v4l, VIDIOC_S_PARM, &parm). The return value is -1, and the mx8_v4l2_cap_drm.out provided by the system can be normal Run, why? Thank you!

0 Kudos
1 Solution
155 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi 783435100

 

one can try to debug it using Video for Linux API documentation and error codes description :

https://siqueira.tech/doc/drm/userspace-api/media/v4l/vidioc-g-parm.html#c.VIDIOC_S_PARM

https://siqueira.tech/doc/drm/userspace-api/media/gen-errors.html#id1

 

Best regards
igor

View solution in original post

0 Kudos
1 Reply
156 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi 783435100

 

one can try to debug it using Video for Linux API documentation and error codes description :

https://siqueira.tech/doc/drm/userspace-api/media/v4l/vidioc-g-parm.html#c.VIDIOC_S_PARM

https://siqueira.tech/doc/drm/userspace-api/media/gen-errors.html#id1

 

Best regards
igor

View solution in original post

0 Kudos