[PATCH 6/9] saa7164: Replace struct memcpy with struct assignment

2012-06-27 Thread Ezequiel Garcia
Copying structs by assignment is type safe. Plus, is shorter and easier to read. Signed-off-by: Ezequiel Garcia elezegar...@gmail.com --- drivers/media/video/saa7164/saa7164-i2c.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/media/video/saa7164/saa7164

[PATCH 9/9] cx25821: Replace struct memcpy with struct assignment

2012-06-27 Thread Ezequiel Garcia
Copying structs by assignment is type safe. Plus, is shorter and easier to read. Signed-off-by: Ezequiel Garcia elezegar...@gmail.com --- drivers/media/video/cx25821/cx25821-i2c.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/media/video/cx25821/cx25821

[PATCH 1/9] saa7164: Remove useless struct i2c_algo_bit_data

2012-06-27 Thread Ezequiel Garcia
The field 'struct i2c_algo_bit_data i2c_algo' is wrongly confused with struct i2c_algorithm. Moreover, i2c_algo field is not used since i2c is registered using i2c_add_adpater() and not i2c_bit_add_bus(). Therefore, it's safe to remove it. Tested by compilation only. Signed-off-by: Ezequiel

[PATCH 2/9] cx23885: Remove useless struct i2c_algo_bit_data

2012-06-27 Thread Ezequiel Garcia
The field 'struct i2c_algo_bit_data i2c_algo' is wrongly confused with struct i2c_algorithm. Moreover, i2c_algo field is not used since i2c is registered using i2c_add_adpater() and not i2c_bit_add_bus(). Therefore, it's safe to remove it. Tested by compilation only. Signed-off-by: Ezequiel

Re: [PATCH] [V2] stv090x: variable 'no_signal' set but not used

2012-06-27 Thread Ezequiel Garcia
Hey Peter, On Wed, Jun 27, 2012 at 7:18 PM, Peter Senna Tschudin peter.se...@gmail.com wrote: -                       no_signal = stv090x_chk_signal(state); +                       (void) stv090x_chk_signal(state); Why are you casting return to void? I can't see there is a reason to it.

Re: [PATCH] [V2] stv090x: variable 'no_signal' set but not used

2012-06-28 Thread Ezequiel Garcia
On Thu, Jun 28, 2012 at 10:17 AM, Peter Senna Tschudin peter.se...@gmail.com wrote: Hey Ezequiel, On Thu, Jun 28, 2012 at 1:02 AM, Ezequiel Garcia elezegar...@gmail.com wrote: Hey Peter, On Wed, Jun 27, 2012 at 7:18 PM, Peter Senna Tschudin peter.se...@gmail.com wrote

Re: stk1160 linux driver

2012-06-29 Thread Ezequiel Garcia
Hey Gianluca, On Mon, Jun 25, 2012 at 11:47 AM, Devin Heitmueller dheitmuel...@kernellabs.com wrote: On Mon, Jun 25, 2012 at 10:36 AM, Ezequiel Garcia elezegar...@gmail.com wrote: Others issue related to memory allocation on platforms like ARM with limited coherent memory (if the device

Re: Easycap

2012-07-04 Thread Ezequiel Garcia
Hi Robert, I've added linux-media on Cc since someone might find your question on interest. On Wed, Jul 4, 2012 at 3:16 AM, Robert Walter rolin...@gmail.com wrote: I wonder if you could point me in the right direction? I bought an easy-cap video capture device but it doesn't look like anything

Re: [PATCH] em28xx: Remove useless runtime-private_data usage

2012-07-05 Thread Ezequiel Garcia
Hi Mauro, On Thu, Jul 5, 2012 at 1:57 PM, Mauro Carvalho Chehab mche...@redhat.com wrote: snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); dev-adev.capture_pcm_substream = substream; - runtime-private_data = dev; Are you sure that this can be removed? I

Re: [GIT PULL FOR 3.6] V4L2 API cleanups

2012-07-05 Thread Ezequiel Garcia
On Thu, Jul 5, 2012 at 6:21 PM, Sakari Ailus sakari.ai...@iki.fi wrote: There was a discussion between Ezequiel and Hans that in my understanding led to a conclusion there's no such use case, at least one which would be properly supported by the hardware. (Please correct me if I'm mistaken.)

Re: [PATCH] em28xx: Remove useless runtime-private_data usage

2012-07-06 Thread Ezequiel Garcia
Mauro, On Thu, Jul 5, 2012 at 2:22 PM, Ezequiel Garcia Are you sure that this can be removed? I think this is used internally by the alsa API, but maybe something has changed and this is not required anymore. Yes, I'm sure. This should be: I'm almost sure :-) Anyway, probably the patch

Re: [PATCH v4] media: Add stk1160 new driver

