Asking advice for Camera/ISP driver framework design

2011-09-14 Thread Cliff Cai
Dear guys, I'm currently working on a camera/ISP Linux driver project.Of course,I want it to be a V4L2 driver,but I got a problem about how to design the driver framework. let me introduce the background of this ISP(Image signal processor) a little bit. 1.The ISP has two output paths,first one

Re: [PATCH 4/4] v4l2: add blackfin capture bridge driver

2011-09-14 Thread Scott Jiang
I think, the direct use of vb2_plane_cookie() is discouraged. vb2_dma_contig_plane_dma_addr() should work for you. I guess you mean vb2_dma_contig_plane_paddr no, in the current kernel it's vb2_dma_contig_plane_dma_addr(). See

Re: recursive locking problem

2011-09-14 Thread Daniel Glöckner
On Wed, Sep 14, 2011 at 04:03:58AM +0300, Antti Palosaari wrote: On 09/09/2011 02:46 PM, Daniel Glöckner wrote: On Thu, Sep 08, 2011 at 07:34:32PM +0300, Antti Palosaari wrote: I am working with AF9015 I2C-adapter lock. I need lock I2C-bus since there is two tuners having same I2C address on

Re: Question about USB interface index restriction in gspca

2011-09-14 Thread Jean-Francois Moine
On Tue, 13 Sep 2011 21:14:28 +0200 Frank Schäfer fschaefer@googlemail.com wrote: I have a question about the following code in gspca.c: in function gspca_dev_probe(...): ... /* the USB video interface must be the first one */ if (dev-config-desc.bNumInterfaces != 1

Re: [PATCH 4/4] v4l2: add blackfin capture bridge driver

2011-09-14 Thread Scott Jiang
+static int bcap_qbuf(struct file *file, void *priv, +                     struct v4l2_buffer *buf) +{ +     struct bcap_device *bcap_dev = video_drvdata(file); +     struct v4l2_fh *fh = file-private_data; +     struct bcap_fh *bcap_fh = container_of(fh, struct bcap_fh, fh); + +     if

Re: [uclinux-dist-devel] [PATCH 4/4] v4l2: add blackfin capture bridge driver

2011-09-14 Thread Scott Jiang
i think at least these three are unused and should get punted +static int __devinit bcap_probe(struct platform_device *pdev) +{ +       struct bcap_device *bcap_dev; +       struct video_device *vfd; +       struct i2c_adapter *i2c_adap; you need to include linux/i2c.h for this no,

Re: [uclinux-dist-devel] [PATCH 4/4] v4l2: add blackfin capture bridge driver

2011-09-14 Thread Guennadi Liakhovetski
On Wed, 14 Sep 2011, Scott Jiang wrote: i think at least these three are unused and should get punted +static int __devinit bcap_probe(struct platform_device *pdev) +{ +       struct bcap_device *bcap_dev; +       struct video_device *vfd; +       struct i2c_adapter *i2c_adap;

Re: [uclinux-dist-devel] [PATCH 3/4] v4l2: add vs6624 sensor driver

2011-09-14 Thread Scott Jiang
+#ifdef CONFIG_VIDEO_ADV_DEBUG just use DEBUG ? no, v4l2 use CONFIG_VIDEO_ADV_DEBUG +       v4l_info(client, chip found @ 0x%02x (%s)\n, +                       client-addr 1, client-adapter-name); is that 1 correct ?  i dont think so ... every driver under media I see use this, so

Re: Asking advice for Camera/ISP driver framework design

2011-09-14 Thread Scott Jiang
2011/9/14 Cliff Cai cliffcai...@gmail.com: Dear guys, I'm currently working on a camera/ISP Linux driver project.Of course,I want it to be a V4L2 driver,but I got a problem about how to design the driver framework. let me introduce the background of this ISP(Image signal processor) a little

Re: Compro U680F USB stick receiver for FM/DAB/DAB+/DVB-T.

2011-09-14 Thread Erik Dam
Hi, Antti, Thanks for taking the time to answer my request. However, I am afraid I am not able to find the vendor drivers you mention - if I had I would not have posted about it. No matter how much time I spend scouring the Compro website I can only find Windows drivers - nothing about

Re: [PATCH v4] V4L: dynamically allocate video_device nodes in subdevices

2011-09-14 Thread Sylwester Nawrocki
Hi Guennadi, On 09/13/2011 11:18 PM, Guennadi Liakhovetski wrote: On Tue, 13 Sep 2011, Sylwester Nawrocki wrote: On 09/13/2011 04:48 PM, Guennadi Liakhovetski wrote: Currently only very few drivers actually use video_device nodes, embedded in struct v4l2_subdev. Allocate these nodes

Re: recursive locking problem

2011-09-14 Thread Antti Palosaari
On 09/14/2011 09:19 AM, Daniel Glöckner wrote: On Wed, Sep 14, 2011 at 04:03:58AM +0300, Antti Palosaari wrote: On 09/09/2011 02:46 PM, Daniel Glöckner wrote: On Thu, Sep 08, 2011 at 07:34:32PM +0300, Antti Palosaari wrote: I am working with AF9015 I2C-adapter lock. I need lock I2C-bus since

Re: How to handle different media bus format and actual video output format in soc camera?

2011-09-14 Thread javier Martin
On 14 September 2011 12:34, javier Martin javier.mar...@vista-silicon.com wrote: Hi, I'm trying to add support for YUV420 format to mx2_camera.c soc-camera host driver. In my system, an imx27_visstrim_m10 board, this host is connected to a tvp5151 chip which is only able to transfer pixels

Re: recursive locking problem

2011-09-14 Thread Daniel Glöckner
On Wed, Sep 14, 2011 at 01:45:47PM +0300, Antti Palosaari wrote: Interesting idea, but it didn't worked. It deadlocks. I think it locks since I2C-mux is controlled by I2C switch in same I2C bus, not GPIO or some other HW. Take a look at drivers/i2c/muxes/pca954x.c. You need to use

Re: [PATCH 4/4] v4l2: add blackfin capture bridge driver

2011-09-14 Thread Sylwester Nawrocki
On 09/14/2011 09:10 AM, Scott Jiang wrote: +static int bcap_qbuf(struct file *file, void *priv, + struct v4l2_buffer *buf) +{ + struct bcap_device *bcap_dev = video_drvdata(file); + struct v4l2_fh *fh = file-private_data; + struct bcap_fh *bcap_fh =

Re: [PATCH] arm: omap: Fix build error in ispccdc.c

2011-09-14 Thread Roedel, Joerg
Ping? On Tue, Sep 06, 2011 at 10:02:15AM -0400, Joerg Roedel wrote: The following build error occurs with 3.1-rc5: CC drivers/media/video/omap3isp/ispccdc.o /home/data/repos/linux.trees.git/drivers/media/video/omap3isp/ispccdc.c: In function 'ccdc_lsc_config':

Re: [PATCH] arm: omap: Fix build error in ispccdc.c

2011-09-14 Thread Laurent Pinchart
Mauro, On Wednesday 14 September 2011 17:33:03 Roedel, Joerg wrote: Ping? I've acked the patch on September the 6th and asked in the e-mail if you could pick it and push it to v3.1. Is there anything else I need to do ? -- Regards, Laurent Pinchart -- To unsubscribe from this list: send the

cron job: media_tree daily build: ERRORS

2011-09-14 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date:Wed Sep 14 19:00:33 CEST 2011 git hash:2d04c13a507f5a01daa7422cd52250809573cfdb gcc version: i686-linux-gcc

Re: [PATCH] mmp_camera: add MODULE_ALIAS

2011-09-14 Thread Jonathan Corbet
On Wed, 7 Sep 2011 10:36:46 +0100 (BST) Daniel Drake d...@laptop.org wrote: This enables module autoloading. Signed-off-by: Daniel Drake d...@laptop.org No objections here, consider it acked. Mauro: as far as I'm concerned, Daniel can be considered a co-maintainer of the OLPC camera

Re: [PATCH 4/4] v4l2: add blackfin capture bridge driver

2011-09-14 Thread Scott Jiang
2011/9/14 Sylwester Nawrocki s.nawro...@samsung.com: On 09/14/2011 09:10 AM, Scott Jiang wrote: +static int bcap_qbuf(struct file *file, void *priv, +                     struct v4l2_buffer *buf) +{ +     struct bcap_device *bcap_dev = video_drvdata(file); +     struct v4l2_fh *fh =