Re: [PATCH 28/46] [media] lm3560: simplify boolean tests

2014-09-04 Thread Daniel Jeong
Hi. On Wed, Sep 03, 2014 at 05:33:00PM -0300, Mauro Carvalho Chehab wrote: Instead of using if (on == true), just use if (on). That allows a faster mental parsing when analyzing the code. Signed-off-by: Mauro Carvalho Chehab Acked-by: Sakari Ailus I will keep it in my mind for my next pa

Added channel parsers for DVB-S2 and DVB-T2 at libdvbv5 and found some issues at dtv-scan-tables

2014-09-04 Thread Mauro Carvalho Chehab
Hi Oliver, I added some improvements at libdvbv5 to parse the DVB-T2 and DVB-S2 lines at dtv-scan-tables. It can now successully parse all correct files there. The patches for it are already merged upstream at: http://git.linuxtv.org/cgit.cgi/v4l-utils.git/ I also added there the Makefil

cron job: media_tree daily build: ERRORS

2014-09-04 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 Sep 5 04:00:19 CEST 2014 git branch: test git hash: 89fffac802c18caebdf4e91c0785b522c9f6399a gcc versi

Re: [GIT PULL] af9035/it9135 changes

2014-09-04 Thread Antti Palosaari
Updated: for you to fetch changes up to ccf62c1bfc897f1d9eb22fa685362638c715e9db: af9035: remove I2C client differently (2014-09-05 02:13:03 +0300) On 09/05/2014 12:53 AM, Antti Palosaari wrote: The following changes since commit 89fffac802c18caebdf4e91c0785b522c9f6399a: [media] drxk_ha

Re: [PATCH] af9035: remove I2C client differently

2014-09-04 Thread Antti Palosaari
V2 * Fixed trivial bug reported by Daniel * if/if => if/if else. Compiler, very likely, could not see adap->id behind many pointers, cannot change between two consecutive if's. Adding exclusive if()/if else() makes sure compiler knows only one of if branches could taken. Antti On 09/05/2014

[PATCH] af9035: remove I2C client differently

2014-09-04 Thread Antti Palosaari
It crash kernel when device was removed while it was streaming. That is because we removed driver and frontend thread was still running. Use new callback which allows I2C driver removal just after frontend is unregistered. V2: fixed by reported by Daniel Reported-by: Daniel Glöckner Signed-off-b

Re: [PATCH 3/3] af9035: remove I2C client differently

