[PATCH 2/2] gspca_sonixj: add hardware horizontal flip support for hama AC-150

2010-10-17 Thread Németh Márton
From: Márton Németh nm...@freemail.hu The PO2030N sensor chip found in hama AC-150 webcam supports horizontal flipping the image by hardware. Add support for this in the gspca_sonixj driver also. Signed-off-by: Márton Németh nm...@freemail.hu --- diff -upr c/drivers/media/video/gspca/sonixj.c

[PATCH 1/2] gspca_sonixj: add hardware vertical flip support for hama AC-150

2010-10-17 Thread Németh Márton
From: Márton Németh nm...@freemail.hu The PO2030N sensor chip found in hama AC-150 webcam supports vertical flipping the image by hardware. Add support for this in the gspca_sonixj driver also. Signed-off-by: Márton Németh nm...@freemail.hu --- diff -upr b/drivers/media/video/gspca/sonixj.c

[PATCH] gspca_sonixj: remove magic numbers for delay

2010-10-17 Thread Németh Márton
From: Márton Németh nm...@freemail.hu The number 0xdd is used for marking delay init sequence steps. Replace 0xdd values only if the meaning is delay. Signed-off-by: Márton Németh nm...@freemail.hu --- diff -upr a/drivers/media/video/gspca/sonixj.c b/drivers/media/video/gspca/sonixj.c ---

Re: em28xx in v4l-dvb destroyed my USB TV card

2010-10-17 Thread Németh Márton
Hi, Marius Bjørnstad wrote: A problem with the em28xx driver was brought up in June by Thorsten Hirsch: http://www.spinics.net/lists/linux-media/msg20588.html . I also have a TerraTec Cinergy Hybrid T USB XS. When I used my device with Linux, it would take a long time to be recognised by the

[PATCH RFC] gspca_sonixj: handle return values from USB subsystem

2010-10-17 Thread Németh Márton
From: Márton Németh nm...@freemail.hu The usb_control_msg() may return error at any time so it is necessary to handle it. The error handling mechanism is taken from the pac7302. The resulting driver was tested with hama AC-150 webcam (USB ID 0c45:6142). Signed-off-by: Márton Németh

Re: Old patches sent via the Mailing list

2010-10-17 Thread Németh Márton
Mauro Carvalho Chehab wrote: == Gspca patches - Waiting Hans de Goede hdego...@redhat.com review == Jan,29 2010: [gspca_jf,tree] gspca zc3xx: signal when unknown packet received http://patchwork.kernel.org/patch/75837 Németh Márton nm...@freemail.hu This was

Re: [PATCH RFC] gspca_sonixj: handle return values from USB subsystem

2010-10-18 Thread Németh Márton
Hi, Jean-Francois Moine írta: On Sun, 17 Oct 2010 16:45:03 +0200 Németh Márton nm...@freemail.hu wrote: The usb_control_msg() may return error at any time so it is necessary to handle it. The error handling mechanism is taken from the pac7302. The resulting driver was tested with hama AC

Re: [PATCH 1/2] gspca_sonixj: add hardware vertical flip support for hama AC-150

