Re: [PATCH v4 06/10] cec: add HDMI CEC framework

2015-04-23 Thread Hans Verkuil
On 04/23/2015 03:03 PM, Kamil Debski wrote: From: Hans Verkuil hansv...@cisco.com The added HDMI CEC framework provides a generic kernel interface for HDMI CEC devices. Signed-off-by: Hans Verkuil hansv...@cisco.com [k.deb...@samsung.com: Merged CEC Updates commit by Hans Verkuil]

Re: [PATCHv3 0/4] add devm_of_phy_get_by_index and update platform drivers

2015-04-23 Thread Alan Stern
On Wed, 22 Apr 2015, Arun Ramamurthy wrote: This patch set adds a new API to get phy by index when multiple phys are present. This patch is based on discussion with Arnd Bergmann about dt bindings for multiple phys. History: v1: - Removed null pointers on Dmitry's suggestion -

Re: [PATCH v5 06/10] media: Add registration helpers for V4L2 flash sub-devices

2015-04-23 Thread Jacek Anaszewski
On Thu, 23 Apr 2015 10:40:09 +0300 Hi Sakari, Thanks for the review. Sakari Ailus sakari.ai...@iki.fi wrote: Hi Jacek, On Wed, Apr 15, 2015 at 08:48:36AM +0200, Jacek Anaszewski wrote: This patch adds helper functions for registering/unregistering LED Flash class devices as V4L2

[PATCH 3/3] Input: TOUCHSCREEN_SUR40 should depend on HAS_DMA

2015-04-23 Thread Geert Uytterhoeven
If NO_DMA=y: warning: (TOUCHSCREEN_SUR40 VIDEO_TW68 VIDEO_CX23885 VIDEO_CX25821 VIDEO_CX88 VIDEO_SAA7134) selects VIDEOBUF2_DMA_SG which has unmet direct dependencies (MEDIA_SUPPORT HAS_DMA) ERROR: dma_unmap_sg [drivers/media/v4l2-core/videobuf2-dma-sg.ko] undefined! ERROR:

[PATCH 1/3] [media] v4l: xilinx: VIDEO_XILINX should depend on HAS_DMA

2015-04-23 Thread Geert Uytterhoeven
If NO_DMA=y: warning: (VIDEO_XILINX VIDEO_DM365_VPFE VIDEO_DT3155 VIDEO_OMAP4) selects VIDEOBUF2_DMA_CONTIG which has unmet direct dependencies (MEDIA_SUPPORT HAS_DMA) media/v4l2-core/videobuf2-dma-contig.c: In function ‘vb2_dc_mmap’: media/v4l2-core/videobuf2-dma-contig.c:207:

Missing additional V4L2 caps in cx18

2015-04-23 Thread Laura Abbott
Hi, We received a report of a backtrace from v4l2 with the cx18 module: [6.229393] [ cut here ] [6.229414] WARNING: CPU: 1 PID: 593 at drivers/media/v4l2-core/v4l2-ioctl.c:1025 v4l_querycap+0x41/0x70 [videodev]() [6.229415] Modules linked in: cx18_alsa

[PATCH 12/12] rtl2832: add support for GoTView MasterHD 3 USB tuner

2015-04-23 Thread Olli Salonen
GoTView MasterHD 3 is a DVB-T2/C USB 2.0 tuner. It's based on the following components: - USB bridge: RTL2832P (contains also DVB-T demodulator) - Demodulator: Si2168-A30 - Tuner: Si2148-A20 The demodulator and the tuner will need firmwares. The Si2148 uses Si2158 firmware. Antti has the

[PATCH 11/12] rtl28xxu: add I2C read without write

2015-04-23 Thread Olli Salonen
Add support for I2C read operation without a preceeding write. While here, change the error code to EOPNOTSUPP in case an unsupported I2C operation is attempted. Signed-off-by: Olli Salonen olli.salo...@iki.fi --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 8 +++- 1 file changed, 7

[PATCH 04/12] cx23885: specify if_port for si2157 devices

