[PATCH v2] media: v4l2-ctrls: add control for test pattern

2012-09-07 Thread Prabhakar Lad
From: Lad, Prabhakar prabhakar@ti.com add V4L2_CID_TEST_PATTERN of type menu, which determines the internal test pattern selected by the device. Signed-off-by: Lad, Prabhakar prabhakar@ti.com Signed-off-by: Manjunath Hadli manjunath.ha...@ti.com Cc: Sakari Ailus sakari.ai...@iki.fi Cc:

[PATCH] drivers: media: video: Add support for Aptina ar0130 sensor

2012-09-07 Thread Prashanth Subramanya
This driver adds basic support for Aptina ar0130 1.2M sensor. Signed-off-by: Prashanth Subramanya sprasha...@aptina.com --- drivers/media/video/Kconfig |7 + drivers/media/video/Makefile |1 + drivers/media/video/ar0130.c | 1114 +

Using MMAP calls on a video capture device having underlying NOMMU arch

2012-09-07 Thread Bhupesh SHARMA
Hi, I have been trying recently to make a usb-based-webcam device to work with Linux. The entire scheme is a bit complex: UVC gadget --User Pointer-- User-Space Daemon -- MMAP -- V4L2 capture device. The UVC gadget is internally a v4l2 based device supporting VB2_VMALLOC operations, whereas

Re: [PATCH] drivers: media: video: Add support for Aptina ar0130 sensor

2012-09-07 Thread Hans Verkuil
Hi Prashanth! Thanks for working on this driver. I do have a few comments about this driver, mostly coding style and v4l2 API related things. On Fri September 7 2012 11:30:26 Prashanth Subramanya wrote: This driver adds basic support for Aptina ar0130 1.2M sensor. Signed-off-by: Prashanth

Re: go7007 question

2012-09-07 Thread volokh
On Thu, Sep 06, 2012 at 11:10:14PM +0400, Volokh Konstantin wrote: On Mon, Sep 03, 2012 at 02:37:16PM -0400, Adam Rosi-Kessel wrote: [469.928881] wis-saa7115: initializing SAA7115 at address 32 on WIS GO7007SB EZ-USB [469.989083] go7007: probing for module i2c:wis_saa7115 failed

[PATCH] Unregister device and unlock mutex before exit when error

2012-09-07 Thread Peter Senna Tschudin
Signed-off-by: Peter Senna Tschudin peter.se...@gmail.com --- Depends on patch 14167: http://patchwork.linuxtv.org/patch/14167/ [PATCH 1/5] drivers/media/platform/davinci/vpbe.c: fix error return code drivers/media/platform/davinci/vpbe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[RFCv2 API PATCH 04/28] DocBook: make the G/S/TRY_FMT specification more strict.

2012-09-07 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com - S/TRY_FMT should always succeed, unless an invalid type field is passed in. - TRY_FMT should give the same result as S_FMT, all other things being equal. - ENUMFMT may return different formats for different inputs or outputs. This was decided during

[RFCv2 API PATCH 13/28] Add V4L2_CAP_MONOTONIC_TS where applicable.

2012-09-07 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Add the new V4L2_CAP_MONOTONIC_TS capability to those drivers that use monotomic timestamps instead of the system time. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx18/cx18-ioctl.c |2 +-

[RFCv2 API PATCH 07/28] DocBook: deprecate V4L2_BUF_TYPE_PRIVATE.

2012-09-07 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com As per decision taken during the 2012 Media Workshop. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- Documentation/DocBook/media/v4l/compat.xml |2 +- Documentation/DocBook/media/v4l/io.xml | 14 ++

[RFCv2 API PATCH 09/28] DocBook: document when to return ENODATA.

2012-09-07 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com ENODATA should be returned if the API used for getting/changing/querying the current video timings is not supported by the current input or output. This was decided during the 2012 Media Workshop. Signed-off-by: Hans Verkuil hans.verk...@cisco.com ---

[RFCv2 API PATCH 21/28] v4l2: make vidioc_s_audout const.

2012-09-07 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Write-only ioctls should have a const argument in the ioctl op. Do this conversion for vidioc_s_audout. Adding const for write-only ioctls was decided during the 2012 Media Workshop. Signed-off-by: Hans Verkuil hans.verk...@cisco.com ---

