I encountered a strange problem regarding mx8_v4l2_cap_drm.c

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

I encountered a strange problem regarding mx8_v4l2_cap_drm.c

跳至解决方案
1,142 次查看
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 项奖励
回复
1 解答
1,131 次查看
igorpadykov
NXP Employee
NXP Employee

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

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,132 次查看
igorpadykov
NXP Employee
NXP Employee

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

0 项奖励
回复