2015-04-23 Thread Olli Salonen
Set the if_port parameter for all Si2157-based devices. Signed-off-by: Olli Salonen olli.salo...@iki.fi --- drivers/media/pci/cx23885/cx23885-dvb.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/media/pci/cx23885/cx23885-dvb.c b/drivers/media/pci/cx23885/cx23885-dvb.c index

[PATCH 03/12] si2157: support selection of IF interface

2015-04-23 Thread Olli Salonen
The chips supported by the si2157 driver have two IF outputs (either pins 12+13 or pins 9+11). Instead of hardcoding the output to be used add an option to choose which output shall be used. Signed-off-by: Olli Salonen olli.salo...@iki.fi --- drivers/media/tuners/si2157.c | 4 +++-

[PATCH 08/12] dvbsky: specify if_port for si2157 devices

2015-04-23 Thread Olli Salonen
Set the if_port parameter for all Si2157-based devices. Signed-off-by: Olli Salonen olli.salo...@iki.fi --- drivers/media/usb/dvb-usb-v2/dvbsky.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/usb/dvb-usb-v2/dvbsky.c b/drivers/media/usb/dvb-usb-v2/dvbsky.c index

[PATCH 01/12] si2168: add support for gapped clock

2015-04-23 Thread Olli Salonen
Add a parameter in si2168_config to support gapped clock. Signed-off-by: Olli Salonen olli.salo...@iki.fi --- drivers/media/dvb-frontends/si2168.c | 3 +++ drivers/media/dvb-frontends/si2168.h | 3 +++ drivers/media/dvb-frontends/si2168_priv.h | 1 + 3 files changed, 7 insertions(+)

[PATCH 02/12] dvbsky: use si2168 config option ts_clock_gapped

2015-04-23 Thread Olli Salonen
Change the dvbsky driver to support gapped clock instead of the current hack. Signed-off-by: Olli Salonen olli.salo...@iki.fi --- drivers/media/usb/dvb-usb-v2/dvbsky.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/usb/dvb-usb-v2/dvbsky.c

[PATCH 07/12] af9035: specify if_port for si2157 devices

2015-04-23 Thread Olli Salonen
Set the if_port parameter for all Si2157-based devices. Signed-off-by: Olli Salonen olli.salo...@iki.fi --- drivers/media/usb/dvb-usb-v2/af9035.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/usb/dvb-usb-v2/af9035.c b/drivers/media/usb/dvb-usb-v2/af9035.c index

[PATCH 06/12] cx231xx: specify if_port for si2157 devices

2015-04-23 Thread Olli Salonen
Set the if_port parameter for all Si2157-based devices. Signed-off-by: Olli Salonen olli.salo...@iki.fi --- drivers/media/usb/cx231xx/cx231xx-dvb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/usb/cx231xx/cx231xx-dvb.c b/drivers/media/usb/cx231xx/cx231xx-dvb.c index

[PATCH 05/12] smipcie: specify if_port for si2157 devices

2015-04-23 Thread Olli Salonen
Set the if_port parameter for all Si2157-based devices. Signed-off-by: Olli Salonen olli.salo...@iki.fi --- drivers/media/pci/smipcie/smipcie.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/pci/smipcie/smipcie.c b/drivers/media/pci/smipcie/smipcie.c index 4115925..143fd78

[PATCH 10/12] em28xx: specify if_port for si2157 devices

2015-04-23 Thread Olli Salonen
Set the if_port parameter for all Si2157-based devices. Signed-off-by: Olli Salonen olli.salo...@iki.fi --- drivers/media/usb/em28xx/em28xx-dvb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/usb/em28xx/em28xx-dvb.c b/drivers/media/usb/em28xx/em28xx-dvb.c index

[PATCH 09/12] cxusb: specify if_port for si2157 devices

2015-04-23 Thread Olli Salonen
Set the if_port parameter for all Si2157-based devices. Signed-off-by: Olli Salonen olli.salo...@iki.fi --- drivers/media/usb/dvb-usb/cxusb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/usb/dvb-usb/cxusb.c b/drivers/media/usb/dvb-usb/cxusb.c index ffc3704..ab71511 100644