2010-10-18 Thread Németh Márton
Hi Jean-Francois, Jean-Francois Moine wrote: On Sun, 17 Oct 2010 13:08:01 +0200 Németh Márton nm...@freemail.hu wrote: The PO2030N sensor chip found in hama AC-150 webcam supports vertical flipping the image by hardware. Add support for this in the gspca_sonixj driver also. [snip

Re: pac7311

2011-10-18 Thread Németh Márton
Hi Lars, Lars Noschinski wrote: I'm using a webcam (Philipps SPC500NC) which identifies itself as 093a:2603 Pixart Imaging, Inc. PAC7312 Camera and is sort-of supported by the gspca_pac7311 module. sort-of because the image alternates quickly between having a red tint or a green tint

Re: pac7311

2011-10-20 Thread Németh Márton
Lars Noschinski wrote: * Németh Márton nm...@freemail.hu [11-10-18 22:14]: Hi Lars, Lars Noschinski wrote: I'm using a webcam (Philipps SPC500NC) which identifies itself as 093a:2603 Pixart Imaging, Inc. PAC7312 Camera and is sort-of supported by the gspca_pac7311 module. sort

gspca: video0 becomes video1 after ISOC data error

2011-07-04 Thread Németh Márton
Hi, I'm running Debian with Linux 2.6.38-2-486 on a computer. I have a hama AC-150 webcam attached to this computer. The webcam works continouosly and I use mencoder to do some cropping and transformation and to encode the video stream to a file. When I plug the device the following appears in

Re: [PATCH] v4l2: fill the unused fields with zeros in case of VIDIOC_S_FMT

2009-04-25 Thread Németh Márton
Trent Piepho wrote: On Sat, 25 Apr 2009, [UTF-8] Németh Márton wrote: The VIDIOC_S_FMT is a write-read ioctl: it sets the format and returns the current format in case of success. The parameter of VIDIOC_S_FMT ioctl is a pointer to struct v4l2_format. [1] This structure contains some fields

[PATCH] v4l2: modify return value of VIDIOC_REQBUFS ioctl

2009-04-29 Thread Németh Márton
The V4L2 ioctls usually return 0 when the operation was successful and -1 in case of error. Currently VIDIOC_REQBUFS returns the number of buffers which is redundant because this information is available in count field of struct v4l2_requestbuffers. The V4L2 API specification, revision 0.24 [1]

[PATCH] v4l2: fill the reserved fields of VIDIOC_REQBUFS ioctl

2009-04-29 Thread Németh Márton
The parameter of VIDIOC_REQBUFS is a pointer to struct v4l2_requestbuffers. This structure has reserved fields which has to be filled with zeros according to the V4L2 API specification, revision 0.24 [1]. The patch was tested with v4l-test 0.13 [2] with vivi driver. References: [1] V4L2 API

Re: [PATCH] v4l2: fill the reserved fields of VIDIOC_REQBUFS ioctl

2009-05-01 Thread Németh Márton
From: Trent Piepho xy...@speakeasy.org Some ioctls have structs that are a different size depending on what type of buffer is being used. If the buffer type leaves a field unused or has padding space at the end, this space should be zeroed out. This patch modifies the VIDIOC_S_FMT,

Re: [RFC,PATCH] VIDIOC_G_EXT_CTRLS does not handle NULL pointer correctly

2009-05-28 Thread Németh Márton
Laurent Pinchart worte: Could a very large number of control requests be used as a DoS attack vector ? A userspace application could kmalloc large amounts of memory without any restriction. Memory would be reclaimed eventually, but after performing a large number of USB requests, which

Re: [RFC,PATCH] VIDIOC_G_EXT_CTRLS does not handle NULL pointer correctly

2009-06-10 Thread Németh Márton
Mauro Carvalho Chehab wrote: Em Wed, 10 Jun 2009 10:52:28 -0300 Mauro Carvalho Chehab mche...@infradead.org escreveu: Em Mon, 25 May 2009 11:16:34 -0300 Mauro Carvalho Chehab mche...@infradead.org escreveu: Em Mon, 25 May 2009 13:17:02 +0200 Laurent Pinchart laurent.pinch...@skynet.be

[PATCH] pac_common: redesign function for finding Start Of Frame

2009-10-04 Thread Németh Márton
From: Márton Németh nm...@freemail.hu The original implementation of pac_find_sof() does not always find the Start Of Frame (SOF) marker. Replace it with a state machine based design. The change was tested with Labtec Webcam 2200. Signed-off-by: Márton Németh nm...@freemail.hu --- ---

Re: [PATCH] pac_common: redesign function for finding Start Of Frame

2009-10-04 Thread Németh Márton
at offset 2 PASSED Test case 12: no match, extra byte at offset 3 PASSED Test case 13: no match, extra byte at offset 4 PASSED I also executed the test with the patched pac_find_sof() implementation and that one passes all these test cases. Regards, Márton Németh Németh Márton wrote

[PATCH 00/21] gspca pac7302/pac7311: separate the two drivers

2009-10-31 Thread Németh Márton
Hi, the following patchset refactores the Pixart PAC7311 subdriver. The current situation is that the code contains a lot of decisions like this: if (sd-sensor == SENSOR_PAC7302) { ... do this ... } else { ... do something else ... } The sensor type is determined

[PATCH 01/21] gspca pac7302/pac7311: add prefix for sensor specific functions

2009-10-31 Thread Németh Márton
From: Márton Németh nm...@freemail.hu There are some functions which are already sensor specific. Mark them with pac7302_ or pac7311_ prefix Signed-off-by: Márton Németh nm...@freemail.hu Cc: Thomas Kaiser tho...@kaiser-linux.li Cc: Theodore Kilgore kilg...@auburn.edu Cc: Kyle Guinn

[PATCH 03/21] gspca pac7302/pac7311: separate pkt_scan

2009-10-31 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Separate the pkt_scan function. Remove the run-time decision for PAC7302 and PAC7311 sensors. Signed-off-by: Márton Németh nm...@freemail.hu Cc: Thomas Kaiser tho...@kaiser-linux.li Cc: Theodore Kilgore kilg...@auburn.edu Cc: Kyle Guinn ely...@gmail.com ---

[PATCH 04/21] gspca pac7302/pac7311: separate config

2009-10-31 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Separate the config function. Remove the run-time decision for PAC7302 and PAC7311 sensors. Signed-off-by: Márton Németh nm...@freemail.hu Cc: Thomas Kaiser tho...@kaiser-linux.li Cc: Theodore Kilgore kilg...@auburn.edu Cc: Kyle Guinn ely...@gmail.com ---

[PATCH 05/21] gspca pac7302/pac7311: separate init

2009-10-31 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Separate the init function. Remove the run-time decision for PAC7302 and PAC7311 sensors. Signed-off-by: Márton Németh nm...@freemail.hu Cc: Thomas Kaiser tho...@kaiser-linux.li Cc: Theodore Kilgore kilg...@auburn.edu Cc: Kyle Guinn ely...@gmail.com --- diff

[PATCH 06/21] gspca pac7302/pac7311: separate start

2009-10-31 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Separate the start function. Remove the run-time decision for PAC7302 and PAC7311 sensors. Signed-off-by: Márton Németh nm...@freemail.hu Cc: Thomas Kaiser tho...@kaiser-linux.li Cc: Theodore Kilgore kilg...@auburn.edu Cc: Kyle Guinn ely...@gmail.com ---

[PATCH 07/21] gspca pac7302/pac7311: separate stopN

2009-10-31 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Separate the stopN function. Remove the run-time decision for PAC7302 and PAC7311 sensors. Signed-off-by: Márton Németh nm...@freemail.hu Cc: Thomas Kaiser tho...@kaiser-linux.li Cc: Theodore Kilgore kilg...@auburn.edu Cc: Kyle Guinn ely...@gmail.com ---

[PATCH 08/21] gspca pac7302/pac7311: separate stop0

2009-10-31 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Separate the stop0 function. Remove the run-time decision for PAC7302 and PAC7311 sensors. Signed-off-by: Márton Németh nm...@freemail.hu Cc: Thomas Kaiser tho...@kaiser-linux.li Cc: Theodore Kilgore kilg...@auburn.edu Cc: Kyle Guinn ely...@gmail.com ---

[PATCH 09/21] gspca pac7302/pac7311: separate dq_callback

2009-10-31 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Separate the dq_callback function. Remove the run-time decision for PAC7302 and PAC7311 sensors. Signed-off-by: Márton Németh nm...@freemail.hu Cc: Thomas Kaiser tho...@kaiser-linux.li Cc: Theodore Kilgore kilg...@auburn.edu Cc: Kyle Guinn ely...@gmail.com

[PATCH 12/21] gspca pac7302/pac7311: separate hvflip

2009-10-31 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Separate the horizontal and vertical flip control. Remove the run-time decision for PAC7302 and PAC7311 sensors. Signed-off-by: Márton Németh nm...@freemail.hu Cc: Thomas Kaiser tho...@kaiser-linux.li Cc: Theodore Kilgore kilg...@auburn.edu Cc: Kyle Guinn

[PATCH 13/21] gspca pac7302/pac7311: separate gain/autogain control

2009-10-31 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Separate the gain and autogain controls. Remove the run-time decision for PAC7302 and PAC7311 sensors. Signed-off-by: Márton Németh nm...@freemail.hu Cc: Thomas Kaiser tho...@kaiser-linux.li Cc: Theodore Kilgore kilg...@auburn.edu Cc: Kyle Guinn

[PATCH 15/21] gspca pac7302/pac7311: simplify pac_find_sof

2009-10-31 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Remove struct sd dependency from pac_find_sof() function implementation, This step prepares separation of pac7302 and pac7311 specific parts of struct sd. Signed-off-by: Márton Németh nm...@freemail.hu Cc: Thomas Kaiser tho...@kaiser-linux.li Cc: Theodore

[PATCH 14/21] gspca pac7302/pac7311: separate exposure

2009-10-31 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Separate the exposure control. Remove the run-time decision for PAC7302 and PAC7311 sensors. Signed-off-by: Márton Németh nm...@freemail.hu Cc: Thomas Kaiser tho...@kaiser-linux.li Cc: Theodore Kilgore kilg...@auburn.edu Cc: Kyle Guinn ely...@gmail.com ---

[PATCH 16/21] gspca pac7302/pac7311: separate private sd

2009-10-31 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Separate the private struct sd where the sensor specific data is stored. The sensor field is no longer needed because we use separate functions. Brightness and color fields are not used in pac7311, so removed. Signed-off-by: Márton Németh nm...@freemail.hu

[PATCH 18/21] gspca pac7302/pac7311: generalize reg_w_var

2009-10-31 Thread Németh Márton
From: Márton Németh nm...@freemail.hu The original implementation of reg_w_var contains direct references to pac7302 and 7311 specific structures. Move these references to the parameter list. Signed-off-by: Márton Németh nm...@freemail.hu Cc: Thomas Kaiser tho...@kaiser-linux.li Cc: Theodore

[PATCH 19/21] gspca pac7302/pac7311: extract pac_start_frame

2009-10-31 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Creating the start of the frame is done in the same way for pac7302 and for pac7311. Extract this common part to the pac_start_frame() function. Signed-off-by: Márton Németh nm...@freemail.hu Cc: Thomas Kaiser tho...@kaiser-linux.li Cc: Theodore Kilgore

[PATCH 21/21] gspca pac7302/pac7311: remove prefixes

2009-10-31 Thread Németh Márton
From: Márton Németh nm...@freemail.hu The pac7302_ and pac7311_ prefixes are no longer needed as these functions are in separated files. The sensor information can also be removed from the USB tables. Signed-off-by: Márton Németh nm...@freemail.hu Cc: Thomas Kaiser tho...@kaiser-linux.li Cc:

Re: [PATCH 21/21] gspca pac7302/pac7311: remove prefixes

2009-11-01 Thread Németh Márton
From: Márton Németh nm...@freemail.hu The pac7302_ and pac7311_ prefixes are no longer needed as these functions are in separated files. The sensor information can also be removed from the USB tables. Signed-off-by: Márton Németh nm...@freemail.hu Cc: Thomas Kaiser tho...@kaiser-linux.li Cc:

Re: [PATCH 00/21] gspca pac7302/pac7311: separate the two drivers

2009-11-01 Thread Németh Márton
Jean-Francois Moine wrote: On Sun, 01 Nov 2009 00:13:10 +0100 Németh Márton nm...@freemail.hu wrote: the following patchset refactores the Pixart PAC7311 subdriver. The current situation is that the code contains a lot of decisions like this: if (sd-sensor == SENSOR_PAC7302

[PATCH 1/3] gspca pac7302/pac7311: simplify pac_find_sof

2009-11-01 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Remove struct sd dependency from pac_find_sof() function implementation. This step prepares separation of pac7302 and pac7311 specific parts of struct sd. Signed-off-by: Márton Németh nm...@freemail.hu Cc: Thomas Kaiser tho...@kaiser-linux.li Cc: Theodore

[PATCH 2/3] gspca pac7302/pac7311: extract pac_start_frame

2009-11-01 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Creating the start of the frame is done in the same way for pac7302 and for pac7311. Extract this common part to the pac_start_frame() function. Signed-off-by: Márton Németh nm...@freemail.hu Cc: Thomas Kaiser tho...@kaiser-linux.li Cc: Theodore Kilgore

[PATCH 3/3] gspca pac7302/pac7311: separate the two subdrivers

2009-11-01 Thread Németh Márton
From: Márton Németh nm...@freemail.hu All PAC7311 specific functions remain in pac7311.c. All PAC7302 specific functions are moved to pac7302.c. The USB device table is also divided into two parts. This makes it possible to remove the sensor specific decisions from different functions and also

Re: [PATCH 1/3] gspca pac7302/pac7311: simplify pac_find_sof

2009-11-01 Thread Németh Márton
Theodore Kilgore wrote: On Sun, 1 Nov 2009, Németh Márton wrote: Remove struct sd dependency from pac_find_sof() function implementation. This step prepares separation of pac7302 and pac7311 specific parts of struct sd. [...] But here is the point. The sn9c2028 cameras have a structure

Re: [PATCH 1/3] gspca pac7302/pac7311: simplify pac_find_sof

2009-11-02 Thread Németh Márton
Theodore Kilgore írta: On Mon, 2 Nov 2009, Németh Márton wrote: Theodore Kilgore wrote: On Sun, 1 Nov 2009, Németh Márton wrote: Remove struct sd dependency from pac_find_sof() function implementation. This step prepares separation of pac7302 and pac7311 specific parts of struct sd

[PATCH] pixfmt-test: fix VIDIOC_G_STD call for webcams

2009-11-02 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Webcams may return -1 and errno=EINVAL when there is no standard which they support. Handle this case in pixfmt-test. Signed-off-by: Márton Németh nm...@freemail.hu --- diff -r 43878f8dbfb0 v4l2-apps/test/pixfmt-test.c --- a/v4l2-apps/test/pixfmt-test.c

Re: [PATCH 3/3] gspca pac7302/pac7311: separate the two subdrivers

2009-11-03 Thread Németh Márton
Is the separated driver working for you? Do you have any idea what could went wrong? Maybe some timing problem? Regards, Márton Németh Németh Márton wrote: From: Márton Németh nm...@freemail.hu All PAC7311 specific functions remain in pac7311.c. All PAC7302 specific functions are moved

[PATCH] gspca pac7302/pac7311: handle return value of usb_control_msg()

2009-11-04 Thread Németh Márton
From: Márton Németh nm...@freemail.hu The function usb_control_msg() can return error any time so at least warn the user if an error happens. No message is printed in case of normal operation. Signed-off-by: Márton Németh nm...@freemail.hu --- diff -r e628f4381170

[PATCH] gspca pac7302: remove redundant stream off command

2009-11-06 Thread Németh Márton
From: Márton Németh nm...@freemail.hu The stream off command is sent to the device twice, one is enough. The patch was tested together with Labtec Webcam 2200 (USB ID 093a:2626). Signed-off-by: Márton Németh nm...@freemail.hu --- diff -r 40705fec2fb2 linux/drivers/media/video/gspca/pac7302.c

[PATCH] gspca pac7311/pac7302: propagate error to higher level software

2009-11-07 Thread Németh Márton
From: Márton Németh nm...@freemail.hu The usb_control_msg() can fail any time. Only continue writing sequence if there was no error with the previous write. If there was any problem stop sending URBs and propagate the error to the gspca_main. Only the pac7302 driver was tested with Labtec Webcam

[PATCH] gspca pac7302: simplify init sequence

2009-11-07 Thread Németh Márton
From: Márton Németh nm...@freemail.hu The init sequence contains register writes which are overwritten later. Remove these redundant writes from the init sequence. The patch was tested together with Labtec Webcam 2200 (USB ID 093a:2626). Signed-off-by: Márton Németh nm...@freemail.hu --- diff

Re: [PATCH] gspca pac7302: simplify init sequence

2009-11-07 Thread Németh Márton
Hi Jef, Jean-Francois Moine wrote: On Sat, 07 Nov 2009 10:41:19 +0100 Németh Márton nm...@freemail.hu wrote: The init sequence contains register writes which are overwritten later. Remove these redundant writes from the init sequence. [snip] Hello Németh, I am not sure

[PATCH] gspca pac7302: add red and blue balance control

2009-11-07 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Add the red and blue balance control to the pac7302 driver. The valid values for these controls are 0..3 which was identified by trial and error on Labtec Webcam 2200 (USB ID 093a:2626). The upper 5 bits are ignored on page 0, registers 0xc5 and 0xc7 by the

Re: [PATCH] gspca pac7302: add red and blue balance control

2009-11-07 Thread Németh Márton
Németh Márton wrote: Add the red and blue balance control to the pac7302 driver. The valid values for these controls are 0..3 which was identified by trial and error on Labtec Webcam 2200 (USB ID 093a:2626). The upper 5 bits are ignored The upper 6 bits, I mean. The lower two bits are only

Re: [PATCH] gspca pac7302: add red and blue balance control

2009-11-07 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Add the red and blue balance control to the pac7302 driver. The valid values for these controls are 0..3 (lower two bits) which was identified by trial and error on Labtec Webcam 2200 (USB ID 093a:2626). The upper 6 bits are ignored on page 0, registers 0xc5

[PATCH] gspca pac7302: add white balance control

2009-11-07 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Add white balance control to pac7302 driver. All 8 bits seems to be relevant on Labtec Webcam 2200 (USB ID 093a:2626). The control is at page 0, register 0xc6. Signed-off-by: Márton Németh nm...@freemail.hu --- diff -upr

[PATCH] gspca pac7302: add test pattern/overlay control

2009-11-07 Thread Németh Márton
From: Márton Németh nm...@freemail.hu The Labtec Webcam 2200 (USB ID 093a:2626) device can produce some diagnostic patterns instead of the sensor image. An overlay test pattern also exsits which can be combined with the sensor image or with any test patterns. Add controls to activate these test

Re: pac7302: INFO: possible circular locking dependency detected

2009-11-08 Thread Németh Márton
Hi, Hans de Goede wrote: [snip] About the usb control msg errors, I don't think they are related to this issue at all, no real world app ever does a streamon and an mmap at the same time. As said if we could serialize mmap and ioctl at a high enough level, things would be fine too. I

[PATCH 1/2] gspca pac7302/pac7311: propagate error to higher level software

2009-11-08 Thread Németh Márton
From: Márton Németh nm...@freemail.hu The usb_control_msg() can fail any time. Only continue writing sequence if there was no error with the previous write. If there was any problem stop sending URBs and propagate the error to the gspca_main. Only the pac7302 driver was tested with Labtec Webcam

[PATCH 2/2] gspca pac7302: add debug register write interface

2009-11-08 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Add debug register write interface to pac7302 to be able to set for example the edge detect mode (bit 2 register 0x55) or the test pattern (bit 0..3, register 0x72) and test overlay (bit 4, register 0x72) from the user space. Only write of register page 0 is

[PATCH] v4l2-dbg: report fail reason to the user

2009-11-08 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Report the fail reason to the user when writing a register even if the verbose mode is switched off. Remove duplicated code ioctl() call which may cause different ioctl() function call in case of verbose and non verbose if not handled carefully.

libv4l problem decoding frames from pac7302

2009-11-08 Thread Németh Márton
Hi, I have some problem that libv4l cannot decode all image coming from the Labtec Webcam 2200. There are some cases when no image at all can be decoded. This case can be reproduced always for example by setting the camera to test mode to produce a color test bar. The raw data arrives from the

[PATCH] gspca pac7311: stop sending URBs on first error

2009-11-08 Thread Németh Márton
From: Márton Németh nm...@freemail.hu It is no use to continue sending URBs if one of them already failed. Signed-off-by: Márton Németh nm...@freemail.hu --- The patch is based on 13335:3fd924da7091 from http://linuxtv.org/hg/~jfrancois/gspca/ . --- diff -r 3fd924da7091

Re: [PATCH 2/2] gspca pac7302: add debug register write interface

2009-11-08 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Add debug register write interface to pac7302 to be able to set for example the edge detect mode (bit 2 register 0x55) or the test pattern (bit 0..3, register 0x72) and test overlay (bit 4, register 0x72) from the user space. Only write of register page 0 is

Re: [PATCH] v4l2-dbg: report fail reason to the user

2009-11-09 Thread Németh Márton
Hans Verkuil wrote: On Sunday 08 November 2009 13:32:50 Németh Márton wrote: From: Márton Németh nm...@freemail.hu Report the fail reason to the user when writing a register even if the verbose mode is switched off. Remove duplicated code ioctl() call which may cause different ioctl

[PATCH] decode_tm6000: fix include path

2009-11-11 Thread Németh Márton
From: Márton Németh nm...@freemail.hu The include path is changed from ../lib to ../lib4vl2util . Signed-off-by: Márton Németh nm...@freemail.hu --- diff -r 60f784aa071d v4l2-apps/util/decode_tm6000.c --- a/v4l2-apps/util/decode_tm6000.cWed Nov 11 18:28:53 2009 +0100 +++

Re: [PATCH] decode_tm6000: fix include path

2009-11-11 Thread Németh Márton
Hans Verkuil wrote: On Thursday 12 November 2009 07:52:51 Németh Márton wrote: From: Márton Németh nm...@freemail.hu The include path is changed from ../lib to ../lib4vl2util . Signed-off-by: Márton Németh nm...@freemail.hu --- diff -r 60f784aa071d v4l2-apps/util/decode_tm6000.c

Re: [PATCH] v4l2-dbg: report fail reason to the user

2009-11-11 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Report the fail reason to the user when writing a register even if the verbose mode is switched off. Remove duplicated code ioctl() call which may cause different ioctl() function call in case of verbose and non verbose if not handled carefully.

Re: [PATCH] v4l2-dbg: report fail reason to the user

2009-11-12 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Report the fail reason to the user when writing a register even if the verbose mode is switched off. Remove duplicated code ioctl() call which may cause different ioctl() function call in case of verbose and non verbose if not handled carefully.

[RFC, PATCH] gspca pac7302: add support for camera button

2009-11-15 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Add support for snapshot button found on Labtec Webcam 2200. Signed-off-by: Márton Németh nm...@freemail.hu --- Hi, this is the first trial to add support for the snapshot button. This code is working only before the streaming is started. When the streaming

Re: [RFC, PATCH] gspca pac7302: add support for camera button

2009-11-15 Thread Németh Márton
in order the common points can be identified for interrupt endpoints? Regards, Márton Németh On 11/15/2009 09:47 AM, Németh Márton wrote: From: Márton Némethnm...@freemail.hu Add support for snapshot button found on Labtec Webcam 2200. Signed-off-by: Márton Némethnm...@freemail.hu --- Hi

[PATCH] gspca: add sanity check for mandatory operations

2009-11-16 Thread Németh Márton
From: Márton Németh nm...@fremail.hu Add check for the mandatory config, init, start and pkt_scan gspca subdriver operations. Signed-off-by: Márton Németh nm...@fremail.hu --- diff -r 182b5f8fa160 linux/drivers/media/video/gspca/gspca.c --- a/linux/drivers/media/video/gspca/gspca.c Sun Nov 15

[RFC, PATCH 1/2] gspca: add input support for interrupt endpoints

2009-11-18 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Add helper functions for interrupt endpoint based input handling. Signed-off-by: Márton Németh nm...@freemail.hu --- Hi, maybe a new configuration option should be also introduced? Regards, Márton Németh --- diff -r 182b5f8fa160

[RFC, PATCH 2/2] gspca pac7302: add support for camera button

2009-11-18 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Add support for snapshot button found on Labtec Webcam 2200. Signed-off-by: Márton Németh nm...@freemail.hu --- diff -r 182b5f8fa160 linux/drivers/media/video/gspca/pac7302.c --- a/linux/drivers/media/video/gspca/pac7302.c Sun Nov 15 10:05:30 2009 +0100 +++

Re: [RFC, PATCH 1/2] gspca: add input support for interrupt endpoints

2009-11-19 Thread Németh Márton
Hi, Hans de Goede wrote: Hi Márton, On 11/19/2009 08:46 AM, Németh Márton wrote: Add helper functions for interrupt endpoint based input handling. First of all many many thanks for doing this! You are welcome :-) . My goal is to just make my webcam working properly... maybe a new

Re: [RFC, PATCH 2/2] gspca pac7302: add support for camera button

2009-11-19 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Add support for snapshot button found on Labtec Webcam 2200. Signed-off-by: Márton Németh nm...@freemail.hu --- diff -r abfdd03b800d linux/drivers/media/video/gspca/pac7302.c --- a/linux/drivers/media/video/gspca/pac7302.c Thu Nov 19 10:34:21 2009 +0100 +++

Re: [RFC, PATCH 1/2] gspca: add input support for interrupt endpoints

2009-11-21 Thread Németh Márton
Hi, first of all: Hans and Jef, thank you for your helping guidance with this patchset. Jean-Francois Moine wrote: Hi, On Fri, 20 Nov 2009 08:14:10 +0100 Németh Márton nm...@freemail.hu wrote: Hans de Goede wrote: [snip] I'm personally not a big fan of adding more configuration

Re: [RFC, PATCH 2/2] gspca pac7302: add support for camera button

2009-11-21 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Add support for snapshot button found on Labtec Webcam 2200. Signed-off-by: Márton Németh nm...@freemail.hu --- diff -r abfdd03b800d linux/drivers/media/video/gspca/pac7302.c --- a/linux/drivers/media/video/gspca/pac7302.c Thu Nov 19 10:34:21 2009 +0100 +++

[PATCH] dvb ttusb-dec: do not overwrite the first part of phys string

2009-11-21 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Use strlcat() to append a string to the previously created first part. The semantic match that finds this kind of problem is as follows: (http://coccinelle.lip6.fr/) // smpl @@ expression dev; expression phys; expression str; expression size; @@

[PATCH] usbvideo: limit the length of string creation

2009-11-21 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Use strlcat() to append a string to the previously created first part. The strlcat() function limits the size of the string to the whole destination buffer. The semantic match that finds this kind of problem is as follows: (http://coccinelle.lip6.fr/) //

[PATCH] gspca sunplus: propagate error for higher level

2009-11-22 Thread Németh Márton
From: Márton Németh nm...@freemial.hu The function usb_control_msg() can fail any time. Propagate the error to higher level software. Do not continue sending URBs after the first error. The change was tested with Trust 610 LCD pow...@m Zoom in webcam mode (USB ID 06d6:0031). Signed-off-by:

Re: [RFC, PATCH 1/2] gspca: add input support for interrupt endpoints

2009-11-22 Thread Németh Márton
Németh Márton wrote: Jean-Francois Moine wrote: On Fri, 20 Nov 2009 08:14:10 +0100 Németh Márton nm...@freemail.hu wrote: Unfortunately I still get the following error when I start streaming, stop streaming or unplug the device: [ 6876.780726] uhci_hcd :00:10.1: dma_pool_free buffer-32

[PATCH 1/2] gspca: add input support for interrupt endpoints

2009-11-22 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Add helper functions for interrupt endpoint based input handling. Signed-off-by: Márton Németh nm...@freemail.hu --- diff -r bc16afd1e7a4 linux/drivers/media/video/gspca/Makefile --- a/linux/drivers/media/video/gspca/Makefile Sat Nov 21 12:01:36 2009 +0100

[PATCH 2/2] gspca pac7302: add support for camera button

2009-11-22 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Add support for snapshot button found on Labtec Webcam 2200 (USB ID 093a:2626). Signed-off-by: Márton Németh nm...@freemail.hu --- diff -r bc16afd1e7a4 linux/drivers/media/video/gspca/pac7302.c --- a/linux/drivers/media/video/gspca/pac7302.c Sat Nov 21

Re: [cron job] v4l-dvb daily build 2.6.22 and up: ERRORS, 2.6.16-2.6.21: ERRORS

2009-11-22 Thread Németh Márton
Hans Verkuil worte: linux-2.6.22.19-armv5: WARNINGS /marune/build/v4l-dvb-master/v4l/videobuf-core.c: In function 'videobuf_reqbufs': /marune/build/v4l-dvb-master/v4l/videobuf-core.c:434: warning: format '%d' expects type 'int', but argument 4 has type 'long unsigned int' I think this can be

[PATCH] smssdio: initialize return value

2009-11-22 Thread Németh Márton
From: Márton Németh nm...@freemail.hu The return value may be used uninitialized when the size parameter happens to be 0. Signed-off-by: Márton Németh nm...@freemail.hu --- diff -r bc16afd1e7a4 linux/drivers/media/dvb/siano/smssdio.c --- a/linux/drivers/media/dvb/siano/smssdio.c Sat Nov 21

[PATCH] dib8000: merge two conditionals

2009-11-22 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Merge two ifs: the condition is the same. The second if uses the ncoeff which is initialized in the first if. Signed-off-by: Márton Németh nm...@freemail.hu --- diff -r bc16afd1e7a4 linux/drivers/media/dvb/frontends/dib8000.c ---

Re: VFlip problem in gspca_pac7311

2009-11-23 Thread Németh Márton
Hi, Gustavo Chaín Dumit wrote: Hi I'm testing a Pixart Imaging device (0x93a:0x2622) Everything works fine, but vertical orientation. Image looks rotated. So I wrote a little hack to prevent it. [...] Any one has the same problem ? You might want to have a look to libv4l (

Re: [hg:v4l-dvb] v4l2-dbg: report fail reason to the user

2009-11-24 Thread Németh Márton
Hello Mauro, Patch from Mauro Carvalho Chehab wrote: The patch number 13472 was added via Mauro Carvalho Chehab mche...@redhat.com to http://linuxtv.org/hg/v4l-dvb master development tree. Kernel patches in this development tree may be modified to be backward compatible with older kernels.

[PATCH] gspca main: reorganize loop

2009-11-29 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Eliminate redundant code by reorganizing the loop. Signed-off-by: Márton Németh nm...@freemail.hu --- diff -r 064a82aa2daa linux/drivers/media/video/gspca/gspca.c --- a/linux/drivers/media/video/gspca/gspca.c Thu Nov 26 19:36:40 2009 +0100 +++

[PATCH] gspca main: remove unnecessary set to alternate 0

2009-11-29 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Calling gspca_set_alt0() in gspca_dev_probe() is not needed as gspca_set_alt0() will do nothing because gspca_dev-alt is always zero at that time. Signed-off-by: Márton Németh nm...@freemail.hu --- diff -r 064a82aa2daa linux/drivers/media/video/gspca/gspca.c

Re: [PATCH] gspca sunplus: propagate error for higher level

2009-11-29 Thread Németh Márton
Jean-Francois Moine wrote: On Sat, 28 Nov 2009 08:13:05 +0100 Németh Márton nm...@freemail.hu wrote: what do you think about this patch? Hi Márton, There are many other drivers where the usb_control_msg() errors are not tested nor propagated to higher levels. Generally, this does

Re: [cron job] v4l-dvb daily build 2.6.22 and up: WARNINGS, 2.6.16-2.6.21: WARNINGS

2009-12-01 Thread Németh Márton
Hans Verkuil wrote: This message is generated daily by a cron job that builds v4l-dvb for the kernels and architectures in the list below. Results of the daily build of v4l-dvb: date:Tue Dec 1 19:00:02 CET 2009 path:http://www.linuxtv.org/hg/v4l-dvb changeset:

[PATCH] gspca: make device_table[]s constant

2009-12-06 Thread Németh Márton
From: Márton Németh nm...@freemail.hu The device_table structure is used as a constant. The driver_info field is only copied to the struct sd so it is also not modified. Signed-off-by: Márton Németh nm...@freemail.hu --- diff -r e16961fe157d linux/drivers/media/video/gspca/conex.c ---

Re: [RFC,PATCH] VIDIOC_G_EXT_CTRLS does not handle NULL pointer correctly

2009-12-10 Thread Németh Márton
Laurent Pinchart wrote: Hi Mauro, On Wednesday 10 June 2009 23:58:31 Laurent Pinchart wrote: On Wednesday 10 June 2009 15:53:57 Mauro Carvalho Chehab wrote: Em Wed, 10 Jun 2009 10:52:28 -0300 Mauro Carvalho Chehab mche...@infradead.org escreveu: Em Mon, 25 May 2009 11:16:34 -0300 Mauro

[PATCH] dib8000: make some constant static

2009-12-11 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Eliminate the following sparse warnings (see make C=1): * dib8000.c:125:15: warning: symbol 'coeff_2k_sb_1seg_dqpsk' was not declared. Should it be static? * dib8000.c:130:15: warning: symbol 'coeff_2k_sb_1seg' was not declared. Should it be static? *

[PATCH] sanio-ms: clean up init, exit and id_table

2009-12-11 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Make module_init static and mark it with __init. Make module_exit static and mark it with __exit. Mark probe functions with __devinit. Make id table static and mark with __devinitconst. This will eliminate the following sparse warnings (see make C=1): *

[PATCH] cx231xx: use NULL when pointer is needed

2009-12-13 Thread Németh Márton
From: Márton Németh nm...@freemail.hu The gpio field in the cx231xx_board.input structure is a pointer. Eliminate the following sparse warnings (see make C=1): * cx231xx-cards.c:72:13: warning: Using plain integer as NULL pointer * cx231xx-cards.c:77:13: warning: Using plain integer as NULL

[PATCH] au8522: modify the attributes of local filter coefficients

2009-12-13 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Make the local filter coefficients static and const. This will eliminate the following sparse warnings (see make C=1): * au8522_decoder.c:71:31: warning: symbol 'filter_coef' was not declared. Should it be static? * au8522_decoder.c:113:31: warning: symbol

Re: [cron job] v4l-dvb daily build 2.6.22 and up: ERRORS, 2.6.16-2.6.21: ERRORS

2009-12-13 Thread Németh Márton
Hans Verkuil wrote: Detailed results are available here: http://www.xs4all.nl/~hverkuil/logs/Sunday.log linux-2.6.24.7-i686: ERRORS /marune/build/v4l-dvb-master/v4l/conex.c:1049: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__devinitconst'

[PATCH] lgdt3305: make one-bit bitfields unsigned

2009-12-15 Thread Németh Márton
From: Márton Németh nm...@freemail.hu Make one-bit bitfields unsigned which will remove the following sparse warning messages (see make C=1): * lgdt3305.h:57:21: error: dubious one-bit signed bitfield * lgdt3305.h:60:26: error: dubious one-bit signed bitfield * lgdt3305.h:63:19: error: dubious

Re: [cron job] v4l-dvb daily build 2.6.22 and up: ERRORS, 2.6.16-2.6.21: OK

2009-12-29 Thread Németh Márton
Hans Verkuil wrote: Detailed results are available here: http://www.xs4all.nl/~hverkuil/logs/Tuesday.log linux-2.6.33-rc2-armv5: ERRORS In file included from command-line:0: /marune/build/v4l-dvb-master/v4l/config-compat.h:4:28: error: linux/autoconf.h: No such file or directory In file

  1   2   3   >