[PATCH] videobuf2-core: modify the num of users

2014-08-14 Thread panpan liu
If num_users returns 1 or more than 1, that means we are not the only user of the plane's memory. Signed-off-by: panpan liu panpan1@samsung.com --- drivers/media/v4l2-core/videobuf2-core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v2 06/29] [media] coda: Add encoder/decoder support for CODA960

2014-08-14 Thread Robert Schwebel
Jeff, On Mon, Jul 21, 2014 at 09:07:50AM +0200, Robert Schwebel wrote: On Fri, Jul 11, 2014 at 02:33:18PM +0200, Robert Schwebel wrote: On Wed, Jul 02, 2014 at 09:16:42PM +0200, Robert Schwebel wrote: It would be really nice if the firmware was available in the linux-firmware

Re: [PATCH] videobuf2-core: modify the num of users

2014-08-14 Thread Pawel Osciak
On Thu, Aug 14, 2014 at 4:11 PM, panpan liu panpan1@samsung.com wrote: If num_users returns 1 or more than 1, that means we are not the only user of the plane's memory. Signed-off-by: panpan liu panpan1@samsung.com NACK. Please read the function documentation and how it is used. If

Re: [PATCH] videobuf2-core: modify the num of users

2014-08-14 Thread Hans Verkuil
Hi, I've got a few questions: On 08/14/2014 09:11 AM, panpan liu wrote: If num_users returns 1 or more than 1, that means we are not the only user of the plane's memory. Why do think this is wrong? When the buffer is allocated the refcount is set to 1, so anyone mapping that buffer will

Re: [PATCH/RFC v4 15/21] media: Add registration helpers for V4L2 flash

2014-08-14 Thread Jacek Anaszewski
On 08/14/2014 06:34 AM, Sakari Ailus wrote: Hi Jacek, On Mon, Aug 11, 2014 at 03:27:22PM +0200, Jacek Anaszewski wrote: ... diff --git a/include/media/v4l2-flash.h b/include/media/v4l2-flash.h new file mode 100644 index 000..effa46b --- /dev/null +++ b/include/media/v4l2-flash.h @@ -0,0

[GIT PULL FOR v3.18] tw68: add new driver for tw68xx grabber cards

2014-08-14 Thread Hans Verkuil
The following changes since commit 0f3bf3dc1ca394a8385079a5653088672b65c5c4: [media] cx23885: fix UNSET/TUNER_ABSENT confusion (2014-08-01 15:30:59 -0300)

[PATCHv2 00/20] cx23885: convert to the V4L2 core frameworks

2014-08-14 Thread Hans Verkuil
This patch series converts the cx23885 driver to the latest V4L2 core frameworks, removing about 1000 lines in the process. It now passes the v4l2-compliance tests and, frankly, feels much more robust. I have tested this with my HVR-1800 board with video (compressed and uncompressed), vbi, dvb

[PATCHv2 20/20] cx23885: Add busy checks before changing formats

2014-08-14 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Before you can change the standard or the capture format, make sure the various vb2_queues aren't in use since you cannot change the buffer size from underneath a a busy vb2_queue. Also make sure that the return code of cx23885_set_tvnorm is returned

[PATCHv2 13/20] cx23885: drop videobuf abuse in cx23885-alsa

2014-08-14 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com The alsa driver uses videobuf low-level functions that are not available in vb2, so replace them by driver-specific functions. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885-alsa.c | 96

[PATCHv2 19/20] cx23885: remove btcx-risc dependency

2014-08-14 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com It's just as easy to do it in the driver. This dependency only uses a fraction of the btcx-risc module and doing it directly in the driver adds only a few lines. The btcx-risc module is really meant for the bttv driver, not for other drivers.

[PATCHv2 11/20] cx23885: drop unused clip fields from struct cx23885_fh

2014-08-14 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com There is no overlay support, so drop these unused fields. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/media/pci/cx23885/cx23885.h

[PATCHv2 08/20] cx23885: map invalid fields to a valid field.

2014-08-14 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885-video.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/pci/cx23885/cx23885-video.c b/drivers/media/pci/cx23885/cx23885-video.c

[PATCHv2 15/20] cx23885: convert to vb2

2014-08-14 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com As usual, this patch is very large due to the fact that half a vb2 conversion isn't possible. And since this affects 417, alsa, core, dvb, vbi and video the changes are all over. What made this more difficult was the peculiar way the risc program was

[PATCHv2 14/20] cx23885: use video_drvdata to get cx23885_dev pointer

2014-08-14 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Use video_drvdata(file) instead of fh-dev to get the cx23885_dev pointer. This prepares for the vb2 conversion where fh-dev (renamed to fh-q_dev in this patch) will be removed completely. Signed-off-by: Hans Verkuil hans.verk...@cisco.com ---

[PATCHv2 06/20] cx23885: convert 417 to the control framework

