Re: [Linaro-mm-sig] [PATCH v4 3/4] mutex: Add ww tests to lib/locking-selftest.c. v4

2013-05-29 Thread Daniel Vetter
On Tue, May 28, 2013 at 11:12 PM, Maarten Lankhorst maarten.lankho...@canonical.com wrote: +static void ww_test_spin_nest_unlocked(void) +{ +raw_spin_lock_nest_lock(lock_A, o.base); +U(A); +} I don't quite see the point of this one here ... It's a lockdep test that was missing.

[REVIEWv2 PATCH 0/3] hdpvr: various fixes

2013-05-29 Thread Hans Verkuil
The first patch fixes a bug in querystd: if there is no signal, then querystd should return V4L2_STD_UNKNOWN. There are more drivers that return the wrong value here, I have a patch series pending to fix that and also to improve the spec. The second does a code cleanup that improves readability,

[REVIEWv2 PATCH 1/3] hdpvr: fix querystd 'unknown format' return.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com If no format has been detected, then querystd should return V4L2_STD_UNKNOWN, not V4L2_STD_ALL. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/usb/hdpvr/hdpvr-video.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[REVIEWv2 PATCH 3/3] hdpvr: improve error handling

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com get_video_info() should never return EFAULT, instead it should return the low-level usb_control_msg() error. Add a valid field to the hdpvr_video_info struct so the driver can easily check if a valid format was detected. Whenever get_video_info is called

[REVIEWv2 PATCH 2/3] hdpvr: code cleanup

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Remove an unnecessary 'else' and invert a condition which makes the code more readable. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/usb/hdpvr/hdpvr-video.c | 54 - 1 file changed, 27

Re: [RFC] [media] mem2mem: add support for hardware buffered queue

2013-05-29 Thread Sylwester Nawrocki
Hello Philip, On 05/22/2013 12:17 PM, Philipp Zabel wrote: On mem2mem decoders with a hardware bitstream ringbuffer, to drain the buffer at the end of the stream, remaining frames might need to be decoded without additional input buffers being provided, and after calling streamoff on the v4l2

RE: [RFC] [media] mem2mem: add support for hardware buffered queue

2013-05-29 Thread Kamil Debski
Hi Philipp, Hans, On mem2mem decoders with a hardware bitstream ringbuffer, to drain the buffer at the end of the stream, remaining frames might need to be decoded without additional input buffers being provided, and after calling streamoff on the v4l2 output queue. This also allows a driver

Re: [RFC] [media] mem2mem: add support for hardware buffered queue

2013-05-29 Thread Philipp Zabel
Hi Sylwester, Am Mittwoch, den 29.05.2013, 11:32 +0200 schrieb Sylwester Nawrocki: Hello Philip, On 05/22/2013 12:17 PM, Philipp Zabel wrote: On mem2mem decoders with a hardware bitstream ringbuffer, to drain the buffer at the end of the stream, remaining frames might need to be decoded

[PATCHv1 00/38] Remove VIDIOC_DBG_G_CHIP_IDENT

2013-05-29 Thread Hans Verkuil
With the introduction in 3.10 of the new superior VIDIOC_DBG_G_CHIP_INFO ioctl there is no longer any need for the DBG_G_CHIP_IDENT ioctl or the v4l2-chip-ident.h header. The V4L2 core is now responsible for handling the G_CHIP_INFO ioctl. Only if a bridge driver has multiple address ranges

[PATCHv1 01/38] v4l2-ioctl: dbg_g/s_register: only match BRIDGE and SUBDEV types.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Drop support for V4L2_CHIP_MATCH_I2C_DRIVER/ADDR and V4L2_CHIP_MATCH_AC97 types. The following patches will remove support for those in the drivers as well. This means that bridge drivers no longer have to check for the match.type field in their

[PATCHv1 04/38] saa7115: add back the dropped 'found' message.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com The saa7115 driver used to show a 'chip found' message during probe. This was accidentally dropped during recent commits. Add it back as it is quite useful. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/i2c/saa7115.c |2 ++ 1

[PATCHv1 03/38] cx18: remove g_chip_ident support.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com The av-core is really a subdev, so there is no need anymore to act as if it is a 'second' bridge chip. As a result of this the g_chip_ident implementation can be completely dropped. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Andy Walls

