[PATCH v7] rockchip/rga: v4l2 m2m support

2017-08-02 Thread Jacob Chen
Rockchip RGA is a separate 2D raster graphic acceleration unit. It accelerates 2D graphics operations, such as point/line drawing, image scaling, rotation, BitBLT, alpha blending and image blur/sharpness The drvier is mostly based on s5p-g2d v4l2 m2m driver And supports various operations from the

cron job: media_tree daily build: ERRORS

2017-08-02 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: Thu Aug 3 05:00:16 CEST 2017 media-tree git hash:da48c948c263c9d87dfc64566b3373a858cc8aa2 media_build gi

[PATCH] [media] v4l2-compat-ioctl32: Fix timespec conversion

2017-08-02 Thread Daniel Mentz
Certain syscalls like recvmmsg support 64 bit timespec values for the X32 ABI. The helper function compat_put_timespec converts a timespec value to a 32 bit or 64 bit value depending on what ABI is used. The v4l2 compat layer, however, is not designed to support 64 bit timespec values and always us

Revisiting the Digiflower DVR2000B capture card

2017-08-02 Thread Perry Gilfillan
Many years ago when the 2.6 kernel was all the rage I had a working patch to support this card: https://wiki.zoneminder.com/Digiflower With the latest Fedora 26 kernel sources with the following patch applied, the wired input and logical source are scrambled and I don't know what changed. F

Re: [PATCH for v4.13] ARM: dts: exynos: add needs-hpd for Odroid-XU3/4

2017-08-02 Thread Krzysztof Kozlowski
On Mon, Jul 31, 2017 at 01:56:42PM +0200, Hans Verkuil wrote: > CEC support was added for Exynos5 in 4.13, but for the Odroids we need to set > 'needs-hpd' as well since CEC is disabled when there is no HDMI hotplug > signal, > just as for the exynos4 Odroid-U3. > > This is due to the level-shift

[PATCHv3 2/4] drm/bridge: dw-hdmi: add better clock disable control

2017-08-02 Thread Hans Verkuil
From: Russell King The video setup path aways sets the clock disable register to a specific value, which has the effect of disabling the CEC engine. When we add the CEC driver, this becomes a problem. Fix this by only setting/clearing the bits that the video path needs to. Reviewed-by: Jose Ab

[PATCHv3 1/4] drm/bridge: dw-hdmi: add cec notifier support

2017-08-02 Thread Hans Verkuil
From: Russell King Add CEC notifier support to the HDMI bridge driver, so that the CEC part of the IP can receive its physical address. Signed-off-by: Russell King [hans.verkuil: added missing cec_notifier_put to remove()] Acked-by: Hans Verkuil Tested-by: Hans Verkuil Tested-by: Laurent Pinc

[PATCHv3 0/4] dw-hdmi CEC support

2017-08-02 Thread Hans Verkuil
From: Hans Verkuil Russell's v2 cover letter: -- Hi, This series adds dw-hdmi CEC support. This is done in four stages: 1. Add cec-notifier support 2. Fix up the clkdis register support, as this register contains a clock disable bit for the CEC module. 3. Add the driver. 4.

[PATCHv3 4/4] drm/bridge: dw-hdmi: remove CEC engine register definitions

2017-08-02 Thread Hans Verkuil
From: Russell King We don't need the CEC engine register definitions, so let's remove them. Signed-off-by: Russell King Acked-by: Hans Verkuil Tested-by: Hans Verkuil Tested-by: Laurent Pinchart --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.h | 45 --- 1 file chang

[PATCHv3 3/4] drm/bridge: dw-hdmi: add cec driver

2017-08-02 Thread Hans Verkuil
From: Russell King Add a CEC driver for the dw-hdmi hardware. Reviewed-by: Neil Armstrong Signed-off-by: Russell King [hans.verkuil: unsigned -> unsigned int] [hans.verkuil: cec_transmit_done -> cec_transmit_attempt_done] [hans.verkuil: add missing CEC_CAP_PASSTHROUGH] Acked-by: Hans Verkuil

