Support for CVT, GTF timings

2015-03-19 Thread Prashant Laddha
These patches add support for calculating CVT and GTF timings in v4l2-ctl. vl2-ctl already has a support setting up of fully specified timings. In this case user needs to specify all values like pixel clock, sync, front and back porches etc in v4l2_bt_timings structure. Hans had suggested that it

[PATCH 3/3] v4l2-ctl-stds: Support cvt/gtf options in set-dv-bt-timings

2015-03-19 Thread Prashant Laddha
Added support to parse cvt/gtf suboptions- width, height, refresh rate, reduced blanking, interlaced. The cvt/gtf modeline calculations are implemented v4l2-ctl-modes.cpp. Calling those APIs to update v4l2_bt_timings structure. Cc: Hans Verkuil Signed-off-by: Prashant Laddha --- utils/v4l2-ctl

[PATCH 1/3] v4l2-ctl: Add support for CVT, GTF modeline calculation

2015-03-19 Thread Prashant Laddha
This patch adds support for calculating v4l2_bt_timings based on CVT and GTF standards. The timings are calculated for a given standard, CVT or GTF using a set of parameters- width, height, refresh rate and flags like whether it is an interlaced format, and whether to use reduced blanking. CVT Mod

[PATCH 2/3] v4l2-ctl-stds: Restructured suboption parsing code

2015-03-19 Thread Prashant Laddha
This change is in preparation towards extending suboptions to include options to set cvt/gtf timings. One of the suboption for cvt/gtf is without value. The existing function parse_subopt() does not support parsing of suboption without value. Replacing parse_subopt() with new function parse_timing

[PATCH 1/2] vivid: add CVT,GTF standards to vivid dv timings caps

2015-03-19 Thread Prashant Laddha
Currently vivid supports V4L2_DV_BT_STD_DMT and V4L2_DV_BT_STD_CEA861 discrete video standards. Extending the capability set to allow for setting CVT and GTF standards. This change, along with adding the support for calculating CVT, GTF timings in v4l2-ctl would extend the number of resolutions sup

[PATCH 2/2] vivid: add support to set CVT, GTF timings

2015-03-19 Thread Prashant Laddha
In addition to v4l2_find_dv_timings_cap(), where timings are serached against the list of preset timings, the incoming timing from v4l2-ctl is checked against CVT and GTF standards. If it confirms to be CVT or GTF, it is treated as valid timing and vivid format is updated with new timings. Cc: Han

Support for CVT and GTF timings in vivid

2015-03-19 Thread Prashant Laddha
These patches add support for setting CVT and GTF timings in vivid. Currently vivid supports V4L2_DV_BT_STD_DMT and V4L2_DV_BT_STD_CEA861 digital video standards which are all discrete monitor timings. So, there is no support for standards outside of that set. Hans has been thinking about extendin

cron job: media_tree daily build: WARNINGS

2015-03-19 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 Mar 20 04:00:16 CET 2015 git branch: test git hash: 3d945be05ac1e806af075e9315bc1b3409adae2b gcc versio

divide error in dib7000p driver