[PATCHv1 05/38] ivtv: remove g_chip_ident

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com g_chip_ident was used to determine if a saa7114 or saa7115 was used. Instead just check the subdev name. After that the g_chip_ident function can be removed. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Andy Walls awa...@md.metrocast.net ---

[PATCHv1 02/38] v4l2: remove g_chip_ident from bridge drivers where it is easy to do so.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com VIDIOC_DBG_G_CHIP_IDENT has been replaced by VIDIOC_DBG_G_CHIP_INFO. Remove g_chip_ident support from bridge drivers since it is no longer needed. This patch takes care of all the trivial cases. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc:

[PATCHv1 06/38] cx23885: remove g_chip_ident.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Replace g_chip_ident by g_chip_info. Note that the IR support is implemented as a subdev, so this part no longer needs to be handled as a 'bridge' chip. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Steven Toth st...@linuxtv.org ---

[PATCHv1 07/38] cx88: remove g_chip_ident.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Remove g_chip_ident from cx88. Also remove the v4l2-chip-ident.h include. The board code used defines from v4l2-chip-ident.h to tell the driver which audio chip is used. Replace this with a cx88-specific enum. Signed-off-by: Hans Verkuil

[PATCHv1 13/38] v4l2: remove obsolete v4l2_chip_match_host().

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com This function is no longer needed since it is now the responsibility of the v4l2 core to check if the DBG_G/S_REGISTER and DBG_G_CHIP_INFO ioctls are called for the bridge driver or not. Signed-off-by: Hans Verkuil hans.verk...@cisco.com ---

[PATCHv1 09/38] gspca: remove g_chip_ident

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Remove g_chip_ident and replace it with g_chip_info. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Hans de Goede hdego...@redhat.com Cc: Brian Johnson brij...@gmail.com --- drivers/media/usb/gspca/gspca.c | 32 +-

[PATCHv1 16/38] indycam: remove g_chip_ident op.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com This is no longer needed since the core now handles this through DBG_G_CHIP_INFO. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/indycam.c | 12 1 file changed, 12 deletions(-) diff --git

[PATCHv1 11/38] marvell-ccic: remove g_chip_ident.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Remove g_chip_ident. This driver used some of the V4L2_IDENT defines, replace those with a driver-specific enum. This makes it possible to drop the v4l2-chip-ident.h define as well. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Jonathan Corbet

[PATCHv1 14/38] au8522_decoder: remove g_chip_ident op.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com This is no longer needed since the core now handles this through DBG_G_CHIP_INFO. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Devin Heitmueller dheitmuel...@kernellabs.com --- drivers/media/dvb-frontends/au8522_decoder.c | 17

[PATCHv1 17/38] soc_camera sensors: remove g_chip_ident op.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com This is no longer needed since the core now handles this through DBG_G_CHIP_INFO. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Guennadi Liakhovetski g.liakhovet...@gmx.de --- drivers/media/i2c/soc_camera/imx074.c | 19

[PATCHv1 15/38] radio: remove g_chip_ident op.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com This is no longer needed since the core now handles this through DBG_G_CHIP_INFO. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/radio/saa7706h.c | 10 -- drivers/media/radio/tef6862.c | 14 -- 2 files

[PATCHv1 27/38] mxb: check register address when reading/writing a register.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Prevent out-of-range register accesses. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/saa7146/mxb.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/media/pci/saa7146/mxb.c b/drivers/media/pci/saa7146/mxb.c

[PATCHv1 19/38] cx25840: remove the v4l2-chip-ident.h include

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Replace the V4L2_IDENT_ macros from v4l2-chip-ident.h with driver specific defines. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Andy Walls awa...@md.metrocast.net --- drivers/media/i2c/cx25840/cx25840-core.c | 50

[PATCHv1 12/38] tveeprom: remove v4l2-chip-ident.h include.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Replace the V4L2_IDENT_* usage with tveeprom-specific defines. This header is deprecated, so those defines shouldn't be used anymore. The em28xx driver is the only one that uses the tveeprom audio_processor field, so that has been updated to use the new

