Re: [PATCH 1/1] omap3isp: Fix sub-device power management code

2015-06-12 Thread Laurent Pinchart
Hi Sakari, On Thursday 11 June 2015 00:38:11 Sakari Ailus wrote: > On Wed, Jun 10, 2015 at 03:52:50AM +0300, Laurent Pinchart wrote: > > On Friday 29 May 2015 02:17:47 Sakari Ailus wrote: > > > The power management code was reworked a little due to interface changes > > > in the MC. Due to those c

[PATCH] media: i2c/adp1653: set enable gpio to output

2015-06-12 Thread Uwe Kleine-König
Without setting the direction of a gpio to output a call to gpiod_set_value doesn't have a defined outcome. Furthermore this is one caller less that stops us making the flags argument to gpiod_get*() mandatory. Signed-off-by: Uwe Kleine-König --- Hello, this patch applies to next and is only ne

[GIT PULL FOR v4.2] Various fixes

2015-06-12 Thread Hans Verkuil
The following changes since commit e42c8c6eb456f8978de417ea349eef676ef4385c: [media] au0828: move dev->boards atribuition to happen earlier (2015-06-10 12:39:35 -0300) are available in the git repository at: git://linuxtv.org/hverkuil/media_tree.git for-v4.2n for you to fetch changes up to

Re: [Xen-devel] RIP MTRR - status update for upcoming v4.2

2015-06-12 Thread Jan Beulich
>>> On 12.06.15 at 01:23, wrote: > There are two usages on MTRRs: > 1) MTRR entries set by firmware > 2) MTRR entries set by OS drivers > > We can obsolete 2), but we have no control over 1). As UEFI firmwares > also set this up, this usage will continue to stay. So, we should not > get rid o

Re: [RFC] media: New ioct VIDIOC_INITIAL_EXT_CTRLS

2015-06-12 Thread Hans Verkuil
Hi Ricardo! On 06/10/2015 01:17 PM, Ricardo Ribalda Delgado wrote: > Integer controls provide a way to get their default/initial value, but > any other control (p_u32, p_u8.) provide no other way to get the > initial value than unloading the module and loading it back. > > *What is the actual

Re: [PATCH] media/v4l2-ctrls: Code cleanout validate_new()

2015-06-12 Thread Hans Verkuil
On 06/10/2015 03:38 PM, Ricardo Ribalda Delgado wrote: > We can simplify the code removing the if(). > > v4l2_ctr_new sets ctrls->elems to 1 when !ctrl->is_ptr. > > Signed-off-by: Ricardo Ribalda Delgado Acked-by: Hans Verkuil Thanks! Hans > --- > drivers/media/v4l2-core/v4l2-ctrls

Re: [PATCH 09/15] media: soc_camera pad-aware driver initialisation

2015-06-12 Thread Hans Verkuil
On 06/03/2015 03:59 PM, William Towle wrote: > Add detection of source pad number for drivers aware of the media > controller API, so that the combination of soc_camera and rcar_vin > can create device nodes to support modern drivers such as adv7604.c > (for HDMI on Lager) and the converted adv7180

Re: [PATCH 10/15] media: rcar_vin: Use correct pad number in try_fmt

2015-06-12 Thread Hans Verkuil
On 06/03/2015 03:59 PM, William Towle wrote: > Fix rcar_vin_try_fmt to use the correct pad number when calling the > subdev set_fmt. Previously pad number 0 was always used, resulting in > EINVAL if the subdev cares about the pad number (e.g. ADV7612). > > Signed-off-by: William Towle > Reviewed-

Re: [PATCH 11/15] media: soc_camera: soc_scale_crop: Use correct pad number in try_fmt

2015-06-12 Thread Hans Verkuil
On 06/03/2015 03:59 PM, William Towle wrote: > From: Rob Taylor > > Fix calls to subdev try_fmt to use correct pad. Fixes failures with > subdevs that care about having the right pad number set. > > Signed-off-by: William Towle > Reviewed-by: Rob Taylor > --- > drivers/media/platform/soc_came

Re: [PATCH 2/9] [media] media: omap_vout: Convert omap_vout_uservirt_to_phys() to use get_vaddr_pfns()

