[PATCH 08/12] tda10071: convert to regmap I2C API

2015-07-08 Thread Antti Palosaari
Use regmap API for I2C operations. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/Kconfig | 1 + drivers/media/dvb-frontends/tda10071.c | 263 +--- drivers/media/dvb-frontends/tda10071_priv.h | 2 + 3 files changed, 87 insertions(+), 179 d

[PATCH 03/12] a8293: use i2c_master_send / i2c_master_recv for I2C I/O

2015-07-08 Thread Antti Palosaari
As driver is now proper I2C client driver, we could use correct functions for I2C I/O. Also rename state from priv to dev. Fix logging too. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/a8293.c | 80 + 1 file changed, 18 insertions(+), 62 dele

[PATCH 12/12] tda10071: implement DVBv5 statistics

2015-07-08 Thread Antti Palosaari
Implement DVBv5 CNR, signal strength, BER and block errors. Wrap legacy DVBv3 statistics to DVBv5 internally. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/tda10071.c | 258 ++-- drivers/media/dvb-frontends/tda10071_priv.h | 7 +- 2 files changed,

[PATCH 06/12] tda10071: remove legacy media attach

2015-07-08 Thread Antti Palosaari
All users are now using I2C binding and old attach could be removed. Use I2C client for proper logging at the same. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/tda10071.c | 275 ++-- drivers/media/dvb-frontends/tda10071.h | 63 +-- driver

[PATCH 07/12] tda10071: rename device state struct to dev

2015-07-08 Thread Antti Palosaari
Rename device state struct from 'priv' to 'dev'. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/tda10071.c | 268 ++-- drivers/media/dvb-frontends/tda10071_priv.h | 2 +- 2 files changed, 135 insertions(+), 135 deletions(-) diff --git a/drivers/med

[PATCH 10/12] tda10071: protect firmware command exec with mutex

2015-07-08 Thread Antti Palosaari
There should be clearly some lock in order to make sure firmware command in execution is not disturbed by another command. It has worked as callbacks are serialized somehow pretty well and command execution happens usually without any delays. Signed-off-by: Antti Palosaari --- drivers/media/dvb-

[PATCH 11/12] tda10071: do not get_frontend() when not ready

2015-07-08 Thread Antti Palosaari
This is a bit hack, but returning error when driver is not tuned yet causes DVBv5 zap stop polling DVBv5 statistics. Thus return 0 even callback is called during invalid device state. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/tda10071.c | 2 +- 1 file changed, 1 insertion(+)

[PATCH 02/12] a8293: remove legacy media attach

2015-07-08 Thread Antti Palosaari
Remove legacy media attach as all users are on I2C bindings now. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/a8293.c | 63 + drivers/media/dvb-frontends/a8293.h | 18 --- 2 files changed, 1 insertion(+), 80 deletions(-) diff --git a

[PATCH 09/12] tda10071: use jiffies when poll firmware status

2015-07-08 Thread Antti Palosaari
Use jiffies to set timeout for firmware command status polling. It is more elegant solution than poll X times with sleep. Shorten timeout to 30ms as all commands seems to be executed under 10ms. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/tda10071.c | 15 +-- 1 fi

[PATCH 04/12] a8293: improve LNB register programming logic

2015-07-08 Thread Antti Palosaari
On power-on LNB power supply voltage is disabled, due to that no need to disable it during probe. Tone is supply is hard-coded as external tone coming from the demodulator. Program both voltage and tone on set_voltage(). Use register cache to prevent unneeded programming. Signed-off-by: Antti Palo

[PATCH 01/12] em28xx: remove unused a8293 SEC config

2015-07-08 Thread Antti Palosaari
Devices that were using a8293 SEC are converted to I2C platform data thus that old config structure is left unused. Signed-off-by: Antti Palosaari --- drivers/media/usb/em28xx/em28xx-dvb.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/media/usb/em28xx/em28xx-dvb.c b/drivers/med

[PATCH 05/12] a8293: coding style issues