[PATCHv1 34/38] media/i2c: fill in missing reg-size fields.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Prabhakar Lad prabhakar.cse...@gmail.com Cc: Guennadi Liakhovetski g.liakhovet...@gmx.de --- drivers/media/i2c/ak881x.c |1 + drivers/media/i2c/soc_camera/mt9t031.c |1 +

[PATCHv1 23/38] DocBook: remove references to the dropped VIDIOC_DBG_G_CHIP_IDENT ioctl.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Mauro Carvalho Chehab mche...@redhat.com --- Documentation/DocBook/media/v4l/compat.xml | 14 +- Documentation/DocBook/media/v4l/v4l2.xml | 11 +-

[PATCHv1 26/38] saa7134: check register address in g_register.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Prevent reading out-of-range register values. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/pci/saa7134/saa7134-video.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCHv1 22/38] v4l2-core: remove support for obsolete VIDIOC_DBG_G_CHIP_IDENT.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com This has been replaced by the new and much better VIDIOC_DBG_G_CHIP_INFO. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/v4l2-core/v4l2-compat-ioctl32.c |1 -

[PATCHv1 35/38] cx18: fix register range check

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Ensure that the register is aligned to a dword, otherwise the range check could fail since it assumes dword alignment. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Andy Walls awa...@md.metrocast.net --- drivers/media/pci/cx18/cx18-ioctl.c |

[PATCHv1 37/38] ivtv: fix register range check

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Ensure that the register is aligned to a dword, otherwise the range check could fail since it assumes dword alignment. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Andy Walls awa...@md.metrocast.net --- drivers/media/pci/ivtv/ivtv-ioctl.c |

[PATCHv1 30/38] au0828: set reg-size.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com The size field wasn't filled in. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Devin Heitmueller dheitmuel...@kernellabs.com --- drivers/media/usb/au0828/au0828-video.c |1 + 1 file changed, 1 insertion(+) diff --git

[PATCHv1 08/38] saa6752hs: drop obsolete g_chip_ident.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com This op and the v4l2-chip-ident.h header are no longer needed. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/pci/saa7134/saa6752hs.c | 14 -- 1 file changed, 14

[PATCHv1 21/38] v4l2-int-device: remove unused chip_ident reference.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Mauro Carvalho Chehab mche...@redhat.com --- include/media/v4l2-int-device.h |3 --- 1 file changed, 3 deletions(-) diff --git a/include/media/v4l2-int-device.h b/include/media/v4l2-int-device.h

[PATCHv1 28/38] vpbe_display: drop g/s_register ioctls.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com These are no longer needed: register access to subdevices no longer needs the bridge driver to forward them. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Prabhakar Lad prabhakar.cse...@gmail.com ---

[PATCHv1 24/38] v4l2-framework: replace g_chip_ident by g_std in the examples.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com The framework documentation used the g_chip_ident op as an example. This op has been removed, so replace its use in the examples by the g_std op. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Mauro Carvalho Chehab mche...@redhat.com ---

[PATCHv1 33/38] pvrusb2: drop g/s_register ioctls.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Register access to subdevices no longer needs bridge support for those ioctls. The v4l2 core handles that these days. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Mike Isely is...@isely.net --- drivers/media/usb/pvrusb2/pvrusb2-hdw.c | 36

[PATCHv1 31/38] cx231xx: the reg-size field wasn't filled in.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/usb/cx231xx/cx231xx-video.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/media/usb/cx231xx/cx231xx-video.c

[PATCHv1 32/38] sn9c20x: the reg-size field wasn't filled in.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Hans de Goede hdego...@redhat.com Cc: Brian Johnson brij...@gmail.com --- drivers/media/usb/gspca/sn9c20x.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/usb/gspca/sn9c20x.c

[PATCHv1 20/38] v4l2-common: remove unused v4l2_chip_match/ident_i2c_client functions

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/v4l2-core/v4l2-common.c | 47 + include/media/v4l2-common.h |9 --- 2 files changed, 1

[PATCH for v3.10] DocBook/media/v4l: update version number.

2013-05-29 Thread Hans Verkuil
The version number was still 3.9: update to 3.10. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- Documentation/DocBook/media/v4l/v4l2.xml |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/DocBook/media/v4l/v4l2.xml

