AnsweredAssumed Answered

What's the relationship between "capture" camera driver and "subdev" camera driver in kernel 3.14?

Question asked by Dehuan Xin on May 2, 2016
Latest reply on May 13, 2016 by Dehuan Xin

I'm studying ov5640_mipi camera driver in 3.14 kernel and trying to add a driver for a custom MIPI-CSI camera.

I see ov5640_mipi has two drivers in linux-fslc/drivers/media/platform/mxc/capture at 3.14-1.0.x-mx6 · Freescale/linux-fslc · GitHub and also in linux-fslc/drivers/media/platform/mxc/subdev at 3.14-1.0.x-mx6 · Freescale/linux-fslc · GitHub  .

It seems to me that the subdev driver is newly added in 3.14 and does not exist in 3.10, but thethe two share the same kernel config macro.


Question: if I want to add driver to support a custom MIPI-CSI camera, which one shall I use as a template?