2015-07-08 Thread Antti Palosaari
Remove FSF address from license. Indent parameter correctly. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/a8293.c | 6 +- drivers/media/dvb-frontends/a8293.h | 4 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/media/dvb-frontends/a8293.c b/drive

cron job: media_tree daily build: OK

2015-07-08 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 Jul 9 04:00:22 CEST 2015 git branch: test git hash: 8783b9c50400c6279d7c3b716637b98e83d3c933 gcc versi

Re: [media-workshop] [ANNOUNCE] Media Controller workshop in Helsinki

2015-07-08 Thread Sakari Ailus
Hello folks, Please let me know if you're planning to attend. -- Kind regards, Sakari Ailus e-mail: sakari.ai...@iki.fi XMPP: sai...@retiisi.org.uk -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo

Re: [ANNOUNCE] Some updates at linuxtv.org

2015-07-08 Thread Mauro Carvalho Chehab
Em Wed, 8 Jul 2015 13:07:24 -0300 Mauro Carvalho Chehab escreveu: > Hi, > > There were several contents at the linuxtv website that were outdated, on > the non-wiki pages. > > I did an effort today of updating those pages, in order to reflect the > current status of the projects hosted there. >

[PATCH] [media] dvb-core: remove ktime_add_us() call

2015-07-08 Thread Laurent Navet
Calling ktime_add_us() seems useless as is only useful for it's return value which is ignored. Also fix coverity CID 1309761. Signed-off-by: Laurent Navet --- drivers/media/dvb-core/dvb_frontend.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/dvb-core/dvb_frontend.c b/driver

Pfs Loans

2015-07-08 Thread PFS Financial Services
Dear Esteemed Customer, We are currently giving out loans at 3.5% interest rate,Kindly find attached documents for more information about our offer and send your details to : pfslo...@mail2consultant.com Regards, PFS Loans Team. About PFS Loans 3.pdf Description: Adobe PDF document

Pfs Loans

2015-07-08 Thread PFS Financial Services
Dear Esteemed Customer, We are currently giving out loans at 3.5% interest rate,Kindly find attached documents for more information about our offer and send your details to : pfslo...@mail2consultant.com Regards, PFS Loans Team. About PFS Loans 3.pdf Description: Adobe PDF document

Re: tw5864 driver development, help needed

2015-07-08 Thread Andrey Utkin
On Fri, Jul 3, 2015 at 5:23 PM, Andrey Utkin wrote: > Up... we are moving much slower than we expected, desperately needing help. > > Running reference driver with Ubuntu 9 (with kernel 2.6.28.10) with > 16-port card shows that the > reference driver fails to work with it correctly. Also that driv

[ANNOUNCE] Some updates at linuxtv.org

2015-07-08 Thread Mauro Carvalho Chehab
Hi, There were several contents at the linuxtv website that were outdated, on the non-wiki pages. I did an effort today of updating those pages, in order to reflect the current status of the projects hosted there. Among the changes: - The "events 2011" page was removed. It was meant originally

Re: [PATCH 1/2] [media] coda: fix sequence counter increment

2015-07-08 Thread Philipp Zabel
Hi Zahari, Am Mittwoch, den 08.07.2015, 15:37 +0200 schrieb Zahari Doychev: > The coda context queue sequence counter is incremented only if the vb2 > source buffer payload is non zero. This makes possible to signal EOS > otherwise the condition in coda_buf_is_end_of_stream is never met or more >

[PATCH 2/2] [media] m2m: fix bad unlock balance

2015-07-08 Thread Zahari Doychev
This commit fixes bad unlock balance when polling. v4l2_m2m_poll is called with mutex hold but the function releases the mutex and returns. This leads to the bad unlock because after the call of v4l2_m2m_poll in v4l2_m2m_fop_poll the mutex is again unlocked. This patch makes sure that the v4l2_m2m

[PATCH 0/2] RFC: m2m device fixes