[PATCHv1 25/38] DocBook: remove obsolete note from the dbg_g_register doc.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- Documentation/DocBook/media/v4l/vidioc-dbg-g-register.xml |9 - 1 file changed, 9 deletions(-) diff --git a/Documentation/DocBook/media/v4l/vidioc-dbg-g-register.xml

[PATCHv1 38/38] DocBook/media/v4l: update VIDIOC_DBG_ documentation

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com - Remove the On failure the structure remains unchanged. part since that isn't necessarily true. - Document the 'size' field. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- .../DocBook/media/v4l/vidioc-dbg-g-chip-info.xml|3 +--

[PATCHv1 29/38] marvell-ccic: check register address.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Prevent out-of-range register accesses. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Jonathan Corbet cor...@lwn.net --- drivers/media/platform/marvell-ccic/cafe-driver.c |1 + drivers/media/platform/marvell-ccic/mcam-core.c |4

[PATCHv1 36/38] cx88: fix register mask.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Ensure that the register is aligned to a dword, otherwise the read could read out-of-range data. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/pci/cx88/cx88-video.c |4 ++-- 1 file

[PATCHv1 10/38] cx231xx: remove g_chip_ident.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Remove g_chip_ident and replace it with g_chip_info. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/usb/cx231xx/cx231xx-417.c|1 - drivers/media/usb/cx231xx/cx231xx-avcore.c |

Re: [RFC] [media] mem2mem: add support for hardware buffered queue

2013-05-29 Thread Philipp Zabel
Hi Kamil, Am Mittwoch, den 29.05.2013, 11:54 +0200 schrieb Kamil Debski: Hi Philipp, Hans, On mem2mem decoders with a hardware bitstream ringbuffer, to drain the buffer at the end of the stream, remaining frames might need to be decoded without additional input buffers being provided,

Re: [RFC] [media] mem2mem: add support for hardware buffered queue

2013-05-29 Thread Andrzej Hajda
Hi Philipp, On 05/29/2013 01:13 PM, Philipp Zabel wrote: Hi Kamil, Am Mittwoch, den 29.05.2013, 11:54 +0200 schrieb Kamil Debski: Hi Philipp, Hans, On mem2mem decoders with a hardware bitstream ringbuffer, to drain the buffer at the end of the stream, remaining frames might need to be

RE: [PATCH 1/2] [media] v4l2-mem2mem: add v4l2_m2m_create_bufs helper

2013-05-29 Thread Kamil Debski
Hi, Thanks for the patch. May I ask you to use use checkpath next time and keep whitespaces tidy? This time I fixed it (spaces changed to a tab). Checkpatch: -- ERROR: code indent should use tabs where possible #41: FILE: drivers/media/v4l2-core/v4l2-mem2mem.c:384: +

RE: [PATCH 0/9] CODA patches in preparation for decoding support

2013-05-29 Thread Kamil Debski
Hi, Patches 5/9 an 6/9 have a style issues (Line 80) found by checkpatch. Can you comment on this? Also patch 8/9 does not apply cleanly to my branch. I think that it might be because I am missing patches that were taken by Hans. Warnings from checkpatch: Patch 5/9 WARNING: line over 80

RE: [RFC] [media] mem2mem: add support for hardware buffered queue

2013-05-29 Thread Kamil Debski
Hi, -Original Message- From: Philipp Zabel [mailto:p.za...@pengutronix.de] Sent: Wednesday, May 29, 2013 1:13 PM To: Kamil Debski Cc: linux-media@vger.kernel.org; 'Mauro Carvalho Chehab'; 'Pawel Osciak'; 'John Sheu'; 'Hans Verkuil'; Marek Szyprowski; Andrzej Hajda Subject: Re:

Re: [RFC] [media] mem2mem: add support for hardware buffered queue

2013-05-29 Thread Philipp Zabel
Hi Andrzej, Am Mittwoch, den 29.05.2013, 14:05 +0200 schrieb Andrzej Hajda: Hi Philipp, On 05/29/2013 01:13 PM, Philipp Zabel wrote: Hi Kamil, Am Mittwoch, den 29.05.2013, 11:54 +0200 schrieb Kamil Debski: Hi Philipp, Hans, On mem2mem decoders with a hardware bitstream ringbuffer,