[PATCH 1/2] scan-tables: add initial table for Mountain View, California

2017-08-02 Thread Reynaldo H. Verdejo Pinochet
Signed-off-by: Reynaldo H. Verdejo Pinochet --- atsc/us-CA-Mountain-View | 171 +++ 1 file changed, 171 insertions(+) create mode 100644 atsc/us-CA-Mountain-View diff --git a/atsc/us-CA-Mountain-View b/atsc/us-CA-Mountain-View new file mode 100644 ind

[PATCH 0/2][dtv-scan-tables] Add new tables for San Jose and Mountain View, California

2017-08-02 Thread Reynaldo H. Verdejo Pinochet
The following two patches add city-specific initial scan tables for San Jose and Mountain view. I tried these personally with good results. Particularly in MV with 73 channels output by dvbv5-scan. Bests, -- Reynaldo H. Verdejo Pinochet OSG, Samsung Research America

[PATCH 2/2] scan-tables: add initial table for San Jose, California

2017-08-02 Thread Reynaldo H. Verdejo Pinochet
Signed-off-by: Reynaldo H. Verdejo Pinochet --- atsc/us-CA-San-Jose | 161 1 file changed, 161 insertions(+) create mode 100644 atsc/us-CA-San-Jose diff --git a/atsc/us-CA-San-Jose b/atsc/us-CA-San-Jose new file mode 100644 index 000..ff5

Universal DTV USB receiver (“Joker TV”)

2017-08-02 Thread Abylay Ospan
Hello Everyone ! Some time ago I had announced my initiative about building truly universal DTV receiver - “Joker TV” (supports DVB-S2/T2/C2, ISDB-T, ATSC, DTMB). Now I’m glad to post an update. It has been almost 10 months now but during this time, I have prepared two hardware revisions of “Jok

[PATCH] uvcvideo: extend UVC_QUIRK_FIX_BANDWIDTH to MJPEG streams

2017-08-02 Thread Pavel Rojtberg
From: Pavel Rojtberg attaching two Logitech C615 webcams currently results in VIDIOC_STREAMON: No space left on device as the required bandwidth is not estimated correctly by the device. In fact it always requests 3060 bytes - no matter the format or resolution. setting UVC_QUIRK_FIX_BANDWID

[PATCH 0/9] constify media pci_device_id/pci_tbl.

2017-08-02 Thread Arvind Yadav
SAA7146 DVD card base pci device id const. Arvind Yadav (9): [PATCH 1/9] [media] drv-intf: saa7146: constify pci_device_id. [PATCH 2/9] [media] ttpci: budget: constify pci_device_id. [PATCH 3/9] [media] ttpci: budget-patch: constify pci_device_id. [PATCH 4/9] [media] ttpci: budget-ci: cons

[PATCH 2/9] [media] ttpci: budget: constify pci_device_id.

2017-08-02 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by and work with const pci_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/media/pci/ttpci/budget.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

[PATCH 1/9] [media] drv-intf: saa7146: constify pci_device_id.

2017-08-02 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. So making 'pci_tbl' as const member of 'struct saa7146_extension'. Signed-off-by: Arvind Yadav --- include/media/drv-i

[PATCH 4/9] [media] ttpci: budget-ci: constify pci_device_id.

2017-08-02 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by and work with const pci_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/media/pci/ttpci/budget-ci.c | 2 +- 1 file changed, 1 insertion(+), 1 del

[PATCH 5/9] [media] ttpci: budget-av: constify pci_device_id.

2017-08-02 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by and work with const pci_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/media/pci/ttpci/budget-av.c | 2 +- 1 file changed, 1 insertion(+), 1 del

[PATCH 6/9] [media] ttpci: av7110: constify pci_device_id.

2017-08-02 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by and work with const pci_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/media/pci/ttpci/av7110.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

[PATCH 3/9] [media] ttpci: budget-patch: constify pci_device_id.

2017-08-02 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by and work with const pci_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/media/pci/ttpci/budget-patch.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 8/9] [media] saa7146: hexium_orion: constify pci_device_id.

