Re: [PATCH 1/2] media: add support for decoder subdevs along with sensor and others

2013-01-25 Thread Prabhakar Lad
Hi Sylwester, On Sat, Jan 26, 2013 at 1:24 AM, Sylwester Nawrocki wrote: > Hi Prahakar, > > > On 01/25/2013 08:01 AM, Prabhakar Lad wrote: >> >> From: Manjunath Hadli >> >> A lot of SOCs including Texas Instruments Davinci family mainly use >> video decoders as input devices. Here the initial sub

[PATCH] staging/media/go7007: Use kmemdup rather than duplicating its implementation

2013-01-25 Thread Peter Huewe
Found with coccicheck. The semantic patch that makes this change is available in scripts/coccinelle/api/memdup.cocci. Signed-off-by: Peter Huewe --- drivers/staging/media/go7007/go7007-driver.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/staging/media/go700

[PATCH] staging/media/solo6x10: Use PTR_RET rather than if(IS_ERR(...)) + PTR_ERR

2013-01-25 Thread Peter Huewe
Found with coccicheck. The semantic patch that makes this change is available in scripts/coccinelle/api/ptr_ret.cocci. Signed-off-by: Peter Huewe --- drivers/staging/media/solo6x10/v4l2.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/drivers/staging/media/solo6x10

[PATCH] crystalhd git.linuxtv.org kernel driver: FIX null pointer BUG in crystalhd_dioq_fetch_wait() on queue(s) overload

2013-01-25 Thread thomas schorpp
This patch should pass at least one test case of this bug. Signed-off-by: Thomas Schorpp y tom 8043-Jan 24 18:33:14 tom3 kernel: [ 457.636878] BUG: unable to handle kernel NULL pointer dereference at 002c 8044:Jan 24 18:33:14 tom3 kernel: [ 457.637016] IP: [] crystalhd_dioq_fet

[GIT PULL FOR 3.9] OV9650 image sensor driver, v4l2-ctrl/core extensions

2013-01-25 Thread Sylwester Nawrocki
Hi Mauro, This change set includes the Omnivision OV9650/52 sensor driver and a couple related patches, adding v4l2 core helper functions and a header defining standard image sizes. Please pull. The following changes since commit a32f7d1ad3744914273c6907204c2ab3b5d496a0: Merge branch 'v4l_f

Re: [PATCH 1/2] media: add support for decoder subdevs along with sensor and others

2013-01-25 Thread Sylwester Nawrocki
Hi Prahakar, On 01/25/2013 08:01 AM, Prabhakar Lad wrote: From: Manjunath Hadli A lot of SOCs including Texas Instruments Davinci family mainly use video decoders as input devices. Here the initial subdevice node from where the input really comes is this decoder, for which support is needed as

[PATCH 1/1] v4l: Document timestamp behaviour to correspond to reality

2013-01-25 Thread Sakari Ailus
Document that monotonic timestamps are taken after the corresponding frame has been received, not when the reception has begun. This corresponds to the reality of current drivers: the timestamp is naturally taken when the hardware triggers an interrupt to tell the driver to handle the received fram

[REVIEW PATCH 12/12] em28xx: do not claim VBI support if the device is a camera

2013-01-25 Thread Frank Schäfer
Avoids registering a VBI device and streaming in VBI-mode if the device is a camera. Signed-off-by: Frank Schäfer --- drivers/media/usb/em28xx/em28xx-core.c |5 + 1 Datei geändert, 5 Zeilen hinzugefügt(+) diff --git a/drivers/media/usb/em28xx/em28xx-core.c b/drivers/media/usb/em28xx/em

[REVIEW PATCH 10/12] em28xx: remove obsolete device state checks from the ioctl functions