Re: [PATCH 1/2] [media] v4l2-mem2mem: add v4l2_m2m_create_bufs helper

2013-05-29 Thread Philipp Zabel
Am Mittwoch, den 29.05.2013, 14:28 +0200 schrieb Kamil Debski: Hi, Thanks for the patch. May I ask you to use use checkpath next time and keep whitespaces tidy? This time I fixed it (spaces changed to a tab). Yes, thanks regards Philipp -- To unsubscribe from this list: send the line

Re: [PATCH 0/9] CODA patches in preparation for decoding support

2013-05-29 Thread Philipp Zabel
Am Mittwoch, den 29.05.2013, 14:28 +0200 schrieb Kamil Debski: Hi, Patches 5/9 an 6/9 have a style issues (Line 80) found by checkpatch. Can you comment on this? I think that especially with the CODA_CODEC array, readability is improved by overstepping the 80 character barrier. Also patch

[GIT PULL FOR v3.10] mem2mem fixes for 3.10

2013-05-29 Thread Kamil Debski
The following changes since commit 6719a4974600fdaa4a3ac2ea2aed819a35d06605: [media] staging/solo6x10: select the desired font (2013-05-27 09:38:57 -0300) are available in the git repository at: git://git.linuxtv.org/kdebski/media.git fixes-for-3.10 for you to fetch changes up to

[GIT PULL FOR v3.11] Next features in mem2mem drivers

2013-05-29 Thread Kamil Debski
The following changes since commit 7eac97d7e714429f7ef1ba5d35f94c07f4c34f8e: [media] media: pci: remove duplicate checks for EPERM (2013-05-27 09:34:56 -0300) are available in the git repository at: git://git.linuxtv.org/kdebski/media.git master for you to fetch changes up to

[RFC PATCH 00/14] QUERYSTD fixes

2013-05-29 Thread Hans Verkuil
This patch series cleans up various drivers with respect to their VIDIOC_QUERYSTD behavior. The main reason for doing this is to ensure that the correct std value is returned when there is no signal detected. It should return V4L2_STD_UNKNOWN. Due to a poorly worded specification several drivers

[RFC PATCH 01/14] adv7183: fix querystd

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com If no signal is detected, return V4L2_STD_UNKNOWN. Otherwise AND the standard with the detected standards. Note that the v4l2 core initializes the std with tvnorms before calling the querystd ioctl. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc:

[RFC PATCH 03/14] ks0127: fix querystd

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Return V4L2_STD_UNKNOWN if no signal is detected. Otherwise AND the standard mask with the detected standards. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/i2c/ks0127.c | 17 - 1 file changed, 12 insertions(+),

[RFC PATCH 02/14] bt819: fix querystd

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Return V4L2_STD_UNKNOWN if no signal is detected. Otherwise AND the standard mask with the detected standards. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/i2c/bt819.c |8 +--- 1 file changed, 5 insertions(+), 3

[RFC PATCH 04/14] saa7110: fix querystd

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Return V4L2_STD_UNKNOWN if no signal is detected. Otherwise AND the standard mask with the detected standards. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/i2c/saa7110.c |4 ++-- 1 file changed, 2 insertions(+), 2

[RFC PATCH 06/14] saa7191: fix querystd

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Return V4L2_STD_UNKNOWN if no signal is detected. Otherwise AND the standard mask with the detected standards. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/i2c/saa7191.c | 14 -- 1 file changed, 8 insertions(+), 6

[RFC PATCH 05/14] saa7115: fix querystd

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Return V4L2_STD_UNKNOWN if no signal is detected. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/i2c/saa7115.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/saa7115.c

[RFC PATCH 11/14] v4l2-ioctl: clarify querystd comment.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Improve the querystd comment. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/v4l2-core/v4l2-ioctl.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c

[RFC PATCH 08/14] vpx3220: fix querystd

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Return V4L2_STD_UNKNOWN if no signal is detected. Otherwise AND the standard mask with the detected standards. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/i2c/vpx3220.c | 10 ++ 1 file changed, 6 insertions(+), 4

