Re: em28xx + ov2640 and v4l2-clk

2013-10-16 Thread Frank Schäfer
Am 13.10.2013 16:00, schrieb Frank Schäfer: [snip] Am 12.10.2013 05:45, schrieb Mauro Carvalho Chehab: Changing the input will likely power on the device. The design of the old suspend callback were to call it when the device is not being used. Any try to use the device makes it to wake up,

Re: em28xx + ov2640 and v4l2-clk

2013-10-15 Thread Guennadi Liakhovetski
:03 Subject: em28xx + ov2640 and v4l2-clk Hi Guennadi, since commit 9aea470b399d797e88be08985c489855759c6c60 soc-camera: switch I2C subdevice drivers to use v4l2-clk, the em28xx driver fails to register the ov2640 subdevice (if needed). The reason

Re: em28xx + ov2640 and v4l2-clk

2013-10-15 Thread Guennadi Liakhovetski
On Tue, 15 Oct 2013, Guennadi Liakhovetski wrote: Well, yes, the idea is not bad, FWIW I could live with it. Doing this wouldn't be very simple though, I guess. E.g. em28xx would have to do both - call balanced .s_power() for camera sensors etc. and call .suspend() for tuners or

Re: em28xx + ov2640 and v4l2-clk

2013-10-13 Thread Frank Schäfer
[snip] Am 12.10.2013 05:45, schrieb Mauro Carvalho Chehab: Changing the input will likely power on the device. The design of the old suspend callback were to call it when the device is not being used. Any try to use the device makes it to wake up, as it makes no sense to use a device in

Re: em28xx + ov2640 and v4l2-clk

2013-10-11 Thread Mauro Carvalho Chehab
Aug 2013 21:03 Subject: em28xx + ov2640 and v4l2-clk Hi Guennadi, since commit 9aea470b399d797e88be08985c489855759c6c60 soc-camera: switch I2C subdevice drivers to use v4l2-clk, the em28xx driver fails to register the ov2640 subdevice (if needed). The reason

Re: em28xx + ov2640 and v4l2-clk

2013-10-10 Thread Frank Schäfer
+ ov2640 and v4l2-clk Hi Guennadi, since commit 9aea470b399d797e88be08985c489855759c6c60 soc-camera: switch I2C subdevice drivers to use v4l2-clk, the em28xx driver fails to register the ov2640 subdevice (if needed). The reason is that v4l2_clk_get() fails in ov2640_probe(). Does the em28xx

Re: em28xx + ov2640 and v4l2-clk

2013-10-10 Thread Guennadi Liakhovetski
@googlemail.com To: Guennadi Liakhovetski g.liakhovet...@gmx.de, Linux Media Mailing List linux-media@vger.kernel.org Sent: Fr., 16 Aug 2013 21:03 Subject: em28xx + ov2640 and v4l2-clk Hi Guennadi, since commit 9aea470b399d797e88be08985c489855759c6c60 soc-camera: switch I2C subdevice drivers

Re: em28xx + ov2640 and v4l2-clk

2013-10-10 Thread Frank Schäfer
Guennadi -Original Message- From: Frank SchÀfer fschaefer@googlemail.com To: Guennadi Liakhovetski g.liakhovet...@gmx.de, Linux Media Mailing List linux-media@vger.kernel.org Sent: Fr., 16 Aug 2013 21:03 Subject: em28xx + ov2640 and v4l2-clk Hi Guennadi, since commit

Re: em28xx + ov2640 and v4l2-clk

2013-10-10 Thread Guennadi Liakhovetski
fschaefer@googlemail.com To: Guennadi Liakhovetski g.liakhovet...@gmx.de, Linux Media Mailing List linux-media@vger.kernel.org Sent: Fr., 16 Aug 2013 21:03 Subject: em28xx + ov2640 and v4l2-clk Hi Guennadi, since commit 9aea470b399d797e88be08985c489855759c6c60 soc-camera

Re: em28xx + ov2640 and v4l2-clk