2013-01-25 Thread Frank Schäfer
v4l2_device_disconnect() is called when the device is disconnected, so that the v4l2-core rejects all ioctl calls. Signed-off-by: Frank Schäfer --- drivers/media/usb/em28xx/em28xx-video.c | 43 --- 1 Datei geändert, 43 Zeilen entfernt(-) diff --git a/drivers/media/

[REVIEW PATCH 11/12] em28xx: make ioctl VIDIOC_DBG_G_CHIP_IDENT available for radio devices

2013-01-25 Thread Frank Schäfer
Signed-off-by: Frank Schäfer --- drivers/media/usb/em28xx/em28xx-video.c |1 + 1 Datei geändert, 1 Zeile hinzugefügt(+) diff --git a/drivers/media/usb/em28xx/em28xx-video.c b/drivers/media/usb/em28xx/em28xx-video.c index dd05cfb..e97b095 100644 --- a/drivers/media/usb/em28xx/em28xx-video.c

[REVIEW PATCH 09/12] em28xx: VIDIOC_G_TUNER: remove unneeded setting of tuner type

2013-01-25 Thread Frank Schäfer
The tuner type is set by the v4l2-core based on the device type. Signed-off-by: Frank Schäfer --- drivers/media/usb/em28xx/em28xx-video.c |1 - 1 Datei geändert, 1 Zeile entfernt(-) diff --git a/drivers/media/usb/em28xx/em28xx-video.c b/drivers/media/usb/em28xx/em28xx-video.c index af3e70a

[REVIEW PATCH 07/12] em28xx: remove ioctl VIDIOC_CROPCAP

2013-01-25 Thread Frank Schäfer
The em28xx driver doesn't support the VIDIOC_G_CROP and VIDIOC_S_CROP ioctls, so VIDIOC_CROPCAP is useless and has the potential to confuse applications, because it can be interpreted as indicator for cropping support. Signed-off-by: Frank Schäfer --- drivers/media/usb/em28xx/em28xx-video.c |

[REVIEW PATCH 08/12] em28xx: get rid of duplicate function vidioc_s_fmt_vbi_cap()

2013-01-25 Thread Frank Schäfer
vidioc_s_fmt_vbi_cap() is a 100% duplicate of vidioc_g_fmt_vbi_cap() and therefore can be removed. Signed-off-by: Frank Schäfer --- drivers/media/usb/em28xx/em28xx-video.c | 31 +-- 1 Datei geändert, 1 Zeile hinzugefügt(+), 30 Zeilen entfernt(-) diff --git a/driver

[REVIEW PATCH 06/12] em28xx: make ioctls VIDIOC_G/S_PARM working for VBI devices

2013-01-25 Thread Frank Schäfer
With the current code V4L2_BUF_TYPE_VIDEO_CAPTURE is accepted only, but for VBI devices only buffer type V4L2_BUF_TYPE_VBI_CAPTURE is used/valid. Remove the buffer type check entirely, because this is already done by the v4l2-core. Signed-off-by: Frank Schäfer --- drivers/media/usb/em28xx/em28

[REVIEW PATCH 05/12] em28xx: disable ioctl VIDIOC_S_PARM for VBI devices

2013-01-25 Thread Frank Schäfer
VIDIOC_S_PARM doesn't make sense for VBI device nodes, because we don't support selecting the number of read buffers to use. Signed-off-by: Frank Schäfer --- drivers/media/usb/em28xx/em28xx-video.c |1 + 1 Datei geändert, 1 Zeile hinzugefügt(+) diff --git a/drivers/media/usb/em28xx/em28xx-v

[REVIEW PATCH 01/12] em28xx: use v4l2_disable_ioctl() to disable ioctls VIDIOC_QUERYSTD, VIDIOC_G/S_STD

2013-01-25 Thread Frank Schäfer
Instead of checking the device type and returning -ENOTTY inside the ioctl functions, use v4l2_disable_ioctl() to disable the ioctls VIDIOC_QUERYSTD, VIDIOC_G_STD and VIDIOC_S_STD if the device is a camera. Signed-off-by: Frank Schäfer --- drivers/media/usb/em28xx/em28xx-video.c | 13 +++--