Re: [PATCH v5 06/10] media: Add registration helpers for V4L2 flash sub-devices

2015-04-23 Thread Sakari Ailus
Hi Jacek, Jacek Anaszewski wrote: ... +#define call_flash_op(v4l2_flash, op, arg) \ + (has_flash_op(v4l2_flash, op) ? \ + v4l2_flash-ops-op(v4l2_flash, arg) : \ + -EINVAL) + +static enum

Re: [PATCH 12/12] rtl2832: add support for GoTView MasterHD 3 USB tuner

2015-04-23 Thread Benjamin Larsson
On 04/23/2015 11:11 PM, Olli Salonen wrote: GoTView MasterHD 3 is a DVB-T2/C USB 2.0 tuner. It's based on the following components: - USB bridge: RTL2832P (contains also DVB-T demodulator) - Demodulator: Si2168-A30 - Tuner: Si2148-A20 [...] For some reason, the old I2C write method

Re: [PATCH 03/12] si2157: support selection of IF interface

2015-04-23 Thread Mauro Carvalho Chehab
Hi Olli, Em Fri, 24 Apr 2015 00:11:02 +0300 Olli Salonen olli.salo...@iki.fi escreveu: The chips supported by the si2157 driver have two IF outputs (either pins 12+13 or pins 9+11). Instead of hardcoding the output to be used add an option to choose which output shall be used.

Re: [media-workshop] [DRAFT 1] Linux Media Summit report - March, 26 2015 - San Jose - CA - USA

2015-04-23 Thread Patrick Boettcher
Hi Mauro, On Thu, 23 Apr 2015 07:40:46 -0300 Mauro Carvalho Chehab mche...@osg.samsung.com wrote: What about demod-diversity: demods of some manufacturers can be used to combine their demodulated symbols and, due to their different antennas and RF-paths, improve the overall reception

Re: [DRAFT 1] Linux Media Summit report - March, 26 2015 - San Jose - CA - USA

2015-04-23 Thread Patrick Boettcher
Hi Mauro, I could not participate at your Summit, but may have an input to the media-controller in DVB - see below. On Wed, 22 Apr 2015 15:31:46 -0300 Mauro Carvalho Chehab mche...@osg.samsung.com wrote: This is the first draft for the Linux Media Summit Report. Please note that the items

[PATCH] DocBook/media: Improve G_EDID specification

2015-04-23 Thread Hans Verkuil
When using VIDIOC_G_EDID there is a special case where start_blocks and blocks are both set to 0. In that case the driver just has to set blocks to the total number of available blocks and return 0. Even though the drivers do this right and v4l2-compliance tests for it, it turned out not to be

[PATCH v4 00/10] HDMI CEC framework

2015-04-23 Thread Kamil Debski
Hi, This is the fourth version of the HDMI CEC framework. I would like to thank for all the comments and suggestions to the previous versions of this patch. I believe that the code has matured enough to be tagged as PATCH and not RFC as in previous version. This patchset is base on the

[PATCH v4 02/10] dts: exynos4: add node for the HDMI CEC device

2015-04-23 Thread Kamil Debski
This patch adds HDMI CEC node specific to the Exynos4210/4x12 SoC series. Signed-off-by: Kamil Debski k.deb...@samsung.com --- arch/arm/boot/dts/exynos4.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi index

[PATCH v4 01/10] dts: exynos4*: add HDMI CEC pin definition to pinctrl

2015-04-23 Thread Kamil Debski
Add pinctrl nodes for the HDMI CEC device to the Exynos4210 and Exynos4x12 SoCs. These are required by the HDMI CEC device. Signed-off-by: Kamil Debski k.deb...@samsung.com --- arch/arm/boot/dts/exynos4210-pinctrl.dtsi |7 +++ arch/arm/boot/dts/exynos4x12-pinctrl.dtsi |7 +++ 2

[PATCH v4 03/10] dts: exynos4412-odroid*: enable the HDMI CEC device