2013-10-10 Thread Frank Schäfer
+ ov2640 and v4l2-clk Hi Guennadi, since commit 9aea470b399d797e88be08985c489855759c6c60 soc-camera: switch I2C subdevice drivers to use v4l2-clk, the em28xx driver fails to register the ov2640 subdevice (if needed). The reason is that v4l2_clk_get() fails in ov2640_probe(). Does the em28xx

Re: em28xx + ov2640 and v4l2-clk

2013-10-10 Thread Frank Schäfer
Am 10.10.2013 20:38, schrieb Frank Schäfer: [...] Hmm... your patch didn't change this, but: Why do we call these functions only in case of V4L2_BUF_TYPE_VIDEO_CAPTURE ? Isn't it needed for VBI capturing, too ? em28xx_wake_i2c() is probably also needed for radio mode... Right, my patch

Re: em28xx + ov2640 and v4l2-clk

2013-10-08 Thread Frank Schäfer
Schäfer fschaefer@googlemail.com To: Guennadi Liakhovetski g.liakhovet...@gmx.de, Linux Media Mailing List linux-media@vger.kernel.org Sent: Fr., 16 Aug 2013 21:03 Subject: em28xx + ov2640 and v4l2-clk Hi Guennadi, since commit 9aea470b399d797e88be08985c489855759c6c60 soc-camera: switch

Re: em28xx + ov2640 and v4l2-clk

2013-10-08 Thread Guennadi Liakhovetski
: em28xx + ov2640 and v4l2-clk Hi Guennadi, since commit 9aea470b399d797e88be08985c489855759c6c60 soc-camera: switch I2C subdevice drivers to use v4l2-clk, the em28xx driver fails to register the ov2640 subdevice (if needed). The reason is that v4l2_clk_get() fails in ov2640_probe

Re: em28xx + ov2640 and v4l2-clk

2013-09-02 Thread Frank Schäfer
Sorry for the delayed reply. A few remarks: Am 27.08.2013 14:52, schrieb Laurent Pinchart: ... Even if the bridge doesn't control the clock, it provides a clock to the sensor. As such, it's the responsibility of the bridge driver to provide the clock to the sensor driver. The sensor

Re: em28xx + ov2640 and v4l2-clk

2013-09-02 Thread Sylwester Nawrocki
On 09/02/2013 08:30 PM, Frank Schäfer wrote: Sorry for the delayed reply. A few remarks: Am 27.08.2013 14:52, schrieb Laurent Pinchart: ... Even if the bridge doesn't control the clock, it provides a clock to the sensor. As such, it's the responsibility of the bridge driver to provide the

Re: em28xx + ov2640 and v4l2-clk

2013-09-02 Thread Laurent Pinchart
Hi Frank, On Monday 02 September 2013 20:30:42 Frank Schäfer wrote: Sorry for the delayed reply. A few remarks: Am 27.08.2013 14:52, schrieb Laurent Pinchart: ... Even if the bridge doesn't control the clock, it provides a clock to the sensor. As such, it's the responsibility of the

Re: em28xx + ov2640 and v4l2-clk

2013-08-30 Thread Guennadi Liakhovetski
Hi Frank, On Fri, 23 Aug 2013, Frank Schäfer wrote: Hi Sylwester, Am 21.08.2013 23:42, schrieb Sylwester Nawrocki: Hi Frank, On 08/21/2013 10:39 PM, Frank Schäfer wrote: Am 20.08.2013 18:34, schrieb Frank Schäfer: Am 20.08.2013 15:38, schrieb Laurent Pinchart: Hi Mauro, On

Re: em28xx + ov2640 and v4l2-clk

2013-08-30 Thread Frank Schäfer
Hi Guennadi, Am 30.08.2013 12:30, schrieb Guennadi Liakhovetski: Hi Frank, On Fri, 23 Aug 2013, Frank Schäfer wrote: Hi Sylwester, Am 21.08.2013 23:42, schrieb Sylwester Nawrocki: Hi Frank, On 08/21/2013 10:39 PM, Frank Schäfer wrote: Am 20.08.2013 18:34, schrieb Frank Schäfer: Am