[RFC PATCH 10/14] zoran: remove bogus autodetect mode in set_norm

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Currently, if the norm set is V4L2_STD_ALL, then autodetect the current standard and use that. This is non-standard behavior, and in fact it hasn't worked for a very long time: before s_std is called in this driver, the v4l2 core will mask it with the

[RFC PATCH 14/14] cx23885: don't implement querystd if it doesn't do anything.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com cx23885 redirects querystd to g_std. That's pointless, just drop querystd support. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cx23885/cx23885-417.c |1 - drivers/media/pci/cx23885/cx23885-video.c |1 - 2 files

[RFC PATCH 07/14] tvp514x: fix querystd

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Return V4L2_STD_UNKNOWN if no signal is detected. Otherwise AND the standard mask with the detected standards. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/i2c/tvp514x.c | 12 +++- 1 file changed, 7 insertions(+), 5

[RFC PATCH 12/14] DocBook/media/v4l: clarify the QUERYSTD documentation.

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Explicitly mention that this ioctl should return V4L2_STD_UNKNOWN if not signal was detected. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- Documentation/DocBook/media/v4l/vidioc-querystd.xml |3 ++- 1 file changed, 2 insertions(+), 1

[RFC PATCH 13/14] tvp5150: fix s_std support

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com - do exact matching for special formats like PAL-M - drop autodetect support: it's non-standard, and it is bogus as well since there is no way to get back the detected standard since neither g_std nor querystd are implemented. Signed-off-by: Hans

[RFC PATCH 09/14] bttv: fix querystd

2013-05-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com AND the standard mask with the detected standards. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/bt8xx/bttv-driver.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: Keene

2013-05-29 Thread Hans Verkuil
On Fri April 19 2013 11:11:27 Antti Palosaari wrote: On 04/19/2013 10:12 AM, Hans Verkuil wrote: On Wed April 17 2013 21:45:24 Antti Palosaari wrote: On 04/15/2013 09:55 AM, Hans Verkuil wrote: On Fri April 12 2013 02:11:41 Antti Palosaari wrote: Hello Hans, That device is working very,

[PATCH for v3.10] cx88: fix NULL pointer dereference

2013-05-29 Thread Hans Verkuil
This fixes a NULL pointer deference when loading the cx88_dvb module for a Hauppauge HVR4000. The bugzilla bug report is here: https://bugzilla.kernel.org/show_bug.cgi?id=56271 The cause is that the wm8775 is optional, so even though the board info says there is one, it doesn't have to be

Re: Keene

2013-05-29 Thread Antti Palosaari
On 05/29/2013 05:26 PM, Hans Verkuil wrote: On Fri April 19 2013 11:11:27 Antti Palosaari wrote: On 04/19/2013 10:12 AM, Hans Verkuil wrote: On Wed April 17 2013 21:45:24 Antti Palosaari wrote: On 04/15/2013 09:55 AM, Hans Verkuil wrote: On Fri April 12 2013 02:11:41 Antti Palosaari wrote:

cron job: media_tree daily build: WARNINGS

2013-05-29 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: Wed May 29 19:00:20 CEST 2013 git branch: test git hash: 7eac97d7e714429f7ef1ba5d35f94c07f4c34f8e gcc

[PATCH v5] adv7180: add more subdev video ops

2013-05-29 Thread Sergei Shtylyov
From: Vladimir Barinov vladimir.bari...@cogentembedded.com Add subdev video ops for ADV7180 video decoder. This makes decoder usable on the soc-camera drivers. Signed-off-by: Vladimir Barinov vladimir.bari...@cogentembedded.com [Sergei: renamed adv7180_try_mbus_fmt() to adv7180_mbus_fmt().]

[PATCH v6] V4L2: I2C: ML86V7667 video decoder driver