[RFCv2 API PATCH 11/28] DocBook: fix awkward language and fix the documented return value.

2012-09-07 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com The Video Standard section contains some awkward language. It also wasn't updated when the error code for unimplemented ioctls changed from EINVAL to ENOTTY. Signed-off-by: Hans Verkuil hans.verk...@cisco.com ---

[RFCv2 API PATCH 10/28] Rename V4L2_(IN|OUT)_CAP_CUSTOM_TIMINGS.

2012-09-07 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com The 'custom' timings are no longer just for custom timings, but also for standard CEA/VESA timings. So rename to V4L2_IN/OUT_CAP_DV_TIMINGS. The old define is still kept for backwards compatibility. This decision was taken during the 2012 Media

[RFCv2 API PATCH 16/28] v4l2: make vidioc_s_fbuf const.

2012-09-07 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Write-only ioctls should have a const argument in the ioctl op. Do this conversion for vidioc_s_fbuf. Adding const for write-only ioctls was decided during the 2012 Media Workshop. Signed-off-by: Hans Verkuil hans.verk...@cisco.com ---

[RFCv2 API PATCH 20/28] v4l2: make vidioc_s_audio const.

2012-09-07 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Write-only ioctls should have a const argument in the ioctl op. Do this conversion for vidioc_s_audio. Adding const for write-only ioctls was decided during the 2012 Media Workshop. Signed-off-by: Hans Verkuil hans.verk...@cisco.com ---

[RFCv2 API PATCH 24/28] v4l2-dev: add new VFL_DIR_ defines.

2012-09-07 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com These will be used by v4l2-dev.c to improve ioctl checking. I.e. ioctls for capture should return -ENOTTY when called for an output device. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- include/media/v4l2-dev.h |9 - 1 file changed,

[RFCv2 API PATCH 19/28] v4l2: make vidioc_(un)subscribe_event const.

2012-09-07 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Write-only ioctls should have a const argument in the ioctl op. Do this conversion for vidioc_(un)subscribe_event. Adding const for write-only ioctls was decided during the 2012 Media Workshop. Signed-off-by: Hans Verkuil hans.verk...@cisco.com ---

[RFCv2 API PATCH 25/28] Set vfl_dir for all display or m2m drivers.

2012-09-07 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/ivtv/ivtv-streams.c |3 +++ drivers/media/pci/zoran/zoran_card.c |4 drivers/media/platform/coda.c |1 +

[RFCv2 API PATCH 17/28] v4l2: make vidioc_s_jpegcomp const.

2012-09-07 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Write-only ioctls should have a const argument in the ioctl op. Do this conversion for vidioc_s_jpegcomp. Adding const for write-only ioctls was decided during the 2012 Media Workshop. Signed-off-by: Hans Verkuil hans.verk...@cisco.com ---

[RFCv2 API PATCH 12/28] v4l2-core: Add new V4L2_CAP_MONOTONIC_TS capability.

2012-09-07 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Add a new flag that tells userspace that the monotonic clock is used for timestamps and update the documentation accordingly. We decided on this new flag during the 2012 Media Workshop. Signed-off-by: Hans Verkuil hans.verk...@cisco.com ---

[RFCv2 API PATCH 08/28] v4l2: remove experimental tag from a number of old drivers.

2012-09-07 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com A number of old drivers still had the experimental tag. Time to remove it. It concerns the following drivers: VIDEO_TLV320AIC23B USB_STKWEBCAM VIDEO_CX18 VIDEO_CX18_ALSA VIDEO_ZORAN_AVS6EYES DVB_USB_AF9005 MEDIA_TUNER_TEA5761 VIDEO_NOON010PC30 This

[RFCv2 API PATCH 01/28] v4l: Remove experimental tag from certain API elements

2012-09-07 Thread Hans Verkuil
From: Sakari Ailus sakari.ai...@iki.fi Remove experimantal tag from the following API elements: V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY buffer type. V4L2_CAP_VIDEO_OUTPUT_OVERLAY capability flag. VIDIOC_ENUM_FRAMESIZES IOCTL. VIDIOC_ENUM_FRAMEINTERVALS IOCTL. VIDIOC_G_ENC_INDEX IOCTL.

[RFCv2 API PATCH 14/28] DocBook: clarify that sequence is also set for output devices.

