Re: [PATCH/RFC] v4l: vsp1: Add format for Mem2Mem Playback

2014-12-23 Thread Yoshihiro Kaneko
Hi Laurent-san, Thanks for your comment. 2014-12-21 3:35 GMT+09:00 Laurent Pinchart laurent.pinch...@ideasonboard.com: Hello Kaneko-san, Thank you for the patch. On Saturday 20 December 2014 23:16:03 Yoshihiro Kaneko wrote: From: Hiroki Negishi hiroki.negishi...@hitachi-solutions.com

[GIT PULL] cx23885: Hauppauge WinTV-HVR5525

2014-12-23 Thread Antti Palosaari
The following changes since commit 654a731be1a0b6f606f3f3d12b50db08f2ae3c34: [media] media: s5p-mfc: use vb2_ops_wait_prepare/finish helper (2014-12-22 14:36:21 -0200) are available in the git repository at: git://linuxtv.org/anttip/media_tree.git WinTV-HVR5525 for you to fetch changes

Re: [PATCH v6 3/3] of: Add of_graph_get_port_by_id function

2014-12-23 Thread Andrzej Hajda
Hi Philipp, On 12/22/2014 04:11 PM, Philipp Zabel wrote: This patch adds a function to get a port device tree node by port id, or reg property value. Signed-off-by: Philipp Zabel p.za...@pengutronix.de Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- drivers/of/base.c

Re: [PATCH v6 3/3] of: Add of_graph_get_port_by_id function