2014-09-04 Thread Antti Palosaari
On 09/05/2014 01:50 AM, Daniel Glöckner wrote: On Fri, Sep 05, 2014 at 12:43:43AM +0300, Antti Palosaari wrote: + switch (state->af9033_config[adap->id].tuner) { + case AF9033_TUNER_IT9135_38: + case AF9033_TUNER_IT9135_51: + case AF9033_TUNER_IT9135_52: + case AF

Re: [PATCH 3/3] af9035: remove I2C client differently

2014-09-04 Thread Daniel Glöckner
On Fri, Sep 05, 2014 at 12:43:43AM +0300, Antti Palosaari wrote: > + switch (state->af9033_config[adap->id].tuner) { > + case AF9033_TUNER_IT9135_38: > + case AF9033_TUNER_IT9135_51: > + case AF9033_TUNER_IT9135_52: > + case AF9033_TUNER_IT9135_60: > + case AF9033_TUNER_IT91

[GIT PULL] af9035/it9135 changes

2014-09-04 Thread Antti Palosaari
The following changes since commit 89fffac802c18caebdf4e91c0785b522c9f6399a: [media] drxk_hard: fix bad alignments (2014-09-03 19:19:18 -0300) are available in the git repository at: git://linuxtv.org/anttip/media_tree.git af9035 for you to fetch changes up to 9507ed6ce19644d0078e0d68af8e4

[PATCH 2/3] dvb-usb-v2: add tuner_detach callback

2014-09-04 Thread Antti Palosaari
Add tuner_detach callback in order to allow custom detach. It is needed when tuner driver is implemented I2C client or some other kernel bus, but not proprietary dvb_attach / dvb_detach. Signed-off-by: Antti Palosaari --- drivers/media/usb/dvb-usb-v2/dvb_usb.h | 1 + drivers/media/usb/dvb-u

[PATCH 3/3] af9035: remove I2C client differently

2014-09-04 Thread Antti Palosaari
It crash kernel when device was removed while it was streaming. That is because we removed driver and frontend thread was still running. Use new callback which allows I2C driver removal just after frontend is unregistered. Signed-off-by: Antti Palosaari --- drivers/media/usb/dvb-usb-v2/af9035.c

[PATCH 1/3] dvb-usb-v2: add frontend_detach callback

2014-09-04 Thread Antti Palosaari
Add frontend_detach callback in order to allow custom detach. It is needed when demod driver is implemented I2C client or some other kernel bus, but not proprietary dvb_attach / dvb_detach. Signed-off-by: Antti Palosaari --- drivers/media/usb/dvb-usb-v2/dvb_usb.h | 2 ++ drivers/media/usb/

Re: [PATCH v4 2/2] V4L: uvcvideo: Add support for pan/tilt speed controls

2014-09-04 Thread Laurent Pinchart
Hi Vincent, On Wednesday 03 September 2014 17:47:48 Vincent Palatin wrote: > Map V4L2_CID_TILT_SPEED and V4L2_CID_PAN_SPEED to the standard UVC > CT_PANTILT_RELATIVE_CONTROL terminal control request. > > Tested by plugging a Logitech ConferenceCam C3000e USB camera > and controlling pan/tilt from

Re: [PATCH v4 2/2] V4L: uvcvideo: Add support for pan/tilt speed controls

2014-09-04 Thread Laurent Pinchart
Hi Vincent, Thank you for the patch. On Wednesday 03 September 2014 17:47:48 Vincent Palatin wrote: > Map V4L2_CID_TILT_SPEED and V4L2_CID_PAN_SPEED to the standard UVC > CT_PANTILT_RELATIVE_CONTROL terminal control request. > > Tested by plugging a Logitech ConferenceCam C3000e USB camera > and

Re: [PATCH 18/46] [media] omap3isp: use true/false for boolean vars

2014-09-04 Thread Laurent Pinchart
Hi Mauro, Thank you for the patch. On Wednesday 03 September 2014 17:32:50 Mauro Carvalho Chehab wrote: > Instead of using 0 or 1 for boolean, use the true/false > defines. > > Signed-off-by: Mauro Carvalho Chehab Acked-by: Laurent Pinchart > diff --git a/drivers/media/platform/omap3isp/ispc

[linuxtv-media:devel 360/499] drivers/media/platform/vivid/vivid-radio-rx.c:198 vivid_radio_rx_s_hw_freq_seek() error: buffer overflow 'vivid_radio_bands' 3 <= 3

2014-09-04 Thread kbuild test robot
Hi Hans, First bad commit (maybe != root cause): tree: git://linuxtv.org/media_tree.git devel head: 160416682519b8b63693a47a13460384a2656dad commit: e75420dd25bc9d7b6f4e3b4c4f6c778b610c8cda [360/499] [media] vivid: enable the vivid driver drivers/media/platform/vivid/vivid-radio-rx.c:198 v

Re: Corrupt images, when capturing images from multiple cameras using the V4L2 driver

2014-09-04 Thread Alaganraj Sandhanam
Hi Karel, I suggest you to zero fill v4l2 structures before assign values also check the return value of all ioctl call. for example, struct v4l2_format fmt; memset(&fmt, 0, sizeof fmt); fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; fmt.fmt.pix.width = xRes; ret = ioctl(fd, VIDIOC_

Re: [PATCH] [media] dib0090: remove manual configuration system

2014-09-04 Thread Paul Bolle
Hi Mauro, On Thu, 2014-09-04 at 12:36 -0300, Mauro Carvalho Chehab wrote: > Em Thu, 22 May 2014 14:48:07 +0200 > Paul Bolle escreveu: > > > dib0900.c has always shipped with its own, manual, configuration > > system. There a three problems with it. > > > > 1) macros that are defined, but not us

sale cisco switches

2014-09-04 Thread AMY
HI We sale cisco new and original switches and routers, following is the product and price list. If you are interested, please contact me! WS-C3750X-24S-S WS-C3750X-48P-S WS-C2960S-24TS-L WS-C2960S-48TS-L WS-C2960S-48LPS-L WS-C2960S-48FPS-L WS-C2960S-48LPD-L WS-C2960S-48FPD-L MY S

[PATCH 2/2] tw68: drop bogus cpu_to_le32() call

2014-09-04 Thread Hans Verkuil
From: Hans Verkuil tw_writel maps to writel which maps to __raw_writel(__cpu_to_le32(b),addr). So tw_writel already calls cpu_to_le32 and it shouldn't be called again in the code. Signed-off-by: Hans Verkuil --- drivers/media/pci/tw68/tw68-video.c | 2 +- 1 file changed, 1 insertion(+), 1 dele

[PATCH 1/2] tw68: simplify tw68_buffer_count

2014-09-04 Thread Hans Verkuil
From: Hans Verkuil The code to calculate the maximum number of buffers allowed in 4 MB is 1) wrong if PAGE_SIZE != 4096 and 2) unnecessarily complex. Fix and simplify the code. Signed-off-by: Hans Verkuil --- drivers/media/pci/tw68/tw68-video.c | 11 +-- 1 file changed, 1 insertion(+)