Re: em28xx + ov2640 and v4l2-clk

2013-08-28 Thread Sylwester Nawrocki
On 08/27/2013 06:00 PM, Mauro Carvalho Chehab wrote: The thing is that you're wanting to use the clock register as a way to detect that the device got initialized. I'm not sure to follow you there, I don't think that's how I want to use the clock. Could you please elaborate ? As

Re: em28xx + ov2640 and v4l2-clk

2013-08-28 Thread Mauro Carvalho Chehab
Em Wed, 28 Aug 2013 11:00:42 +0200 Sylwester Nawrocki s.nawro...@samsung.com escreveu: On 08/27/2013 06:00 PM, Mauro Carvalho Chehab wrote: The thing is that you're wanting to use the clock register as a way to detect that the device got initialized. I'm not sure to follow you

Re: em28xx + ov2640 and v4l2-clk

2013-08-28 Thread Laurent Pinchart
Hi Mauro, On Wednesday 28 August 2013 06:27:52 Mauro Carvalho Chehab wrote: Sylwester Nawrocki s.nawro...@samsung.com escreveu: On 08/27/2013 06:00 PM, Mauro Carvalho Chehab wrote: The thing is that you're wanting to use the clock register as a way to detect that the device got

Re: em28xx + ov2640 and v4l2-clk

2013-08-27 Thread Laurent Pinchart
Hi Mauro, On Monday 26 August 2013 11:09:33 Mauro Carvalho Chehab wrote: Guennadi Liakhovetski g.liakhovet...@gmx.de escreveu: On Sat, 24 Aug 2013, Mauro Carvalho Chehab wrote: Em Fri, 23 Aug 2013 00:15:52 +0200 Frank Schäfer fschaefer@googlemail.com escreveu: Am 21.08.2013

Re: em28xx + ov2640 and v4l2-clk

2013-08-27 Thread Mauro Carvalho Chehab
Em Tue, 27 Aug 2013 14:52:19 +0200 Laurent Pinchart laurent.pinch...@ideasonboard.com escreveu: Hi Mauro, On Monday 26 August 2013 11:09:33 Mauro Carvalho Chehab wrote: Guennadi Liakhovetski g.liakhovet...@gmx.de escreveu: On Sat, 24 Aug 2013, Mauro Carvalho Chehab wrote: Em Fri, 23

Re: em28xx + ov2640 and v4l2-clk

2013-08-27 Thread Laurent Pinchart
Hi Mauro, On Tuesday 27 August 2013 11:08:58 Mauro Carvalho Chehab wrote: Laurent Pinchart laurent.pinch...@ideasonboard.com escreveu: On Monday 26 August 2013 11:09:33 Mauro Carvalho Chehab wrote: Guennadi Liakhovetski g.liakhovet...@gmx.de escreveu: [snip] Ok, let's try to

Re: em28xx + ov2640 and v4l2-clk

2013-08-27 Thread Mauro Carvalho Chehab
Em Tue, 27 Aug 2013 17:27:52 +0200 Laurent Pinchart laurent.pinch...@ideasonboard.com escreveu: Hi Mauro, On Tuesday 27 August 2013 11:08:58 Mauro Carvalho Chehab wrote: Laurent Pinchart laurent.pinch...@ideasonboard.com escreveu: On Monday 26 August 2013 11:09:33 Mauro Carvalho Chehab

Re: em28xx + ov2640 and v4l2-clk

2013-08-26 Thread Guennadi Liakhovetski
On Sat, 24 Aug 2013, Mauro Carvalho Chehab wrote: Em Fri, 23 Aug 2013 00:15:52 +0200 Frank Schäfer fschaefer@googlemail.com escreveu: Hi Sylwester, Am 21.08.2013 23:42, schrieb Sylwester Nawrocki: Hi Frank, On 08/21/2013 10:39 PM, Frank Schäfer wrote: Am 20.08.2013