[REVIEW PATCH 04/12] em28xx: use v4l2_disable_ioctl() to disable ioctl VIDIOC_S_PARM

2013-01-25 Thread Frank Schäfer
Instead of checking the device type and returning -ENOTTY inside the ioctl function, use v4l2_disable_ioctl() to disable the ioctl VIDIOC_S_PARM if the device is not a camera. Signed-off-by: Frank Schäfer --- drivers/media/usb/em28xx/em28xx-video.c |5 ++--- 1 Datei geändert, 2 Zeilen hinzug

[REVIEW PATCH 03/12] em28xx: use v4l2_disable_ioctl() to disable ioctls VIDIOC_G_AUDIO and VIDIOC_S_AUDIO

2013-01-25 Thread Frank Schäfer
Instead of checking the device type and returning -EINVAL inside the ioctl functions, use v4l2_disable_ioctl() to disable the ioctls VIDIOC_G_AUDIO and VIDIOC_S_AUDIO if the device doesn't support audio. Signed-off-by: Frank Schäfer --- drivers/media/usb/em28xx/em28xx-video.c | 15

[REVIEW PATCH 02/12] em28xx: disable tuner related ioctls for video and VBI devices without tuner

2013-01-25 Thread Frank Schäfer
Disable the ioctls VIDIOC_G_TUNER, VIDIOC_S_TUNER, VIDIOC_G_FREQUENCY and VIDIOC_S_FREQUENCY for video and VBI devices without tuner. Signed-off-by: Frank Schäfer --- drivers/media/usb/em28xx/em28xx-video.c | 14 ++ 1 Datei geändert, 14 Zeilen hinzugefügt(+) diff --git a/drivers/m

[REVIEW PATCH 00/12] em28xx: ioctl fixes/clean-ups

2013-01-25 Thread Frank Schäfer
This patch series addresses some issues with the ioctl code of the em28xx driver: Patches 1-5 and 11 fix and clean up the enabling/disabling of the ioctls depending on the device type and equipment. Patches 6-10 remove some obsolete/useless code. Patch 12 improves the VBI support detection and de

Re: [REVIEW PATCH 3/3] mt9v011: convert to the control framework.

2013-01-25 Thread Frank Schäfer
Am 24.01.2013 08:51, schrieb Hans Verkuil: > From: Hans Verkuil > > Signed-off-by: Hans Verkuil > --- > drivers/media/i2c/mt9v011.c | 223 > +-- > 1 file changed, 67 insertions(+), 156 deletions(-) > > diff --git a/drivers/media/i2c/mt9v011.c b/drivers/m

Re: partial revert of "uvcvideo: set error_idx properly"

2013-01-25 Thread Hans Verkuil
On Fri January 25 2013 14:40:45 Hans de Goede wrote: > Hi, > > On 01/25/2013 11:40 AM, Hans Verkuil wrote: > > > > >> What I did notice is that pwc_vidioc_try_fmt returns EINVAL when > >> an unsupported pixelformat is requested. IIRC we agreed that the > >> correct behavior in this case is to i

Re: partial revert of "uvcvideo: set error_idx properly"

2013-01-25 Thread Hans de Goede
Hi, On 01/25/2013 11:40 AM, Hans Verkuil wrote: What I did notice is that pwc_vidioc_try_fmt returns EINVAL when an unsupported pixelformat is requested. IIRC we agreed that the correct behavior in this case is to instead just change the pixelformat to a default format, so I'll write a patch

Re: [PATCH 0/2 v3] Add proper timestamp types handling in videobuf2

2013-01-25 Thread Sakari Ailus
On Fri, Jan 25, 2013 at 11:29:55AM +0100, Kamil Debski wrote: > Hi, > > This is the third version of the patch posted earlier this month. > After the discussion a WARN_ON was added to inform if the driver is not > setting > timestamp type when initialising the videobuf2 queue. Small correction to