2012-09-07 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com It was not entirely obvious that the sequence count should also be set for output devices. Also made it more explicit that this sequence counter counts frames, not fields. Signed-off-by: Hans Verkuil hans.verk...@cisco.com ---

[RFCv2 API PATCH 22/28] v4l2: make vidioc_s_modulator const.

2012-09-07 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Write-only ioctls should have a const argument in the ioctl op. Do this conversion for vidioc_s_modulator. Adding const for write-only ioctls was decided during the 2012 Media Workshop. Signed-off-by: Hans Verkuil hans.verk...@cisco.com ---

[RFCv2 API PATCH 26/28] v4l2-dev: improve ioctl validity checks.

2012-09-07 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com The ioctl validity checks have been improved and now take vfl_type and vfl_dir into account. During the 2012 Media Workshop it was decided that these improved v4l2 core checks should be added as they simplified drivers and made drivers behave

[RFCv2 API PATCH 27/28] v4l2-dev: reorder checks into blocks of ioctls with similar properties.

2012-09-07 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com This makes it easier to read and also ties in more closely with the profile concept. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/v4l2-core/v4l2-dev.c | 156 +--- 1 file changed, 74 insertions(+),

[RFCv2 API PATCH 18/28] v4l2: make vidioc_s_freq_hw_seek const.

2012-09-07 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Write-only ioctls should have a const argument in the ioctl op. Do this conversion for vidioc_s_freq_hw_seek. Adding const for write-only ioctls was decided during the 2012 Media Workshop. Signed-off-by: Hans Verkuil hans.verk...@cisco.com ---

[RFCv2 API PATCH 03/28] DocBook: improve STREAMON/OFF documentation.

2012-09-07 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Specify that STREAMON/OFF should return 0 if the stream is already started/stopped. The spec never specified what the correct behavior is. This ambiguity was resolved during the 2012 Media Workshop. Signed-off-by: Hans Verkuil hans.verk...@cisco.com ---

[RFCv2 API PATCH 23/28] v4l2: make vidioc_s_crop const.

2012-09-07 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Write-only ioctls should have a const argument in the ioctl op. Do this conversion for vidioc_s_crop. Adding const for write-only ioctls was decided during the 2012 Media Workshop. Signed-off-by: Hans Verkuil hans.verk...@cisco.com ---

[RFCv2 API PATCH 28/28] Add vfl_dir field documentation.

2012-09-07 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- Documentation/video4linux/v4l2-framework.txt |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Documentation/video4linux/v4l2-framework.txt

[RFCv2 API PATCH 15/28] DocBook: Mark CROPCAP as optional instead of as compulsory.

2012-09-07 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com While the documentation says that VIDIOC_CROPCAP is compulsory for all video capture and output devices, in practice VIDIOC_CROPCAP is only implemented for devices that can do cropping and/or scaling. Update the documentation to no longer require

[PATCH] drivers/media/pci/cx25821/cx25821-video-upstream-ch2.c: fix error return code

2012-09-07 Thread Peter Senna Tschudin
From: Peter Senna Tschudin peter.se...@gmail.com Convert a nonnegative error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // smpl ( if@p1 (\(ret 0\|ret !=

Re: [RFCv2 API PATCH 00/28] Full series of API fixes from the 2012 Media Workshop

2012-09-07 Thread Devin Heitmueller
On Fri, Sep 7, 2012 at 9:29 AM, Hans Verkuil hverk...@xs4all.nl wrote: I have also tested this patch series (actually a slightly older version) with em28xx. That driver needed a lot of changes to get it to pass the v4l2-compliance tests. Those can be found here:

[PATCH 6/10] drivers/media/i2c/tea6415c.c: removes unnecessary semicolon

2012-09-07 Thread Peter Senna Tschudin
From: Peter Senna Tschudin peter.se...@gmail.com removes unnecessary semicolon Found by Coccinelle: http://coccinelle.lip6.fr/ Signed-off-by: Peter Senna Tschudin peter.se...@gmail.com --- drivers/media/i2c/tea6415c.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -u -p

[PATCH 7/10] drivers/media/tuners/tda18271-common.c: removes unnecessary semicolon