Re: em28xx + ov2640 and v4l2-clk

2013-08-26 Thread Mauro Carvalho Chehab
Em Mon, 26 Aug 2013 15:54:16 +0200 (CEST) Guennadi Liakhovetski g.liakhovet...@gmx.de escreveu: On Sat, 24 Aug 2013, Mauro Carvalho Chehab wrote: Em Fri, 23 Aug 2013 00:15:52 +0200 Frank Schäfer fschaefer@googlemail.com escreveu: Hi Sylwester, Am 21.08.2013 23:42, schrieb

Re: em28xx + ov2640 and v4l2-clk

2013-08-24 Thread Mauro Carvalho Chehab
Em Tue, 20 Aug 2013 18:39:33 +0200 Frank Schäfer fschaefer@googlemail.com escreveu: Am 20.08.2013 17:31, schrieb Mauro Carvalho Chehab: Em Tue, 20 Aug 2013 15:38:57 +0200 Laurent Pinchart laurent.pinch...@ideasonboard.com escreveu: Hi Mauro, On Sunday 18 August 2013 12:20:08

Re: em28xx + ov2640 and v4l2-clk

2013-08-24 Thread Mauro Carvalho Chehab
Em Fri, 23 Aug 2013 00:15:52 +0200 Frank Schäfer fschaefer@googlemail.com escreveu: Hi Sylwester, Am 21.08.2013 23:42, schrieb Sylwester Nawrocki: Hi Frank, On 08/21/2013 10:39 PM, Frank Schäfer wrote: Am 20.08.2013 18:34, schrieb Frank Schäfer: Am 20.08.2013 15:38, schrieb

Re: em28xx + ov2640 and v4l2-clk

2013-08-24 Thread Sylwester Nawrocki
On 08/24/2013 09:03 PM, Mauro Carvalho Chehab wrote: Em Fri, 23 Aug 2013 00:15:52 +0200 Frank Schäferfschaefer@googlemail.com escreveu: Am 21.08.2013 23:42, schrieb Sylwester Nawrocki: On 08/21/2013 10:39 PM, Frank Schäfer wrote: Am 20.08.2013 18:34, schrieb Frank Schäfer: Am 20.08.2013

Re: em28xx + ov2640 and v4l2-clk

2013-08-22 Thread Frank Schäfer
Hi Sylwester, Am 21.08.2013 23:42, schrieb Sylwester Nawrocki: Hi Frank, On 08/21/2013 10:39 PM, Frank Schäfer wrote: Am 20.08.2013 18:34, schrieb Frank Schäfer: Am 20.08.2013 15:38, schrieb Laurent Pinchart: Hi Mauro, On Sunday 18 August 2013 12:20:08 Mauro Carvalho Chehab wrote: Em

Re: em28xx + ov2640 and v4l2-clk

2013-08-21 Thread Frank Schäfer
Am 20.08.2013 18:34, schrieb Frank Schäfer: Am 20.08.2013 15:38, schrieb Laurent Pinchart: Hi Mauro, On Sunday 18 August 2013 12:20:08 Mauro Carvalho Chehab wrote: Em Sun, 18 Aug 2013 13:40:25 +0200 Frank Schäfer escreveu: Am 17.08.2013 12:51, schrieb Guennadi Liakhovetski: Hi Frank, As I

Re: em28xx + ov2640 and v4l2-clk

2013-08-21 Thread Sylwester Nawrocki
Hi Frank, On 08/21/2013 10:39 PM, Frank Schäfer wrote: Am 20.08.2013 18:34, schrieb Frank Schäfer: Am 20.08.2013 15:38, schrieb Laurent Pinchart: Hi Mauro, On Sunday 18 August 2013 12:20:08 Mauro Carvalho Chehab wrote: Em Sun, 18 Aug 2013 13:40:25 +0200 Frank Schäfer escreveu: Am

Re: em28xx + ov2640 and v4l2-clk

