[patch] [media] av7110: fix confusing indenting

2014-03-28 Thread Dan Carpenter
The else statement here is not aligned with the correct if statement. I think the code works as intended and it's just the indenting which is wrong. Also kernel style says we should use curly braces here so I have added those. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- This patch

Re: [PATCH] saa7134: automatic norm detection

2014-03-28 Thread Hans Verkuil
Hi Mikhail, Thank you for the patch. However, it does need some work before I can accept it. First of all, run your patch through scripts/checkpatch.pl to ensure it complies to the kernel coding style. Secondly, split up this single patch in smaller ones: in particular the addition of the new

Re: [PATCH 1/2] usb: gadget: uvc: Switch to monotonic clock for buffer timestamps

2014-03-28 Thread Hans Verkuil
Hi Laurent, I have a few comments: On 03/23/2014 04:32 PM, Laurent Pinchart wrote: The wall time clock isn't useful for applications as it can jump around due to time adjustement. Switch to the monotonic clock. Signed-off-by: Laurent Pinchart laurent.pinch...@ideasonboard.com ---

Re: [PATCH 2/2] usb: gadget: uvc: Set the vb2 queue timestamp flags

2014-03-28 Thread Hans Verkuil
On 03/23/2014 04:32 PM, Laurent Pinchart wrote: The vb2 queue timestamp_flags field must be set by drivers, as enforced by a WARN_ON in vb2_queue_init. The UVC gadget driver failed to do so. This resulted in the following warning. [2.104371] g_webcam gadget: uvc_function_bind [

Re: [media] videobuf-dma-contig: fix vm_iomap_memory() call

2014-03-28 Thread Hans Verkuil
On 03/27/2014 12:07 PM, Ma Haijun wrote: Hi all, This is a trivial fix, but I think the patch itself has problem too. The function requires a phys_addr_t, but we feed it with a dma_handle_t. AFAIK, this implicit conversion does not always work. Can I use virt_to_phys(mem-vaddr) to get the

Re: [PATCH] saa7134: automatic norm detection

2014-03-28 Thread Mikhail Domrachev
Hi Hans, Thank you for comments, I will rework the patch and document the new event type. Let me explain why I created a new thread. My company is engaged in the monitoring of TV air. All TV channels are recorded 24/7 for further analysis. But some local TV channels change the standard over time

Re: [PATCH] saa7134: automatic norm detection

2014-03-28 Thread Hans Verkuil
On 03/28/2014 10:51 AM, Mikhail Domrachev wrote: Hi Hans, Thank you for comments, I will rework the patch and document the new event type. Let me explain why I created a new thread. My company is engaged in the monitoring of TV air. All TV channels are recorded 24/7 for further analysis.

[PATCH for v3.15] vb2: call __buf_finish_memory for prepared/queued buffers

2014-03-28 Thread Hans Verkuil
v4l2-compliance reports unbalanced prepare/finish memops in the case where buffers are queued, streamon is never called and then reqbufs() is called that has to cancel any queued buffers. When canceling a queue __buf_finish_memory() should be called for all buffers in the state 'PREPARED' or

Re: sparse: ARRAY_SIZE and sparse array initialization

2014-03-28 Thread Hans Verkuil
Is there any chance that the three issues I reported will be fixed? If not, then I'll work around it in the kernel code. Regards, Hans On 03/15/2014 01:12 PM, Hans Verkuil wrote: For the record: all these tests were done with a 3.14-rc5 kernel and sparse compiled from the git tree as

[GIT PULL FOR v3.16] Various fixes

2014-03-28 Thread Hans Verkuil
The following changes since commit 8432164ddf7bfe40748ac49995356ab4dfda43b7: [media] Sensoray 2255 uses videobuf2 (2014-03-24 17:23:43 -0300) are available in the git repository at: git://linuxtv.org/hverkuil/media_tree.git for-v3.16a for you to fetch changes up to

Re: [PATCH 1/2] usb: gadget: uvc: Switch to monotonic clock for buffer timestamps

2014-03-28 Thread Laurent Pinchart
Hi Hans, On Friday 28 March 2014 09:50:42 Hans Verkuil wrote: On 03/23/2014 04:32 PM, Laurent Pinchart wrote: The wall time clock isn't useful for applications as it can jump around due to time adjustement. Switch to the monotonic clock. Signed-off-by: Laurent Pinchart

[GIT PULL FOR v3.16] Various fixes

2014-03-28 Thread Hans Verkuil
This supersedes my previous 3.16 pull request of a 15 minutes ago: I had missed two more relevant davinci patches from Prabhakar. Those are added here. Regards, Hans The following changes since commit 8432164ddf7bfe40748ac49995356ab4dfda43b7: [media] Sensoray 2255 uses videobuf2

[PATCHv2 for v3.15] vb2: call finish() memop for prepared/queued buffers

2014-03-28 Thread Hans Verkuil
This supersedes [PATCH for v3.15] vb2: call __buf_finish_memory for prepared/queued buffers. I realized that that patch was for an internal git branch and didn't apply to the master branch. The fix is the same, though. v4l2-compliance reports unbalanced prepare/finish memops in the case where

[PATCH 3/3] smiapp: Make PLL flags separate from regular quirk flags

2014-03-28 Thread Sakari Ailus
It doesn't make sense to just copy the information to the PLL flags. Add a new fields for the quirks to contain the PLL flags. Signed-off-by: Sakari Ailus sakari.ai...@linux.intel.com --- drivers/media/i2c/smiapp/smiapp-core.c | 4 +--- drivers/media/i2c/smiapp/smiapp-quirk.c | 2 +-

[PATCH/RFC v2 2/8] leds: Improve and export led_update_brightness function

2014-03-28 Thread Jacek Anaszewski
led_update_brightness helper function used to be exploited only locally in the led-class.c module, where its result was being passed to the brightness_show sysfs callback. With the introduction of v4l2-flash subdevice the same functionality became required for reading current brightness from a LED

[PATCH v2 0/3] Miscellaneous fixes for UVC gadget driver

2014-03-28 Thread Laurent Pinchart
Hello, These three patches fix miscellaneous issues in the UVC gadget driver. Patches 1 and 3 have already been posted as part of the Clock fixes for UVC gadget driver series, and patch 2 is new. The series is based on the latest media tree master branch as it depends on commit

[PATCH v2 2/3] usb: gadget: uvc: Set the V4L2 buffer field to V4L2_FIELD_NONE

2014-03-28 Thread Laurent Pinchart
The UVC gadget driver doesn't support interlaced video but left the buffer field uninitialized. Set it to V4L2_FIELD_NONE. Signed-off-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- drivers/usb/gadget/uvc_queue.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH/RFC 1/8] leds: Add sysfs and kernel internal API for flash LEDs

2014-03-28 Thread Jacek Anaszewski
Hi Sakari, Thanks for the review. On 03/24/2014 12:18 AM, Sakari Ailus wrote: Hi Jacek, Thanks for the patchset. It's very nice in general. I have a few comments below. [...] diff --git a/include/linux/leds.h b/include/linux/leds.h index 0287ab2..1bf0ab3 100644 --- a/include/linux/leds.h

[PATCH/RFC v2 8/8] DT: Add documentation for exynos4-is camera-flash property

2014-03-28 Thread Jacek Anaszewski
Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Rob Herring robh...@kernel.org Cc: Pawel Moll pawel.m...@arm.com Cc: Mark Rutland mark.rutl...@arm.com Cc: Ian Campbell ijc+devicet...@hellion.org.uk Cc: Kumar Gala ga...@codeaurora.org

[PATCH/RFC v2 5/8] DT: Add documentation for the mfd Maxim max77693 flash cell

2014-03-28 Thread Jacek Anaszewski
This patch adds device tree binding documentation for the flash cell of the Maxim max77693 multifunctional device. Signed-off-by: Andrzej Hajda a.ha...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Rob Herring robh...@kernel.org Cc: Pawel Moll pawel.m...@arm.com Cc: Mark

Re: [PATCH/RFC 4/8] media: Add registration helpers for V4L2 flash sub-devices

2014-03-28 Thread Jacek Anaszewski
Hi Sakari, On 03/24/2014 01:08 AM, Sakari Ailus wrote: Hi Jacek, [...] +static int v4l2_flash_set_intensity(struct v4l2_flash *flash, + unsigned int intensity) +{ + struct led_classdev *led_cdev = flash-led_cdev; + unsigned int fault; +

RE: [media] videobuf-dma-contig: fix vm_iomap_memory() call

2014-03-28 Thread Ma Haijun
Hi, -Original Message- On 03/27/2014 12:07 PM, Ma Haijun wrote: Hi all, This is a trivial fix, but I think the patch itself has problem too. The function requires a phys_addr_t, but we feed it with a dma_handle_t. AFAIK, this implicit conversion does not always work. Can I

Re: [PATCH v2 1/3] usb: gadget: uvc: Switch to monotonic clock for buffer timestamps

2014-03-28 Thread Hans Verkuil
On 03/28/2014 05:02 PM, Laurent Pinchart wrote: The wall time clock isn't useful for applications as it can jump around due to time adjustement. Switch to the monotonic clock. Signed-off-by: Laurent Pinchart laurent.pinch...@ideasonboard.com Reviewed-by: Hans Verkuil hans.verk...@cisco.com

Re: [PATCH v2 2/3] usb: gadget: uvc: Set the V4L2 buffer field to V4L2_FIELD_NONE

2014-03-28 Thread Hans Verkuil
On 03/28/2014 05:02 PM, Laurent Pinchart wrote: The UVC gadget driver doesn't support interlaced video but left the buffer field uninitialized. Set it to V4L2_FIELD_NONE. Signed-off-by: Laurent Pinchart laurent.pinch...@ideasonboard.com Reviewed-by: Hans Verkuil hans.verk...@cisco.com

Re: [PATCH] [media] uvcvideo: Fix marking buffer erroneous in case of FID toggling

2014-03-28 Thread Laurent Pinchart
Hi Anton, On Friday 28 March 2014 07:58:00 Anton Leontiev wrote: 26.03.2014 21:41, Laurent Pinchart wrote: On Tuesday 25 March 2014 08:40:57 Anton Leontiev wrote: Set error bit for incomplete buffers when end of buffer is detected by FID toggling (for example when last transaction with EOF

Re: [PATCH v2 1/3] usb: gadget: uvc: Switch to monotonic clock for buffer timestamps

2014-03-28 Thread Felipe Balbi
On Fri, Mar 28, 2014 at 05:02:46PM +0100, Laurent Pinchart wrote: The wall time clock isn't useful for applications as it can jump around due to time adjustement. Switch to the monotonic clock. Signed-off-by: Laurent Pinchart laurent.pinch...@ideasonboard.com Acked-by: Felipe Balbi

Re: [PATCH] V4L2: fix VIDIOC_CREATE_BUFS in 64- / 32-bit compatibility mode

2014-03-28 Thread Guennadi Liakhovetski
Hi Laurent, On Fri, 28 Mar 2014, Laurent Pinchart wrote: Hi Guennadi, Thank you for the patch. On Thursday 27 March 2014 22:34:07 Guennadi Liakhovetski wrote: It turns out, that 64-bit compilations sometimes align structs within other structs on 32-bit boundaries, but in other cases

[PATCH/RFC v2 3/8] Documentation: leds: Add description of flash mode

2014-03-28 Thread Jacek Anaszewski
Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Bryan Wu coolo...@gmail.com Cc: Richard Purdie rpur...@rpsys.net --- Documentation/leds/leds-class.txt | 52 + 1 file changed, 52 insertions(+)

[PATCH] adv7604: Mark adv7604_of_id table with __maybe_unused

2014-03-28 Thread Laurent Pinchart
The table is always declared but is unused when both CONFIG_OF and CONFIG_MODULES are not set. This results in a compile warning. Fix it by marking the table as __maybe_unused. The compiler will discard it if unused. Signed-off-by: Laurent Pinchart laurent.pinch...@ideasonboard.com ---

[PATCH/RFC v2 7/8] media: exynos4-is: Add support for v4l2-flash subdevs

2014-03-28 Thread Jacek Anaszewski
This patch adds suppport for external v4l2-flash devices. The support includes parsing camera-flash DT property and asynchronous subdevice registration. Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com ---

Re: [PATCH/RFC 8/8] DT: Add documentation for exynos4-is camera-flash property

2014-03-28 Thread Jacek Anaszewski
Hi Sakari, On 03/24/2014 02:05 AM, Sakari Ailus wrote: Hi Jacek, On Thu, Mar 20, 2014 at 03:51:10PM +0100, Jacek Anaszewski wrote: Signed-off-by: Jacek Anaszewski j.anaszew...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Rob Herring robh...@kernel.org Cc: Pawel Moll

[PATCH/RFC v2 4/8] leds: Add support for max77693 mfd flash cell

2014-03-28 Thread Jacek Anaszewski
This patch adds led-flash support to Maxim max77693 chipset. Device can be exposed to user space through LED subsystem sysfs interface or through V4L2 subdevice when the support for Multimedia Framework is enabled. Device supports up to two leds which can work in flash and torch mode. Leds can be

Re: [PATCH] [media] uvcvideo: Fix clock param realtime setting

2014-03-28 Thread Laurent Pinchart
Hi Olivier, Thank you for the patch. On Friday 28 March 2014 01:42:38 Olivier Langlois wrote: timestamps in v4l2 buffers returned to userspace are updated in uvc_video_clock_update() which uses timestamps fetched from uvc_video_clock_decode() by calling unconditionally ktime_get_ts().

[PATCH/RFC v2 1/8] leds: Add sysfs and kernel internal API for flash LEDs

2014-03-28 Thread Jacek Anaszewski
Some LED devices support two operation modes - torch and flash. This patch provides support for flash LED devices in the LED subsystem by introducing new sysfs attributes and kernel internal interface. The attributes being introduced are: flash_brightness, flash_strobe, flash_timeout,

[PATCH/RFC v2 0/8] LED / flash API integration

2014-03-28 Thread Jacek Anaszewski
This is is a second version of the patch series being a follow up of the discussion on Media summit 2013-10-23, related to the LED / flash API integration (the notes from the discussion were enclosed in the message [1], paragraph 5). The series is based on linux-next next-20140328 and contains

[PATCH/RFC v2 6/8] media: Add registration helpers for V4L2 flash sub-devices

2014-03-28 Thread Jacek Anaszewski
This patch adds helper functions for registering/unregistering LED class flash devices as V4L2 subdevs. The functions should be called from the LED subsystem device driver. In case the Multimedia Framework support is disabled in the kernel config the functions' empty versions will be used.

Re: [PATCH v2 2/3] usb: gadget: uvc: Set the V4L2 buffer field to V4L2_FIELD_NONE

2014-03-28 Thread Felipe Balbi
On Fri, Mar 28, 2014 at 05:02:47PM +0100, Laurent Pinchart wrote: The UVC gadget driver doesn't support interlaced video but left the buffer field uninitialized. Set it to V4L2_FIELD_NONE. Signed-off-by: Laurent Pinchart laurent.pinch...@ideasonboard.com Acked-by: Felipe Balbi ba...@ti.com

Re: [PATCH] V4L2: fix VIDIOC_CREATE_BUFS in 64- / 32-bit compatibility mode

2014-03-28 Thread Laurent Pinchart
Hi Guennadi, Thank you for the patch. On Thursday 27 March 2014 22:34:07 Guennadi Liakhovetski wrote: It turns out, that 64-bit compilations sometimes align structs within other structs on 32-bit boundaries, but in other cases alignment is done on 64-bit boundaries, adding padding if

[PATCH 1/3] smiapp: Use I2C adapter ID and address in the sub-device name

2014-03-28 Thread Sakari Ailus
The sub-device names should be unique. Should two identical sensors be present in the same media device they would be indistinguishable. The names will change e.g. from vs6555 pixel array to vs6555 1-0010 pixel array. Signed-off-by: Sakari Ailus sakari.ai...@linux.intel.com ---

Re: [PATCH] V4L2: fix VIDIOC_CREATE_BUFS in 64- / 32-bit compatibility mode

2014-03-28 Thread Laurent Pinchart
Hi Guennadi, On Friday 28 March 2014 18:44:04 Guennadi Liakhovetski wrote: On Fri, 28 Mar 2014, Laurent Pinchart wrote: On Thursday 27 March 2014 22:34:07 Guennadi Liakhovetski wrote: It turns out, that 64-bit compilations sometimes align structs within other structs on 32-bit

[PATCH v2 1/3] usb: gadget: uvc: Switch to monotonic clock for buffer timestamps

2014-03-28 Thread Laurent Pinchart
The wall time clock isn't useful for applications as it can jump around due to time adjustement. Switch to the monotonic clock. Signed-off-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- drivers/usb/gadget/uvc_queue.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-)

[PATCH v2 3/3] usb: gadget: uvc: Set the vb2 queue timestamp flags

2014-03-28 Thread Laurent Pinchart
The vb2 queue timestamp_flags field must be set by drivers, as enforced by a WARN_ON in vb2_queue_init. The UVC gadget driver failed to do so. This resulted in the following warning. [2.104371] g_webcam gadget: uvc_function_bind [2.105567] [ cut here ] [

Re: [PATCH] saa7134: automatic norm detection

2014-03-28 Thread Devin Heitmueller
Let me explain why I created a new thread. My company is engaged in the monitoring of TV air. All TV channels are recorded 24/7 for further analysis. But some local TV channels change the standard over time (SECAM-PAL, PAL-SECAM). So the recording software must be notified about these changes

[PATCH 2/3] smiapp: Set sub-device owner

2014-03-28 Thread Sakari Ailus
The smiapp driver is the owner of the sub-devices exposed by the smiapp driver. This prevents unloading the module whilst it's in use. Signed-off-by: Sakari Ailus sakari.ai...@linux.intel.com --- drivers/media/i2c/smiapp/smiapp-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 0/3] Small smiapp changes

2014-03-28 Thread Sakari Ailus
Hi, Here are a few fairly trivial fixes and cleanups for the smiapp driver. -- Regards, Sakari -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

em2750 usb camera log as mentioned in dmesg

2014-03-28 Thread aaron . moore
Hi, I have endless problems since upgarding to ubuntu12.04 with my usb microscope and it's a big problem cos i need it for work. As suggested in dmesg I have sent you the log.. Interestingly the em2750 camera is Ok on my desk pc with Xubuntu 12.04... go figure.. But the desk pC is kinda

Re: [PATCH v2 3/3] usb: gadget: uvc: Set the vb2 queue timestamp flags

2014-03-28 Thread Felipe Balbi
On Fri, Mar 28, 2014 at 05:02:48PM +0100, Laurent Pinchart wrote: The vb2 queue timestamp_flags field must be set by drivers, as enforced by a WARN_ON in vb2_queue_init. The UVC gadget driver failed to do so. This resulted in the following warning. [2.104371] g_webcam gadget:

Re: [PATCH] [media] uvcvideo: Fix clock param realtime setting

2014-03-28 Thread Olivier Langlois
Hi Laurent, On Fri, 2014-03-28 at 17:20 +0100, Laurent Pinchart wrote: Hi Olivier, Thank you for the patch. On Friday 28 March 2014 01:42:38 Olivier Langlois wrote: timestamps in v4l2 buffers returned to userspace are updated in uvc_video_clock_update() which uses timestamps fetched

Re: [PATCH] [media] uvcvideo: Fix clock param realtime setting

2014-03-28 Thread Laurent Pinchart
Hi Olivier, On Friday 28 March 2014 17:27:08 Olivier Langlois wrote: On Fri, 2014-03-28 at 17:20 +0100, Laurent Pinchart wrote: On Friday 28 March 2014 01:42:38 Olivier Langlois wrote: timestamps in v4l2 buffers returned to userspace are updated in uvc_video_clock_update() which uses

[linuxtv-media:master 498/499] drivers/media/usb/em28xx/em28xx-dvb.c:1644:7: error: 'client' undeclared

2014-03-28 Thread kbuild test robot
tree: git://linuxtv.org/media_tree.git master head: 3ec40dcfb413214b2874aec858870502b61c2202 commit: 37571b163c15831cd0a213151c21387363dbf15b [498/499] [media] em28xx-dvb: fix PCTV 461e tuner I2C binding config: make ARCH=powerpc allmodconfig All error/warnings:

Re: [PATCH] rc-core: do not change 32bit NEC scancode format for now

2014-03-28 Thread James Hogan
On Friday 28 March 2014 01:08:56 David Härdeman wrote: On Thu, Mar 27, 2014 at 11:21:23PM +, James Hogan wrote: Hi David, On Thursday 27 March 2014 22:00:37 David Härdeman wrote: This reverts 18bc17448147e93f31cc9b1a83be49f1224657b2 The patch ignores the fact that NEC32 scancodes

Re: [PATCH] [media] uvcvideo: Fix clock param realtime setting

2014-03-28 Thread Olivier Langlois
Before applying this, I'm curious, do you have a use case for realtime time stamps ? Yes. ffmpeg uses wall clock time to create timestamps for audio packets from ALSA device. OK. I suppose I shouldn't drop support for the realtime clock like I wanted to then :-) There

cron job: media_tree daily build: ERRORS

2014-03-28 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 Mar 29 04:01:37 CET 2014 git branch: test git hash: 3ec40dcfb413214b2874aec858870502b61c2202 gcc

[PATCH] staging: media: davinci_vpfe: fix checkpatch warning

2014-03-28 Thread Lad, Prabhakar
From: Lad, Prabhakar prabhakar.cse...@gmail.com This patch fixes following checkpatch warning, media/davinci_vpfe/dm365_ipipe.c:1271: WARNING: Missing a blank line after declarations media/davinci_vpfe/dm365_ipipe.c:1313: WARNING: Missing a blank line after declarations Signed-off-by: Lad,

Re: [PATCH] [media] uvcvideo: Fix marking buffer erroneous in case of FID toggling

2014-03-28 Thread Anton Leontiev
28.03.2014 20:12, Laurent Pinchart пишет: + * Set error flag for incomplete buffer. + */ +static void uvc_buffer_check_bytesused(const struct uvc_streaming *const stream, No need for the second const keyword here. I would have used uvc_video_ as a prefix, to be in sync with the