AnsweredAssumed Answered

getting error on ioctl_enum_fmt_cap

Question asked by shlomi perlman on Feb 21, 2016
Latest reply on Feb 25, 2016 by shlomi perlman



It seems something is preventing getting the "v4l2_fmtdesc" data in my sensor driver:

static int ioctl_enum_fmt_cap(struct v4l2_int_device *s,

                  struct v4l2_fmtdesc *fmt)


if (fmt->index > SOME_MAX_VALUE (usually 8)) {

        return -EINVAL;





every time im trying to init the camera app and this struct is being checked for "fmt->index"

im getting an error value.


where is this function being called from and how do i fix it?