2015-04-23 Thread Kamil Debski
Add a dts node entry and enable the HDMI CEC device present in the Exynos4 family of SoCs. Signed-off-by: Kamil Debski k.deb...@samsung.com --- arch/arm/boot/dts/exynos4412-odroid-common.dtsi |4 1 file changed, 4 insertions(+) diff --git

[PATCH v4 09/10] cec: adv7511: add cec support.

2015-04-23 Thread Kamil Debski
From: Hans Verkuil hansv...@cisco.com Add CEC support to the adv7511 driver. Signed-off-by: Hans Verkuil hansv...@cisco.com [k.deb...@samsung.com: Merged changes from CEC Updates commit by Hans Verkuil] Signed-off-by: Kamil Debski k.deb...@samsung.com --- drivers/media/i2c/adv7511.c | 347

[PATCH v4 06/10] cec: add HDMI CEC framework

2015-04-23 Thread Kamil Debski
From: Hans Verkuil hansv...@cisco.com The added HDMI CEC framework provides a generic kernel interface for HDMI CEC devices. Signed-off-by: Hans Verkuil hansv...@cisco.com [k.deb...@samsung.com: Merged CEC Updates commit by Hans Verkuil] [k.deb...@samsung.com: Merged Update author commit by Hans

[PATCH v4 07/10] v4l2-subdev: add HDMI CEC ops

2015-04-23 Thread Kamil Debski
From: Hans Verkuil hansv...@cisco.com Add callbacks to the v4l2_subdev_video_ops. Signed-off-by: Hans Verkuil hansv...@cisco.com [k.deb...@samsung.com: Merged changes from CEC Updates commit by Hans Verkuil] Signed-off-by: Kamil Debski k.deb...@samsung.com --- include/media/v4l2-subdev.h |8

[PATCH v4 05/10] rc: Add HDMI CEC protoctol handling

2015-04-23 Thread Kamil Debski
Add handling of remote control events coming from the HDMI CEC bus. This patch includes a new keymap that maps values found in the CEC messages to the keys pressed and released. Also, a new protocol has been added to the core. Signed-off-by: Kamil Debski k.deb...@samsung.com ---

[PATCH v4 04/10] HID: add HDMI CEC specific keycodes

2015-04-23 Thread Kamil Debski
Add HDMI CEC specific keycodes to the keycodes definition. Signed-off-by: Kamil Debski k.deb...@samsung.com --- include/uapi/linux/input.h | 12 1 file changed, 12 insertions(+) diff --git a/include/uapi/linux/input.h b/include/uapi/linux/input.h index 731417c..7430a3f 100644 ---

[PATCH v4 08/10] cec: adv7604: add cec support.

2015-04-23 Thread Kamil Debski
From: Hans Verkuil hansv...@cisco.com Add CEC support to the adv7604 driver. Signed-off-by: Hans Verkuil hansv...@cisco.com [k.deb...@samsung.com: Merged changes from CEC Updates commit by Hans Verkuil] [k.deb...@samsung.com: add missing methods cec/io_write_and_or] [k.deb...@samsung.com: change

[PATCH] allow buffers allocation with DMABUF memory type

2015-04-23 Thread Benjamin Gaignard
Until now the only way to make the driver allocate buffers and share them using dma_buf was to use V4L2_MEMORY_MMAP memory type. Use of MMAP memory type is a problem because vb2 never call dma_buf_map_attachment() to attach itself while queuing the buffer so dma_buf importer will not know that

Re: [DRAFT 1] Linux Media Summit report - March, 26 2015 - San Jose - CA - USA

2015-04-23 Thread Hans Verkuil
On 04/22/15 20:31, Mauro Carvalho Chehab wrote: This is the first draft for the Linux Media Summit Report. Please note that the items 3 to 5 are not in good shape. In special, nobody took Etherpad notes on item 4. Item 4 was just me presenting on ongoing projects. As far as I remember there

Re: [PATCHv3 0/4] add devm_of_phy_get_by_index and update platform drivers

2015-04-23 Thread Hans de Goede
Hi, On 23-04-15 01:04, Arun Ramamurthy wrote: This patch set adds a new API to get phy by index when multiple phys are present. This patch is based on discussion with Arnd Bergmann about dt bindings for multiple phys. History: v1: - Removed null pointers on Dmitry's suggestion -

Re: [PATCH v5 06/10] media: Add registration helpers for V4L2 flash sub-devices

2015-04-23 Thread Sakari Ailus
Hi Jacek, On Wed, Apr 15, 2015 at 08:48:36AM +0200, Jacek Anaszewski wrote: This patch adds helper functions for registering/unregistering LED Flash class devices as V4L2 sub-devices. The functions should be called from the LED subsystem device driver. In case the support for V4L2 Flash

[PATCH v2 2/4] v4l2-dv-timings: fix rounding in hblank and hsync calculation

2015-04-23 Thread Prashant Laddha
Changed the rounding calculation for hblank and hsync to match it to equations in cvt and gtf standards. In cvt calculation, hsync needs to be rounded down. In gtf calculations, hblank needs to be rounded to nearest multiple of twice the cell granularity and hsync needs to be rounded to the

[PATCH v2 4/4] v4l2-dv-timings: replace hsync magic number with a macro

2015-04-23 Thread Prashant Laddha
This change will not change timing calculation. In CVT generator spreadsheet the nominal value of hsync (as a percentage of line) is 8 percent. Cc: Hans Verkuil hans.verk...@cisco.com Cc: Martin Bugge marbu...@cisco.com Signed-off-by: Prashant Laddha prlad...@cisco.com ---

fix for rounding errors in cvt/gtf calculation

2015-04-23 Thread Prashant Laddha
This is second version of patch series towards fixing rounding errors in cvt,gtf timing calculations. In version 1, the fixes for rounding errors have added on top of patches meant for interlaced support. Based on the feedback from Hans, I have now (in v2), reworked the patches such that,

[PATCH v2 3/4] v4l2-dv-timings: add sanity checks in cvt,gtf calculations

2015-04-23 Thread Prashant Laddha
Wrong values of hfreq and image height can lead to strange timings. Avoid timing calculations for such values. Suggested By: Martin Bugge marbu...@cisco.com Cc: Hans Verkuil hans.verk...@cisco.com Cc: Martin Bugge marbu...@cisco.com Signed-off-by: Prashant Laddha prlad...@cisco.com ---

[PATCH v2 1/4] v4l2-dv-timings: fix rounding error in vsync_bp calculation

2015-04-23 Thread Prashant Laddha
Changed the rounding offsets used in vsync_bp calculation in cvt and gtf timings. The results for vsync_bp should now match with results from timing generator spreadsheets for cvt and gtf standards. In the vsync_bp calculation for cvt, always round down the value of (CVT_MIN_VSYNC_BP /

Re: [DRAFT 1] Linux Media Summit report - March, 26 2015 - San Jose - CA - USA

2015-04-23 Thread Mauro Carvalho Chehab
Hi Patrick, Em Thu, 23 Apr 2015 09:06:35 +0200 Patrick Boettcher patrick.boettc...@posteo.de escreveu: Hi Mauro, I could not participate at your Summit, but may have an input to the media-controller in DVB - see below. On Wed, 22 Apr 2015 15:31:46 -0300 Mauro Carvalho Chehab

[PATCH] [media] vivid: add 1080p capture at 2 fps and 5 fps to webcam emulation

2015-04-23 Thread Philipp Zabel
Use the VIVID_WEBCAM_SIZES constant where appropriate and add a 1920x1080 pixel frame size setting with frame rates of 2 fps and 5 fps. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/platform/vivid/vivid-vid-cap.c | 13 - 1 file changed, 8 insertions(+), 5

cron job: media_tree daily build: WARNINGS

2015-04-23 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 Apr 24 04:00:16 CEST 2015 git branch: test git hash: e183201b9e917daf2530b637b2f34f1d5afb934d gcc