2013-05-29 Thread Sergei Shtylyov
From: Vladimir Barinov vladimir.bari...@cogentembedded.com Add OKI Semiconductor ML86V7667 video decoder driver. Signed-off-by: Vladimir Barinov vladimir.bari...@cogentembedded.com [Sergei: added v4l2_device_unregister_subdev() call to the error cleanup path of ml86v7667_probe(), renamed

[RFC 2/3] saa7115: Remove unneeded register change for gm7113c

2013-05-29 Thread Jon Arne Jørgensen
On video std change, the driver would disable the automatic field detection on the gm7113c chip, and force either 50Hz or 60Hz. Don't do this any more. Signed-off-by: Jon Arne Jørgensen jona...@jonarne.no --- drivers/media/i2c/saa7115.c | 25 ++--- 1 file changed, 2

[RFC 1/3] saa7115: Set saa7113 init to values from datasheet

2013-05-29 Thread Jon Arne Jørgensen
Change all default values in the initial setup table to match the table in the datasheet. Signed-off-by: Jon Arne Jørgensen jona...@jonarne.no --- drivers/media/i2c/saa7115.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/media/i2c/saa7115.c

[RFC 0/3] saa7115: Implement i2c_board_info.platform_data

2013-05-29 Thread Jon Arne Jørgensen
This patch set adds handling of the i2c_board_info struct to the saa7115 driver. The main goal of this patch is to give the different devices with the gm7113c chip an opportunity to configure the chip to their needs. I've only implemented the overrides I know are necessary to get the stk1160 and

[RFC 3/3] saa7115: Implement i2c_board_info.platform data

2013-05-29 Thread Jon Arne Jørgensen
Implement i2c_board_info.platform_data handling in the driver so we can make device specific changes to the chips we support. Signed-off-by: Jon Arne Jørgensen jona...@jonarne.no --- drivers/media/i2c/saa7115.c | 62 +++-- include/media/saa7115.h | 109

Re: [RFC 0/3] saa7115: Implement i2c_board_info.platform_data

2013-05-29 Thread Jon Arne Jørgensen
On Wed, May 29, 2013 at 10:41:15PM +0200, Jon Arne Jørgensen wrote: This patch set adds handling of the i2c_board_info struct to the saa7115 driver. The main goal of this patch is to give the different devices with the gm7113c chip an opportunity to configure the chip to their needs. I've

Re: [RFC 3/3] saa7115: Implement i2c_board_info.platform data

2013-05-29 Thread Jon Arne Jørgensen
On Wed, May 29, 2013 at 10:41:18PM +0200, Jon Arne Jørgensen wrote: Implement i2c_board_info.platform_data handling in the driver so we can make device specific changes to the chips we support. Signed-off-by: Jon Arne Jørgensen jona...@jonarne.no --- drivers/media/i2c/saa7115.c | 62

Re: Keene

2013-05-29 Thread Antti Palosaari
On 05/29/2013 08:58 PM, Antti Palosaari wrote: On 05/29/2013 05:26 PM, Hans Verkuil wrote: On Fri April 19 2013 11:11:27 Antti Palosaari wrote: On 04/19/2013 10:12 AM, Hans Verkuil wrote: On Wed April 17 2013 21:45:24 Antti Palosaari wrote: On 04/15/2013 09:55 AM, Hans Verkuil wrote: On Fri

Re: [RFC 1/3] saa7115: Set saa7113 init to values from datasheet

2013-05-29 Thread Mauro Carvalho Chehab
Em Wed, 29 May 2013 22:41:16 +0200 Jon Arne Jørgensen jona...@jonarne.no escreveu: Change all default values in the initial setup table to match the table in the datasheet. This is not a good idea, as it can produce undesired side effects on the existing drivers that depend on it, and can't be

Re: [RFC 3/3] saa7115: Implement i2c_board_info.platform data

2013-05-29 Thread Mauro Carvalho Chehab
Em Wed, 29 May 2013 22:41:18 +0200 Jon Arne Jørgensen jona...@jonarne.no escreveu: Implement i2c_board_info.platform_data handling in the driver so we can make device specific changes to the chips we support. ... +struct saa7115_platform_data { + /* Horizontal time constant */ +

Re: EM28xx - new device ID - Ion Video Forever USB capture dongle

2013-05-29 Thread P. van Gaans
On 26-05-13 11:23, Philip Pemberton wrote: Hi folks, This is my first post here (I think?) and I'm going to make it an informative one :) TL/DR: Can someone please add this to the device ID list for the em28xx module? Ion Video Forever - USB ID EB1A:5124, Card Type 9. Confirmed as

Re: [GIT PULL] go7007 firmware updates

2013-05-29 Thread Ben Hutchings
On Tue, 2013-05-28 at 08:42 +0200, Hans Verkuil wrote: On Mon May 27 2013 23:53:15 Ben Hutchings wrote: On Mon, 2013-05-27 at 21:56 +0200, Hans Verkuil wrote: On Mon May 27 2013 18:24:32 Ben Hutchings wrote: On Thu, 2013-05-23 at 10:25 +0200, Hans Verkuil wrote: Hi Ben, David,

Re: [PATCHv1 18/38] media/i2c: remove g_chip_ident op.

2013-05-29 Thread Laurent Pinchart
Hi Hans, Thanks for the patch. On Wednesday 29 May 2013 12:59:51 Hans Verkuil wrote: From: Hans Verkuil hans.verk...@cisco.com This is no longer needed since the core now handles this through DBG_G_CHIP_INFO. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Cc: Laurent Pinchart

Re: [PATCH 09/13] media: Change media device link_notify behaviour

2013-05-29 Thread Laurent Pinchart
Hi Sylwester, Thank you for the patch, and sorry for the late reply. On Thursday 09 May 2013 17:36:41 Sylwester Nawrocki wrote: Currently the media device link_notify callback is invoked before the actual change of state of a link when the link is being enabled, and after the actual change of

Re: [RFC 1/3] saa7115: Set saa7113 init to values from datasheet

2013-05-29 Thread Andy Walls
Mauro Carvalho Chehab mche...@redhat.com wrote: Em Wed, 29 May 2013 22:41:16 +0200 Jon Arne Jørgensen jona...@jonarne.no escreveu: Change all default values in the initial setup table to match the table in the datasheet. This is not a good idea, as it can produce undesired side effects on the

Re: [PATCH RFC] media: Rename media_entity_remote_source to media_entity_remote_pad

2013-05-29 Thread Laurent Pinchart
Hi Andrzej, Thank you for the patch, and sorry for not handling this earlier. On Tuesday 22 January 2013 09:24:55 Andrzej Hajda wrote: Function media_entity_remote_source actually returns the remote pad to the given one, regardless if this is the source or the sink pad. Name

Re: [PATCH RFC v2] media: OF: add sync-on-green endpoint property

2013-05-29 Thread Laurent Pinchart
Hi Sylwester, On Saturday 25 May 2013 16:11:52 Sylwester Nawrocki wrote: On 05/25/2013 11:17 AM, Prabhakar Lad wrote: From looking at Figure 8 TVP7002 Application Example in the TVP7002's datasheet ([2], p. 52) and your initial TVP7002 patches it looks like what you want is to specify

[GIT PULL FOR v3.11] uvcvideo patches

2013-05-29 Thread Laurent Pinchart
Hi Mauro, The following changes since commit 7eac97d7e714429f7ef1ba5d35f94c07f4c34f8e: [media] media: pci: remove duplicate checks for EPERM (2013-05-27 09:34:56 -0300) are available in the git repository at: git://linuxtv.org/pinchartl/uvcvideo.git uvcvideo-next for you to fetch changes

Re: [RFC 1/3] saa7115: Set saa7113 init to values from datasheet

2013-05-29 Thread Jon Arne Jørgensen
On Wed, May 29, 2013 at 10:19:49PM -0400, Andy Walls wrote: Mauro Carvalho Chehab mche...@redhat.com wrote: Em Wed, 29 May 2013 22:41:16 +0200 Jon Arne Jørgensen jona...@jonarne.no escreveu: Change all default values in the initial setup table to match the table in the datasheet.

Re: [RFC 1/3] saa7115: Set saa7113 init to values from datasheet

2013-05-29 Thread Timo Teras
On Thu, 30 May 2013 07:21:36 +0200 Jon Arne Jørgensen jona...@jonarne.no wrote: On Wed, May 29, 2013 at 10:19:49PM -0400, Andy Walls wrote: Mauro Carvalho Chehab mche...@redhat.com wrote: Em Wed, 29 May 2013 22:41:16 +0200 Jon Arne Jørgensen jona...@jonarne.no escreveu: Change all