Re: [PATCH 0/2 v3] Add proper timestamp types handling in videobuf2

2013-01-25 Thread Laurent Pinchart
Hi Kamil, Thanks for the patches. On Friday 25 January 2013 11:29:55 Kamil Debski wrote: > Hi, > > This is the third version of the patch posted earlier this month. > After the discussion a WARN_ON was added to inform if the driver is not > setting timestamp type when initialising the videobuf2

[FYI PATCH] Cisco's ths7353 driver...

2013-01-25 Thread Hans Verkuil
Hi Prabhakar, As mentioned in my review of your ths7353 driver we (Cisco) have a driver for this device as well. Below is our driver so you can take the best bits of both. However, I wonder if instead the ths7353 driver and the already existing ths7303 driver should just be merged. They are awful

Re: [PATCH 2/2 v3] vb2: Add support for non monotonic timestamps

2013-01-25 Thread Hans Verkuil
On Fri January 25 2013 11:29:57 Kamil Debski wrote: > Not all drivers use monotonic timestamps. This patch adds a way to set the > timestamp type per every queue. > > In addition, set proper timestamp type in drivers that I am sure that use > either MONOTONIC or COPY timestamps. Other drivers will

Re: [PATCH 2/2] media: add support for THS7353 video amplifier

2013-01-25 Thread Hans Verkuil
Hi Prabhakar, Some comments below: On Fri January 25 2013 11:36:07 Prabhakar Lad wrote: > From: Manjunath Hadli > > The patch adds support for THS7353 video amplifier. Enable > dv_preset support for THS7353 so that setting a HD mode on the > host device makes sure appropriate mode in the amplif

Re: [PATCH 1/2 v3] v4l: Define video buffer flag for the COPY timestamp type

2013-01-25 Thread Hans Verkuil
On Fri January 25 2013 11:29:56 Kamil Debski wrote: > Define video buffer flag for the COPY timestamp. In this case the timestamp > value is copied from the OUTPUT to the corresponding CAPTURE buffer. > > Signed-off-by: Kamil Debski > Signed-off-by: Kyungmin Park Acked-by: Hans Verkuil Regard

Re: partial revert of "uvcvideo: set error_idx properly"

2013-01-25 Thread Hans Verkuil
On Fri January 25 2013 10:51:57 Hans de Goede wrote: > > > Hi, > > On 12/25/2012 05:56 AM, Mauro Carvalho Chehab wrote: > > > The pwc driver can currently return -ENOENT at VIDIOC_S_FMT ioctl. This > > doesn't seem right. Instead, it should be getting the closest format to > > the requested one

[PATCH 0/2] Add support THS7353 video amplifier support

2013-01-25 Thread Prabhakar Lad
From: Lad, Prabhakar This patch series adds driver for THS7353 video amplifier. The first patch of the series adds the chip-id for THS7353 and the second patch adds the driver. Manjunath Hadli (2): media: add chip id for THS7353 media: add support for THS7353 video amplifier drivers/media/

[PATCH 1/2] media: add chip id for THS7353

2013-01-25 Thread Prabhakar Lad
From: Manjunath Hadli add chip id for THS7353 amplifier. Signed-off-by: Manjunath Hadli Signed-off-by: Lad, Prabhakar --- include/media/v4l2-chip-ident.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/media/v4l2-chip-ident.h b/include/media/v4l2-chip-ident.

[GIT PULL FOR 3.9] gspca IS_ENABLED patches + 1 pwc fix

2013-01-25 Thread Hans de Goede
Hi Mauro, Please pull from my gspca tree for the gspca IS_ENABLED patches + 1 pwc fix The following changes since commit a32f7d1ad3744914273c6907204c2ab3b5d496a0: Merge branch 'v4l_for_linus' into staging/for_v3.9 (2013-01-24 18:49:18 -0200) are available in the git repository at: git://

