Closed kevinshieh0225 closed 2 years ago
The origin version fail on VIDEOC_CREATE_BUFS test when test case attempt to create with wrong format buffer and expect to see EINVAL return value.
VIDEOC_CREATE_BUFS
EINVAL
While function vb2_ioctl_create_bufs relative to vb2ops.queue_setup , modify vcam_out_queue_setup for buffer size error check.
vb2_ioctl_create_bufs
vb2ops.queue_setup
vcam_out_queue_setup
The implementation is reference from akvcam/buffers.c About vb2_ops.queue_setup version can be confirm from:
akvcam/buffers.c
Actually, vcam focuses on kernel v4.15 to v5.10+.
vcam
Thanks for @WayneLin1992 's comment. While it is no need to maintain version before v4.15, so I remove the version check
The origin version fail on
VIDEOC_CREATE_BUFS
test when test case attempt to create with wrong format buffer and expect to seeEINVAL
return value.While function
vb2_ioctl_create_bufs
relative tovb2ops.queue_setup
, modifyvcam_out_queue_setup
for buffer size error check.The implementation is reference from
akvcam/buffers.c
About vb2_ops.queue_setup version can be confirm from: