RE: 0001-media-vb2-Fill-vb2_buffer-with-bytesused-from-user.patch; kernel version 3.10.69

2015-02-26 Thread Sudip JAIN
Thanks for your feedback. I will improve my patch submission. BR, Sudip From: Jeremiah Mahler [jmmah...@gmail.com] Sent: Thursday, February 26, 2015 10:39 PM To: Sudip JAIN Cc: linux-media@vger.kernel.org; linux-ker...@vger.kernel.org Subject: Re: 0001-medi

cron job: media_tree daily build: ERRORS

2015-02-26 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 Feb 27 04:00:16 CET 2015 git branch: test git hash: a3dfc6d925ca1bbd1a228253acb93f08657bad25 gcc versio

[PATCHv2] [media] saa7164: use an MSI interrupt when available

2015-02-26 Thread Brendan McGrath
From: Brendan McGrath [media] saa7164: use an MSI interrupt when available Enhances driver to use an MSI interrupt when available. Adds the module option 'enable_msi' (type bool) which by default is enabled. Can be set to 'N' to disable. Fixes (or can reduce the occurrence of) a crash which

Re: [PATCH] media: i2c: mt9p031: make sure we destroy the mutex

2015-02-26 Thread Laurent Pinchart
Hi Prabhakar, Thank you for the patch. On Thursday 26 February 2015 18:05:38 Lad Prabhakar wrote: > From: "Lad, Prabhakar" > > this patch makes sure to call mutex_destroy() in > case of probe failure or module unload. > > Signed-off-by: Lad, Prabhakar Acked-by: Laurent Pinchart and applied

Re: [PATCH] [media] saa7164: use an MSI interrupt when available

2015-02-26 Thread Kyle Sanderson
This isn't my patch, however shouldn't these bridges already exist in drivers/pci/quirks.c? Kyle. On Thu, Feb 26, 2015 at 12:45 PM, Steven Toth wrote: >> I am under the impression it was against the spec to have a PCI-E card >> without MSI support. Wouldn't the fallback code as well work in this

RE: Mygica T230 DVB-T/T2/C Ubuntu 14.04 (kernel 3.13.0-45) using media_build

2015-02-26 Thread Gert-Jan van der Stroom
> -Original Message- > From: Gert-Jan van der Stroom [mailto:gjstr...@gmail.com] > Sent: maandag 23 februari 2015 17:43 > To: linux-media-ow...@vger.kernel.org > Cc: 'Mauro Carvalho Chehab' > Subject: RE: Mygica T230 DVB-T/T2/C Ubuntu 14.04 (kernel 3.13.0-45) using > media_build > > > --

[PATCH] media: au0828 - embed vdev and vbi_dev structs in au0828_dev

2015-02-26 Thread Shuah Khan
Embed video_device structs vdev and vbi_dev in au0828_dev. With this change, dynamic allocation and error path logic in au0828_analog_register() is removed as it doesn't need to allocate and handle allocation errors. Unregister path doesn't need to free the now static video_device structures, hence

[PATCHv2] Si2168: increase timeout to fix firmware loading

2015-02-26 Thread Antti Palosaari
From: Jurgen Kramer Increase si2168 cmd execute timeout to prevent firmware load failures. Tests shows it takes up to 52ms to load the 'dvb-demod-si2168-a30-01.fw' firmware. Increase timeout to a safe value of 70ms. Cc: # v3.16+ Signed-off-by: Jurgen Kramer Reviewed-by: Antti Palosaari Signed

[PATCH] Si2168: increase timeout to fix firmware loading

2015-02-26 Thread Antti Palosaari
From: Jurgen Kramer Increase si2168 cmd execute timeout to prevent firmware load failures. Tests shows it takes up to 52ms to load the 'dvb-demod-si2168-a30-01.fw' firmware. Increase timeout to a safe value of 70ms. Cc: # v3.16+ Signed-off-by: Jurgen Kramer Reviewed-by: Antti Palosaari --- Pa

Re: Linux TV support Elgato EyeTV hybrid

2015-02-26 Thread Gilles Risch
Hello, watching TV now works fine, but I still have a strange behavior, when I connect the stick and open an application like Me-TV or VLC I get this message: "Failed to get available frontend" or "There are no DVB devices available" After running a w_scan it works, does someone know why? Reg

Re: [PATCH] [media] saa7164: use an MSI interrupt when available

2015-02-26 Thread Steven Toth
> I am under the impression it was against the spec to have a PCI-E card > without MSI support. Wouldn't the fallback code as well work in this > regard? Not if the motherboard MSI implementation is flakey, like we've seen in the past with other PCIe bridges and their interaction with root control

Re: [PATCH] [media] saa7164: use an MSI interrupt when available

