i am working on imx8mn (part no:-MIMX8MN1CVTIZAA) processor. and camera sensor ar0521
i am successfully captured black and white image from sensor.
but now i want to captured color image from sensor
i change the imx8-isi-cap.c file function,
mxc_isi_subdev_get_fmt(struct v4l2_subdev *sd,
struct v4l2_subdev_pad_config *cfg,
struct v4l2_subdev_format *fmt)
and
other function
static int mxc_isi_cap_g_fmt_mplane(struct file *file, void *fh,
struct v4l2_format *f)
give a color format
pix->colorspace = V4L2_COLORSPACE_SRGB;
but i new for v4l2 and camera sensor driver so help me what are change required (imx8-isi-cap.c or imx8-mipi-csi2-sam.c or other file) need to change for capture colour image from camera sensor ar0521
thanks
what capture format do you use? and what bsp version do you use?
i use capture format
src_fmt.pad = source_pad->index;
src_fmt.pad = source_pad->index;
src_fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE;
src_fmt.format.code = MEDIA_BUS_FMT_SGRBG8_1X8;
src_fmt.format.width = dst_f->width;//2592
src_fmt.format.height = dst_f->height;//1944
and i use BSP is based on version 5.4.70
thanks
how about use v4l2 to test?
v4l2-ctl -d /dev/videox --set-fmt-video=width=xx,height=xx,pixelformat=format --stream-mmap
replace x and format as your own request