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.

dm3730+tvp514x驱动

Other Parts Discussed in Thread: TVP5158, DM3730, TVP5146, TVP5146M2

我在dm3730下的开发tvp5158驱动。借用tvp514x-int.c的模板,下载到dm3730板子上去,cat /proce/devices发现只有81 Linux for video,但是ls /dev没有出现,/dev/video设备节点。这是怎么回事呢?

我在内核2.6.32,tvp514x+dm3730的驱动涉及到的文件中:omap34xxcam.c,tvp514x.c,isp.c等,发现在omap34xxcam.c文件中有:

static struct v4l2_int_master omap34xxcam_master = {
.attach = omap34xxcam_device_register,
.detach = omap34xxcam_device_unregister,
}; 

omap34xxcam_device_register用于video_register_device注册/dev/video节点,但是我发现没有程序去调用attach,.以至于我运行程序后说没有找到/dev/video。

现在很想知道谁调用了attach

(plus:我发现在内核2.6.37中由isp.c文件去调用video_register_device函数去注册/dev/video)