I am debuging tw9900,it was reported error :ERROR: v4l2 capture width or height too samll in kernel driver

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I am debuging tw9900,it was reported error :ERROR: v4l2 capture width or height too samll in kernel driver

1,010 Views
tangyuan
Contributor III

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

Labels (3)
0 Kudos
Reply
3 Replies

570 Views
jimmychan
NXP TechSupport
NXP TechSupport

I think you should add the printk in your program to check where it stop.

0 Kudos
Reply

570 Views
tangyuan
Contributor III

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?

0 Kudos
Reply

570 Views
jimmychan
NXP TechSupport
NXP TechSupport

this link may helpful for you.http://bbs.21ic.com/icview-756820-1-1.html

0 Kudos
Reply