2012-09-07 Thread Peter Senna Tschudin
From: Peter Senna Tschudin peter.se...@gmail.com removes unnecessary semicolon Found by Coccinelle: http://coccinelle.lip6.fr/ Signed-off-by: Peter Senna Tschudin peter.se...@gmail.com --- drivers/media/tuners/tda18271-common.c | 10 +- 1 file changed, 5 insertions(+), 5

[PATCH 8/10] drivers/media/dvb-core/dvb_demux.c: removes unnecessary semicolon

2012-09-07 Thread Peter Senna Tschudin
From: Peter Senna Tschudin peter.se...@gmail.com removes unnecessary semicolon Found by Coccinelle: http://coccinelle.lip6.fr/ Signed-off-by: Peter Senna Tschudin peter.se...@gmail.com --- drivers/media/dvb-core/dvb_demux.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-)

[PATCH 9/10] drivers/media/dvb-frontends/tda10071.c: removes unnecessary semicolon

2012-09-07 Thread Peter Senna Tschudin
From: Peter Senna Tschudin peter.se...@gmail.com removes unnecessary semicolon Found by Coccinelle: http://coccinelle.lip6.fr/ Signed-off-by: Peter Senna Tschudin peter.se...@gmail.com --- drivers/media/dvb-frontends/tda10071.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

Re: [PATCH 9/10] drivers/media/dvb-frontends/tda10071.c: removes unnecessary semicolon

2012-09-07 Thread Antti Palosaari
On 09/07/2012 06:24 PM, Peter Senna Tschudin wrote: From: Peter Senna Tschudin peter.se...@gmail.com removes unnecessary semicolon Found by Coccinelle: http://coccinelle.lip6.fr/ Signed-off-by: Peter Senna Tschudin peter.se...@gmail.com --- drivers/media/dvb-frontends/tda10071.c |4

Re: [PATCH 11/14] drivers/media/usb/stk1160/stk1160-i2c.c: fix error return code

2012-09-07 Thread Ezequiel Garcia
On Thu, Sep 6, 2012 at 12:23 PM, Peter Senna Tschudin peter.se...@gmail.com wrote: From: Peter Senna Tschudin peter.se...@gmail.com Convert a nonnegative error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this

Re: [PATCH v2] media: v4l2-ctrls: add control for test pattern

2012-09-07 Thread Sakari Ailus
Hi Prabhakar, Thanks for the patch! Prabhakar Lad wrote: From: Lad, Prabhakar prabhakar@ti.com add V4L2_CID_TEST_PATTERN of type menu, which determines the internal test pattern selected by the device. Signed-off-by: Lad, Prabhakar prabhakar@ti.com Signed-off-by: Manjunath Hadli

Re: [PATCH v4] media: v4l2-ctrls: add control for dpcm predictor

2012-09-07 Thread Sakari Ailus
Hi Prabhakar, Prabhakar Lad wrote: Hi Sakari, Thanks for the review. On Wednesday 05 September 2012 12:42 AM, Sakari Ailus wrote: Hi Prabhakar, Thanks for the patch. I've got a few comments below. On Tue, Sep 04, 2012 at 11:07:52AM +0530, Prabhakar Lad wrote: From: Lad, Prabhakar

Re: [PATCH v4] media: v4l2-ctrls: add control for dpcm predictor

2012-09-07 Thread Prabhakar Lad
Hi Sakari, On Sat, Sep 8, 2012 at 12:16 AM, Sakari Ailus sakari.ai...@iki.fi wrote: Hi Prabhakar, Prabhakar Lad wrote: Hi Sakari, Thanks for the review. On Wednesday 05 September 2012 12:42 AM, Sakari Ailus wrote: Hi Prabhakar, Thanks for the patch. I've got a few comments below.

Re: [PATCH v2] media: v4l2-ctrls: add control for test pattern

2012-09-07 Thread Prabhakar Lad
Hi Sakari, Thanks for the review. On Fri, Sep 7, 2012 at 11:50 PM, Sakari Ailus sakari.ai...@iki.fi wrote: Hi Prabhakar, Thanks for the patch! Prabhakar Lad wrote: From: Lad, Prabhakar prabhakar@ti.com add V4L2_CID_TEST_PATTERN of type menu, which determines the internal test

cron job: media_tree daily build: WARNINGS

2012-09-07 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:Fri Sep 7 19:00:20 CEST 2012 git hash:79e8c7bebb467bbc3f2514d75bba669a3f354324 gcc version: i686-linux-gcc