2017-08-02 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by and work with const pci_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/media/pci/saa7146/hexium_orion.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH 9/9] [media] saa7146: hexium_gemini: constify pci_device_id.

2017-08-02 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by and work with const pci_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/media/pci/saa7146/hexium_gemini.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH 7/9] [media] saa7146: mxb: constify pci_device_id.

2017-08-02 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by and work with const pci_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/media/pci/saa7146/mxb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH 2/2] cx231xx: fix use-after-free when unregistering the i2c_client for the dvb demod

2017-08-02 Thread Matthias Schwarzott
Calling i2c_unregister_device for a demod driver destroys the frontend object. Later it is accessed by calling dvb_unregister_frontend and dvb_frontend_detach. In some cases this leads to a general protection fault with this callstack: dvb_unregister_frontend+0x25/0x50 [dvb_core] dvb_fini+0xd

[PATCH 0/2] Fix use-after-free errors when unregistering the i2c_client for the dvb demod

2017-08-02 Thread Matthias Schwarzott
Hi! There seem to be a general error in a lot of dvb bride drivers about the order of i2c_unregister_device and the calls to dvb_unregister_frontend and dvb_frontend_detach. As soon as the i2c_client for a demod driver is unregistered the memory for the frontend is kfreed. But the calls to dvb_

[PATCH 1/2] cx23885: Fix use-after-free when unregistering the i2c_client for the dvb demod

2017-08-02 Thread Matthias Schwarzott
Unregistering the i2c_client of the demod driver destroys the frontend object. Calling vb2_dvb_unregister_bus later accesses the frontend (and with the refcount_t) conversion the refcount_t code complains: kernel: [ cut here ] kernel: WARNING: CPU: 0 PID: 7883 at lib/refcou

Re: [PATCH] [media] solo6x10: export hardware GPIO pins 8:31 to gpiolib interface

2017-08-02 Thread Ismael Luceno
On 02/Aug/2017 18:17, Anton Sviridenko wrote: > 24 GPIO pins from 32 available on solo6x10 chips are exported > to gpiolib. First 8 GPIOs are reserved for internal use on capture card > boards, GPIOs in range 8:15 are configured as outputs to control relays, > remaining 16:31 are configured as inpu

[PATCH] [media] DaVinci-VPBE: constify vpbe_dev_ops

2017-08-02 Thread Julia Lawall
vpbe_dev_ops is only copied into the ops field at the end of a vpbe_device structure, so it can be const. Signed-off-by: Julia Lawall --- Does the ops field need to be inlined into the vpbe_device structure? drivers/media/platform/davinci/vpbe.c |2 +- 1 file changed, 1 insertion(+), 1 de

[PATCH] [media] solo6x10: export hardware GPIO pins 8:31 to gpiolib interface

2017-08-02 Thread Anton Sviridenko
24 GPIO pins from 32 available on solo6x10 chips are exported to gpiolib. First 8 GPIOs are reserved for internal use on capture card boards, GPIOs in range 8:15 are configured as outputs to control relays, remaining 16:31 are configured as inputs to read sensor states. Now with this patch userspac

[PATCHv3 1/2] tda18250: support for new silicon tuner

2017-08-02 Thread olli . salonen
From: Olli Salonen NXP TDA18250 silicon tuner driver. Version 3 removes regmap_exit as I was pointed out that device management code automatically frees the regmap. Signed-off-by: Olli Salonen --- drivers/media/tuners/Kconfig | 7 + drivers/media/tuners/Makefile| 1 + driv

[PATCHv3 2/2] dib0700: add support for Xbox One Digital TV Tuner

2017-08-02 Thread olli . salonen
From: Olli Salonen Xbox One Digital TV Tuner is a low-cost USB 2.0 multistandard TV tuner. It supports DVB-T, DVB-T2 and DVB-C broadcast standards. USB bridge: DibCom 0700C Demodulator: Panasonic MN88472 Tuner: TDA18250BHN The demodulator requires firmware. Download one from here: http://palosa

Re: [PATCH v2 11/14] v4l: vsp1: Add support for header display lists in continuous mode