Re: [PATCH 2/3] [media] tw68: Remove a sparse warning

2014-09-04 Thread Hans Verkuil
On 09/04/2014 04:46 PM, Mauro Carvalho Chehab wrote: > drivers/media/pci/tw68/tw68-video.c:351:9: warning: incorrect type in > argument 1 (different base types) > drivers/media/pci/tw68/tw68-video.c:351:9:expected unsigned int > [unsigned] val > drivers/media/pci/tw68/tw68-video.c:351:9:g

Re: [PATCH 3/3] [media] tw68: don't assume that pagesize is always 4096

2014-09-04 Thread Hans Verkuil
On 09/04/2014 04:46 PM, Mauro Carvalho Chehab wrote: > This code implicitly assumes that pagesize is 4096, but this is > not true on all archs, as the PAGE_SHIFT can be different than > 12 on all those architectures: alpha, arc, arm64, cris, frv, > hexagon,ia64, m68k, metag, microblaze, mips, openr

Re: [PATCH] [media] dib0090: remove manual configuration system

2014-09-04 Thread Mauro Carvalho Chehab
Hi Paul, Em Thu, 22 May 2014 14:48:07 +0200 Paul Bolle escreveu: > dib0900.c has always shipped with its own, manual, configuration > system. There a three problems with it. > > 1) macros that are defined, but not used: > CONFIG_SYS_DVBT > CONFIG_DIB0090_USE_PWM_AGC > > 2) checks for m

Re: [PATCH 2/3] [media] tw68: Remove a sparse warning

2014-09-04 Thread Mauro Carvalho Chehab
Em Thu, 04 Sep 2014 16:54:38 +0200 Hans Verkuil escreveu: > I'll need to review this as well. Perhaps tw_writel should expect a __le32? There are several other parts where it is using the address as CPU endian. Anyway, if you have some BE system, then you can test the board there and see what w

Re: [PATCH 3/3] [media] tw68: don't assume that pagesize is always 4096

2014-09-04 Thread Hans Verkuil
I need to review this more closely tomorrow. Hans On 09/04/14 16:46, Mauro Carvalho Chehab wrote: > This code implicitly assumes that pagesize is 4096, but this is > not true on all archs, as the PAGE_SHIFT can be different than > 12 on all those architectures: alpha, arc, arm64, cris, fr

Re: [PATCH 2/3] [media] tw68: Remove a sparse warning

2014-09-04 Thread Hans Verkuil
I'll need to review this as well. Perhaps tw_writel should expect a __le32? Hans On 09/04/14 16:46, Mauro Carvalho Chehab wrote: > drivers/media/pci/tw68/tw68-video.c:351:9: warning: incorrect type in > argument 1 (different base types) > drivers/media/pci/tw68/tw68-video.c:351:9:exp

Re: [PATCH 1/3] [media] tw68: make tw68_pci_tbl static and constify

2014-09-04 Thread Hans Verkuil
Acked-by: Hans Verkuil Thanks! Hans On 09/04/14 16:46, Mauro Carvalho Chehab wrote: > drivers/media/pci/tw68/tw68-core.c:72:22: warning: symbol 'tw68_pci_tbl' was > not declared. Should it be static? > > Signed-off-by: Mauro Carvalho Chehab > > diff --git a/drivers/media/pci/tw68/tw

[PATCH 2/3] [media] tw68: Remove a sparse warning

2014-09-04 Thread Mauro Carvalho Chehab
drivers/media/pci/tw68/tw68-video.c:351:9: warning: incorrect type in argument 1 (different base types) drivers/media/pci/tw68/tw68-video.c:351:9:expected unsigned int [unsigned] val drivers/media/pci/tw68/tw68-video.c:351:9:got restricted __le32 [usertype] Signed-off-by: Mauro Carvalh

[PATCH 3/3] [media] tw68: don't assume that pagesize is always 4096

2014-09-04 Thread Mauro Carvalho Chehab
This code implicitly assumes that pagesize is 4096, but this is not true on all archs, as the PAGE_SHIFT can be different than 12 on all those architectures: alpha, arc, arm64, cris, frv, hexagon,ia64, m68k, metag, microblaze, mips, openrisc, parisc, powerpc, sh, sparc and tile. The real constrant

[PATCH 1/3] [media] tw68: make tw68_pci_tbl static and constify

