[PATCH] media: stb0899_drv: use time_after()

2014-12-13 Thread Asaf Vertz
To be future-proof and for better readability the time comparisons are modified to use time_after() instead of plain, error-prone math. Signed-off-by: Asaf Vertz --- drivers/media/dvb-frontends/stb0899_drv.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/m

cron job: media_tree daily build: ERRORS

2014-12-13 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: Sun Dec 14 04:00:23 CET 2014 git branch: test git hash: e272d95f8c0544cff55c485a10828b063c8e417c gcc versio

Re: [PATCH 2/4] rtl28xxu: swap frontend order for devices with slave demodulators

2014-12-13 Thread Benjamin Larsson
On 12/13/2014 02:35 PM, Antti Palosaari wrote: Do you understand that code at all? No I can't really say I understand all the workings of the media api. Now it is: FE0 == (fe->id == 0) == RTL2832 FE1 == (fe->id == 1) == MN88472 you changed it to: FE0 == (fe->id == 0) == MN88472 FE1 == (fe

Re: LibV4L2 and CREATE_BUFS issues

2014-12-13 Thread Nicolas Dufresne
Le 2014-12-13 05:41, Hans de Goede a écrit : I think making CREATE_BUFS fail when doing conversion is probably best, note that gstreamer should be able to tell which formats will lead to doing conversion, and that it can try to avoid those. Those format indeed have a flag. The problem is for

Re: [PATCH 2/4] rtl28xxu: swap frontend order for devices with slave demodulators

2014-12-13 Thread Antti Palosaari
On 12/13/2014 01:09 PM, Benjamin Larsson wrote: On 12/13/2014 05:02 AM, Antti Palosaari wrote: I am not sure even idea of that. You didn't add even commit description, like all the other patches too :( You should really start adding commit messages explaining why and how commit is. So the que

Re: [PATCH 06/10] hd29l2: fix sparse error and warnings

2014-12-13 Thread Antti Palosaari
On 12/13/2014 01:52 PM, Hans Verkuil wrote: From: Hans Verkuil drivers/media/dvb-frontends/hd29l2.c:29:18: warning: Variable length array is used. drivers/media/dvb-frontends/hd29l2.c:34:32: error: cannot size expression drivers/media/dvb-frontends/hd29l2.c:125:5: warning: symbol 'hd29l2_rd_r

Re: [PATCH 05/10] media-entity: fix sparse warnings

2014-12-13 Thread Sakari Ailus
Hi Hans, On Sat, Dec 13, 2014 at 12:52:55PM +0100, Hans Verkuil wrote: > From: Hans Verkuil > > drivers/media/media-entity.c:238:17: warning: Variable length array is used. > drivers/media/media-entity.c:239:17: warning: Variable length array is used. > > Replace variable length by MEDIA_ENTITY

[PATCH 10/10] s5k5baf: fix sparse warnings

2014-12-13 Thread Hans Verkuil
From: Hans Verkuil drivers/media/i2c/s5k5baf.c:1796:33: warning: duplicate const drivers/media/i2c/s5k5baf.c:379:24: warning: cast to restricted __le16 drivers/media/i2c/s5k5baf.c:437:11: warning: incorrect type in assignment (different base types) drivers/media/i2c/s5k5baf.c:445:16: warning: in

[PATCH 09/10] s5k6aa: fix sparse warnings

2014-12-13 Thread Hans Verkuil
From: Hans Verkuil drivers/media/i2c/s5k6aa.c:351:16: warning: cast to restricted __be16 drivers/media/i2c/s5k6aa.c:351:16: warning: cast to restricted __be16 drivers/media/i2c/s5k6aa.c:351:16: warning: cast to restricted __be16 drivers/media/i2c/s5k6aa.c:351:16: warning: cast to restricted __be1

[PATCH 08/10] s5k4ecgx: fix sparse warnings

2014-12-13 Thread Hans Verkuil
From: Hans Verkuil drivers/media/i2c/s5k4ecgx.c:223:16: warning: cast to restricted __be16 drivers/media/i2c/s5k4ecgx.c:223:16: warning: cast to restricted __be16 drivers/media/i2c/s5k4ecgx.c:223:16: warning: cast to restricted __be16 drivers/media/i2c/s5k4ecgx.c:223:16: warning: cast to restrict

[PATCH 07/10] m5mols: fix sparse warnings

2014-12-13 Thread Hans Verkuil
From: Hans Verkuil drivers/media/i2c/m5mols/m5mols_core.c:128:24: warning: cast to restricted __be16 drivers/media/i2c/m5mols/m5mols_core.c:128:24: warning: cast to restricted __be16 drivers/media/i2c/m5mols/m5mols_core.c:128:24: warning: cast to restricted __be16 drivers/media/i2c/m5mols/m5mo