2013-08-20 Thread Laurent Pinchart
Hi Mauro, On Sunday 18 August 2013 12:20:08 Mauro Carvalho Chehab wrote: Em Sun, 18 Aug 2013 13:40:25 +0200 Frank Schäfer escreveu: Am 17.08.2013 12:51, schrieb Guennadi Liakhovetski: Hi Frank, As I mentioned on the list, I'm currently on a holiday, so, replying briefly. Sorry, I

Re: em28xx + ov2640 and v4l2-clk

2013-08-20 Thread Mauro Carvalho Chehab
Em Tue, 20 Aug 2013 15:38:57 +0200 Laurent Pinchart laurent.pinch...@ideasonboard.com escreveu: Hi Mauro, On Sunday 18 August 2013 12:20:08 Mauro Carvalho Chehab wrote: Em Sun, 18 Aug 2013 13:40:25 +0200 Frank Schäfer escreveu: Am 17.08.2013 12:51, schrieb Guennadi Liakhovetski: Hi

Re: em28xx + ov2640 and v4l2-clk

2013-08-20 Thread Frank Schäfer
Am 20.08.2013 15:38, schrieb Laurent Pinchart: Hi Mauro, On Sunday 18 August 2013 12:20:08 Mauro Carvalho Chehab wrote: Em Sun, 18 Aug 2013 13:40:25 +0200 Frank Schäfer escreveu: Am 17.08.2013 12:51, schrieb Guennadi Liakhovetski: Hi Frank, As I mentioned on the list, I'm currently on a

Re: em28xx + ov2640 and v4l2-clk

2013-08-20 Thread Frank Schäfer
Am 20.08.2013 17:31, schrieb Mauro Carvalho Chehab: Em Tue, 20 Aug 2013 15:38:57 +0200 Laurent Pinchart laurent.pinch...@ideasonboard.com escreveu: Hi Mauro, On Sunday 18 August 2013 12:20:08 Mauro Carvalho Chehab wrote: Em Sun, 18 Aug 2013 13:40:25 +0200 Frank Schäfer escreveu: Am

Re: em28xx + ov2640 and v4l2-clk

2013-08-18 Thread Frank Schäfer
- From: Frank Schäfer fschaefer@googlemail.com To: Guennadi Liakhovetski g.liakhovet...@gmx.de, Linux Media Mailing List linux-media@vger.kernel.org Sent: Fr., 16 Aug 2013 21:03 Subject: em28xx + ov2640 and v4l2-clk Hi Guennadi, since commit 9aea470b399d797e88be08985c489855759c6c60 soc

Re: em28xx + ov2640 and v4l2-clk

2013-08-18 Thread Mauro Carvalho Chehab
+ ov2640 and v4l2-clk Hi Guennadi, since commit 9aea470b399d797e88be08985c489855759c6c60 soc-camera: switch I2C subdevice drivers to use v4l2-clk, the em28xx driver fails to register the ov2640 subdevice (if needed). The reason is that v4l2_clk_get() fails in ov2640_probe(). Does the em28xx

Re: em28xx + ov2640 and v4l2-clk

2013-08-17 Thread Guennadi Liakhovetski
Message- From: Frank Schäfer fschaefer@googlemail.com To: Guennadi Liakhovetski g.liakhovet...@gmx.de, Linux Media Mailing List linux-media@vger.kernel.org Sent: Fr., 16 Aug 2013 21:03 Subject: em28xx + ov2640 and v4l2-clk Hi Guennadi, since commit 9aea470b399d797e88be08985c489855759c6c60 soc

em28xx + ov2640 and v4l2-clk

2013-08-16 Thread Frank Schäfer
Hi Guennadi, since commit 9aea470b399d797e88be08985c489855759c6c60 soc-camera: switch I2C subdevice drivers to use v4l2-clk, the em28xx driver fails to register the ov2640 subdevice (if needed). The reason is that v4l2_clk_get() fails in ov2640_probe(). Does the em28xx driver have to register a