2014-09-04 Thread Mauro Carvalho Chehab
drivers/media/pci/tw68/tw68-core.c:72:22: warning: symbol 'tw68_pci_tbl' was not declared. Should it be static? Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/pci/tw68/tw68-core.c b/drivers/media/pci/tw68/tw68-core.c index baf93af1d764..a6fb48cf7aae 100644 --- a/drivers/media/

Re: [ANN] Created a patch to teach valgrind about V4L2 and the media API

2014-09-04 Thread Hans Verkuil
On 08/04/14 10:47, Hans Verkuil wrote: > See this bugreport for valgrind with the attached patch: > > https://bugs.kde.org/show_bug.cgi?id=338023 A quick follow-up: this patch has been committed in the valgrind repo, so I assume it will appear in the next valgrind release. Regards, Hans

Re: [PATCH 16/46] [media] smiapp-core: use true/false for boolean vars

2014-09-04 Thread Mauro Carvalho Chehab
Em Thu, 04 Sep 2014 10:03:40 +0300 Sakari Ailus escreveu: > On Wed, Sep 03, 2014 at 05:32:48PM -0300, Mauro Carvalho Chehab wrote: > > Instead of using 0 or 1 for boolean, use the true/false > > defines. > > > > Signed-off-by: Mauro Carvalho Chehab > > Thanks! > > Acked-by: Sakari Ailus > >

[PATCH] hdpvr: reduce memory footprint when debugging

2014-09-04 Thread Andy Shevchenko
There is no need to use hex_dump_to_buffer() since we have a kernel helper to dump up to 64 bytes just via printk(). Signed-off-by: Andy Shevchenko --- drivers/media/usb/hdpvr/hdpvr-control.c | 21 ++--- drivers/media/usb/hdpvr/hdpvr-core.c| 27 ++- 2

Webcam problem

2014-09-04 Thread Krzysztof Borowczyk
Hello, I’ve recently noticed a problem with Modecom Venus and A4Tech PK-333E webcams. Both can be put into a “bad state” in which they refuse to do anything until they’re reconnected to the usb port. The test case is simple: gst-launch-1.0 v4l2src ! videoconvert ! autovideosink Setting pipeline

[patch] [media] staging: lirc: freeing ERR_PTRs

2014-09-04 Thread Dan Carpenter
We call kfree(data_buf) in the error handling and that will oops if this is an error pointer. Signed-off-by: Dan Carpenter diff --git a/drivers/staging/media/lirc/lirc_imon.c b/drivers/staging/media/lirc/lirc_imon.c index 96c76b3..5441f40 100644 --- a/drivers/staging/media/lirc/lirc_imon.c +++

[PATCH] [media] videobuf-dma-contig: replace vm_iomap_memory() with remap_pfn_range().

2014-09-04 Thread Fancy Fang
When user requests V4L2_MEMORY_MMAP type buffers, the videobuf-core will assign the corresponding offset to the 'boff' field of the videobuf_buffer for each requested buffer sequentially. Later, user may call mmap() to map one or all of the buffers with the 'offset' parameter which is equal to its

[PATCH] fix enum_fmt for s5p-mfc

2014-09-04 Thread ayaka
The patch remove the non-multiplanar api for enum_fmt in s5p-mfc. Now enum_fmt in the driver will only work with multiplanar. I think it is a bug, hverkuil think it is too. so I made this patch. Actually gstreamer doesn't care about it, it will merge the result from non-multiplanar and multiplanar.

[PATCH] media: fix enum_fmt for s5p-mfc

2014-09-04 Thread ayaka
As the s5p-mfc is a driver which use multiplanar api, so the vidioc_enum_fmt_vid serial of ioctl should only for multiplanar, non-multiplanar shouldn't be implemented at all. Signed-off-by: ayaka --- drivers/media/platform/s5p-mfc/s5p_mfc_dec.c | 24 +++- drivers/media/platf

Re: [PATCH 28/46] [media] lm3560: simplify boolean tests

2014-09-04 Thread Sakari Ailus
On Wed, Sep 03, 2014 at 05:33:00PM -0300, Mauro Carvalho Chehab wrote: > Instead of using if (on == true), just use > if (on). > > That allows a faster mental parsing when analyzing the > code. > > Signed-off-by: Mauro Carvalho Chehab Acked-by: Sakari Ailus -- Sakari Ailus e-mail: sakari.ai.

Re: [PATCH 16/46] [media] smiapp-core: use true/false for boolean vars

2014-09-04 Thread Sakari Ailus
On Wed, Sep 03, 2014 at 05:32:48PM -0300, Mauro Carvalho Chehab wrote: > Instead of using 0 or 1 for boolean, use the true/false > defines. > > Signed-off-by: Mauro Carvalho Chehab Thanks! Acked-by: Sakari Ailus Would you like me to pick this patch to my tree, or would you like to apply it di