2015-06-12 Thread Tomi Valkeinen
On 11/06/15 07:21, Laurent Pinchart wrote: > Hello, > > (CC'ing Tomi Valkeinen) > > On Wednesday 10 June 2015 06:20:45 Mauro Carvalho Chehab wrote: >> From: Jan Kara >> >> Convert omap_vout_uservirt_to_phys() to use get_vaddr_pfns() instead of >> hand made mapping of virtual address to physica

Re: [PATCH 15/15] media: rcar_vin: Reject videobufs that are too small for current format

2015-06-12 Thread Hans Verkuil
On 06/03/2015 04:00 PM, William Towle wrote: > From: Rob Taylor > > In videobuf_setup reject buffers that are too small for the configured > format. Fixes v4l2-complience issue. > > Signed-off-by: Rob Taylor > Reviewed-by: William Towle Acked-by: Hans Verkuil Thanks, Hans > --- >

Re: [PATCH 14/15] media: soc_camera: fill in bus_info field

2015-06-12 Thread Hans Verkuil
On 06/03/2015 04:00 PM, William Towle wrote: > From: Rob Taylor > > Adapt soc_camera_querycap() so that cap->bus_info is populated in > addition to cap->driver. > > Signed-off-by: Rob Taylor > Reviewed-by: William Towle > --- > drivers/media/platform/soc_camera/soc_camera.c |1 + > 1 file

Re: [PATCH 2/2] genalloc: rename of_get_named_gen_pool() to of_gen_pool_get()

2015-06-12 Thread Vinod Koul
On Thu, Jun 11, 2015 at 04:28:32PM +0300, Vladimir Zapolskiy wrote: > To be consistent with other kernel interface namings, rename > of_get_named_gen_pool() to of_gen_pool_get(). In the original > function name "_named" suffix references to a device tree property, > which contains a phandle to a de

Re: [PATCH 2/9] [media] media: omap_vout: Convert omap_vout_uservirt_to_phys() to use get_vaddr_pfns()

2015-06-12 Thread Laurent Pinchart
Hi Tomi, On Friday 12 June 2015 12:21:13 Tomi Valkeinen wrote: > On 11/06/15 07:21, Laurent Pinchart wrote: > > On Wednesday 10 June 2015 06:20:45 Mauro Carvalho Chehab wrote: > >> From: Jan Kara > >> > >> Convert omap_vout_uservirt_to_phys() to use get_vaddr_pfns() instead of > >> hand made map

Re: [PATCH 2/9] [media] media: omap_vout: Convert omap_vout_uservirt_to_phys() to use get_vaddr_pfns()

2015-06-12 Thread Tomi Valkeinen
On 12/06/15 12:26, Laurent Pinchart wrote: > Hi Tomi, > > On Friday 12 June 2015 12:21:13 Tomi Valkeinen wrote: >> On 11/06/15 07:21, Laurent Pinchart wrote: >>> On Wednesday 10 June 2015 06:20:45 Mauro Carvalho Chehab wrote: From: Jan Kara Convert omap_vout_uservirt_to_phys() to

Re: [RFC PATCH 1/3] modify the vb2_buffer structure for common video buffer and make struct vb2_v4l2_buffer

2015-06-12 Thread Hans Verkuil
Hi Junghak, On 06/08/2015 03:35 PM, Junghak Sung wrote: > Make the struct vb2_buffer to common buffer by removing v4l2-specific members. > And common video buffer is embedded into v4l2-specific video buffer like: > struct vb2_v4l2_buffer { > struct vb2_buffervb2; > struct v4l2_buffer

Re: [RFC PATCH 1/3] modify the vb2_buffer structure for common video buffer and make struct vb2_v4l2_buffer

2015-06-12 Thread Hans Verkuil
On 06/12/2015 11:58 AM, Hans Verkuil wrote: > Hi Junghak, > > On 06/08/2015 03:35 PM, Junghak Sung wrote: >> Make the struct vb2_buffer to common buffer by removing v4l2-specific >> members. >> And common video buffer is embedded into v4l2-specific video buffer like: >> struct vb2_v4l2_buffer { >

Re: [RFC PATCH 0/3] Refactoring Videobuf2 for common use

2015-06-12 Thread Hans Verkuil
Hi Junghak, On 06/08/2015 03:35 PM, Junghak Sung wrote: > Hello everybody, > > This patch series refactories exsiting Videobuf2, so that not only V4L2 > but also other frameworks can use it to manage buffer and utilize > queue. > > I would separate existing Videobuf2-core framework into two part

[PATCH] Kconfig: disable Media Controller for DVB

2015-06-12 Thread Mauro Carvalho Chehab
Since when we start discussions about the usage Media Controller for complex hardware, one thing become clear: the way it is, MC fails to map anything more complex than a webcam. The point is that MC has entities named as devnodes, but the only devnode used (before the DVB patches) is MEDIA_ENT_T_

Re: [PATCH] Kconfig: disable Media Controller for DVB

2015-06-12 Thread Hans Verkuil
On 06/12/2015 12:57 PM, Mauro Carvalho Chehab wrote: > Since when we start discussions about the usage Media Controller > for complex hardware, one thing become clear: the way it is, MC > fails to map anything more complex than a webcam. > > The point is that MC has entities named as devnodes, but

[PATCH v2] Kconfig: disable Media Controller for DVB

2015-06-12 Thread Mauro Carvalho Chehab
Since when we start discussions about the usage Media Controller for complex hardware, one thing become clear: the way it is, MC fails to map anything more complex than a webcam. The point is that MC has entities named as devnodes, but the only devnode used (before the DVB patches) is MEDIA_ENT_T_

Re: [PATCH] Kconfig: disable Media Controller for DVB

2015-06-12 Thread Mauro Carvalho Chehab
Em Fri, 12 Jun 2015 13:02:00 +0200 Hans Verkuil escreveu: > On 06/12/2015 12:57 PM, Mauro Carvalho Chehab wrote: > > Since when we start discussions about the usage Media Controller > > for complex hardware, one thing become clear: the way it is, MC > > fails to map anything more complex than a w

[PATCH] v4l2-dv-timings: print refresh rate with better precision

2015-06-12 Thread Prashant Laddha
In many cases, refresh rate is not exact integer. In such cases, fraction was lost and it used to print, say, 59 in case of 59.94. Now, capturing the fraction up to 2 decimal places. Cc: Hans Verkuil Signed-off-by: Prashant Laddha --- drivers/media/v4l2-core/v4l2-dv-timings.c | 9 ++--- 1 f

Re: [PATCH 02/13] dmaengine: Introduce dma_request_slave_channel_compat_reason()

2015-06-12 Thread Vinod Koul
On Thu, Jun 04, 2015 at 06:58:06PM +0300, Peter Ujfalusi wrote: > Vinod, > > On 06/02/2015 03:55 PM, Vinod Koul wrote: > > On Fri, May 29, 2015 at 05:32:50PM +0300, Peter Ujfalusi wrote: > >> On 05/29/2015 01:18 PM, Vinod Koul wrote: > >>> On Fri, May 29, 2015 at 11:42:27AM +0200, Geert Uytterhoev

[RFC v2 01/27] media/v4l2-core: Add argument def_value to g_ext_ctrl

2015-06-12 Thread Ricardo Ribalda Delgado
If def_value is set, the default value for the controls is returned. Helper function def_to_user is also added with the same interface as cur_to_user or new_to_user. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/platform/omap3isp/ispvideo.c | 2 +- drivers/media/v4l2-core/v4l2-ctrls

[RFC v2 02/27] media/v4l2-core: add new ioctl VIDIOC_G_DEF_EXT_CTRLS

2015-06-12 Thread Ricardo Ribalda Delgado
This ioctl returns the default value of one or more extended controls. It has the same interface as VIDIOC_EXT_CTRLS. It is needed due to the fact that QUERYCTRL was not enough to provide the initial value of pointer type controls. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-c

[RFC v2 00/27] New ioct VIDIOC_G_DEF_EXT_CTRLS

2015-06-12 Thread Ricardo Ribalda Delgado
Integer controls provide a way to get their default/initial value, but any other control (p_u32, p_u8.) provide no other way to get the initial value than unloading the module and loading it back. *What is the actual problem? I have a custom control with WIDTH integer values. Every value repre

[RFC v2 03/27] videodev2.h: Fix typo in comment

2015-06-12 Thread Ricardo Ribalda Delgado
Referenced file has moved Signed-off-by: Ricardo Ribalda Delgado --- include/uapi/linux/videodev2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index b9468a3b833e..b059237f0214 100644 --- a/include/uapi/linux

[RFC v2 11/27] media/i2c/msp3400-driver: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/msp3400-driver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/msp3400-driver.c b/drivers/media/i2c/msp3400-driver.c index dcc68ec71732..10837564af8e 100644 --- a/drivers/media/i2c/msp340

[RFC v2 20/27] media/i2c/tvp7002: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/tvp7002.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/tvp7002.c b/drivers/media/i2c/tvp7002.c index 05077cffd235..006170ebe3da 100644 --- a/drivers/media/i2c/tvp7002.c +++ b/drivers/medi

[RFC v2 25/27] media/radio/saa7706h: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/radio/saa7706h.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/radio/saa7706h.c b/drivers/media/radio/saa7706h.c index ec805b09c608..cac1496da7e2 100644 --- a/drivers/media/radio/saa7706h.c +++ b/

[RFC v2 26/27] Docbook: media: new ioctl VIDIOC_G_DEF_EXT_CTRLS

2015-06-12 Thread Ricardo Ribalda Delgado
Add documentation for new ioctl. Signed-off-by: Ricardo Ribalda Delgado --- Documentation/DocBook/media/v4l/v4l2.xml | 8 Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml | 13 + Documentation/video4linux/v4l2-controls.txt| 3 ++- Documentat

[RFC v2 13/27] media/i2c/saa7115: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/saa7115.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/saa7115.c b/drivers/media/i2c/saa7115.c index 0eae5f4471e2..c227dc11b136 100644 --- a/drivers/media/i2c/saa7115.c +++ b/drivers/medi

[RFC v2 16/27] media/i2c/tda7432: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/tda7432.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/tda7432.c b/drivers/media/i2c/tda7432.c index cf93021a6500..efff7d48ce9e 100644 --- a/drivers/media/i2c/tda7432.c +++ b/drivers/medi

[RFC v2 22/27] media/i2c/wm8739: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/wm8739.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/wm8739.c b/drivers/media/i2c/wm8739.c index 3be73f6a40e9..003c07bee16f 100644 --- a/drivers/media/i2c/wm8739.c +++ b/drivers/media/i2

[RFC v2 14/27] media/i2c/saa717x: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/saa717x.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/saa717x.c b/drivers/media/i2c/saa717x.c index 7d517361e419..e1f94e0131e2 100644 --- a/drivers/media/i2c/saa717x.c +++ b/drivers/medi

[RFC v2 04/27] v4l2-subdev: Add g_def_ext_ctrls to core_ops

2015-06-12 Thread Ricardo Ribalda Delgado
This function returns the default value of an extended control. Provides sub-devices with the same functionality as ioctl VIDIOC_G_DEF_EXT_CTRLS. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/v4l2-ctrls.c | 7 +++ include/media/v4l2-ctrls.h | 2 ++ include/medi

[RFC v2 09/27] media/i2c/cs53l32a: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/cs53l32a.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/cs53l32a.c b/drivers/media/i2c/cs53l32a.c index 27400c16ef9a..9358350278cc 100644 --- a/drivers/media/i2c/cs53l32a.c +++ b/drivers/

[RFC v2 06/27] media/i2c/adv7393: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/adv7393.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/adv7393.c b/drivers/media/i2c/adv7393.c index 558f19154eb9..e59e29335c83 100644 --- a/drivers/media/i2c/adv7393.c +++ b/drivers/medi

[RFC v2 05/27] media/i2c/adv7343: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/adv7343.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/adv7343.c b/drivers/media/i2c/adv7343.c index 7c50833e7d17..9753fb545f17 100644 --- a/drivers/media/i2c/adv7343.c +++ b/drivers/media

[RFC v2 24/27] media/pci/ivtv/ivtv-gpio: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/pci/ivtv/ivtv-gpio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/pci/ivtv/ivtv-gpio.c b/drivers/media/pci/ivtv/ivtv-gpio.c index af52def700cc..d16f210670e2 100644 --- a/drivers/media/pci/ivtv/i

[RFC v2 10/27] media/i2c/cx25840/cx25840-core: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/cx25840/cx25840-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/cx25840/cx25840-core.c b/drivers/media/i2c/cx25840/cx25840-core.c index e15a789ad596..5d8d25e6bbf0 100644 --- a/driver

[RFC v2 21/27] media/i2c/vpx3220: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/vpx3220.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/vpx3220.c b/drivers/media/i2c/vpx3220.c index 016e766e72ba..60d635250b19 100644 --- a/drivers/media/i2c/vpx3220.c +++ b/drivers/medi

[RFC v2 07/27] media/i2c/bt819: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/bt819.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/bt819.c b/drivers/media/i2c/bt819.c index 76b334a6a56d..b3e9ac3616b5 100644 --- a/drivers/media/i2c/bt819.c +++ b/drivers/media/i2c/bt

[RFC v2 19/27] media/i2c/tvp514x: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/tvp514x.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/tvp514x.c b/drivers/media/i2c/tvp514x.c index 24e47279e30c..d69708aac627 100644 --- a/drivers/media/i2c/tvp514x.c +++ b/drivers/medi

[RFC v2 18/27] media/i2c/tvaudio: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/tvaudio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/tvaudio.c b/drivers/media/i2c/tvaudio.c index 0c50e5285cf6..05972a5d2c68 100644 --- a/drivers/media/i2c/tvaudio.c +++ b/drivers/medi

[RFC v2 15/27] media/i2c/sr030pc30: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/sr030pc30.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/sr030pc30.c b/drivers/media/i2c/sr030pc30.c index b62b6ddc4356..23836801218a 100644 --- a/drivers/media/i2c/sr030pc30.c +++ b/driv

[RFC v2 17/27] media/i2c/tlv320aic23b: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/tlv320aic23b.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/tlv320aic23b.c b/drivers/media/i2c/tlv320aic23b.c index ef87f7b09ea2..4e279de8e194 100644 --- a/drivers/media/i2c/tlv320aic23b.

[RFC v2 27/27] Documentation: media: Fix code sample

2015-06-12 Thread Ricardo Ribalda Delgado
Add newly created core op to the example. Signed-off-by: Ricardo Ribalda Delgado --- Documentation/video4linux/v4l2-controls.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/video4linux/v4l2-controls.txt b/Documentation/video4linux/v4l2-controls.txt index 7e3dfcacdbee..1d25

[RFC v2 23/27] media/i2c/wm8775: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/wm8775.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/wm8775.c b/drivers/media/i2c/wm8775.c index bee7946faa7c..45d4873aca74 100644 --- a/drivers/media/i2c/wm8775.c +++ b/drivers/media/i2

[RFC v2 08/27] media/i2c/cs5345: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/cs5345.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/cs5345.c b/drivers/media/i2c/cs5345.c index 34b76a9e7515..ad3c89585909 100644 --- a/drivers/media/i2c/cs5345.c +++ b/drivers/media/i2

[RFC v2 12/27] media/i2c/saa7110: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/saa7110.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/saa7110.c b/drivers/media/i2c/saa7110.c index 99689ee57d7e..964cc2cf1508 100644 --- a/drivers/media/i2c/saa7110.c +++ b/drivers/medi

Re: [RFC v2 00/27] New ioct VIDIOC_G_DEF_EXT_CTRLS

2015-06-12 Thread Hans Verkuil
On 06/12/2015 03:11 PM, Ricardo Ribalda Delgado wrote: > Integer controls provide a way to get their default/initial value, but > any other control (p_u32, p_u8.) provide no other way to get the > initial value than unloading the module and loading it back. > > *What is the actual problem? > I

Re: [RFC v2 00/27] New ioct VIDIOC_G_DEF_EXT_CTRLS

2015-06-12 Thread Ricardo Ribalda Delgado
Hello Hans On Fri, Jun 12, 2015 at 3:41 PM, Hans Verkuil wrote: > > I did a quick analysis and for the following i2c modules you can just remove > the > compat control ops altogether since they are no longer used in old > non-control-framework > bridge drivers: > > saa7706 > ivtv-gpio > wm8739

[PATCH 04/12] media/i2c/saa717x: Remove compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
They are no longer used in old non-control-framework bridge drivers. Reported-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/saa717x.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/media/i2c/saa717x.c b/drivers/media/i2c/saa717x.c index 7d51736

[PATCH 12/12] media/radio/saa7706h: Remove compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
They are no longer used in old non-control-framework bridge drivers. Reported-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/radio/saa7706h.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/drivers/media/radio/saa7706h.c b/drivers

[PATCH 05/12] media/i2c/sr030pc30: Remove compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
They are no longer used in old non-control-framework bridge drivers. Reported-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/sr030pc30.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/media/i2c/sr030pc30.c b/drivers/media/i2c/sr030pc30.c index b

[PATCH 03/12] media/i2c/cs5345: Remove compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
They are no longer used in old non-control-framework bridge drivers. Reported-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/cs5345.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/media/i2c/cs5345.c b/drivers/media/i2c/cs5345.c index 34b76a9e75

[PATCH 09/12] media/i2c/tvp7002: Remove compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
They are no longer used in old non-control-framework bridge drivers. Reported-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/tvp7002.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/media/i2c/tvp7002.c b/drivers/media/i2c/tvp7002.c index 05077cf

[PATCH 10/12] i2c/wm8739: Remove compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
They are no longer used in old non-control-framework bridge drivers. Reported-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/wm8739.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/media/i2c/wm8739.c b/drivers/media/i2c/wm8739.c index 3be73f6a40

[PATCH 11/12] pci/ivtv/ivtv-gpio: Remove compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
They are no longer used in old non-control-framework bridge drivers. Reported-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/pci/ivtv/ivtv-gpio.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/media/pci/ivtv/ivtv-gpio.c b/drivers/media/pci/ivtv/ivt

[PATCH 00/12] media/subdevices: Remove unused compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
Remove no longer used compat control ops, as they are not used in their bridge drivers. Working tree can be found at https://github.com/ribalda/linux/tree/compat_control_clean Ricardo Ribalda Delgado (12): media/i2c/adv7343: Remove compat control ops media/i2c/adv7393: Remove compat control o

[PATCH 08/12] media/i2c/tvp514x: Remove compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
They are no longer used in old non-control-framework bridge drivers. Reported-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/tvp514x.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/media/i2c/tvp514x.c b/drivers/media/i2c/tvp514x.c index 2

[PATCH 02/12] media/i2c/adv7393: Remove compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
They are no longer used in old non-control-framework bridge drivers. Reported-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/adv7393.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/media/i2c/adv7393.c b/drivers/media/i2c/adv7393.c index 558f191

[PATCH 07/12] media/i2c/tlv320aic23: Remove compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
They are no longer used in old non-control-framework bridge drivers. Reported-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/tlv320aic23b.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/media/i2c/tlv320aic23b.c b/drivers/media/i2c/tlv320aic23b.

[PATCH 06/12] media/i2c/tda7432: Remove compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
They are no longer used in old non-control-framework bridge drivers. Reported-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/tda7432.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/media/i2c/tda7432.c b/drivers/media/i2c/tda7432.c index cf93021

[PATCH 01/12] media/i2c/adv7343: Remove compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
They are no longer used in old non-control-framework bridge drivers. Reported-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/adv7343.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/media/i2c/adv7343.c b/drivers/media/i2c/adv7343.c index 7c50833

Re: RIP MTRR - status update for upcoming v4.2

2015-06-12 Thread Toshi Kani
On Fri, 2015-06-12 at 02:52 +0200, Luis R. Rodriguez wrote: > On Thu, Jun 11, 2015 at 05:23:16PM -0600, Toshi Kani wrote: > > On Thu, 2015-06-11 at 13:36 -0700, Luis R. Rodriguez wrote: > > : > > > Pending RIP MTRR patches > > > > > > > > > There are a few pending series so I

[RFC v3 03/19] videodev2.h: Fix typo in comment

2015-06-12 Thread Ricardo Ribalda Delgado
Referenced file has moved Signed-off-by: Ricardo Ribalda Delgado --- include/uapi/linux/videodev2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index b9468a3b833e..b059237f0214 100644 --- a/include/uapi/linux

[RFC v3 01/19] media/v4l2-core: Add argument def_value to g_ext_ctrl

2015-06-12 Thread Ricardo Ribalda Delgado
If def_value is set, the default value for the controls is returned. Helper function def_to_user is also added with the same interface as cur_to_user or new_to_user. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/platform/omap3isp/ispvideo.c | 2 +- drivers/media/v4l2-core/v4l2-ctrls

[RFC v3 07/19] media/usb/prusb2: Implement vivioc_g_def_ext_ctrls

2015-06-12 Thread Ricardo Ribalda Delgado
Callback needed by ioctl VIDIOC_G_DEF_EXT_CTRLS as this driver does not use the controller framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/usb/pvrusb2/pvrusb2-v4l2.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/media/usb/pvrusb2/pv

[RFC v3 02/19] media/v4l2-core: add new ioctl VIDIOC_G_DEF_EXT_CTRLS

2015-06-12 Thread Ricardo Ribalda Delgado
This ioctl returns the default value of one or more extended controls. It has the same interface as VIDIOC_EXT_CTRLS. It is needed due to the fact that QUERYCTRL was not enough to provide the initial value of pointer type controls. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-c

[RFC v3 00/19] New ioct VIDIOC_G_DEF_EXT_CTRLS

2015-06-12 Thread Ricardo Ribalda Delgado
Integer controls provide a way to get their default/initial value, but any other control (p_u32, p_u8.) provide no other way to get the initial value than unloading the module and loading it back. *What is the actual problem? I have a custom control with WIDTH integer values. Every value repre

[RFC v3 04/19] media/usb/uvc: Implement vivioc_g_def_ext_ctrls

2015-06-12 Thread Ricardo Ribalda Delgado
Callback needed by ioctl VIDIOC_G_DEF_EXT_CTRLS as this driver does not use the controller framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/usb/uvc/uvc_v4l2.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/media/usb/uvc/uvc_v4l2.c b

[RFC v3 12/19] media/i2c/msp3400-driver: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/msp3400-driver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/msp3400-driver.c b/drivers/media/i2c/msp3400-driver.c index dcc68ec71732..10837564af8e 100644 --- a/drivers/media/i2c/msp340

[RFC v3 14/19] media/i2c/saa7115: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/saa7115.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/saa7115.c b/drivers/media/i2c/saa7115.c index 0eae5f4471e2..c227dc11b136 100644 --- a/drivers/media/i2c/saa7115.c +++ b/drivers/medi

[RFC v3 05/19] media/pci/saa7164-encoder: Implement vivioc_g_def_ext_ctrls

2015-06-12 Thread Ricardo Ribalda Delgado
Callback needed by ioctl VIDIOC_G_DEF_EXT_CTRLS as this driver does not use the controller framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/pci/saa7164/saa7164-encoder.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/media/pci/saa7164

[RFC v3 13/19] media/i2c/saa7110: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/saa7110.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/saa7110.c b/drivers/media/i2c/saa7110.c index 99689ee57d7e..964cc2cf1508 100644 --- a/drivers/media/i2c/saa7110.c +++ b/drivers/medi

[RFC v3 06/19] media/pci/saa7164-vbi: Implement vivioc_g_def_ext_ctrls

2015-06-12 Thread Ricardo Ribalda Delgado
Callback needed by ioctl VIDIOC_G_DEF_EXT_CTRLS as this driver does not use the controller framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/pci/saa7164/saa7164-vbi.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/media/pci/saa7164/saa

[RFC v3 16/19] media/i2c/vpx3220: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/vpx3220.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/vpx3220.c b/drivers/media/i2c/vpx3220.c index 016e766e72ba..60d635250b19 100644 --- a/drivers/media/i2c/vpx3220.c +++ b/drivers/medi

[RFC v3 17/19] media/i2c/wm8775: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/wm8775.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/wm8775.c b/drivers/media/i2c/wm8775.c index bee7946faa7c..45d4873aca74 100644 --- a/drivers/media/i2c/wm8775.c +++ b/drivers/media/i2

[RFC v3 08/19] v4l2-subdev: Add g_def_ext_ctrls to core_ops

2015-06-12 Thread Ricardo Ribalda Delgado
This function returns the default value of an extended control. Provides sub-devices with the same functionality as ioctl VIDIOC_G_DEF_EXT_CTRLS. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/v4l2-ctrls.c | 7 +++ include/media/v4l2-ctrls.h | 2 ++ include/medi

[RFC v3 18/19] Docbook: media: new ioctl VIDIOC_G_DEF_EXT_CTRLS

2015-06-12 Thread Ricardo Ribalda Delgado
Add documentation for new ioctl. Signed-off-by: Ricardo Ribalda Delgado --- Documentation/DocBook/media/v4l/v4l2.xml | 8 Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml | 13 + Documentation/video4linux/v4l2-controls.txt| 3 ++- Documentat

[RFC v3 19/19] Documentation: media: Fix code sample

2015-06-12 Thread Ricardo Ribalda Delgado
Add newly created core op to the example. Signed-off-by: Ricardo Ribalda Delgado --- Documentation/video4linux/v4l2-controls.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/video4linux/v4l2-controls.txt b/Documentation/video4linux/v4l2-controls.txt index 7e3dfcacdbee..1d25

[RFC v3 09/19] media/i2c/bt819: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/bt819.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/bt819.c b/drivers/media/i2c/bt819.c index 76b334a6a56d..b3e9ac3616b5 100644 --- a/drivers/media/i2c/bt819.c +++ b/drivers/media/i2c/bt

[RFC v3 10/19] media/i2c/cs53l32a: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/cs53l32a.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/cs53l32a.c b/drivers/media/i2c/cs53l32a.c index 27400c16ef9a..9358350278cc 100644 --- a/drivers/media/i2c/cs53l32a.c +++ b/drivers/

[RFC v3 11/19] media/i2c/cx25840/cx25840-core: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/cx25840/cx25840-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/cx25840/cx25840-core.c b/drivers/media/i2c/cx25840/cx25840-core.c index e15a789ad596..5d8d25e6bbf0 100644 --- a/driver

[RFC v3 15/19] media/i2c/tlv320aic23b: Implement g_def_ext_ctrls core_op

2015-06-12 Thread Ricardo Ribalda Delgado
Via control framework. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/tlv320aic23b.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/tlv320aic23b.c b/drivers/media/i2c/tlv320aic23b.c index ef87f7b09ea2..4e279de8e194 100644 --- a/drivers/media/i2c/tlv320aic23b.

Re: [Xen-devel] RIP MTRR - status update for upcoming v4.2

2015-06-12 Thread Toshi Kani
On Fri, 2015-06-12 at 08:59 +0100, Jan Beulich wrote: > >>> On 12.06.15 at 01:23, wrote: > > There are two usages on MTRRs: > > 1) MTRR entries set by firmware > > 2) MTRR entries set by OS drivers > > > > We can obsolete 2), but we have no control over 1). As UEFI firmwares > > also set this