2014-12-23 Thread Philipp Zabel
Hi Andrzej, On Tue, Dec 23, 2014 at 12:10:00PM +0100, Andrzej Hajda wrote: [...] /** + * of_graph_get_port_by_id() - get the port matching a given id + * @parent: pointer to the parent device node Here you have 'parent' and 'node' in the code. [...] Maybe I miss something but it does

Re: [PATCH v6 1/3] of: Decrement refcount of previous endpoint in of_graph_get_next_endpoint

2014-12-23 Thread Philipp Zabel
On Mon, Dec 22, 2014 at 02:09:46PM -0700, Mathieu Poirier wrote: On 22 December 2014 at 08:11, Philipp Zabel p.za...@pengutronix.de wrote: Decrementing the reference count of the previous endpoint node allows to use the of_graph_get_next_endpoint function in a for_each_... style macro. All

[PATCH 0/4] Remove deprecated drivers

2014-12-23 Thread Hans Verkuil
As promised, let's remove these for 3.20. Regards, Hans -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 4/4] Documentation/video4linux: remove obsolete text files

2014-12-23 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Remove obsolete text files for drivers that have been removed. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- Documentation/video4linux/CQcam.txt | 205 --- Documentation/video4linux/README.tlg2300 | 47 ---

[PATCH 3/4] bw/c-qcam, w9966, pms: remove deprecated staging drivers

2014-12-23 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com These drivers haven't been tested in a long, long time. The hardware is ancient and hopelessly obsolete. These drivers also need to be converted to newer media frameworks but due to the lack of hardware that's going to be impossible. In addition, cheaper

[PATCH 1/4] tlg2300: remove deprecated staging driver

2014-12-23 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com This driver hasn't been tested in a long, long time. The company that made this chip has gone bust many years ago and hardware using this chip is next to impossible to find. This driver needs to be converted to newer media frameworks but due to the lack

[PATCH] videobuf: make unused exported functions static

2014-12-23 Thread Hans Verkuil
The videobuf_dma_init* and videobuf_dma_map() functions are no longer used except in videobuf-dma-sg.c itself. Make them static. These functions were abused in various drivers. All those drivers have now been fixed, so by no longer exporting these functions future abuse is now prevented.

[PATCH v7 0/3] Add of-graph helpers to loop over endpoints and find ports by id

2014-12-23 Thread Philipp Zabel
Hi, I addressed Andrzej's comments on of_graph_get_port_by_id() and added Mathieu's ack to the first patch. Also I missed the omap2-dss init code last time around. For the first patch, I'd like to get an ack for the rcar-du and omap2-dss changes so this can go in through Grant's tree. This

[PATCH v7 1/3] of: Decrement refcount of previous endpoint in of_graph_get_next_endpoint

2014-12-23 Thread Philipp Zabel
Decrementing the reference count of the previous endpoint node allows to use the of_graph_get_next_endpoint function in a for_each_... style macro. All current users of this function that pass a non-NULL prev parameter (coresight, rcar-du, imx-drm, soc_camera, and omap2-dss) are changed to not

[PATCH v7 2/3] of: Add for_each_endpoint_of_node helper macro

2014-12-23 Thread Philipp Zabel
Note that while of_graph_get_next_endpoint decrements the reference count of the child node passed to it, of_node_put(child) still has to be called manually when breaking out of the loop. Signed-off-by: Philipp Zabel p.za...@pengutronix.de Acked-by: Laurent Pinchart

[PATCH v7 3/3] of: Add of_graph_get_port_by_id function

2014-12-23 Thread Philipp Zabel
This patch adds a function to get a port device tree node by port id, or reg property value. Signed-off-by: Philipp Zabel p.za...@pengutronix.de Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- Changes since v6: - Fixed of_graph_get_port_by_id to handle the optional 'ports' node

[PATCH] dib8000: upd_demod_gain_period should be u32

2014-12-23 Thread Mauro Carvalho Chehab
As shown at the code, upd_demod_gain_period is used to write to two 16-bit registers: dib8000_write_word(state, 1946, upd_demod_gain_period 0x); dib8000_write_word(state, 1947, reg | (114) | ((upd_demod_gain_period 16) 0xFF)); So, it should be declared as u32. This fixes the

[RFC 0/6] HDMI-CEC framework

2014-12-23 Thread Kamil Debski
Hi, The work on a common CEC framework was started over three years ago by Hans Verkuil. Unfortunately the work has stalled. As I have received the task of creating a driver for the CEC interface module present on the Exynos range of SoCs, I got in touch with Hans. He repied that the work stalled

[RFC 1/6] cec: add new driver for cec support.

2014-12-23 Thread Kamil Debski
From: Hans Verkuil hansv...@cisco.com Add the CEC framework. 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 Verkuil] [k.deb...@samsung.com: change kthread handling when

[RFC 4/6] adv7511: add cec support.

2014-12-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 | 325

[RFC 5/6] s5p-cec: Add s5p-cec driver

2014-12-23 Thread Kamil Debski
Add CEC interface driver present in the Samsung Exynos range of SoCs. The following files were based on work by SangPil Moon: - exynos_hdmi_cec.h - exynos_hdmi_cecctl.c Signed-off-by: Kamil Debski k.deb...@samsung.com --- .../devicetree/bindings/video/exynos_cec.txt | 26 ++

[RFC 2/6] v4l2-subdev: add cec ops.

2014-12-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

[RFC 3/6] adv7604: add cec support.

2014-12-23 Thread Kamil Debski
From: Hans Verkuil hansv...@cisco.com Add CEC support ot the adv7604 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/adv7604.c | 182

[RFC 6/6] dts: add s5p-cec to exynos4412-odroidu3

2014-12-23 Thread Kamil Debski
Add s5p-cec driver bindings to the board file of the Exynos 4412 Odroid U3. Signed-off-by: Kamil Debski k.deb...@samsung.com --- arch/arm/boot/dts/exynos4412-odroidu3.dts | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/exynos4412-odroidu3.dts

[PATCH] cx23885: move CI/MAC registration to a separate function

2014-12-23 Thread Mauro Carvalho Chehab
As reported by smatch: drivers/media/pci/cx23885/cx23885-dvb.c:2080 dvb_register() Function too hairy. Giving up. This is indeed a too complex function, with lots of stuff inside. Breaking this into two functions makes it a little bit less hairy. Signed-off-by: Mauro Carvalho Chehab

guten Tag

2014-12-23 Thread chin sang
-- guten Tag Ich bin mit diesem Medium, um Sie über die Transaktion zur Abgabe von $ 2150 (Einundzwanzig Millionen fünfhunderttausend Euro) in meiner Bank in China, Sie als Empfänger zu informieren. Es wird zu 100% sicher, dass der Finanzvorstand des verstorbenen Kunden.

[PATCH] cx88-dvb: whitespace cleanup

2014-12-23 Thread Mauro Carvalho Chehab
Fix the following smatch warning: drivers/media/pci/cx88//cx88-dvb.c:1508 dvb_register() warn: if statement not indented Signed-off-by: Mauro Carvalho Chehab mche...@osg.samsung.com --- drivers/media/pci/cx88/cx88-dvb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

Re: [PATCH] media: tlg2300: disable building the driver

2014-12-23 Thread Mauro Carvalho Chehab
Em Mon, 22 Dec 2014 13:25:45 -0700 Jim Davis jim.ep...@gmail.com escreveu: This driver doesn't build with the current kernel, as reported in linux-next (https://lkml.org/lkml/2014/12/18/483) and by the 0-day build system

[PATCH 2/2] tlg2300: Fix media dependencies

2014-12-23 Thread Mauro Carvalho Chehab
Changeset ea2e813e8cc3 moved the driver to staging, but it forgot to preserve the existing dependency. Fixes: ea2e813e8cc3 ([media] tlg2300: move to staging in preparation for removal) Cc: Hans Verkuil hverk...@xs4all.nl Cc: Jim Davis jim.ep...@gmail.com Signed-off-by: Mauro Carvalho Chehab

[PATCH 1/2] vino: Fix media dependencies

2014-12-23 Thread Mauro Carvalho Chehab
Changeset c1d9e03d4ef4 moved the driver to staging, but it forgot to preserve the existing dependency. fixes: c1d9e03d4ef4 ([media] vino/saa7191: move to staging in preparation for removal) Cc: Hans Verkuil hverk...@xs4all.nl Signed-off-by: Mauro Carvalho Chehab mche...@osg.samsung.com diff

Re: [PATCH 1/2] vino: Fix media dependencies

2014-12-23 Thread Hans Verkuil
Acked-by: Hans Verkuil hans.verk...@cisco.com On 12/23/2014 06:02 PM, Mauro Carvalho Chehab wrote: Changeset c1d9e03d4ef4 moved the driver to staging, but it forgot to preserve the existing dependency. fixes: c1d9e03d4ef4 ([media] vino/saa7191: move to staging in preparation for removal)

Re: [PATCH 2/2] tlg2300: Fix media dependencies

2014-12-23 Thread Hans Verkuil
Acked-by: Hans Verkuil hans.verk...@cisco.com On 12/23/2014 06:02 PM, Mauro Carvalho Chehab wrote: Changeset ea2e813e8cc3 moved the driver to staging, but it forgot to preserve the existing dependency. Fixes: ea2e813e8cc3 ([media] tlg2300: move to staging in preparation for removal) Cc:

Re: [PATCH] media: i2c/adp1653: devicetree support for adp1653

2014-12-23 Thread Mauro Carvalho Chehab
Em Wed, 3 Dec 2014 22:46:41 +0100 Pavel Machek pa...@ucw.cz escreveu: We are moving to device tree support on OMAP3, but that currently breaks ADP1653 driver. This adds device tree support, plus required documentation. Signed-off-by: Pavel Machek pa...@ucw.cz Please be sure to check your

Re: [PATCH] media: i2c/adp1653: devicetree support for adp1653

2014-12-23 Thread Pavel Machek
On Tue 2014-12-23 15:23:25, Mauro Carvalho Chehab wrote: Em Wed, 3 Dec 2014 22:46:41 +0100 Pavel Machek pa...@ucw.cz escreveu: We are moving to device tree support on OMAP3, but that currently breaks ADP1653 driver. This adds device tree support, plus required documentation.

[PATCH 02/66] rtl2832: convert driver to I2C binding

2014-12-23 Thread Antti Palosaari
Convert that driver to I2C driver model. Legacy DVB binding is left also for later removal... Tested-by: Benjamin Larsson benja...@southpole.se Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2832.c | 113 +

[PATCH 03/66] rtl28xxu: switch rtl2832 demod attach to I2C binding

2014-12-23 Thread Antti Palosaari
As rtl2832 driver support now I2C binding we will switch to that one. Tested-by: Benjamin Larsson benja...@southpole.se Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 29 ++--- drivers/media/usb/dvb-usb-v2/rtl28xxu.h | 1 + 2

[PATCH 40/66] rtl28xxu: add support for RTL2832U/RTL2832 PID filter

2014-12-23 Thread Antti Palosaari
RTL2832 demod integrated into RTL2832U has PID filter. PID filtering is provided by rtl2832 demod driver. Add support for it. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 33 + 1 file changed, 29 insertions(+), 4

[PATCH 36/66] rtl28xxu: use demod mux I2C adapter for every tuner

2014-12-23 Thread Antti Palosaari
Tuners are connected to demod I2C adapter. Use that muxed adapter for each tuner. That allows us to get rid of hackish FE gate control solution. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 13 - 1 file changed, 8 insertions(+), 5

[PATCH 09/66] rtl2830: carry pointer to I2C client for every function

2014-12-23 Thread Antti Palosaari
As a I2C driver struct i2c_client is top level structure representing the driver. Use it as parameter to carry all needed information for each function in order to simplify things. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2830.c | 97

[PATCH 49/66] rtl2832_sdr: fix logging

2014-12-23 Thread Antti Palosaari
Pass correct device, platform device, for logging system in order to format printouts correctly. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2832_sdr.c | 151 +- 1 file changed, 86 insertions(+), 65 deletions(-) diff --git

[PATCH 39/66] rtl2832: implement PID filter

2014-12-23 Thread Antti Palosaari
Implement PID filter. This demod has PID filter size of 32 PIDs. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2832.c | 69 ++ drivers/media/dvb-frontends/rtl2832.h | 2 + drivers/media/dvb-frontends/rtl2832_priv.h | 1 + 3

[PATCH 35/66] rtl2832: implement DVBv5 signal strength statistics

2014-12-23 Thread Antti Palosaari
Estimate signal strength from IF digital AGC. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2832.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/media/dvb-frontends/rtl2832.c b/drivers/media/dvb-frontends/rtl2832.c index

[PATCH 17/66] rtl2830: wrap DVBv5 BER to DVBv3

2014-12-23 Thread Antti Palosaari
Change legacy DVBv3 read BER to return values calculated by DVBv5 statistics. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2830.c | 15 ++- drivers/media/dvb-frontends/rtl2830_priv.h | 1 + 2 files changed, 3 insertions(+), 13 deletions(-)

[PATCH 34/66] rtl2832: wrap DVBv5 BER to DVBv3

2014-12-23 Thread Antti Palosaari
Change legacy DVBv3 read BER to return values calculated by DVBv5 statistics. --- drivers/media/dvb-frontends/rtl2832.c | 13 ++--- drivers/media/dvb-frontends/rtl2832_priv.h | 1 + 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/drivers/media/dvb-frontends/rtl2832.c

[PATCH 28/66] rtl2832: move all configuration to platform data struct

2014-12-23 Thread Antti Palosaari
Move all needed configuration values to platform data structure and remove old configuration code where possible. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2832.c | 48 +++--- drivers/media/dvb-frontends/rtl2832.h | 20

[PATCH 30/66] rtl2832: convert to regmap API

2014-12-23 Thread Antti Palosaari
Use regmap to cover register access routines. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/Kconfig| 1 + drivers/media/dvb-frontends/rtl2832.c | 329 +++-- drivers/media/dvb-frontends/rtl2832_priv.h | 4 +- 3 files changed,

[PATCH 33/66] rtl2832: wrap DVBv5 CNR to DVBv3 SNR

2014-12-23 Thread Antti Palosaari
Change legacy DVBv3 read SNR to return values calculated by DVBv5 statistics. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2832.c | 42 +++--- drivers/media/dvb-frontends/rtl2832_priv.h | 1 + 2 files changed, 5 insertions(+), 38

[PATCH 50/66] rtl2832_sdr: cleanups

2014-12-23 Thread Antti Palosaari
Small cleanups. Remove unneeded variables. Some checkpatch issues. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2832_sdr.c | 46 +++ drivers/media/dvb-frontends/rtl2832_sdr.h | 17 2 files changed, 23 insertions(+), 40

[PATCH 31/66] rtl2832: implement DVBv5 CNR statistic

2014-12-23 Thread Antti Palosaari
DVBv5 CNR. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2832.c | 73 +- drivers/media/dvb-frontends/rtl2832_priv.h | 3 +- 2 files changed, 73 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/rtl2832.c

[PATCH 15/66] rtl2830: implement DVBv5 BER statistic

2014-12-23 Thread Antti Palosaari
DVBv5 BER. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2830.c | 25 + drivers/media/dvb-frontends/rtl2830_priv.h | 2 ++ 2 files changed, 27 insertions(+) diff --git a/drivers/media/dvb-frontends/rtl2830.c

[PATCH 48/66] rtl28xxu: use master I2C adapter for slave demods

2014-12-23 Thread Antti Palosaari
Both mn88472 and mn88473 slave demods are connected to master I2C bus, not the bus behind master demod I2C gate like tuners. Use correct bus. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 43/66] rtl2832: merge reg page as a part of reg address

2014-12-23 Thread Antti Palosaari
Chips uses 8-bit register addresses with 5 pages. Extend register address by using register page as a first byte of address, defining virtual register addresses. That is common method of handling register pages and regmap also uses it. Remove page + address conversion glue which was there for

[PATCH 24/66] rtl28xxu: use rtl2832 demod callbacks accessing its resources

2014-12-23 Thread Antti Palosaari
Switch demod resource use from exported symbols to callbacks its provides. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 39 + drivers/media/usb/dvb-usb-v2/rtl28xxu.h | 5 - 2 files changed, 24 insertions(+), 20

[PATCH 29/66] rtl28xxu: use platform data config for rtl2832 demod

2014-12-23 Thread Antti Palosaari
Use platform data configuration for rtl2832 demod driver. Old configuration are still left as it is used for rtl2832_sdr driver. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 38 +++-- 1 file changed, 32 insertions(+), 6

[PATCH 42/66] rtl2832: remove unneeded software reset from init()

2014-12-23 Thread Antti Palosaari
There is no need to do software reset on init() as it is done a bit later on end of set_frontend(). Software reset usually means restarting (resetting to starting point) chip internal state machine (FSM). Naturally it is done after all parameters are programmed. Signed-off-by: Antti Palosaari

[PATCH 26/66] rtl2832: rename driver state variable from 'priv' to 'dev'

2014-12-23 Thread Antti Palosaari
Rename it device state variable to dev. Both priv and dev are very common terms for such variable in kernel, but I like use dev in order to keep drivers consistent. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2832.c | 272 ++---

[PATCH 45/66] rtl2832_sdr: rename state variable from 's' to 'dev'

2014-12-23 Thread Antti Palosaari
'dev' sounds better than 's' for such variable. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2832_sdr.c | 858 +++--- 1 file changed, 429 insertions(+), 429 deletions(-) diff --git a/drivers/media/dvb-frontends/rtl2832_sdr.c

[PATCH 23/66] rtl2832: add platform data callbacks for exported resources

2014-12-23 Thread Antti Palosaari
Add callback for all of those functions which are currently exported using EXPORT_SYMBOL. That allows us convert every user to callbacks and eventually all exported symbols could be removed. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2832.c | 90

[PATCH 22/66] rtl2830: convert to regmap API

2014-12-23 Thread Antti Palosaari
Use regmap to cover register access routines. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/Kconfig| 1 + drivers/media/dvb-frontends/rtl2830.c | 415 + drivers/media/dvb-frontends/rtl2830_priv.h | 4 +- 3 files changed,

[PATCH 32/66] rtl2832: implement DVBv5 BER statistic

2014-12-23 Thread Antti Palosaari
DVBv5 BER. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2832.c | 25 + drivers/media/dvb-frontends/rtl2832_priv.h | 2 ++ 2 files changed, 27 insertions(+) diff --git a/drivers/media/dvb-frontends/rtl2832.c

[PATCH 38/66] rtl2832: define more demod lock statuses

2014-12-23 Thread Antti Palosaari
Demod lock flags are derived from demod state machine states. States are running from 1 to 11, where highest state 11 means demod is fully locked and streaming. Naturally smaller state numbers means there is some partial locks. Define now state 10 as missing synch and lock. Signed-off-by: Antti

[PATCH 37/66] rtl2832: drop FE i2c gate control support

2014-12-23 Thread Antti Palosaari
We don't need it anymore as all users are using muxed I2C adapter. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2832.c | 33 -- drivers/media/dvb-frontends/rtl2832_priv.h | 1 - 2 files changed, 34 deletions(-) diff --git

[PATCH 25/66] rtl2832: remove exported resources

2014-12-23 Thread Antti Palosaari
Exported resources are not needed anymore as all users are using callbacks carried via platform data. Due to that we will remove those. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2832.c | 138 --

[PATCH 27/66] rtl2832: enhance / fix logging

2014-12-23 Thread Antti Palosaari
Pass correct device pointer to dev_* logging functions in order print logs correctly. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2832.c | 102 +++--- 1 file changed, 57 insertions(+), 45 deletions(-) diff --git

[PATCH 47/66] rtl28xxu: switch SDR module to platform driver

2014-12-23 Thread Antti Palosaari
RTL2832 SDR module implements kernel platform driver. Change old binding to that one. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 126 drivers/media/usb/dvb-usb-v2/rtl28xxu.h | 3 + 2 files changed, 50

[PATCH 41/66] rtl2832: use regmap reg cache

2014-12-23 Thread Antti Palosaari
Enable regmap register cache in order to reduce IO. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2832.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/media/dvb-frontends/rtl2832.c b/drivers/media/dvb-frontends/rtl2832.c index

[PATCH 44/66] rtl2832: provide register IO callbacks

2014-12-23 Thread Antti Palosaari
Provide register read and write callbacks for SDR module. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2832.c | 3 +++ drivers/media/dvb-frontends/rtl2832.h | 4 2 files changed, 7 insertions(+) diff --git a/drivers/media/dvb-frontends/rtl2832.c

[PATCH 14/66] rtl2830: implement DVBv5 signal strength statistics

2014-12-23 Thread Antti Palosaari
Estimate signal strength from IF AGC. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2830.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/media/dvb-frontends/rtl2830.c b/drivers/media/dvb-frontends/rtl2830.c index

[PATCH 46/66] rtl2832_sdr: convert to platform driver

2014-12-23 Thread Antti Palosaari
That SDR driver module was abusing DVB frontend SEC (satellite equipment controller) device and due to that it was also using legacy DVB binding. Platform bus is pseudo-bus provided by kernel driver model and it fits cases like that, where any other busses are not suitable. Signed-off-by: Antti

[PATCH 16/66] rtl2830: wrap DVBv5 signal strength to DVBv3

2014-12-23 Thread Antti Palosaari
Change legacy DVBv3 signal strength to return values calculated by DVBv5 statistics. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2830.c | 27 --- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git

[PATCH 21/66] rtl2830: implement own I2C locking

2014-12-23 Thread Antti Palosaari
Own I2C locking is needed due to two special reasons: 1) Chips uses multiple register pages/banks on single I2C slave. Page is changed via I2C register access. 2) Chip offers muxed/gated I2C adapter for tuner. Gate/mux is controlled by I2C register access. Due to these reasons, I2C locking did

[PATCH 19/66] rtl2830: implement PID filter

2014-12-23 Thread Antti Palosaari
Implement PID filter. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2830.c | 67 ++ drivers/media/dvb-frontends/rtl2830.h | 2 + drivers/media/dvb-frontends/rtl2830_priv.h | 1 + 3 files changed, 70 insertions(+) diff

[PATCH 13/66] rtl2830: implement DVBv5 CNR statistic

2014-12-23 Thread Antti Palosaari
DVBv5 CNR. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2830.c | 74 ++ drivers/media/dvb-frontends/rtl2830_priv.h | 3 ++ 2 files changed, 77 insertions(+) diff --git a/drivers/media/dvb-frontends/rtl2830.c

[PATCH 11/66] rtl2830: get rid of internal config data

2014-12-23 Thread Antti Palosaari
Remove internal config and use configuration values directly from the platform data. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2830.c | 43 -- drivers/media/dvb-frontends/rtl2830_priv.h | 15 +-- 2 files changed, 18

[PATCH 12/66] rtl2830: style related changes

2014-12-23 Thread Antti Palosaari
Trivial changes proposed by checkpatch.pl and some more. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2830.c | 125 ++--- drivers/media/dvb-frontends/rtl2830.h | 4 - drivers/media/dvb-frontends/rtl2830_priv.h | 3 - 3 files

[PATCH 04/66] rtl28xxu: change module unregister order

2014-12-23 Thread Antti Palosaari
We must unregister frontend first and after that driver itself. That order went wrong after demod drivers were switched to kernel I2C drivers, causing crashes. Tested-by: Benjamin Larsson benja...@southpole.se Signed-off-by: Antti Palosaari cr...@iki.fi ---

[PATCH 20/66] rtl28xxu: add support for RTL2831U/RTL2830 PID filter

2014-12-23 Thread Antti Palosaari
RTL2830 demod integrated to RTL2831U has PID filter. PID filtering is provided by rtl2830 demod driver. Add support for it. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 25 + 1 file changed, 25 insertions(+) diff --git

[PATCH 07/66] rtl2830: get rid of legacy DVB driver binding

2014-12-23 Thread Antti Palosaari
Remove legacy DVB binding as all users are using I2C binding. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2830.c | 101 - drivers/media/dvb-frontends/rtl2830.h | 63 --

[PATCH 10/66] rtl2830: fix logging

2014-12-23 Thread Antti Palosaari
Pass correct device for dev_foo() logging in order to print logs correctly. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2830.c | 43 +-- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git

[PATCH 18/66] rtl2830: wrap DVBv5 CNR to DVBv3 SNR

2014-12-23 Thread Antti Palosaari
Change legacy DVBv3 read SNR to return values calculated by DVBv5 statistics. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2830.c | 44 ++ drivers/media/dvb-frontends/rtl2830_priv.h | 1 + 2 files changed, 4 insertions(+), 41

[PATCH 08/66] rtl2830: rename 'priv' to 'dev'

2014-12-23 Thread Antti Palosaari
Use name 'dev' for device state instance as it is more common and also one letter shorter. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2830.c | 212 ++--- drivers/media/dvb-frontends/rtl2830_priv.h | 2 +- 2 files changed, 107

[PATCH 06/66] rtl28xxu: use I2C binding for RTL2830 demod driver

2014-12-23 Thread Antti Palosaari
rtl2830 driver supports now I2C model too. Start using it. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 80 +++-- drivers/media/usb/dvb-usb-v2/rtl28xxu.h | 17 +++ 2 files changed, 54 insertions(+), 43 deletions(-)

[PATCH 05/66] rtl2830: convert driver to kernel I2C model

2014-12-23 Thread Antti Palosaari
Convert driver to kernel I2C model. Old DVB proprietary model is still left there also. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/Kconfig| 2 +- drivers/media/dvb-frontends/rtl2830.c | 167 +

[PATCH 01/66] dvb-usb-v2: add pointer to 'struct usb_interface' for driver usage

2014-12-23 Thread Antti Palosaari
Top level pointer on USB probe is struct usb_interface *. Add that pointer to struct dvb_usb_device that drivers could use it, for dev_* logging and more. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/dvb_usb.h | 2 ++

[PATCH 51/66] rtl2832: cleanups and minor changes

2014-12-23 Thread Antti Palosaari
Remove all the stuff that is not needed anymore. Rename variable. Remove extra new lines. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2832.c | 72 -- drivers/media/dvb-frontends/rtl2832.h | 32 +

[PATCH 59/66] rtl28xxu: rename state variable 'priv' to 'dev'

2014-12-23 Thread Antti Palosaari
I prefer dev over priv and I want keep all my drivers in line with that. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 238 drivers/media/usb/dvb-usb-v2/rtl28xxu.h | 2 +- 2 files changed, 120 insertions(+), 120

[PATCH 64/66] rtl28xxu: merge rtl2831u and rtl2832u properties

2014-12-23 Thread Antti Palosaari
As all the callbacks are already same we could merge device properties struct too and save space. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 93 +++-- 1 file changed, 31 insertions(+), 62 deletions(-) diff --git

[PATCH 53/66] rtl2832: implement sleep

2014-12-23 Thread Antti Palosaari
Put demod to soft reset in order to save power when sleep. That drops power usage ~30mA @5V on USB dongle I tested. In real life it does not matter much as USB IF powers off demod too, but now it is done twice - demod and USB IF. Signed-off-by: Antti Palosaari cr...@iki.fi ---

[PATCH 57/66] rtl2832_sdr: refcount to rtl28xxu

2014-12-23 Thread Antti Palosaari
We are consumer of DVB frontend provided by rtl28xxu module. Due to that we must use refcount to ensure none could remove rtl28xxu when we are alive (or when we are streaming, if more fine-grained refcounting is wanted). Signed-off-by: Antti Palosaari cr...@iki.fi ---

[PATCH 65/66] rtl28xxu: correct reg access routine name prefixes

2014-12-23 Thread Antti Palosaari
Use rtl28xxu_ prefix for all register access routine names. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 100 1 file changed, 50 insertions(+), 50 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c

[PATCH 60/66] rtl28xxu: fix logging

2014-12-23 Thread Antti Palosaari
Pass correct device pointer to dev_* logging in order to print module name and bus id correctly. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 90 +++-- 1 file changed, 42 insertions(+), 48 deletions(-) diff --git

[PATCH 52/66] rtl2832: claim copyright and module author

2014-12-23 Thread Antti Palosaari
I have implemented tons of things for that driver, more than anyone else, so lets claim copyright and module authorship. Cc: Thomas Mair thomas.mai...@gmail.com Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2832.c | 2 ++

[PATCH 63/66] rtl28xxu: merge chip type specific all callbacks

2014-12-23 Thread Antti Palosaari
Merge all chip type specific prefixed (rtl2831u_ and rtl2832u_) callback to top level callback prefixed as rtl28xxu_. rtl2831u_foo() = rtl28xxu_foo() rtl2832u_foo() = rtl28xxu_foo() Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 140

[PATCH 62/66] rtl28xxu: add heuristic to detect chip type

2014-12-23 Thread Antti Palosaari
Detect automatically whether chip is old RTL2831U or newer RTL2832U/RTL2832P. Detection is based I2C command that is found only from newer RTL2832U models. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 31 +++ 1 file

[PATCH 61/66] rtl28xxu: move usb buffers to state

2014-12-23 Thread Antti Palosaari
Buffer needed for USB control message is small so move it to state and get rid of alloc/free used for each control message. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 31 +-- drivers/media/usb/dvb-usb-v2/rtl28xxu.h | 1 +

[PATCH 56/66] rtl28xxu: do not refcount rtl2832_sdr module

2014-12-23 Thread Antti Palosaari
This driver, rtl28xxu, offers frontend service for rtl2832_sdr module, thus we are producer and rtl2832_sdr module is consumer. Due to that, reference counting should be done in way rtl2832_sdr takes refrence to rtl28xxu. Remove wrong refcount. Signed-off-by: Antti Palosaari cr...@iki.fi ---

[PATCH 55/66] rtl28xxu: simplify FE callback handling

2014-12-23 Thread Antti Palosaari
Logic is so simple that there is no idea to separate tuner selection to own function, instead do it in a callback and get rid of one function. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 27 +-- 1 file changed, 9

[PATCH 66/66] rtl2832: implement own lock for regmap

2014-12-23 Thread Antti Palosaari
Introduce own lock to silence lockdep warning. lockdep validator makes wrong decision when two similar (map-mutex) locks were taken recursively, even those are different mutexes in a two different drivers. After that patch, functionality remains same, but mutex names are different. That is a

[PATCH 58/66] rtl2832: remove internal mux I2C adapter

2014-12-23 Thread Antti Palosaari
There was 2 muxed I2C adapters, one for demod tuner bus and one for internal use. Idea of internal I2C adapter was to force I2C repeater close when demod access its registers. Driver has also delayed work queue based method to close I2C repeater. After regmap conversion internal I2C adapter based

[PATCH 54/66] rtl28xxu: fix DVB FE callback

2014-12-23 Thread Antti Palosaari
DVB FE callback functionality went broken after I moved tuners to demod muxed I2C adapter. That happens because driver state was carried by I2C adapter and when mux is used there is one adapter more in a chain. USB adapter - I2C adapter - muxed I2C adapter Signed-off-by: Antti Palosaari

Re: [PATCH 48/66] rtl28xxu: use master I2C adapter for slave demods

2014-12-23 Thread Benjamin Larsson
On 12/23/2014 09:49 PM, Antti Palosaari wrote: Both mn88472 and mn88473 slave demods are connected to master I2C bus, not the bus behind master demod I2C gate like tuners. Use correct bus. Hello Antti, in my work tree I am still getting i2c errors even with the ir poll workaround (it takes

cron job: media_tree daily build: ERRORS

2014-12-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: Wed Dec 24 04:00:12 CET 2014 git branch: test git hash: cb9564e133f4f790920d715714790512085bb2e3 gcc

  1   2   >