2014-08-14 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Convert the -417 source to the control framework as well. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885-417.c | 133 +- drivers/media/pci/cx23885/cx23885-video.c | 6 --

[PATCHv2 03/20] cx23885: support v4l2_fh and g/s_priority

2014-08-14 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Add support for struct v4l2_fh and priority handling. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885-417.c | 5 + drivers/media/pci/cx23885/cx23885-video.c | 6 +- drivers/media/pci/cx23885/cx23885.h

[PATCHv2 18/20] cx23885: remove FSF address as per checkpatch

2014-08-14 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com These addresses are usually out-of-date and the top-level license will always have the right address. So drop it from these sources. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/altera-ci.c | 4

[PATCHv2 12/20] cx23885: fmt, width and height are global, not per-fh.

2014-08-14 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Move these fields from cx23885_fh to cx23885_dev. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885-video.c | 125 +++--- drivers/media/pci/cx23885/cx23885.h | 8 +- 2 files changed,

[PATCHv2 16/20] cx23885: fix field handling

2014-08-14 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Add missing SEQ_BT/TB support, bottom field is first for all 60 Hz formats, not just NTSC, restore an overwritten field value and initialize dev-field correctly. Signed-off-by: Hans Verkuil hans.verk...@cisco.com ---

[PATCHv2 01/20] cx23885: fix querycap

2014-08-14 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Set device_caps to fix the v4l2-compliance QUERYCAP complaints. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885-video.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git

[PATCHv2 04/20] cx23885: use core locking, switch to unlocked_ioctl.

2014-08-14 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Enable core locking which allows us to safely switch to unlocked_ioctl. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885-417.c | 5 ++-- drivers/media/pci/cx23885/cx23885-video.c | 43

[PATCHv2 07/20] cx23885: fix format colorspace compliance error

2014-08-14 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Fix v4l2-compliance failure relating to formatting. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885-video.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/pci/cx23885/cx23885-video.c

[PATCHv2 17/20] cx23885: fix weird sizes.

2014-08-14 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com These values make no sense. All SDTV standards have the same width. This seems to be copied from the cx88 driver. Just drop these weird values. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885.h | 6 +++--- 1 file

[PATCHv2 02/20] cx23885: fix audio input handling

2014-08-14 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Fix a bunch of v4l2-compliance errors relating to audio input handling. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885-video.c | 31 --- 1 file changed, 20 insertions(+), 11

[PATCHv2 09/20] cx23885: drop radio-related dead code

2014-08-14 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Currently no radio device nodes are ever created, so remove the dead radio code. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885-video.c | 15 +++ drivers/media/pci/cx23885/cx23885.h | 3 --- 2

[PATCHv2 10/20] cx23885: drop type field from struct cx23885_fh

2014-08-14 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com This information is available elsewhere as well. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885-video.c | 89 ++- drivers/media/pci/cx23885/cx23885.h | 1 - 2 files changed, 40

[PATCHv2 05/20] cx23885: convert to the control framework

2014-08-14 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com This is part 1, converting the uncompressed video/vbi nodes to use the control framework. The next patch converts the compressed video node as well. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885-417.c | 20

[GIT PULL FOR v3.18] cx23885: convert to the latest frameworks, including vb2.

2014-08-14 Thread Hans Verkuil
This pull request converts the cx23885 driver to the latest V4L2 core frameworks, removing about 1000 lines in the process. It now passes the v4l2-compliance tests and, frankly, feels much more robust. I have tested this with my HVR-1800 board with video (compressed and uncompressed), vbi, dvb

Re: 3.15.6 USB issue with pwc cam

2014-08-14 Thread Hans de Goede
Hi, On 08/12/2014 05:29 PM, Udo van den Heuvel wrote: On 2014-08-12 17:07, Hans de Goede wrote: lspci -nn # lspci -nn 00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Root Complex [1022:1410] 00:00.2 IOMMU [0806]: Advanced Micro Devices,

Re: [PATCH] Fixed reference counting int saa716x drivers

2014-08-14 Thread Hans Verkuil
Hi Matthias, This is an out-of-tree driver, so until that driver is merged into the kernel I can't do anything with this patch. Sorry, Hans On 08/11/2014 04:50 PM, Matthias Waechter wrote: Without this patch applied, saa716x_core takes all reference counts and leaves the specific

Re: [PATCH/RFC v4 00/21] LED / flash API integration

2014-08-14 Thread Jacek Anaszewski
On 08/14/2014 07:03 AM, Sakari Ailus wrote: Hi Jacek, On Thu, Aug 07, 2014 at 10:21:14AM +0200, Jacek Anaszewski wrote: On 08/06/2014 08:53 AM, Sakari Ailus wrote: Hi Jacek, On Fri, Jul 11, 2014 at 04:04:03PM +0200, Jacek Anaszewski wrote: ... 1) Who should register V4L2 Flash sub-device?

[GIT PULL FOR v3.18] Various fixes