[PATCH 2/2] media: add support for THS7353 video amplifier

2013-01-25 Thread Prabhakar Lad
From: Manjunath Hadli The patch adds support for THS7353 video amplifier. Enable dv_preset support for THS7353 so that setting a HD mode on the host device makes sure appropriate mode in the amplifier is enabled. Signed-off-by: Manjunath Hadli Signed-off-by: Lad, Prabhakar --- drivers/media/i

[PATCH 2/2 v3] vb2: Add support for non monotonic timestamps

2013-01-25 Thread Kamil Debski
Not all drivers use monotonic timestamps. This patch adds a way to set the timestamp type per every queue. In addition, set proper timestamp type in drivers that I am sure that use either MONOTONIC or COPY timestamps. Other drivers will correctly report UNKNOWN timestamp type instead of assuming t

[PATCH 1/2 v3] v4l: Define video buffer flag for the COPY timestamp type

2013-01-25 Thread Kamil Debski
Define video buffer flag for the COPY timestamp. In this case the timestamp value is copied from the OUTPUT to the corresponding CAPTURE buffer. Signed-off-by: Kamil Debski Signed-off-by: Kyungmin Park --- Documentation/DocBook/media/v4l/io.xml |6 ++ include/uapi/linux/videodev2.h

[PATCH 0/2 v3] Add proper timestamp types handling in videobuf2

2013-01-25 Thread Kamil Debski
Hi, This is the third version of the patch posted earlier this month. After the discussion a WARN_ON was added to inform if the driver is not setting timestamp type when initialising the videobuf2 queue. Small correction to the documentation was also made and two patche were squashed to avoid prob

RE: [PATCH 3/3 v2] v4l: Set proper timestamp type in selected drivers which use videobuf2

2013-01-25 Thread Kamil Debski
Hi Sakari, > From: Sakari Ailus [mailto:sakari.ai...@iki.fi] > Sent: Thursday, January 24, 2013 8:12 PM > [snip] > > > > > > Do you have a list of those other drivers using vb2 that will > report > > > an unknown timestamp type ? > > > > Here are the drivers: > > > > drivers/media/platform/coda

[PATCH 1/2] [media] s5p-g2d: Add DT based discovery support

2013-01-25 Thread Sachin Kamat
This patch adds device tree based discovery support to G2D driver Signed-off-by: Sachin Kamat --- drivers/media/platform/s5p-g2d/g2d.c | 17 - 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/drivers/media/platform/s5p-g2d/g2d.c b/drivers/media/platform/s5p-g2d/

[PATCH 2/2] drm/exynos: Add device tree based discovery support for G2D

2013-01-25 Thread Sachin Kamat
From: Ajay Kumar This patch adds device tree match table for Exynos G2D controller. Signed-off-by: Ajay Kumar Signed-off-by: Sachin Kamat --- drivers/gpu/drm/exynos/exynos_drm_g2d.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/exynos/exyno

[PATCH] media: tvp514x: enable TVP514X for media controller based usage

2013-01-25 Thread Prabhakar Lad
From: Manjunath Hadli add support for TVP514x as a media entity and support for pad operations. The decoder supports 1 output pad. The default format code was V4L2_MBUS_FMT_YUYV10_2X10 changed it to V4L2_MBUS_FMT_UYVY8_2X8. Signed-off-by: Manjunath Hadli Signed-off-by: Lad, Prabhakar --- This

Re: partial revert of "uvcvideo: set error_idx properly"

2013-01-25 Thread Hans de Goede
Hi, On 12/25/2012 05:56 AM, Mauro Carvalho Chehab wrote: The pwc driver can currently return -ENOENT at VIDIOC_S_FMT ioctl. This doesn't seem right. Instead, it should be getting the closest format to the requested one and return 0, passing the selected format back to userspace, just like the

