执行结果如下:
[ 24.525856] s3c-fimc-0 : fimc_enum_fmt_vid_capture: No capture device.
用自带的安卓4.0测试过摄像头,是接上了的,
追到内核源码中:
int fimc_enum_fmt_vid_capture(struct file *file, void *fh,
struct v4l2_fmtdesc *f)
{
struct fimc_control *ctrl = ((struct fimc_prv_data *)fh)->ctrl;
int i = f->index;
int num_entries = 0;
int ret = 0;
fimc_dbg("%s\n", __func__);
if (!ctrl->cam || !ctrl->cam->sd) {
fimc_err("%s: No capture device.\n", __func__); ///////////////////这里发现没有camera和sd
return -ENODEV;
}