2017-08-02 Thread Kieran Bingham
On 01/08/17 19:47, Laurent Pinchart wrote: > Hi Kieran, > > On Tuesday 01 Aug 2017 18:35:48 Kieran Bingham wrote: >> On 26/06/17 19:12, Laurent Pinchart wrote: >>> The VSP supports both header and headerless display lists. The latter is >>> easier to use when the VSP feeds data directly to the DU

Re: [PATCH v1 0/4] media: rc: add support for IR receiver on MT7622 SoC

2017-08-02 Thread Sean Young
Hi Sean, On Wed, Aug 02, 2017 at 10:24:07AM +0800, Sean Wang wrote: > Hi, Mauro and Sean > > Just a gentle ping on the whole patchset porting MediaTek CIR to another > platform. I'm creating the rc-core pull request, should be done by the end of the week. Sean

[PATCH v6] rockchip/rga: v4l2 m2m support

2017-08-02 Thread Jacob Chen
Rockchip RGA is a separate 2D raster graphic acceleration unit. It accelerates 2D graphics operations, such as point/line drawing, image scaling, rotation, BitBLT, alpha blending and image blur/sharpness The drvier is mostly based on s5p-g2d v4l2 m2m driver And supports various operations from the

[PATCHv2 2/9] omapdrm: hdmi.h: extend hdmi_core_data with CEC fields

2017-08-02 Thread Hans Verkuil
From: Hans Verkuil Extend the hdmi_core_data struct with the additional fields needed for CEC. Also fix a simple typo in a comment. Signed-off-by: Hans Verkuil --- drivers/gpu/drm/omapdrm/dss/hdmi.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/omapd

[PATCHv2 4/9] omapdrm: hdmi4: prepare irq handling for HDMI CEC support

2017-08-02 Thread Hans Verkuil
From: Hans Verkuil Pass struct omap_hdmi to the irq handler since it will need access to hdmi.core. Do not clear the IRQ_HDMI_CORE bit: that will be controlled by the HDMI CEC code. Signed-off-by: Hans Verkuil --- drivers/gpu/drm/omapdrm/dss/hdmi4.c | 11 ++- 1 file changed, 6 inserti

[PATCHv2 9/9] omapdrm: omapdss_hdmi_ops: add lost_hotplug op

2017-08-02 Thread Hans Verkuil
From: Hans Verkuil The CEC framework needs to know when the hotplug detect signal disappears, since that means the CEC physical address has to be invalidated (i.e. set to f.f.f.f). Add a lost_hotplug op that is called when the HPD signal goes away. Signed-off-by: Hans Verkuil --- drivers/gpu/

[PATCHv2 1/9] omapdrm: encoder-tpd12s015: keep ls_oe_gpio high

2017-08-02 Thread Hans Verkuil
From: Hans Verkuil For OMAP4 CEC support the CEC pin should always be on. So keep ls_oe_gpio high all the time in order to support CEC. Background: even if the HPD is low it should still be possible to use CEC. Some displays will set the HPD low when they go into standby or when they switch to a

[PATCHv2 5/9] omapdrm: hdmi4: move hdmi4_core_powerdown_disable to hdmi_power_on_core()

2017-08-02 Thread Hans Verkuil
From: Hans Verkuil Call hdmi4_core_powerdown_disable() in hdmi_power_on_core() to power up the HDMI core (needed for CEC). The same call can now be dropped in hdmi4_configure(). Signed-off-by: Hans Verkuil --- drivers/gpu/drm/omapdrm/dss/hdmi4.c | 2 ++ drivers/gpu/drm/omapdrm/dss/hdmi4_c

[PATCHv2 6/9] omapdrm: hdmi4: refcount hdmi_power_on/off_core

2017-08-02 Thread Hans Verkuil
From: Hans Verkuil The hdmi_power_on/off_core functions can be called multiple times: when the HPD changes and when the HDMI CEC support needs to power the HDMI core. So use a counter to know when to really power on or off the HDMI core. Signed-off-by: Hans Verkuil --- drivers/gpu/drm/omapdrm

