In fact ,what I am dealing with is s3c2440 camera interface.I have a ov9650 camera senser and I want to get a v4l2 driver for it . I'm trying to do it myself,however my knowlegde is not enough. May it's more chip specific other than arm architecture related.Anyway thanks for your (Guennadi Liakhovetski and Jonathan Cameron)reply.<br>
<br><div class="gmail_quote">2009/11/2 Jonathan Cameron <span dir="ltr"><<a href="mailto:jic23@cam.ac.uk">jic23@cam.ac.uk</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">dean_go Zhang wrote:<br>
> I'm reading to documentation in linux-2.6.30,and ov7670 driver ,and I'm<br>
> trying to make a driver for ov9650.<br>
><br>
> struct soc_camera_ops provides .probe and .remove methods, which are<br>
> called by<br>
> the soc-camera core, when a camera is matched against or removed<br>
> from a camera<br>
> host bus, .init, .release, .suspend, and .resume are called from the<br>
> camera host<br>
> driver as discussed above. Other members of this struct provide<br>
> respective V4L2<br>
> functionality.<br>
><br>
><br>
> This is from the documentation,but I didn't find any thing about<br>
> soc_camera_host_device in ov7670's driver code.<br>
> Does anyone know how to make a v4l2 soc camera driver?<br>
</div></div>This isn't really an arm related question. Should really be asked on<br>
linux-media. (now cc'd along with Guennadi)<br>
<br>
Having said that...<br>
<br>
The reason you aren't finding soc camera related stuff in the ov7670 driver<br>
is that it isn't currently a soc camera driver. There is ongoing work to<br>
move the soc-camera framework fully over to using v4l2-subdevs thus allowing<br>
drivers like this one to work both with soc-camera interfaces and others.<br>
<br>
There are still a few elements being cleaned up (primarily to do with<br>
negotiation of image formats) that make it tricky for a single driver to<br>
directly support use through soc camera and without it.<br>
<br>
I would suggest looking in the linux-media archive for<br>
Guennanadi Liakhovetski's latest imagebus patches for what still needs doing.<br>
<br>
In meantime, the following patch against 2.6.32-rc5 adds soc camera support to the<br>
ov7670 driver. I've been posting updates tracking Guennadi's changes to soc camera<br>
to linux-media (though I haven't had a chance to do the recent imagebus changes yet).<br>
<br>
Unfortunately omnivision aren't exactly free with datasheets (I can get the ov9650 from<br>
google but not the ov9640), so I can't check, but based purely on numbering how does<br>
this chip compare to the ov9640 which as a driver in kernel (probably in a queue<br>
for next merge window? - it's certainly in the tree Guennadi is using and has been<br>
posted to linux-media)<br>
<br>
Google did however give me this hit, which mentions an ov9650 driver<br>
<a href="http://marex-hnd.blogspot.com/2009/08/omnivision-ov9640-hacking-part-iv.html" target="_blank">http://marex-hnd.blogspot.com/2009/08/omnivision-ov9640-hacking-part-iv.html</a><br>
Perhaps Guennadi has more info on this?<br>
<br>
<br>