2012-07-06 Thread Ezequiel Garcia
On Thu, Jul 5, 2012 at 9:01 PM, Mauro Carvalho Chehab mche...@redhat.com wrote: Em 05-07-2012 19:36, Sylwester Nawrocki escreveu: On 07/06/2012 12:11 AM, Mauro Carvalho Chehab wrote: +static int vidioc_dqbuf(struct file *file, void *priv, struct v4l2_buffer *p) +{ + struct stk1160 *dev =

Re: [PATCH v4] media: Add stk1160 new driver

2012-07-06 Thread Ezequiel Garcia
/media/video/stk1160/stk1160-ac97.c @@ -0,0 +1,152 @@ +/* + * STK1160 driver + * + * Copyright (C) 2012 Ezequiel Garcia + * elezegarcia--a.t--gmail.com + * + * Based on Easycap driver by R.M. Thomas + * Copyright (C) 2010 R.M. Thomas + * rmthomas--a.t--sciolus.org + * + * This program

Re: stk1160 linux driver

2012-07-06 Thread Ezequiel Garcia
Gianluca, On Mon, Jun 25, 2012 at 4:09 AM, Gianluca Bergamo gianluca.berg...@gmail.com wrote: In my environment this command line gives only one format supported (UYVY) and then yavta freezes. I suspect it freezes on an ioctl to the driver. I must check it. This freezing is actually a dead

Re: [PATCH] em28xx: Remove useless runtime-private_data usage

2012-07-06 Thread Ezequiel Garcia
On Fri, Jul 6, 2012 at 12:12 PM, Mauro Carvalho Chehab mche...@redhat.com wrote: Em 06-07-2012 11:33, Ezequiel Garcia escreveu: Mauro, On Thu, Jul 5, 2012 at 2:22 PM, Ezequiel Garcia Are you sure that this can be removed? I think this is used internally by the alsa API, but maybe something

Re: [PATCH v4] media: Add stk1160 new driver

2012-07-09 Thread Ezequiel Garcia
Hey Mauro, On Fri, Jul 6, 2012 at 11:41 AM, Ezequiel Garcia elezegar...@gmail.com wrote: On Thu, Jul 5, 2012 at 9:01 PM, Mauro Carvalho Chehab mche...@redhat.com wrote: Em 05-07-2012 19:36, Sylwester Nawrocki escreveu: On 07/06/2012 12:11 AM, Mauro Carvalho Chehab wrote: +static int

Re: [PATCH v4] media: Add stk1160 new driver

2012-07-10 Thread Ezequiel Garcia
Hi Hans, On Tue, Jul 10, 2012 at 3:39 AM, Hans Verkuil hverk...@xs4all.nl wrote: On Tue July 10 2012 05:17:41 Ezequiel Garcia wrote: Hey Mauro, On Fri, Jul 6, 2012 at 11:41 AM, Ezequiel Garcia elezegar...@gmail.com wrote: On Thu, Jul 5, 2012 at 9:01 PM, Mauro Carvalho Chehab mche

Re: [PATCH 5/6] staging/media/solo6x10: use module_pci_driver macro

2012-07-10 Thread Ezequiel Garcia
Hi Devendra, Thanks for the patch. On Tue, Jul 10, 2012 at 3:45 AM, Devendra Naga devendra.a...@gmail.com wrote: the driver duplicates the module_pci_driver code, how? module_pci_driver is used for those drivers whose init and exit paths does only register and unregister

Re: [PATCH 0/10] staging: solo6x10: General cleaning with ./scripts/checkpatch.pl

2012-07-10 Thread Ezequiel Garcia
Hi Ismael, On Thu, Jun 21, 2012 at 4:53 PM, Ezequiel Garcia elezegar...@gmail.com wrote: Hi Mauro, This patchset aims at cleaning most issues reported by ./scripts/checkpatch.pl. I'm not sure if all of them are useful, so if you feel any of the patches are too dumb just drop it. I'm

Re: [PATCH v4] media: Add stk1160 new driver

2012-07-12 Thread Ezequiel Garcia
Hans, On Tue, Jul 10, 2012 at 3:39 AM, Hans Verkuil hverk...@xs4all.nl wrote: Take a look at the latest videobuf2-core.h: I've added helper functions that check the owner. You can probably simplify the driver code quite a bit by using those helpers. Indeed, using latest vb2_xxx_fop and

[PATCH] pwc: Use vb2 queue mutex through a single name

2012-07-15 Thread Ezequiel Garcia
This lock was being taken using two different names (pointers) in the same function. Both names refer to the same lock, so this wasn't an error; but it looked very strange. Cc: Hans Verkuil hverk...@xs4all.nl Signed-off-by: Ezequiel Garcia elezegar...@gmail.com --- drivers/media/video/pwc/pwc

Re: CX25821 driver in kernel 3.4.4 problem

2012-07-18 Thread Ezequiel Garcia
Hi Radek, On Wed, Jul 18, 2012 at 9:52 AM, Radek Mašín ra...@masin.eu wrote: Hello, I have upgraded my testing system with cx25821 based video capture card to system (OpenSuSE 12.1) with kernel 3.4.4 and driver for cx25821 doesn't work. Previous system was with kernel 2.6.37 (OpenSuSE

Re: CX25821 driver in kernel 3.4.4 problem

2012-07-18 Thread Ezequiel Garcia
Radek, On Wed, Jul 18, 2012 at 10:14 AM, Ezequiel Garcia elezegar...@gmail.com wrote: Hi Radek, I think the attached patch will solve this issue. Please test and tell me if it did, Ezequiel. 0001-cx25821-Remove-bad-strcpy-to-read-only-char.patch Description: Binary data

Re: CX25821 driver in kernel 3.4.4 problem

2012-07-18 Thread Ezequiel Garcia
On Wed, Jul 18, 2012 at 10:45 AM, Radek Mašín ra...@masin.eu wrote: Hello, I can test it without problems. Please send me a patch. I already did :-) Please checkout my previous mail. Thanks, Ezequiel. -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a

Re: CX25821 driver in kernel 3.4.4 problem

2012-07-18 Thread Ezequiel Garcia
On Wed, Jul 18, 2012 at 11:38 AM, Radek Mašín ra...@masin.eu wrote: Hello, with your patch driver is working properly. I see devices in /dev directory and in dmesg is attached output: Great! That's good news. I'll send the patch to the list later. If you encounter any other problems, please

[PATCH] cx25821: Remove bad strcpy to read-only char*

2012-07-18 Thread Ezequiel Garcia
...@masin.eu Signed-off-by: Ezequiel Garcia elezegar...@gmail.com --- Hi Mauro, I believe without this patch cx25821 driver is completely unusable. So perhaps this patch should also go to stable tree? I'm a bit unsure about this procedure. Regards, Ezequiel. --- drivers/media/video/cx25821/cx25821

Re: [PATCH 10/10] staging: solo6x10: Avoid extern declaration by reworking module parameter

2012-07-19 Thread Ezequiel Garcia
On Wed, Jul 18, 2012 at 7:26 PM, Ismael Luceno ismael.luc...@gmail.com wrote: On Thu, Jun 21, 2012 at 4:52 PM, Ezequiel Garcia elezegar...@gmail.com wrote: This patch moves video_nr module parameter to core.c and then passes that parameter as an argument to functions that need it. This way

Re: [PATCH] cx25821: Remove bad strcpy to read-only char*

2012-07-19 Thread Ezequiel Garcia
On Thu, Jul 19, 2012 at 8:17 AM, Hans Verkuil hverk...@xs4all.nl wrote: Ezequiel, Can you post this patch again, but this time to Linus Torvalds as well? See e.g. http://www.spinics.net/lists/linux-media/msg50407.html how I did that. It would be good to have this fixed in 3.5. I'm afraid

[PATCH for v3.5] cx25821: Remove bad strcpy to read-only char*

2012-07-19 Thread Ezequiel Garcia
on vacation, I'm sending directly to you so this can be merged for 3.5 before it is released. Thanks, Ezequiel. From 1859521e76226687e79e1452b040fd3e02c469d8 Mon Sep 17 00:00:00 2001 From: Ezequiel Garcia elezegar...@gmail.com Date: Wed, 18 Jul 2012 10:05:26 -0300 Subject: [PATCH] cx25821: Remove bad

Re: [PATCH 10/10] staging: solo6x10: Avoid extern declaration by reworking module parameter

2012-07-19 Thread Ezequiel Garcia
On Thu, Jul 19, 2012 at 3:41 PM, Ismael Luceno ismael.luc...@gmail.com wrote: On Thu, 19 Jul 2012 10:25:09 -0300 Ezequiel Garcia elezegar...@gmail.com wrote: On Wed, Jul 18, 2012 at 7:26 PM, Ismael Luceno ismael.luc...@gmail.com wrote: On Thu, Jun 21, 2012 at 4:52 PM, Ezequiel Garcia

Re: [PATCH 10/10] staging: solo6x10: Avoid extern declaration by reworking module parameter

2012-07-19 Thread Ezequiel Garcia
On Thu, Jul 19, 2012 at 4:48 PM, Hans Verkuil hverk...@xs4all.nl wrote: On Thu July 19 2012 20:41:11 Ismael Luceno wrote: On Thu, 19 Jul 2012 10:25:09 -0300 Ezequiel Garcia elezegar...@gmail.com wrote: On Wed, Jul 18, 2012 at 7:26 PM, Ismael Luceno ismael.luc...@gmail.com wrote: On Thu

Re: [PATCH 10/10] staging: solo6x10: Avoid extern declaration by reworking module parameter

2012-07-19 Thread Ezequiel Garcia
On Thu, Jul 19, 2012 at 5:41 PM, Hans Verkuil hverk...@xs4all.nl wrote: On Thu July 19 2012 21:55:20 Ezequiel Garcia wrote: On Thu, Jul 19, 2012 at 4:48 PM, Hans Verkuil hverk...@xs4all.nl wrote: On Thu July 19 2012 20:41:11 Ismael Luceno wrote: On Thu, 19 Jul 2012 10:25:09 -0300 Ezequiel

Re: [PATCH] vivi: remove pointless video_nr++

2012-07-19 Thread Ezequiel Garcia
On Thu, Jul 19, 2012 at 5:45 PM, Hans Verkuil hverk...@xs4all.nl wrote: Remove the pointless video_nr++. It doesn't do anything useful and it has the unexpected side-effect of changing the video_nr module option, so cat /sys/module/vivi/parameters/video_nr gives a different value back then

Re: [PATCH] vivi: remove pointless video_nr++

2012-07-19 Thread Ezequiel Garcia
On Thu, Jul 19, 2012 at 6:05 PM, Ezequiel Garcia elezegar...@gmail.com wrote: On Thu, Jul 19, 2012 at 5:45 PM, Hans Verkuil hverk...@xs4all.nl wrote: Remove the pointless video_nr++. It doesn't do anything useful and it has the unexpected side-effect of changing the video_nr module option, so

Re: [PATCH] cx25821: Remove bad strcpy to read-only char*

2012-07-24 Thread Ezequiel Garcia
Hey Hans, On Thu, Jul 19, 2012 at 10:41 AM, Hans Verkuil hverk...@xs4all.nl wrote: On Thu 19 July 2012 15:32:21 Ezequiel Garcia wrote: On Thu, Jul 19, 2012 at 8:17 AM, Hans Verkuil hverk...@xs4all.nl wrote: Ezequiel, Can you post this patch again, but this time to Linus Torvalds as well

[PATCH for stable] cx25821: Remove bad strcpy to read-only char*

2012-07-24 Thread Ezequiel Garcia
...@vger.kernel.org in the patch (right?). Now I know it :-) If I'm doing anything wrong, just yell at me. Thanks, Ezequiel. From 1859521e76226687e79e1452b040fd3e02c469d8 Mon Sep 17 00:00:00 2001 From: Ezequiel Garcia elezegar...@gmail.com Date: Wed, 18 Jul 2012 10:05:26 -0300 Subject: [PATCH] cx25821: Remove bad

[PATCH for v3.6] v4l2-dev.c: Move video_put() after debug printk

2012-07-26 Thread Ezequiel Garcia
It is possible that video_put() releases video_device struct, provoking a panic when debug printk wants to get video_device node name. Signed-off-by: Ezequiel Garcia elezegar...@gmail.com --- drivers/media/video/v4l2-dev.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions

Re: [RFC PATCH 1/2] Initial version of the RDS-decoder library Signed-off-by: Konke Radlow krad...@cisco.com

2012-07-26 Thread Ezequiel Garcia
Hi Konke, + +libv4l2rds_la_SOURCES = libv4l2rds.c +libv4l2rds_la_CPPFLAGS = -fvisibility=hidden $(ENFORCE_LIBV4L_STATIC) -std=c99 +libv4l2rds_la_LDFLAGS = -version-info 0 -lpthread $(DLOPEN_LIBS) $(ENFORCE_LIBV4L_STATIC) diff --git a/lib/libv4l2rds/libv4l2rds.c

Re: [RFC PATCH 1/2] Initial version of the RDS-decoder library Signed-off-by: Konke Radlow krad...@cisco.com

2012-07-26 Thread Ezequiel Garcia
On Thu, Jul 26, 2012 at 11:39 AM, Hans Verkuil hverk...@xs4all.nl wrote: On Thu 26 July 2012 16:28:20 Ezequiel Garcia wrote: Hi Konke, + +libv4l2rds_la_SOURCES = libv4l2rds.c +libv4l2rds_la_CPPFLAGS = -fvisibility=hidden $(ENFORCE_LIBV4L_STATIC) -std=c99 +libv4l2rds_la_LDFLAGS

[PATCH] v4l-dev.c: Use 'ret' variable to return release() exit code

2012-07-26 Thread Ezequiel Garcia
Commit 65d9ff9c85d3c2e06d22aed78efee8404563eff6: V4L/DVB (11390): 2-dev.c: return 0 for NULL open and release callbacks, introduced this bug. The bug this patch fixes is almost innocuous because nobody really cares about release() exit code. Signed-off-by: Ezequiel Garcia elezegar...@gmail.com

Re: [PATCH v6] media: Add stk1160 new driver

2012-07-27 Thread Ezequiel Garcia
Hi Takashi, On Fri, Jul 27, 2012 at 5:03 AM, Takashi Iwai ti...@suse.de wrote: This is achieved through snd_ac97_codec/ac97_bus drivers. Mauro suggested that this ac97 handling should be put inside -alsa tree, but I'm still not sure about it. This approach is working well in practice, but

Re: [PATCH for stable] cx25821: Remove bad strcpy to read-only char*

2012-07-30 Thread Ezequiel Garcia
Hi Ben, On Sun, Jul 29, 2012 at 10:56 PM, Ben Hutchings b...@decadent.org.uk wrote: If I'm doing anything wrong, just yell at me. [...] An upstream commit hash would have helped, but I found it anyway. Queued up for 3.2.y. Thanks for the hint and sorry for the trouble... Ezequiel. -- To

[Q] stk1160 on arm raspberrypi (but with issues)

2012-07-31 Thread Ezequiel Garcia
Hi, I received some reports of stk1160 working on the world famous ARM raspberrypi devices; with some changes to current code: https://github.com/ezequielgarcia/stk1160-standalone/issues/5 This gently user did some changes on my suggestion and then could capture a png with mplayer. However the

[PATCH] em28xx: Fix height setting on non-progressive captures

2012-08-03 Thread Ezequiel Garcia
This was introduced on commit c2a6b54a9: em28xx: fix: don't do image interlacing on webcams It is a known bug that has already been reported several times and confirmed by Mauro. Tested by compilation only. Signed-off-by: Ezequiel Garcia elezegar...@gmail.com --- Hi, I have no idea why

Re: [PATCH] em28xx: Fix height setting on non-progressive captures

2012-08-03 Thread Ezequiel Garcia
On Fri, Aug 3, 2012 at 2:52 PM, Ezequiel Garcia elezegar...@gmail.com wrote: This was introduced on commit c2a6b54a9: em28xx: fix: don't do image interlacing on webcams It is a known bug that has already been reported several times and confirmed by Mauro. Tested by compilation only. I

Re: [PATCH] em28xx: Fix height setting on non-progressive captures

2012-08-03 Thread Ezequiel Garcia
Hi Devin, Thanks for answering. On Fri, Aug 3, 2012 at 3:26 PM, Devin Heitmueller dheitmuel...@kernellabs.com wrote: On Fri, Aug 3, 2012 at 2:11 PM, Ezequiel Garcia elezegar...@gmail.com wrote: On Fri, Aug 3, 2012 at 2:52 PM, Ezequiel Garcia elezegar...@gmail.com wrote: This was introduced

Re: [PATCH] em28xx: Fix height setting on non-progressive captures

2012-08-03 Thread Ezequiel Garcia
On Fri, Aug 3, 2012 at 3:55 PM, Devin Heitmueller dheitmuel...@kernellabs.com wrote: On Fri, Aug 3, 2012 at 2:42 PM, Ezequiel Garcia elezegar...@gmail.com wrote: Wait a minute, unless I completely misunderstood the bug (which is possible), I think this patch is straightforward. By the look

Re: boot slow down

2012-08-04 Thread Ezequiel Garcia
Hello James, On Sat, Aug 4, 2012 at 12:52 PM, James bjloc...@lockie.ca wrote: There's a big pause before the 'unable' [2.243856] usb 4-1: Manufacturer: Logitech [ 62.739097] cx25840 6-0044: unable to open firmware v4l-cx23885-avcore-01.fw I have a cx23885 cx23885[0]: registered

Re: [PATCH 2/2] staging: media: cxd2099: use kzalloc to allocate ci pointer of type struct cxd in cxd2099_attach

2012-08-04 Thread Ezequiel Garcia
Hi Devendra, On Sat, Aug 4, 2012 at 3:12 PM, Devendra Naga develkernel412...@gmail.com wrote: mutex_init(ci-lock); memcpy(ci-cfg, cfg, sizeof(struct cxd2099_cfg)); While you're still looking at this driver, perhaps you can change the memcpy with a plain struct assignment (if

Re: [PATCH 2/2] staging: media: cxd2099: use kzalloc to allocate ci pointer of type struct cxd in cxd2099_attach

2012-08-05 Thread Ezequiel Garcia
Hi Devendra, On Sun, Aug 5, 2012 at 1:04 AM, Devendra Naga develkernel412...@gmail.com wrote: Hello Ezequiel, On Sun, Aug 5, 2012 at 12:24 AM, Ezequiel Garcia elezegar...@gmail.com wrote: Hi Devendra, On Sat, Aug 4, 2012 at 3:12 PM, Devendra Naga develkernel412...@gmail.com wrote

Re: [PATCH] staging: media: cxd2099: remove memcpy of similar structure variables

2012-08-05 Thread Ezequiel Garcia
Hi Devendra, Thanks for the patch, On Sun, Aug 5, 2012 at 5:40 PM, Devendra Naga develkernel412...@gmail.com wrote: structure variables can be assigned, no memcpy needed, remove the memcpy and use assignment for the cfg and en variables. Tested by Compilation Only Suggested-by: Ezequiel

Re: [PATCH] staging: media: cxd2099: remove memcpy of similar structure variables

2012-08-06 Thread Ezequiel Garcia
On Mon, Aug 6, 2012 at 2:28 AM, Devendra Naga develkernel412...@gmail.com wrote: Hi Ezequiel, On Mon, Aug 6, 2012 at 3:36 AM, Ezequiel Garcia elezegar...@gmail.com wrote: Hi Devendra, Thanks for the patch, On Sun, Aug 5, 2012 at 5:40 PM, Devendra Naga develkernel412...@gmail.com wrote

Re: [PATCH v7] media: Add stk1160 new driver

2012-08-06 Thread Ezequiel Garcia
Hi Mauro, On Sat, Jul 28, 2012 at 11:18 AM, Ezequiel Garcia elezegar...@gmail.com wrote: This driver adds support for stk1160 usb bridge as used in some video/audio usb capture devices. It is a complete rewrite of staging/media/easycap driver and it's expected as a future replacement. Cc

Re: [PATCH v7] media: Add stk1160 new driver

2012-08-06 Thread Ezequiel Garcia
On Mon, Aug 6, 2012 at 9:42 AM, Mauro Carvalho Chehab mche...@redhat.com wrote: Em 06-08-2012 09:28, Ezequiel Garcia escreveu: Hi Mauro, On Sat, Jul 28, 2012 at 11:18 AM, Ezequiel Garcia elezegar...@gmail.com wrote: This driver adds support for stk1160 usb bridge as used in some video

Re: [PATCH v7] media: Add stk1160 new driver

2012-08-06 Thread Ezequiel Garcia
On Mon, Aug 6, 2012 at 9:46 AM, Ezequiel Garcia elezegar...@gmail.com wrote: On Mon, Aug 6, 2012 at 9:42 AM, Mauro Carvalho Chehab mche...@redhat.com wrote: Em 06-08-2012 09:28, Ezequiel Garcia escreveu: Hi Mauro, On Sat, Jul 28, 2012 at 11:18 AM, Ezequiel Garcia elezegar...@gmail.com

Re: [PATCH v8] media: Add stk1160 new driver

2012-08-06 Thread Ezequiel Garcia
Hi Mauro, On Mon, Aug 6, 2012 at 10:38 AM, Ezequiel Garcia elezegar...@gmail.com wrote: This driver adds support for stk1160 usb bridge as used in some video/audio usb capture devices. It is a complete rewrite of staging/media/easycap driver and it's expected as a replacement. --- I just

Re: [alsa-devel] [PATCH v8] media: Add stk1160 new driver

2012-08-06 Thread Ezequiel Garcia
On Mon, Aug 6, 2012 at 11:18 AM, Hans Verkuil hverk...@xs4all.nl wrote: On Mon August 6 2012 16:08:33 Mauro Carvalho Chehab wrote: Em 06-08-2012 10:58, Ezequiel Garcia escreveu: Hi Mauro, On Mon, Aug 6, 2012 at 10:38 AM, Ezequiel Garcia elezegar...@gmail.com wrote: This driver adds

Re: [alsa-devel] [PATCH v8] media: Add stk1160 new driver

2012-08-06 Thread Ezequiel Garcia
Hi Mauro, On Mon, Aug 6, 2012 at 12:21 PM, Ezequiel Garcia elezegar...@gmail.com wrote: On Mon, Aug 6, 2012 at 11:18 AM, Hans Verkuil hverk...@xs4all.nl wrote: On Mon August 6 2012 16:08:33 Mauro Carvalho Chehab wrote: Em 06-08-2012 10:58, Ezequiel Garcia escreveu: Hi Mauro, On Mon, Aug

Re: [alsa-devel] [PATCH v8] media: Add stk1160 new driver

2012-08-06 Thread Ezequiel Garcia
Hello, On Mon, Aug 6, 2012 at 12:42 PM, Ezequiel Garcia elezegar...@gmail.com wrote: Hi Mauro, On Mon, Aug 6, 2012 at 12:21 PM, Ezequiel Garcia elezegar...@gmail.com wrote: On Mon, Aug 6, 2012 at 11:18 AM, Hans Verkuil hverk...@xs4all.nl wrote: On Mon August 6 2012 16:08:33 Mauro Carvalho

Re: [alsa-devel] [PATCH v8] media: Add stk1160 new driver

2012-08-09 Thread Ezequiel Garcia
Hi Mauro, On Mon, Aug 6, 2012 at 4:13 PM, Ezequiel Garcia elezegar...@gmail.com wrote: On a second thought, perhaps it makes sense to have a git repo (on linuxtv.org) for me to work on stk1160. That way I could simply send git pull requests instead of patches. I'm not sure

Re: [alsa-devel] [PATCH v8] media: Add stk1160 new driver

2012-08-09 Thread Ezequiel Garcia
On Thu, Aug 9, 2012 at 9:33 AM, Mauro Carvalho Chehab mche...@redhat.com wrote: Em 09-08-2012 09:24, Ezequiel Garcia escreveu: Hi Mauro, On Mon, Aug 6, 2012 at 4:13 PM, Ezequiel Garcia elezegar...@gmail.com wrote: On a second thought, perhaps it makes sense to have a git repo

Re: [PATCH v8] media: Add stk1160 new driver

2012-08-09 Thread Ezequiel Garcia
On Thu, Aug 9, 2012 at 5:25 PM, Mauro Carvalho Chehab mche...@redhat.com wrote: Patch looks ok. Just a few comments: Em 06-08-2012 10:38, Ezequiel Garcia escreveu: This driver adds support for stk1160 usb bridge as used in some video/audio usb capture devices. It is a complete rewrite

[PATCH 0/2] media: Replace easycap driver with stk1160

2012-08-11 Thread Ezequiel Garcia
Hi! Here's the stk1160 inclusion patch, splitted as two patches (easycap removal and stk1160 add) as requested by Mauro. I'd like to thanks Hans, Sylwester, Takashi and Mauro (and everyone else) for their reviewing and their help. Regards, Ezequiel. Ezequiel Garcia (2): staging: media: Remove

Re: boot slow down

2012-08-12 Thread Ezequiel Garcia
On Sat, Aug 11, 2012 at 9:06 PM, Andy Walls awa...@md.metrocast.net wrote: On Wed, 2012-08-08 at 13:18 -0400, bjloc...@lockie.ca wrote: How hard would it be to get an official kernel option not to load firmware Submit a patch for the cx23885 driver to the list. It could add a module option

Re: [patch] [media] stk1160: unlock on error path stk1160_set_alternate()

2012-08-14 Thread Ezequiel Garcia
Hi Dan, On Tue, Aug 14, 2012 at 3:59 AM, Dan Carpenter dan.carpen...@oracle.com wrote: There are some unlocks missing on error. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- Applies on top of linux-next. diff --git a/drivers/media/video/stk1160/stk1160-v4l.c

Re: [patch] [media] em28xx: use after free in em28xx_v4l2_close()

2012-08-14 Thread Ezequiel Garcia
Hi Dan, On Tue, Aug 14, 2012 at 3:58 AM, Dan Carpenter dan.carpen...@oracle.com wrote: We need to move the unlock before the kfree(dev); Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- Applies to linux-next. diff --git a/drivers/media/video/em28xx/em28xx-video.c

Re: [patch] [media] em28xx: use after free in em28xx_v4l2_close()

2012-08-14 Thread Ezequiel Garcia
On Tue, Aug 14, 2012 at 8:05 AM, Dan Carpenter dan.carpen...@oracle.com wrote: On Tue, Aug 14, 2012 at 07:50:12AM -0300, Ezequiel Garcia wrote: Hi Dan, On Tue, Aug 14, 2012 at 3:58 AM, Dan Carpenter dan.carpen...@oracle.com wrote: We need to move the unlock before the kfree(dev

Re: [patch] [media] stk1160: unlock on error path stk1160_set_alternate()

2012-08-15 Thread Ezequiel Garcia
On Wed, Aug 15, 2012 at 6:53 PM, Mauro Carvalho Chehab mche...@redhat.com wrote: Em 14-08-2012 07:51, Ezequiel Garcia escreveu: Hi Dan, On Tue, Aug 14, 2012 at 3:59 AM, Dan Carpenter dan.carpen...@oracle.com wrote: There are some unlocks missing on error. Signed-off-by: Dan Carpenter

[Q] videbuf2 behavior when start_streaming fails

2012-08-18 Thread Ezequiel Garcia
Hello, I was trying to debug a bug in stk1160, triggered by a low memory situation. After some struggling I found out that I'm suppose to clear the queued buffers if start_streaming() fails (which I wasn't doing). This seems most awkward since I didn't queue the buffers in start_streaming, but

[PATCH 1/4] stk1160: Make kill/free urb debug message more verbose

2012-08-19 Thread Ezequiel Garcia
This is just a cleaning patch to produce more useful debug messages. Signed-off-by: Ezequiel Garcia elezegar...@gmail.com --- drivers/media/usb/stk1160/stk1160-video.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/media/usb/stk1160/stk1160-video.c

[PATCH 2/4] stk1160: Handle urb allocation failure condition properly

2012-08-19 Thread Ezequiel Garcia
When an urb buffer can't be allocated, the currently allocated buffer count must be saved so they can properly released. Moreover, it's sufficient to call stk1160_free_isoc to have all urb buffers released. Signed-off-by: Ezequiel Garcia elezegar...@gmail.com --- drivers/media/usb/stk1160

[PATCH 3/4] stk1160: Fix s_fmt and try_fmt implementation

2012-08-19 Thread Ezequiel Garcia
The driver was expecting to get a valid pixelformat on s_fmt and try_fmt. This is wrong, since the user may pass a bitmask and expect the driver to change it, returning a valid (fourcc) pixelformat. This problem was spotted by v4l2-compliance. Signed-off-by: Ezequiel Garcia elezegar...@gmail.com

[PATCH 4/4] stk1160: Stop device and unqueue buffers when start_streaming() fails

2012-08-19 Thread Ezequiel Garcia
If start_streaming() fails (e.g. out of memory) the driver needs to rewind the start procedure. This implies possibly stopping the device and clearing the buffer queue. Signed-off-by: Ezequiel Garcia elezegar...@gmail.com --- drivers/media/usb/stk1160/stk1160-v4l.c | 16 1

[RFC PATCH 0/1] videobuf2-core: Change vb2_queue_init return type to void

2012-08-21 Thread Ezequiel Garcia
Hello, This is a simple patch that replaces vb2_queue_init return type. Currently vb2_queue_init is returning an integer, but it always return 0 since it's a very simple function and doesn't take any actions that can fail. For this reason some drivers (e.g. pwc) don't bother to check the return

[RFC PATCH 1/1] videobuf2-core: Change vb2_queue_init return type to void

2012-08-21 Thread Ezequiel Garcia
Cc: Pawel Osciak pa...@osciak.com Cc: Marek Szyprowski m.szyprow...@samsung.com Cc: Kyungmin Park kyungmin.p...@samsung.com Cc: Hans Verkuil hans.verk...@cisco.com Cc: Guennadi Liakhovetski g.liakhovet...@gmx.de Cc: Mauro Carvalho Chehab mche...@redhat.com Signed-off-by: Ezequiel Garcia elezegar

[PATCH] em28xx: Remove unused field from em28xx_buffer struct

2012-04-28 Thread Ezequiel Garcia
Signed-off-by: Ezequiel Garcia elezegar...@gmail.com --- drivers/media/video/em28xx/em28xx.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/em28xx/em28xx.h b/drivers/media/video/em28xx/em28xx.h index 87766f1..b004dd8 100644 --- a/drivers/media/video

[PATCH] em28xx: Remove unused enum em28xx_io_method

2012-04-28 Thread Ezequiel Garcia
Signed-off-by: Ezequiel Garcia elezegar...@gmail.com --- drivers/media/video/em28xx/em28xx.h |8 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/drivers/media/video/em28xx/em28xx.h b/drivers/media/video/em28xx/em28xx.h index b004dd8..b5bac9c 100644 --- a/drivers/media

[PATCH] em28xx: Remove unused wait_queue's

2012-05-05 Thread Ezequiel Garcia
Nobody ever waits on any of these wait_queue's, so this patch removes them completely. Tested by compilation only. Signed-off-by: Ezequiel Garcia elezegar...@gmail.com --- drivers/media/video/em28xx/em28xx-cards.c |7 --- drivers/media/video/em28xx/em28xx-video.c |1 - drivers/media

Re: GENIUS TV-GO A12 tv analog card

2012-05-05 Thread Ezequiel Garcia
Hola Sebastián, :) On Fri, May 4, 2012 at 12:13 PM, Sebastián Misuraca smisur...@3way.com.ar wrote: Hi, I add a tv card support for saa7134 driver, the card name is Genius TV Go A12 and i test the RF capture with pal-nc and I test the composite input too. I want to known if I would make a

Re: GENIUS TV-GO A12 tv analog card

2012-05-08 Thread Ezequiel Garcia
Hi Sebastián, On Mon, May 7, 2012 at 11:49 PM, Sebastián Misuraca smisur...@3way.com.ar wrote: Ezequiel, Thanks for the reply. No problem. I am going to watch the video and make the correct patch. When i finished i will send again. Great. If you have *any* problems, feel free to ask.

Re: Dazzle DVC80 under FC16

2012-05-09 Thread Ezequiel Garcia
Hi, Also please output lsmod with your device plugged and the list of your installed modules (do you know how to do this?) I may be wrong, but this device should be supported by usbvision module. Thanks, Ezequiel. -- To unsubscribe from this list: send the line unsubscribe linux-media in the

Re: Dazzle DVC80 under FC16

2012-05-09 Thread Ezequiel Garcia
Hi, On Wed, May 9, 2012 at 2:56 PM, Ondrej Zary li...@rainbow-software.org wrote: On Wednesday 09 May 2012 18:54:58 Ezequiel Garcia wrote: Hi, Also please output lsmod with your device plugged and the list of your installed modules (do you know how to do this?) I may be wrong

Re: [PATCH] staging: media: go7007: Adlink MPG24 board issues

2012-05-11 Thread Ezequiel Garcia
Hi, Another one here, hope you don't mind ;) This is minimal changes needed for start up go7007wis2804 to work correctly    in 3.4 branch ^^^ These are minimal changes. --- One question... shouldn't this changeset be splitted into shorter patches? Good luck! Ezequiel. --

Re: [PATCH] staging: media: go7007: Adlink MPG24 board issues

2012-05-11 Thread Ezequiel Garcia
On Fri, May 11, 2012 at 2:06 PM, vol...@telros.ru wrote: One question... shouldn't this changeset be splitted into shorter patches? Yes, should it. In next iteration i`ll learn how to do that. As a git newbie I've found very useful to work like this: 1. Always work on a branch that's

Re: [GIT PULL for v3.5-rc1] media updates for v3.5

2012-05-24 Thread Ezequiel Garcia
Hi Mauro, On Thu, May 24, 2012 at 12:34 PM, Mauro Carvalho Chehab mche...@redhat.com wrote: Ezequiel Garcia (2):      [media] em28xx: Make card_setup() and pre_card_setup() static      [media] em28xx: Remove unused list_head struct for queued buffers Ezequiel García (19):      [media

Re: [RFC/PATCH] media: Add stk1160 new driver

2012-05-26 Thread Ezequiel Garcia
Hi Hans, Thanks for your review (I'm a bit amazed at how fast you went through the code :). I'll address your excellent comments soon. I'm still unsure about a numbre of things. Two of them: 1. It seems to mee tracing is not too nice and I wasn't really sure how to handle it: dev_xxx, pr_xxx,

Re: [RFC/PATCH] media: Add stk1160 new driver

2012-05-27 Thread Ezequiel Garcia
patch. On Sat May 26 2012 18:41:00 Ezequiel Garcia wrote: This driver adds support for stk1160 usb bridge as used in some video/audio usb capture devices. It is a complete rewrite of staging/media/easycap driver and it's expected as a future replacement. Signed-off-by: Ezequiel Garcia elezegar

Re: [RFC/PATCH] media: Add stk1160 new driver

2012-05-27 Thread Ezequiel Garcia
Hi Sylwester, On Sat, May 26, 2012 at 4:31 PM, Sylwester Nawrocki snj...@gmail.com wrote: You can drop this line, it's overwritten with KERNEL_VERSION in v4l2-ioctl.c. Also I could imagine there might be better names, than dev, for capabilities. Yes, indeed. Starting with cap. +    

Re: [PATCH v3 1/1] v4l: drop v4l2_buffer.input and V4L2_BUF_FLAG_INPUT

2012-05-28 Thread Ezequiel Garcia
Hi Hans, On Mon, May 28, 2012 at 7:27 AM, Hans Verkuil hverk...@xs4all.nl wrote: Hi Ezequiel, I'm just bringing this proposal to your attention as I am wondering how your driver (and the old easycap driver that your driver will replace) handle the easycap device with multiple inputs? Is

Re: [PATCH v3 1/1] v4l: drop v4l2_buffer.input and V4L2_BUF_FLAG_INPUT

2012-05-28 Thread Ezequiel Garcia
Hi again, On Mon, May 28, 2012 at 8:52 AM, Ezequiel Garcia elezegar...@gmail.com wrote: I'm just bringing this proposal to your attention as I am wondering how your driver (and the old easycap driver that your driver will replace) handle the easycap device with multiple inputs

Re: [PATCH v3 1/1] v4l: drop v4l2_buffer.input and V4L2_BUF_FLAG_INPUT

2012-05-28 Thread Ezequiel Garcia
On Mon, May 28, 2012 at 2:10 PM, Hans Verkuil hverk...@xs4all.nl wrote: I may be missing something, but I don't see any relation between video buffer queue and selected input. (Perhaps this is OT and we should discuss this in another thread) Well, this particular API was intended to let the

Re: [RFC/PATCH] media: Add stk1160 new driver

2012-05-29 Thread Ezequiel Garcia
On Mon, May 28, 2012 at 7:22 AM, Hans Verkuil hverk...@xs4all.nl wrote: In practice it seems that the easiest approach is not to clean up anything in the disconnect, just take the lock, do the bare minimum necessary for the disconnect, unregister the video nodes, unlock and end with

Re: [PATCH] [media] em28xx: Show a warning if the board does not support remote controls

2012-05-30 Thread Ezequiel Garcia
Hi Martin, On Tue, May 29, 2012 at 7:24 PM, Martin Blumenstingl martin.blumensti...@googlemail.com wrote: What would you use as the first (dev) argument for dev_*? I simply tried using the USB-device (dev-udev-dev) there, and I think it's less descriptive if one removes the driver name and

[v4l-utils] Add configure option to allow qv4l2 disable

2012-05-30 Thread Ezequiel Garcia
://patches.openembedded.org/patch/21469/ Signed-off-by: Ezequiel Garcia elezegar...@gmail.com --- configure.ac | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index 98fad38..92ee050 100644 --- a/configure.ac +++ b/configure.ac @@ -83,8 +83,17 @@ AS_IF

Re: [PATCH 3/3] I don`t know for what, but there`s dublicate item.

2012-05-30 Thread Ezequiel Garcia
Hi, On Sat, May 26, 2012 at 4:18 PM, Volokh Konstantin volok...@gmail.com wrote: Signed-off-by: Volokh Konstantin volok...@gmail.com ---  drivers/media/video/bt8xx/bttv-driver.c |    6 --  1 files changed, 0 insertions(+), 6 deletions(-) diff --git

Re: [PATCH 3/3] I don`t know for what, but there`s dublicate item.

2012-05-30 Thread Ezequiel Garcia
On Wed, May 30, 2012 at 4:43 PM, Ezequiel Garcia elezegar...@gmail.com wrote: But the subject is *very* wrong. You should set it to something like: [bt8xx] Remove duplicated pixel format entry. Sorry this should be, [PATCH] bt8xx: Remove duplicated pixel format entry. -- To unsubscribe

Re: [PATCH] [media] em28xx: Show a warning if the board does not support remote controls

2012-05-30 Thread Ezequiel Garcia
Hi Martin, On Wed, May 30, 2012 at 4:50 PM, Martin Blumenstingl martin.blumensti...@googlemail.com wrote: Hello, thanks to Fabio and Ezequiel for the suggestions. This is the latest version of my patch. It basically shows this when connecting my stick (of course only if I remove my other

Re: [v4l-utils] Add configure option to allow qv4l2 disable

2012-05-31 Thread Ezequiel Garcia
Hi Gregor, On Thu, May 31, 2012 at 4:07 AM, Gregor Jasny gja...@googlemail.com wrote: Hello, On 5/30/12 3:42 PM, Ezequiel Garcia wrote: This patch could ease the job of a few people, by providing an option they actually need. OpenWRT [1] and Openembedded [2] are already disabling qv4l2

Re: [RFC/PATCH v2] media: Add stk1160 new driver

2012-06-02 Thread Ezequiel Garcia
On Sat, Jun 2, 2012 at 12:32 PM, Ezequiel Garcia elezegar...@gmail.com wrote: This driver adds support for stk1160 usb bridge as used in some video/audio usb capture devices. It is a complete rewrite of staging/media/easycap driver and it's expected as a future replacement. Signed-off

Re: [RFC/PATCH v2] media: Add stk1160 new driver

2012-06-03 Thread Ezequiel Garcia
Hi Hans, On Sun, Jun 3, 2012 at 7:33 AM, Hans Verkuil hverk...@xs4all.nl wrote: [snip] Thanks. I've fixed several things reported by v4l2-compliance (see my patch below), but you are using an older v4l2-compliance version. You should clone and compile the v4l-utils.git repository yourself,

<    1   2   3   4   5   6   7   8   9   >