[PATCHv2 7/9] omapdrm: hdmi4_cec: add OMAP4 HDMI CEC support

2017-08-02 Thread Hans Verkuil
From: Hans Verkuil Add the source and header for the OMAP4 HDMI CEC support. This code is not yet hooked up, that will happen in the next patch. Signed-off-by: Hans Verkuil --- drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c | 381 drivers/gpu/drm/omapdrm/dss/hdmi4_ce

[PATCHv2 3/9] omapdrm: hdmi4: make low-level functions available

2017-08-02 Thread Hans Verkuil
From: Hans Verkuil Three low-level functions in hdmi4.c and hdmi4_core.c are made available for use by the OMAP4 CEC support. Renamed the prefix to hdmi4 since these are OMAP4 specific. These function deal with the HDMI core and are needed to power it up for use with CEC, even when the HPD is l

[PATCHv2 0/9] omapdrm: hdmi4: add CEC support

2017-08-02 Thread Hans Verkuil
From: Hans Verkuil This patch series adds CEC support for the omap4. It is based on the 4.13-rc2 kernel with this patch series applied: http://www.spinics.net/lists/dri-devel/msg143440.html It is virtually identical to the first patch series posted in April: http://www.spinics.net/lists/dri-de

[PATCHv2 8/9] omapdrm: hdmi4: hook up the HDMI CEC support

2017-08-02 Thread Hans Verkuil
From: Hans Verkuil Hook up the HDMI CEC support in the hdmi4 driver. It add the CEC irq handler, the CEC (un)init calls and tells the CEC implementation when the physical address changes. Signed-off-by: Hans Verkuil --- drivers/gpu/drm/omapdrm/dss/Kconfig | 8 drivers/gpu/drm/omapd

[PATCH 3/3] MAINTAINERS: add cec-gpio entry

2017-08-02 Thread Hans Verkuil
From: Hans Verkuil Add an entry for the CEC GPIO driver. Signed-off-by: Hans Verkuil --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index aeb84877854b..d85959f82a09 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3199,6 +3199,15 @@ F:

[PATCH 2/3] cec-gpio: add HDMI CEC GPIO driver

2017-08-02 Thread Hans Verkuil
From: Hans Verkuil Add a simple HDMI CEC GPIO driver that sits on top of the cec-pin framework. While I have heard of SoCs that use the GPIO pin for CEC (apparently an early RockChip SoC used that), the main use-case of this driver is to function as a debugging tool. By connecting the CEC line

[PATCH 1/3] dt-bindings: document the CEC GPIO bindings

2017-08-02 Thread Hans Verkuil
From: Hans Verkuil Document the bindings for the cec-gpio module for hardware where the CEC pin is connected to a GPIO pin. Signed-off-by: Hans Verkuil --- Documentation/devicetree/bindings/media/cec-gpio.txt | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 Documen

[PATCH 0/3] cec-gpio: add HDMI CEC GPIO-based driver

2017-08-02 Thread Hans Verkuil
From: Hans Verkuil This driver adds support for CEC implementations that use a pull-up GPIO pin. While SoCs exist that do this, the primary use-case is to turn a single-board computer into a cheap CEC debugger. Together with 'cec-ctl --monitor-pin' you can do low-level CEC bus monitoring and do

[PATCH] media: staging: atomisp: sh_css_calloc shall return a pointer to the allocated space

2017-08-02 Thread Sergei A. Trusov
The calloc function returns either a null pointer or a pointer to the allocated space. Add the second case that is missed. Signed-off-by: Sergei A. Trusov --- drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/media/ato

Re: [PATCH] media: staging: atomisp: sh_css_calloc shall return a pointer to the allocated space

2017-08-02 Thread Joe Perches
On Wed, 2017-08-02 at 18:00 +1000, Sergei A. Trusov wrote: > The calloc function returns either a null pointer or a pointer to the > allocated space. Add the second case that is missed. gads. Bug added by commit da22013f7df4 ("atomisp: remove indirection from sh_css_malloc") These wrappers shoul