2014-08-14 Thread Hans Verkuil
Hi Mauro, Various fixes for v3.18. Please take a good look at the 'videobuf2: fix lockdep warning'. Locking issues are always complex and an extra pair of eyeballs doesn't hurt. I also have been in two minds whether it should go into 3.17 or 3.18, but I think it is better to have it go through

Re: [media-workshop] [ANNOUNCE] Linux Kernel Media mini-summit on Oct, 16-17 in Düsseldorf, Germany

2014-08-14 Thread Laurent Pinchart
Hi Mauro, On Wednesday 13 August 2014 10:14:11 Mauro Carvalho Chehab wrote: Hi, As there are still too things to be discussed in order to improve media stuff, and most of the developers nowadays are located in Europe and usually go to ELCE, we're scheduling a two day mini-summit in

Re: [GIT PULL FOR v3.18] tw68: add new driver for tw68xx grabber cards

2014-08-14 Thread Mauro Carvalho Chehab
Em Thu, 14 Aug 2014 11:32:48 +0200 Hans Verkuil hansv...@cisco.com escreveu: The following changes since commit 0f3bf3dc1ca394a8385079a5653088672b65c5c4:

Re: [PATCH for v3.17] videobuf2-dma-sg: fix for wrong GFP mask to sg_alloc_table_from_pages

2014-08-14 Thread Mauro Carvalho Chehab
Hi Hans, Please re-check your git pull request for this tree: git://linuxtv.org/hverkuil/media_tree.git cx23b You added this patch, but with a different (bad) subject, without any comments, without c/c to stable and without Marek's ack. So, there's something wrong there. Also, I think

Re: [PATCH for v3.17] videobuf2-dma-sg: fix for wrong GFP mask to sg_alloc_table_from_pages

2014-08-14 Thread Hans Verkuil
My apologies, I forgot about that one. I agree, let's wait until the 3.17 fixes are merged and I'll respin this series then. Regards, Hans On 08/14/2014 02:09 PM, Mauro Carvalho Chehab wrote: Hi Hans, Please re-check your git pull request for this tree:

[PATCHv2 2/2] MAINTAINERS: add tw68 entry

2014-08-14 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4cdf24c..2b06a8e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9199,6 +9199,14 @@ T: git

[PATCHv2 0/2] Add driver for tw68xx PCI grabber boards

2014-08-14 Thread Hans Verkuil
Changes since v1: - Fix warning that Mauro found (and why didn't I get that warning?) - Replaced dprintk by either dev_dbg or dev_err. But this means I need to retest the driver when I'm back from the LinuxCon to be sure I'm not getting any spurious DMA errors. Add support for the tw68

[PATCHv2 1/2] tw68: add support for Techwell tw68xx PCI grabber boards

2014-08-14 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Add support for the tw68 driver. The driver has been out-of-tree for many years on gitorious: https://gitorious.org/tw68/tw68-v2 I have refactored and ported that driver to the latest V4L2 core frameworks. Tested with my Techwell tw6805a and tw6816

Re: 3.15.6 USB issue with pwc cam

2014-08-14 Thread Mathias Nyman
On 08/12/2014 07:31 PM, Udo van den Heuvel wrote: On 2014-08-12 18:27, Hans Verkuil wrote: It was a bit confusing, but he has two problems: one pwc, one (the warning) for uvc. Indeed. Do I need to provide additional info to help find the root cause(s)? Could you help me take a look at

[linuxtv-media:devel 489/499] drivers/media/usb/as102/as10x_cmd.c:45:40: sparse: incorrect type in assignment (different base types)

2014-08-14 Thread kbuild test robot
tree: git://linuxtv.org/media_tree.git devel head: e5c52c1b504e5620c16b4b87f9c092f719f4706e commit: af2f93f4f7f45050e042c62041e3dce06d3099c3 [489/499] [media] as102: promote it out of staging reproduce: make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by )

NOTICE

2014-08-14 Thread Head Quarter Western Union and Money Gram Transfer
Top of the day to you all from the Head Quarter Western Union and Money Gram Transfer. Dear User This is to inform all our users that the high rate of scam has been coming so much and we are receive complains from beach Transfer office that our customer has been send money to differed country as

cron job: media_tree daily build: WARNINGS

2014-08-14 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 Aug 15 04:00:19 CEST 2014 git branch: test git hash: 0f3bf3dc1ca394a8385079a5653088672b65c5c4 gcc

Re: [PATCH/RFC v4 00/21] LED / flash API integration

2014-08-14 Thread Sakari Ailus
On Thu, Aug 14, 2014 at 12:35:05PM +0200, Jacek Anaszewski wrote: On 08/14/2014 07:03 AM, Sakari Ailus wrote: Hi Jacek, On Thu, Aug 07, 2014 at 10:21:14AM +0200, Jacek Anaszewski wrote: On 08/06/2014 08:53 AM, Sakari Ailus wrote: Hi Jacek, On Fri, Jul 11, 2014 at 04:04:03PM +0200, Jacek