I am debuging the tw9900 on linux 3.0.35 platform.Tw9900 is a video decoder.I modified the tw9900 accroding to the adv7180.I am using the mxc_v4l2_tvin.c to test the tw9900.c.It was reporting the error as follows in kernel on mxc_v4l2_capture.c: ERROR:v4l2 captue:width or height too small In mxc_v4l2_tvin.c,when I run ioctl(fd_capture_v4l,VIDIOC_S_FMT,&fmt),it was reported ERROR in APP:iformat not supported,and in kernel driver:it was reported error:ERROR:v4l2 capture wigth or height too small Attachment is my driver and test application Can you anyone help me?Why i run VIDIOC_S_FMT,it was reported ERROR:v4l2 capture wigth or height too small
Original Attachment has been moved to: tw9900.c.zip
Original Attachment has been moved to: mxc_v4l2_tvin.c.zip
HI,:
I have already add the printk in my program,it stopped here:
on mxc_v4l2_s_fmt in mxc_v4l2_capture.c
It reported error :
if (*width == 0 || *height == 0) {
pr_err("ERROR: v4l2 capture: width or height"
" too small.\n");
return -EINVAL;
}
Do you have the test application for camera ?Can you give me an example?