[PATCH v17 6/7] drm_modes: add videomode helpers

2013-01-25 Thread Steffen Trumtrar
Add conversion from videomode to drm_display_mode Signed-off-by: Steffen Trumtrar Reviewed-by: Thierry Reding Acked-by: Thierry Reding Tested-by: Thierry Reding Tested-by: Philipp Zabel Reviewed-by: Laurent Pinchart Acked-by: Laurent Pinchart Tested-by: Afzal Mohammed Tested-by: Rob Clark

[PATCH v17 1/7] viafb: rename display_timing to via_display_timing

2013-01-25 Thread Steffen Trumtrar
The struct display_timing is specific to the via subsystem. The naming leads to collisions with the new struct display_timing, which is supposed to be a shared struct between different subsystems. To clean this up, prepend the existing struct with the subsystem it is specific to. Signed-off-by: St

[PATCH v17 0/7] of: add display helper

2013-01-25 Thread Steffen Trumtrar
Hi! This is basically just a resend of v16 that was rebased onto v3.8-rc4 and has two new "tested-by"s from Rob and Leela. The patches were tested with: - v15 on Tegra by Thierry - sh-mobile-lcdcfb by Laurent - MX53QSB by Marek - Exynos: smdk5250 by Leela

[PATCH v17 2/7] video: add display_timing and videomode

2013-01-25 Thread Steffen Trumtrar
Add display_timing structure and the according helper functions. This allows the description of a display via its supported timing parameters. Also, add helper functions to convert from display timings to a generic videomode structure. The struct display_timing specifies all needed parameters to

[PATCH v17 4/7] fbmon: add videomode helpers

2013-01-25 Thread Steffen Trumtrar
Add a function to convert from the generic videomode to a fb_videomode. Signed-off-by: Steffen Trumtrar Reviewed-by: Thierry Reding Acked-by: Thierry Reding Tested-by: Thierry Reding Tested-by: Philipp Zabel Reviewed-by: Laurent Pinchart Acked-by: Laurent Pinchart Tested-by: Afzal Mohammed

[PATCH v17 3/7] video: add of helper for display timings/videomode

2013-01-25 Thread Steffen Trumtrar
This adds support for reading display timings from DT into a struct display_timings. The of_display_timing implementation supports multiple subnodes. All children are read into an array, that can be queried. If no native mode is specified, the first subnode will be used. For cases where the graph

[PATCH v17 5/7] fbmon: add of_videomode helpers

2013-01-25 Thread Steffen Trumtrar
Add helper to get fb_videomode from devicetree. Signed-off-by: Steffen Trumtrar Reviewed-by: Thierry Reding Acked-by: Thierry Reding Tested-by: Thierry Reding Tested-by: Philipp Zabel Reviewed-by: Laurent Pinchart Acked-by: Laurent Pinchart Tested-by: Afzal Mohammed Tested-by: Rob Clark T

[PATCH v17 7/7] drm_modes: add of_videomode helpers

2013-01-25 Thread Steffen Trumtrar
Add helper to get drm_display_mode from devicetree. Signed-off-by: Steffen Trumtrar Reviewed-by: Thierry Reding Acked-by: Thierry Reding Tested-by: Thierry Reding Tested-by: Philipp Zabel Reviewed-by: Laurent Pinchart Acked-by: Laurent Pinchart Tested-by: Afzal Mohammed Tested-by: Rob Clar

Re: [PATCH v16 RESEND 0/7] of: add display helper

2013-01-25 Thread Steffen Trumtrar
Hi Afzal, On Thu, Jan 24, 2013 at 08:47:02AM +, Mohammed, Afzal wrote: > Hi Steffen, > > On Thu, Jan 24, 2013 at 13:49:58, Steffen Trumtrar wrote: > > > Thanks. I'll use that opportunity for a v17 that is rebased onto 3.8-rc4. > > As you are going to have a v17, if you can fold the diff[1]