media_tree log has not been updated for about a month

2015-06-12 Thread Tycho Lürsen
Hi all, I don't know who is responsible for a functioning web frontend of your development tree in git. The thing is: http://git.linuxtv.org/cgit.cgi/media_tree.git/log/ has not been updated for about a month. It still shows 356484cabe44984d2dc66a90bd5e3465ba1f64fb ([media] dw2102: resync fif

Re: media_tree log has not been updated for about a month

2015-06-12 Thread Mauro Carvalho Chehab
Em 12 de junho de 2015 15:20:56 BRT, "Tycho Lürsen" escreveu: >Hi all, >I don't know who is responsible for a functioning web frontend of your >development tree in git. >The thing is: http://git.linuxtv.org/cgit.cgi/media_tree.git/log/ has >not been updated for about a month. >It still shows

Re: [PATCH] media: i2c/adp1653: set enable gpio to output

2015-06-12 Thread Sakari Ailus
Hallo Uwe, Thanks for the patch! On Fri, Jun 12, 2015 at 09:47:28AM +0200, Uwe Kleine-König wrote: > Without setting the direction of a gpio to output a call to > gpiod_set_value doesn't have a defined outcome. > > Furthermore this is one caller less that stops us making the flags > argument to

Re: [PATCH 1/1] omap3isp: Fix sub-device power management code

