Web lists-archives.org

Re: [PATCH 2/6] V4L2 soc_camera driver for PXA27x processors




On Thu, 14 Feb 2008, eric miao wrote:

> On Thu, Feb 14, 2008 at 3:43 PM, Guennadi Liakhovetski <g.liakhovetski@xxxxxx> wrote:
> >
> >  But, I think, we'll have to do it differently. The two cameras you mention
> >  are two separate video-devices with my framework. So, the application will
> >  have to go to /dev/video1 from /dev/video0. And, perhaps, the camera
> >  driver (not the interface driver, like pxa-camera) will have to call back
> >  into the platform layer to activate the respective controller. How does
> >  this sound?
> 
> Yeah, I personally like the idea of having /dev/video0 and /dev/video1 for
> the two sensors, and the pxa_camera.c makes sure they will be opened
> exclusively.

In fact, it is _already_ implemented. Look at

struct pxacamera_platform_data {
	int (*init)(struct device *);
	int (*power)(struct device *, int);
	int (*reset)(struct device *, int);

	unsigned long flags;
	unsigned long mclk_10khz;
};

in include/asm-arm/arch-pxa/camera.h, but ->power() is called at probe and 
release times... Yeah, will have to change that, which will also require 
some changes to the soc-camera - camera-interface API...

Otherwise, I'll wait for your detailed comments to minimize the number of 
iterations:-)

Thanks
Guennadi
---
Guennadi Liakhovetski

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list