2015-03-19 Thread Adam Baker
Hi, After upgrading my DVB recording PC I started observing the error shown below every couple of days (I've only shown the first instance but I usually get a pair of identical errors). Unfortunately I upgraded hardware and OS at the same time so it is hard to be certain exactly what the trigge

re: Staging: media: replace pr_* with dev_*

2015-03-19 Thread Dan Carpenter
Hello Haneen Mohammed, The patch 2c9356d115c9: "Staging: media: replace pr_* with dev_*" from Mar 18, 2015, leads to the following static checker warning: drivers/staging/media/lirc/lirc_sasem.c:176 delete_context() error: dereferencing freed memory 'context' drivers/staging/medi

[RFC PATCH] ir: add tools for receiving and sending ir

2015-03-19 Thread Sean Young
Provide simple tools for displaying raw IR and received scancodes, and sending them. Todo: - ir-rec cannot enable protocol decoders - ir-send should accept scancode on commandline - long options Signed-off-by: Sean Young --- configure.ac | 3 + utils/Makefile.am | 1 + utils

[RFC PATCH 5/6] [media] lirc: pass IR scancodes to userspace via lirc bridge

2015-03-19 Thread Sean Young
The lirc interface only passes raw IR. Teach the lirc bridge how to pass scancodes (along with their IR information) to userspace. This introduces a new LIRC_MODE_SCANCODE mode where decoded IR is represented as two u32. The first one signifies LIRC_MODE_SCANCODE, the IR protocol, repeat and toggle

[RFC PATCH 4/6] [media] rc: lirc is not a protocol or a keymap

2015-03-19 Thread Sean Young
Since the lirc bridge is not a decoder we can remove its protocol. The keymap existed only to select the protocol. Signed-off-by: Sean Young --- drivers/media/rc/keymaps/Makefile | 1 - drivers/media/rc/keymaps/rc-lirc.c | 42 -- drivers/media/rc/rc-main.c

[RFC PATCH 2/6] [media] lirc: LIRC_[SG]ET_SEND_MODE should return -ENOSYS

2015-03-19 Thread Sean Young
If the device cannot transmit then -ENOSYS should be returned. Also clarify that the ioctl should return modes, not features. The values happen to be identical. Signed-off-by: Sean Young --- drivers/media/rc/ir-lirc-codec.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff

[RFC PATCH 1/6] [media] lirc: remove broken features

2015-03-19 Thread Sean Young
The LIRC_GET_FEATURES ioctl returns an int which represents features as bitwise flags. Two features use duplicate values so they are unusable. These are also features which have never been implemented in drivers according to kernel/lirc git history, so noone ever noticed that they're half-baked. L

[RFC PATCH 3/6] [media] rc: lirc bridge should not be a raw decoder

2015-03-19 Thread Sean Young
The lirc bridge exists as a raw decoder. We would like to make the bridge to also work for scancode drivers in further commits, so it cannot be a raw decoder. Note that rc-code, lirc_dev, ir-lirc-codec are now calling functions of each other, so they've been merged into one module rc-core to avoid

[RFC PATCH 6/6] [media] rc: teach lirc how to send scancodes

2015-03-19 Thread Sean Young
The send mode has to be switched to LIRC_MODE_SCANCODE and then you can send one scancode with a write. The encoding is the same as for receiving scancodes. FIXME: Currently only the nec encoder can encode IR. FIXME: The "decoders" should be renamed (codec?) Signed-off-by: Sean Young --- .../Do

[RFC PATCH 0/6] Send and receive decoded IR using lirc interface

2015-03-19 Thread Sean Young
This patch series tries to fix the lirc interface and extend it so it can be used to send/recv scancodes in addition to raw IR: - Make it possible to receive scancodes from hardware that generates scancodes (with rc protocol information) - Make it possible to receive decoded scancodes from r

Re: capture high resolution images from webcam

2015-03-19 Thread Oliver Lehmann
Hi Laurent, I took the first option ;) http://pastebin.com/7YUgS2Zt Regards, Oliver -- 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

Re: capture high resolution images from webcam

2015-03-19 Thread Laurent Pinchart
Hi Oliver, On Thursday 19 March 2015 19:17:48 Oliver Lehmann wrote: > Hi Laurent, > > Laurent Pinchart wrote: > > Could you please post the output of "lsusb -v" for your camera (running as > > root if possible) ? > > No lsusb on FreeBSD but usbconfig - I hope the results are similar or are at >

Re: capture high resolution images from webcam

2015-03-19 Thread Oliver Lehmann
Hi Laurent, Laurent Pinchart wrote: Could you please post the output of "lsusb -v" for your camera (running as root if possible) ? No lsusb on FreeBSD but usbconfig - I hope the results are similar or are at least close to what you are seeking for. http://pastebin.com/s3ndu63h Regards, Oli

Re: [PATCH v2 0/3] OMAP 3 ISP (and N9/N950 primary camera support) dts changes

2015-03-19 Thread Tony Lindgren
* Sakari Ailus [150318 16:51]: > Hi folks, > > Since v1, I've rebased the set on Tero Kristo's PRCM / SCM cleanup patchset > here: > > http://www.spinics.net/lists/linux-omap/msg116949.html> > > v1 can be found here: > > http://www.spinics.net/lists/linux-omap/msg116753.html> > > Changes sinc

Re: capture high resolution images from webcam

2015-03-19 Thread Laurent Pinchart
Hi Guennadi, On Wednesday 18 March 2015 22:49:07 Guennadi Liakhovetski wrote: > On Tue, 17 Mar 2015, Oliver Lehmann wrote: > > Hi, > > > > I'm using v4l2 on FreeBSD but I hope this doesn't matter that much. > > I got a new MS LifeCam Studio HD which makes quite good pictures > > because of its fo

Re: capture high resolution images from webcam

2015-03-19 Thread Laurent Pinchart
Hi Oliver, On Thursday 19 March 2015 06:57:24 Oliver Lehmann wrote: > Hi Guennadi, > > Guennadi Liakhovetski wrote: > > As for the actual question, I have no idea how they implement still > > images: the UVC standard defines two methods for higher-resolution still > > image capture: either using

[PATCH 5/5] media/Documentation: New flag EXECUTE_ON_WRITE

2015-03-19 Thread Ricardo Ribalda Delgado
Document new flag V4L2_CTRL_FLAG_EXECUTE_ON_WRITE, and the new behavior of CH_VALUE event on VOLATILE controls. Signed-off-by: Ricardo Ribalda Delgado --- Documentation/DocBook/media/v4l/vidioc-dqevent.xml | 7 --- Documentation/DocBook/media/v4l/vidioc-queryctrl.xml | 15 +--

[PATCH 2/5] media: New flag V4L2_CTRL_FLAG_EXECUTE_ON_WRITE

