This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

I cann't get SOC-Cammel:TW9910 work!

Other Parts Discussed in Thread: OMAP-L138
 I want to capture video stream in OMAP-L138, my linux kernel is 3.2.2(Davinci). But I got many wrong. For example:
    
ioctl(fd, VIDIOC_G_STD, &id))   will break at
static int vpif_g_fmt_vid_cap(struct file *file, void *priv,
struct v4l2_format *fmt)
{
struct vpif_fh *fh = priv;
struct channel_obj *ch = fh->channel;
struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX];
 
/* Check the validity of the buffer type */
printk("vpif g_fmt common->fmt.type[%d] != fmt->type[%d]\n", common->fmt.type, fmt->type);   ///fmt->type=0, fmt->type=1
if (common->fmt.type != fmt->type)
return -EINVAL;
 
/* Fill in the information about format */
*fmt = common->fmt;
return 0;
}
 
What wrong about this?
Who can help me to resolve it?
 
Thanks very much!