Re: [RFCv2 API PATCH 03/28] DocBook: improve STREAMON/OFF documentation.

2012-09-07 Thread Sylwester Nawrocki
On 09/07/2012 03:29 PM, Hans Verkuil wrote: From: Hans Verkuilhans.verk...@cisco.com Specify that STREAMON/OFF should return 0 if the stream is already started/stopped. The spec never specified what the correct behavior is. This ambiguity was resolved during the 2012 Media Workshop.

Re: [RFCv2 API PATCH 04/28] DocBook: make the G/S/TRY_FMT specification more strict.

2012-09-07 Thread Sylwester Nawrocki
On 09/07/2012 03:29 PM, Hans Verkuil wrote: From: Hans Verkuilhans.verk...@cisco.com - S/TRY_FMT should always succeed, unless an invalid type field is passed in. - TRY_FMT should give the same result as S_FMT, all other things being equal. - ENUMFMT may return different formats for different

Re: [RFCv2 API PATCH 05/28] DocBook: bus_info can no longer be empty.

2012-09-07 Thread Sylwester Nawrocki
On 09/07/2012 03:29 PM, Hans Verkuil wrote: From: Hans Verkuilhans.verk...@cisco.com During the 2012 Media Workshop it was decided that bus_info as returned by VIDIOC_QUERYCAP can no longer be empty. It should be a unique identifier, and empty strings are obviously not unique.

Re: [RFCv2 API PATCH 11/28] DocBook: fix awkward language and fix the documented return value.

2012-09-07 Thread Sylwester Nawrocki
On 09/07/2012 03:29 PM, Hans Verkuil wrote: From: Hans Verkuilhans.verk...@cisco.com The Video Standard section contains some awkward language. It also wasn't updated when the error code for unimplemented ioctls changed from EINVAL to ENOTTY. Signed-off-by: Hans Verkuilhans.verk...@cisco.com

Re: [RFCv2 API PATCH 12/28] v4l2-core: Add new V4L2_CAP_MONOTONIC_TS capability.

2012-09-07 Thread Sylwester Nawrocki
On 09/07/2012 03:29 PM, Hans Verkuil wrote: From: Hans Verkuilhans.verk...@cisco.com Add a new flag that tells userspace that the monotonic clock is used for timestamps and update the documentation accordingly. We decided on this new flag during the 2012 Media Workshop. Signed-off-by: Hans

Re: [RFCv2 API PATCH 13/28] Add V4L2_CAP_MONOTONIC_TS where applicable.

2012-09-07 Thread Sylwester Nawrocki
On 09/07/2012 03:29 PM, Hans Verkuil wrote: From: Hans Verkuilhans.verk...@cisco.com Add the new V4L2_CAP_MONOTONIC_TS capability to those drivers that use monotomic timestamps instead of the system time. Signed-off-by: Hans Verkuilhans.verk...@cisco.com For s5p-fimc, Acked-by: Sylwester

Re: [RFCv2 API PATCH 14/28] DocBook: clarify that sequence is also set for output devices.

2012-09-07 Thread Sylwester Nawrocki
On 09/07/2012 03:29 PM, Hans Verkuil wrote: From: Hans Verkuilhans.verk...@cisco.com It was not entirely obvious that the sequence count should also be set for output devices. Also made it more explicit that this sequence counter counts frames, not fields. Signed-off-by: Hans

Re: [RFC PATCH v6] media: add v4l2 subdev driver for S5K4ECGX sensor

2012-09-07 Thread Sylwester Nawrocki
Hi Sangwook, On 09/06/2012 05:08 PM, Sangwook Lee wrote: This patch adds driver for S5K4ECGX sensor with embedded ISP SoC, S5K4ECGX, which is a 5M CMOS Image sensor from Samsung The driver implements preview mode of the S5K4ECGX sensor. capture (snapshot) operation, face detection are missing

dvb-apps scan files

2012-09-07 Thread Hernán Rossetto
Please add the attached files for Argentina and Brazil to the DVB-T scan list. You will notice they have the same content already published here http://www.linuxtv.org/wiki/index.php/ISDB-T_Frequency_Table Thanks, Hernán.- ar-Argentina Description: Binary data br-Brazil Description: Binary