2015-07-08 Thread Zahari Doychev
Hi, These patches fix some problems that I am experiencing when decoding video using the coda driver. The first one fixes the video playback termination and the second a kernel bug due to mutex unlock balance. Regards Zahari Zahari Doychev (2): [media] coda: fix sequence counter increment [m

[PATCH 1/2] [media] coda: fix sequence counter increment

2015-07-08 Thread Zahari Doychev
The coda context queue sequence counter is incremented only if the vb2 source buffer payload is non zero. This makes possible to signal EOS otherwise the condition in coda_buf_is_end_of_stream is never met or more precisely buf->v4l2_buf.sequence == (ctx->qsequence - 1) never happens. Signed-off-b

Re: [ANNOUNCE] Media Controller workshop in Helsinki

2015-07-08 Thread Lars-Peter Clausen
Cc: ALSA ML On 07/08/2015 01:16 PM, Mauro Carvalho Chehab wrote: > Hi, > > As discussed on our IRC #v4l channel at Freenode, we'll be running a 3-day > Media Controller workshop in Helsinki between July 29-31. > > The main goal of this workshop is to fixup the problems with the Media > Control

Re: [RFC] How to get current position/status of iris/focus/pan/tilt/zoom?

2015-07-08 Thread Laurent Pinchart
Hi Hans, On Thursday 02 July 2015 14:00:23 Hans Verkuil wrote: > When using V4L2_CID_IRIS/FOCUS/PAN/TILT/ZOOM_ABSOLUTE/RELATIVE, how do you > know when the new position has been reached? If this is controlled through > a motor, then it may take some time and ideally you would like to be able > to

[ANNOUNCE] Media Controller workshop in Helsinki

2015-07-08 Thread Mauro Carvalho Chehab
Hi, As discussed on our IRC #v4l channel at Freenode, we'll be running a 3-day Media Controller workshop in Helsinki between July 29-31. The main goal of this workshop is to fixup the problems with the Media Controller API to properly represent device nodes and the control tree, as this is a req

Re: [PATCH] DocBook media: fix typo in V4L2_CTRL_FLAG_EXECUTE_ON_WRITE

2015-07-08 Thread Ricardo Ribalda Delgado
Acked-by: Ricardo Ribalda Delgado -- Ricardo Ribalda -- 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] DocBook media: fix typo in V4L2_CTRL_FLAG_EXECUTE_ON_WRITE

2015-07-08 Thread Hans Verkuil
Fix small typo (missing 'it') in the documentation for V4L2_CTRL_FLAG_EXECUTE_ON_WRITE. Signed-off-by: Hans Verkuil diff --git a/Documentation/DocBook/media/v4l/vidioc-queryctrl.xml b/Documentation/DocBook/media/v4l/vidioc-queryctrl.xml index dc83ad7..6ec39c6 100644 --- a/Documentation/DocBook/

Re: [RFC] How to get current position/status of iris/focus/pan/tilt/zoom?

2015-07-08 Thread Hans Verkuil
Ping! I could really use some help for this. Any sensor API experts around who know about how this is supposed to work? Regards, Hans On 07/02/15 14:00, Hans Verkuil wrote: > When using V4L2_CID_IRIS/FOCUS/PAN/TILT/ZOOM_ABSOLUTE/RELATIVE, how do you > know > when the new position has b

Re: PCTV Triplestick and Raspberry Pi B+

2015-07-08 Thread Olli Salonen
Patrick has suggested many things here worth trying. In addition, you can load the modules with more debugging enabled: unload the modules first modprobe si2168 dyndbg==pmf modprobe si2157 dyndbg==pmf modprobe em28xx debug=1 If you are willing to try, TechnoTrend CT2-4400 has the same si2168 and

Re: PCTV Triplestick and Raspberry Pi B+

2015-07-08 Thread Patrick Boettcher
On Tue, 7 Jul 2015 18:51:16 +0200 (SST) Peter Fassberg wrote: > On Tue, 7 Jul 2015, Patrick Boettcher wrote: > > > Might be the RF frequency that is truncated on 32bit platforms > > somewhere. That could explain that there is no crash but simply not > > tuning. > > This is the current status: >