2015-06-12 Thread Sakari Ailus
Hi Laurent, On Fri, Jun 12, 2015 at 10:24:28AM +0300, Laurent Pinchart wrote: > Hi Sakari, > > On Thursday 11 June 2015 00:38:11 Sakari Ailus wrote: > > On Wed, Jun 10, 2015 at 03:52:50AM +0300, Laurent Pinchart wrote: > > > On Friday 29 May 2015 02:17:47 Sakari Ailus wrote: > > > > The power man

[PATCH v1.1 1/1] omap3isp: Fix sub-device power management code

2015-06-12 Thread Sakari Ailus
Commit 813f5c0ac5cc ("media: Change media device link_notify behaviour") modified the media controller link setup notification API and updated the OMAP3 ISP driver accordingly. As a side effect it introduced a bug by turning power on after setting the link instead of before. This results in sub-dev

Re: [Xen-devel] RIP MTRR - status update for upcoming v4.2

2015-06-12 Thread Andy Lutomirski
On Jun 12, 2015 12:59 AM, "Jan Beulich" wrote: > > >>> On 12.06.15 at 01:23, wrote: > > There are two usages on MTRRs: > > 1) MTRR entries set by firmware > > 2) MTRR entries set by OS drivers > > > > We can obsolete 2), but we have no control over 1). As UEFI firmwares > > also set this up, t