2015-03-19 Thread Ricardo Ribalda Delgado
Create a new flag that represent controls that represent controls that its value needs to be passed to the driver even if it has not changed. They typically represent actions, like triggering a flash or clearing an error flag. Signed-off-by: Ricardo Ribalda Delgado --- include/uapi/linux/videod

[PATCH 3/5] media/v4l2-ctrls: Add execute flags to write_only controls

2015-03-19 Thread Ricardo Ribalda Delgado
Any control that sets FLAG_WRITE_ONLY should OR it with FLAG_ACTION. So we can keep the current meaning of WRITE_ONLY. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/v4l2-ctrls.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/media/v4l2

[PATCH 1/5] media/v4l2-ctrls: volatiles should not generate CH_VALUE

2015-03-19 Thread Ricardo Ribalda Delgado
Volatile controls should not generate CH_VALUE events. Set has_changed to false to prevent this happening. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/v4l2-ctrls.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers

[PATCH 4/5] media/v4l2-ctrls: Always execute EXECUTE_ON_WRITE ctrls

2015-03-19 Thread Ricardo Ribalda Delgado
Any control with V4L2_CTRL_FLAG_EXECUTE_ON_WRITE set should return changed == true in cluster_changed. This forces the value to be passed to the driver even if it has not changed. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/v4l2-ctrls.c | 4 1 file changed, 4 inserti

[PATCH 0/5] V4L2_CTRL_FLAG_EXECUTE_ON_WRITE

2015-03-19 Thread Ricardo Ribalda Delgado
This new set of patches overrides the old patchset media/v4l2-ctrls: Always run s_ctrl on volatile ctrls with the comments from Hans and Laurent. Ricardo Ribalda Delgado (5): media/v4l2-ctrls: volatiles should not generate CH_VALUE media: New flag V4L2_CTRL_FLAG_EXECUTE_ON_WRITE media/v4l2

Re: [PATCH 1/1] mn88473: implement lock for all delivery systems

2015-03-19 Thread Antti Palosaari
Bad news. It does lock for DVB-C now, but DVB-T nor DVB-T2 does not lock. regards Antti On 03/18/2015 11:37 PM, Benjamin Larsson wrote: Signed-off-by: Benjamin Larsson --- drivers/staging/media/mn88473/mn88473.c | 50 +++-- 1 file changed, 48 insertions(+), 2 del

[PATCH] DocBook media: fix BT.2020 description

2015-03-19 Thread Hans Verkuil
One number was wrong (0.6789 -> 0.6780) and Y' should have been Yc'. Signed-off-by: Hans Verkuil diff --git a/Documentation/DocBook/media/v4l/pixfmt.xml b/Documentation/DocBook/media/v4l/pixfmt.xml index 13540fa..05b595c 100644 --- a/Documentation/DocBook/media/v4l/pixfmt.xml +++ b/Documentatio

[PATCH 2/2] mn88472: define symbol rate limits

2015-03-19 Thread Antti Palosaari
w_scan complains about missing symbol rate limits: This dvb driver is *buggy*: the symbol rate limits are undefined - please report to linuxtv.org Lets add some reasonable limits in order to keep w_scan happy :) Signed-off-by: Antti Palosaari --- drivers/staging/media/mn88472/mn88472.c | 2 ++

[PATCH 1/2] mn88473: define symbol rate limits

2015-03-19 Thread Antti Palosaari
w_scan complains about missing symbol rate limits: This dvb driver is *buggy*: the symbol rate limits are undefined - please report to linuxtv.org Lets add some reasonable limits in order to keep w_scan happy :) Signed-off-by: Antti Palosaari --- drivers/staging/media/mn88473/mn88473.c | 2 ++

[PATCH v2] OMAP3 ISP: Set DMA segment size

2015-03-19 Thread Tim Nordell
When utilizing userptr buffers for output from the CCDC, the DMA subsystem maps buffers into the virtual address space. However, the DMA subsystem also has a configurable parameter for what the largest segment to allocate is out of the virtual address space as well. Since we need contiguous buffer

Re: [PATCH v7] media: i2c: add support for omnivision's ov2659 sensor

2015-03-19 Thread Lad, Prabhakar
Hi Sakari, Thanks for the review. On Wed, Mar 18, 2015 at 10:13 PM, Sakari Ailus wrote: > Hi Prabhakar, > > Lad Prabhakar wrote: > ... >> >> +static int ov2659_g_volatile_ctrl(struct v4l2_ctrl *ctrl) >> +{ >> + struct ov2659 *ov2659 = >> + container_of(ctrl->handler,

Re: [PATCH 06/15] omap3isp: Refactor device configuration structs for Device Tree

2015-03-19 Thread Igor Grinberg
On 03/16/15 02:26, Sakari Ailus wrote: > Make omap3isp configuration data structures more suitable for consumption by > the DT by separating the I2C bus information of all the sub-devices in a > group and the ISP bus information from each other. The ISP bus information > is made a pointer instead o