[PATCH 06/10] hd29l2: fix sparse error and warnings

2014-12-13 Thread Hans Verkuil
From: Hans Verkuil drivers/media/dvb-frontends/hd29l2.c:29:18: warning: Variable length array is used. drivers/media/dvb-frontends/hd29l2.c:34:32: error: cannot size expression drivers/media/dvb-frontends/hd29l2.c:125:5: warning: symbol 'hd29l2_rd_reg_mask' was not declared. Should it be static

[PATCH 05/10] media-entity: fix sparse warnings

2014-12-13 Thread Hans Verkuil
From: Hans Verkuil drivers/media/media-entity.c:238:17: warning: Variable length array is used. drivers/media/media-entity.c:239:17: warning: Variable length array is used. Replace variable length by MEDIA_ENTITY_ENUM_MAX_ID. Signed-off-by: Hans Verkuil Cc: Laurent Pinchart --- drivers/media

[PATCH 04/10] videobuf2-vmalloc: fix sparse warning

2014-12-13 Thread Hans Verkuil
From: Hans Verkuil Fix this warning: drivers/media/v4l2-core/videobuf2-vmalloc.c:98:28: warning: incorrect type in assignment (different address spaces) drivers/media/v4l2-core/videobuf2-vmalloc.c:158:28: warning: incorrect type in argument 1 (different address spaces) The warning is correct,

[PATCH 03/10] ivtv: fix sparse warning

2014-12-13 Thread Hans Verkuil
From: Hans Verkuil Fix this warning: drivers/media/pci/ivtv/ivtv-irq.c:418:9: warning: context imbalance in 'ivtv_dma_stream_dec_prepare' - different lock contexts for basic block sparse didn't quite understand the locking scheme, so rewrite it to keep sparse happy. Signed-off-by: Hans Verkui

[PATCH 02/10] budget-core: fix sparse warnings

2014-12-13 Thread Hans Verkuil
From: Hans Verkuil Fixes these sparse warnings. drivers/media/pci/ttpci/budget-core.c:250:17: warning: context imbalance in 'ttpci_budget_debiread' - different lock contexts for basic block drivers/media/pci/ttpci/budget-core.c:289:17: warning: context imbalance in 'ttpci_budget_debiwrite' - d

[PATCH 01/10] av7110: fix sparse warning

2014-12-13 Thread Hans Verkuil
From: Hans Verkuil drivers/media/pci/ttpci/av7110.c:1226:15: warning: memset with byte count of 192512 Instead of memsetting this in one go, loop over each line and memset each line separately. Signed-off-by: Hans Verkuil --- drivers/media/pci/ttpci/av7110.c | 5 - 1 file changed, 4 inse

[PATCH 00/10] Sparse fixes

2014-12-13 Thread Hans Verkuil
This patch series fixes almost all remaining sparse warnings. The only one still there is this one in this platform driver: .../platform/timblogiw.c:562:22: warning: context imbalance in 'buffer_queue' - unexpected unlock Note that due to a bug in the daily build process not all media drivers we

Re: [PATCH 1/4] mn88472: implement dvb-t signal lock

2014-12-13 Thread Benjamin Larsson
On 12/13/2014 04:52 AM, Antti Palosaari wrote: That breaks DVB-C lock check as old "utmp = 0x08" was set according to DVB-C lock check, right? Antti I have a dvb-c setup now. I will respin this patch with dvb-c support tested properly. MvH Benjamin Larsson -- To unsubscribe from this list:

Re: [PATCH 4/4] mn88472: implemented ber reporting

2014-12-13 Thread Benjamin Larsson
On 12/13/2014 05:15 AM, Antti Palosaari wrote: On 12/13/2014 02:18 AM, Benjamin Larsson wrote: Signed-off-by: Benjamin Larsson Reviewed-by: Antti Palosaari Even I could accept that, as a staging driver, I see there some issues: * missing commit message (ok, it is trivial and patch subject

Re: [PATCH 2/4] rtl28xxu: swap frontend order for devices with slave demodulators

2014-12-13 Thread Benjamin Larsson
On 12/13/2014 05:02 AM, Antti Palosaari wrote: I am not sure even idea of that. You didn't add even commit description, like all the other patches too :( You should really start adding commit messages explaining why and how commit is. So the question is why that patch should be applied? Lots

Re: LibV4L2 and CREATE_BUFS issues

2014-12-13 Thread Hans de Goede
Hi, On 10-12-14 17:27, Nicolas Dufresne wrote: Hi, we recently fixed our CREATE_BUFS support in GStreamer master. It works nicely with UVC drivers. The problem is that libv4l2 isn't aware of it, and endup taking terribly decision the least quickly lead to crash. I'm not sure what that right ap