Re: [Xen-devel] RIP MTRR - status update for upcoming v4.2

2015-06-12 Thread James Bottomley
On Fri, 2015-06-12 at 16:15 -0700, Andy Lutomirski wrote: > On Jun 12, 2015 12:59 AM, "Jan Beulich" wrote: > > > > >>> On 12.06.15 at 01:23, wrote: > > > There are two usages on MTRRs: > > > 1) MTRR entries set by firmware > > > 2) MTRR entries set by OS drivers > > > > > > We can obsolete 2),

drivers/media/dvb-frontends/rtl2832_sdr.c:1435:3-8: No need to set .owner here. The core will do it.

2015-06-12 Thread kbuild test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b85dfd30cb37318587018ee430c2c1cfabf3dabc commit: 63bdab5d31b987c5ccb81c3c6662016d07cbb5b7 [media] rtl2832_sdr: convert to platform driver date: 4 months ago coccinelle warnings: (new ones prefixed by >>) >

cron job: media_tree daily build: WARNINGS

2015-06-12 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: Sat Jun 13 04:00:17 CEST 2015 git branch: test git hash: e42c8c6eb456f8978de417ea349eef676ef4385c gcc versi

AverMedia HD Duet (White Box) A188WB drivers

2015-06-12 Thread David Nelson
I have the AverMedia HD Duet (White Box) A188WB. Which has been working great for several years in Windows 7 Media Center. I just tried installing Mythbuntu but it does not appear to be recognized. I am a bit of a newbie but I managed to find some info about it. Does anyone know of a driver for it

Re: AverMedia HD Duet (White Box) A188WB drivers

2015-06-12 Thread Manu Abraham
Hi David, The saa7160 chipset is supported by the saa716x driver. I wrote a driver for it, which is over here. http://git.linuxtv.org/cgit.cgi/manu/saa716x_new.git I do have the A188 card and documentation also with me, thanks to Avermedia. The card is not yet supported in the above tree, so clo

  1   2   >