2015-02-26 Thread Kyle Sanderson
The patch allows the card to support using both internal tuners without crashing out. I've been recording significantly since the 23rd, it just works now in comparison to constant maintenance. I am under the impression it was against the spec to have a PCI-E card without MSI support. Wouldn't the

Re: [PATCH] media: i2c: adv7180: unregister the subdev in remove callback

2015-02-26 Thread Lad, Prabhakar
Hi Lars, On Thu, Feb 26, 2015 at 6:25 PM, Lars-Peter Clausen wrote: > On 02/26/2015 07:19 PM, Lad Prabhakar wrote: >> >> From: "Lad, Prabhakar" >> >> this patch makes sure we unregister the subdev by calling >> v4l2_device_unregister_subdev() on remove callback. > > > This was just removed a whi

Re: [PATCH] media: i2c: adv7180: unregister the subdev in remove callback

2015-02-26 Thread Lars-Peter Clausen
On 02/26/2015 07:19 PM, Lad Prabhakar wrote: From: "Lad, Prabhakar" this patch makes sure we unregister the subdev by calling v4l2_device_unregister_subdev() on remove callback. This was just removed a while ago, see commit 632f2b0db9da ("[media] adv7180: Remove duplicate unregister call")[1

[PATCH] media: i2c: adv7180: unregister the subdev in remove callback

2015-02-26 Thread Lad Prabhakar
From: "Lad, Prabhakar" this patch makes sure we unregister the subdev by calling v4l2_device_unregister_subdev() on remove callback. Signed-off-by: Lad, Prabhakar --- drivers/media/i2c/adv7180.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c

Re: [PATCH] rc-core: fix dib0700 scancode generation for RC5

2015-02-26 Thread David Cimbůrek
2015-02-25 23:30 GMT+01:00 David Härdeman : > David, could you please test this patch? > --- > drivers/media/usb/dvb-usb/dib0700_core.c | 70 > +- > 1 file changed, 40 insertions(+), 30 deletions(-) > > diff --git a/drivers/media/usb/dvb-usb/dib0700_core.c > b/drive

[PATCH] media: i2c: mt9p031: make sure we destroy the mutex

2015-02-26 Thread Lad Prabhakar
From: "Lad, Prabhakar" this patch makes sure to call mutex_destroy() in case of probe failure or module unload. Signed-off-by: Lad, Prabhakar --- drivers/media/i2c/mt9p031.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/mt9p031.c b/drivers/media/i2c/

Re: 0001-media-vb2-Fill-vb2_buffer-with-bytesused-from-user.patch; kernel version 3.10.69

2015-02-26 Thread Jeremiah Mahler
Sudip, On Thu, Feb 26, 2015 at 01:18:31PM +0800, Sudip JAIN wrote: > Hello Jeremiah, > > Please find the patch "inline" > There are more problems than just not being "inline". - The subject line wrong. - The log message is formatted wrong. - This patch is not in a form that can be applied. - A

[linuxtv-media:master 374/374] drivers/media/usb/dvb-usb/dvb-usb-dvb.c:323:39: error: 'struct dvb_adapter' has no member named 'mdev'

2015-02-26 Thread kbuild test robot
tree: git://linuxtv.org/media_tree.git master head: a3dfc6d925ca1bbd1a228253acb93f08657bad25 commit: a3dfc6d925ca1bbd1a228253acb93f08657bad25 [374/374] [media] dvb-usb: create one media_dev per adapter config: x86_64-randconfig-wa0-02262201 (attached as .config) reproduce: git checkout a3dfc

[v4l-utils PATCH/RFC v5 09/14] mediactl: libv4l2subdev: add support for comparing mbus formats

2015-02-26 Thread Jacek Anaszewski
This patch adds a function for checking whether two mbus formats are compatible. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park --- utils/media-ctl/libv4l2subdev.c | 34 ++ utils/media-ctl/v4l2subdev.h| 12 2 files changed, 46 insert

[v4l-utils PATCH/RFC v5 11/14] mediactl: libv4l2subdev: add get_pipeline_entity_by_cid function

2015-02-26 Thread Jacek Anaszewski
Add a function for obtaining the v4l2 sub-device for which the v4l2 control related ioctl is predestined. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park --- utils/media-ctl/libv4l2subdev.c | 14 ++ utils/media-ctl/v4l2subdev.h| 15 +++ 2 files changed, 2

[v4l-utils PATCH/RFC v5 02/14] mediactl: Add support for v4l2-ctrl-redir config

2015-02-26 Thread Jacek Anaszewski
Make struct v4l2_subdev capable of aggregating v4l2-ctrl-redir media device configuration entries. Added are also functions for validating the config and checking whether a v4l2 sub-device expects to receive ioctls related to the v4l2-control with given id. Signed-off-by: Jacek Anaszewski Acked-b

[v4l-utils PATCH/RFC v5 13/14] mediactl: libv4l2subdev: Enable opening/closing pipelines

2015-02-26 Thread Jacek Anaszewski
Add functions for opening and closing media entity pipelines at one go. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park --- utils/media-ctl/libv4l2subdev.c | 60 +++ utils/media-ctl/v4l2subdev.h| 18 2 files changed, 78 insertions

[v4l-utils PATCH/RFC v5 12/14] mediactl: Add media device ioctl API

2015-02-26 Thread Jacek Anaszewski
Ioctls executed on complex media devices need special handling. For instance some ioctls need to be targeted for specific sub-devices, depending on the media device configuration. The APIs being introduced address such requirements. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park --- ut

[v4l-utils PATCH/RFC v5 06/14] mediactl: Add media_device creation helpers

2015-02-26 Thread Jacek Anaszewski
Add helper functions that allow for easy instantiation of media_device object basing on whether the media device contains video device with given node name. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park --- utils/media-ctl/libmediactl.c | 75 +

[v4l-utils PATCH/RFC v5 14/14] Add a libv4l plugin for Exynos4 camera

2015-02-26 Thread Jacek Anaszewski
The plugin provides support for the media device on Exynos4 SoC. It performs single plane <-> multi plane API conversion, video pipeline linking and takes care of automatic data format negotiation for the whole pipeline, after intercepting VIDIOC_S_FMT or VIDIOC_TRY_FMT ioctls. Signed-off-by: Jace

[v4l-utils PATCH/RFC v5 08/14] mediactl: Add support for media device pipelines

2015-02-26 Thread Jacek Anaszewski
Add infrastructure for linking media entities and discovering media device pipelines. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park --- utils/media-ctl/libmediactl.c | 116 +++ utils/media-ctl/mediactl-priv.h |6 ++ utils/media-ctl/mediactl.h

[v4l-utils PATCH/RFC v5 07/14] mediactl: libv4l2subdev: add VYUY8_2X8 mbus code

2015-02-26 Thread Jacek Anaszewski
The VYUY8_2X8 media bus format is the only one supported by the S5C73M3 camera sensor, that is a part of the media device on the Exynos4412-trats2 board. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park Acked-by: Sakari Ailus --- utils/media-ctl/libv4l2subdev.c |1 + 1 file changed,

[v4l-utils PATCH/RFC v5 04/14] mediatext: Add library

2015-02-26 Thread Jacek Anaszewski
libmediatext is a helper library for converting configurations (Media controller links, V4L2 controls and V4L2 sub-device media bus formats and selections) from text-based form into IOCTLs. libmediatext depends on libv4l2subdev and libmediactl. Signed-off-by: Sakari Ailus Signed-off-by: Teemu Tu

[v4l-utils PATCH/RFC v5 10/14] mediactl: libv4l2subdev: add support for setting pipeline format

2015-02-26 Thread Jacek Anaszewski
This patch adds a function for setting the media device pipeline format. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park --- utils/media-ctl/libv4l2subdev.c | 61 +++ utils/media-ctl/v4l2subdev.h| 15 ++ 2 files changed, 76 insertions(

[v4l-utils PATCH/RFC v5 03/14] mediactl: Separate entity and pad parsing

2015-02-26 Thread Jacek Anaszewski
From: Sakari Ailus Sometimes it's useful to be able to parse the entity independent of the pad. Separate entity parsing into media_parse_entity(). Signed-off-by: Sakari Ailus --- utils/media-ctl/libmediactl.c | 28 utils/media-ctl/mediactl.h| 14 +++

[v4l-utils PATCH/RFC v5 05/14] mediactl: Add media device graph helpers

2015-02-26 Thread Jacek Anaszewski
Add new graph helpers useful for video pipeline discovering. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park --- utils/media-ctl/libmediactl.c | 48 + utils/media-ctl/mediactl.h| 36 +++ 2 files changed, 84 inse

[v4l-utils PATCH/RFC v5 00/14] Add a plugin for Exynos4 camera

2015-02-26 Thread Jacek Anaszewski
This is a fifth version of the patch series adding a plugin for the Exynos4 camera. Temporarily the plugin doesn't link against libmediactl, but has its sources compiled in. Currently utils are built after the plugins, but libv4l-exynos4-camera plugin depends on the utils. In order to link the pl

[v4l-utils PATCH/RFC v5 01/14] mediactl: Introduce v4l2_subdev structure

2015-02-26 Thread Jacek Anaszewski
Add struct v4l2_subdev - a representation of the v4l2 sub-device, related to the media entity. Add field 'sd', the pointer to the newly introduced structure, to the struct media_entity and move 'fd' property from struct media entity to struct v4l2_subdev. Avoid accessing sub-device file descriptor

[linuxtv-media:master 372/374] drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:705:39: error: 'struct dvb_adapter' has no member named 'mdev'

2015-02-26 Thread kbuild test robot
tree: git://linuxtv.org/media_tree.git master head: a3dfc6d925ca1bbd1a228253acb93f08657bad25 commit: 823b460ee76d0e4e1a9d50e7c1d4aebc0e9e467b [372/374] [media] dvb-usb-v2: create one media_dev per adapter config: x86_64-randconfig-wa0-02262201 (attached as .config) reproduce: git checkout 82

Re: [PATCH] [media] saa7164: use an MSI interrupt when available

2015-02-26 Thread Steven Toth
> I believe the root cause of the crash is due to a DMA/IRQ race condition. It > most commonly occurs when the saa7164 driver is dealing with more than one > saa7164 chip (the HVR-2200 and HVR-2250 for example have two - one for each > tuner). Given MSI avoids DMA/IRQ race conditions - this would e

[linuxtv-media:master 361/370] drivers/media/common/siano/smsdvb-main.c:1195:32: error: 'struct smscore_device_t' has no member named 'media_dev'

2015-02-26 Thread kbuild test robot
tree: git://linuxtv.org/media_tree.git master head: 4b208f8b561ffa5f3b7f6887bf8dc3038c67eee9 commit: 46b1e21fe50f9f58ceaffc10c5aea50366cf7af5 [361/370] [media] siano: add support for the media controller at USB driver config: x86_64-randconfig-iv0-02261908 (attached as .config) reproduce: gi

Re: [PATCH 2/2 v2] dvb-usb-v2: create one media_dev per adapter

2015-02-26 Thread Antti Palosaari
On 02/26/2015 01:34 PM, Mauro Carvalho Chehab wrote: Instead of assuming just one adapter, change the code to store one media controller per adapter. This works fine for dvb-usb, as, on all drivers here, it is not possible to write a media graph that would mix resources between the two different

Re: [PATCH] si2168: tda10071: m88ds3103: Fix trivial typos

2015-02-26 Thread Antti Palosaari
On 02/26/2015 12:13 PM, Yannick Guerrini wrote: Change 'firmare' to 'firmware' Signed-off-by: Yannick Guerrini Acked-by: Antti Palosaari Antti --- drivers/media/dvb-frontends/m88ds3103.c | 2 +- drivers/media/dvb-frontends/si2168_priv.h | 2 +- drivers/media/dvb-frontends/tda100

[PATCH 2/2 v2] dvb-usb-v2: create one media_dev per adapter

2015-02-26 Thread Mauro Carvalho Chehab
Instead of assuming just one adapter, change the code to store one media controller per adapter. This works fine for dvb-usb, as, on all drivers here, it is not possible to write a media graph that would mix resources between the two different adapters. Signed-off-by: Mauro Carvalho Chehab v2:

[PATCH 2/2] dvb-usb-v2: create one media_dev per adapter

2015-02-26 Thread Mauro Carvalho Chehab
Instead of assuming just one adapter, change the code to store one media controller per adapter. This works fine for dvb-usb, as, on all drivers here, it is not possible to write a media graph that would mix resources between the two different adapters. Signed-off-by: Mauro Carvalho Chehab diff

[PATCH 1/2] [media] dvb-usb: create one media_dev per adapter

2015-02-26 Thread Mauro Carvalho Chehab
Instead of assuming just one adapter, change the code to store one media controller per adapter. This works fine for dvb-usb, as, on all drivers here, it is not possible to write a media graph that would mix resources between the two different adapters. Signed-off-by: Mauro Carvalho Chehab diff

[PATCH] si2168: tda10071: m88ds3103: Fix trivial typos

2015-02-26 Thread Yannick Guerrini
Change 'firmare' to 'firmware' Signed-off-by: Yannick Guerrini --- drivers/media/dvb-frontends/m88ds3103.c | 2 +- drivers/media/dvb-frontends/si2168_priv.h | 2 +- drivers/media/dvb-frontends/tda10071_priv.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/me

Media Controller for i.MX6 IPU

2015-02-26 Thread Carlos Sanmartín Bustos
Hi Philipp, I am testing your implementation of MC for the i.MX6 IPU: git://git.pengutronix.de/git/pza/linux.git test/nitrogen6x-ipu-media I made the changes for get working my sensor, all is registering well but I can't understand the last links in media controller. Why IPU SMFC and imx-ipuv3-c

Re: 0001-media-vb2-Fill-vb2_buffer-with-bytesused-from-user.patch; kernel version 3.10.69

2015-02-26 Thread Hans Verkuil
Hi Jeremiah, On 02/26/15 06:18, Sudip JAIN wrote: > Hello Jeremiah, > > Please find the patch "inline" > > commit 3390900680e5182998916c8fa231bc79cd84046b > Author: Sudip Jain > Date: Thu Feb 26 10:40:34 2015 +0530 > > media: vb2: Fill vb2_buffer with bytesused from user > > In