pandora-kernel.git
14 years agoV4L/DVB (13432): cx18: Adjust encoder VBI MDL size to be exactly frame's worth of...
Andy Walls [Wed, 11 Nov 2009 03:22:57 +0000 (00:22 -0300)]
V4L/DVB (13432): cx18: Adjust encoder VBI MDL size to be exactly frame's worth of VBI data

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13431): cx18: Adjust an MDL's final buffer size to force encoder transfer...
Andy Walls [Wed, 11 Nov 2009 02:28:30 +0000 (23:28 -0300)]
V4L/DVB (13431): cx18: Adjust an MDL's final buffer size to force encoder transfer size

The encoder was not honoring the MDL size sent in DE_SET_MDL mailbox commands.
This change adjusts the size of the last buffer in an MDL, as reported to the
firmware, so that the encoder will send the exact amount of bytes we specify
per MDL transfer.  This eliminates tearing in YUV playback when using
non-default YUV buffer sizes.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13430): cx18: Fix YUV capture so that encoder passes a single frame per...
Andy Walls [Tue, 10 Nov 2009 02:55:30 +0000 (23:55 -0300)]
V4L/DVB (13430): cx18: Fix YUV capture so that encoder passes a single frame per transfer

Fix YUV capture such that the encoder will pass one frame per transfer.  This
will allow the application to maintain frame alignment when a transfer from
the encoder is missed due to high system latency in service the CX23418 IRQ.

Also force YUV buffer sizes to be specified in multiples of 33.75 kB, the
smalled amount of buffer sizes need to store a complete set of HM12 4:2:0
macroblocks specifying 32 lines of the frame.  A full 60Hz/525 line
screen requires 15 * 33.75 kB per frame and a full 50Hz/625 line screen
requires 18 * 33.75 kB per frame so the default buffer size is 3 * 33.75 kB,
requiring exactly 5 or 6 buffers per MDL respectively.  The bytes needed per
frame and hence MDL need not be the bytes in an integer number of buffers.
However, if frame artifacts are seen with scaled screen sizes, the YUV buffer
size can be set 34 kB (33.75 kB) to get rid of the artifacts at the cost of more
copies between the kernel and userspace.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13429): cx18: Add Memory Descriptor List (MDL) layer to buffer handling
Andy Walls [Mon, 9 Nov 2009 02:45:24 +0000 (23:45 -0300)]
V4L/DVB (13429): cx18: Add Memory Descriptor List (MDL) layer to buffer handling

Add a Memory Descriptor List (MDL) layer to buffer handling to implement
scatter-gather I/O.  Currently there is still only 1 buffer per MDL.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13428): cx18: Rename mdl_offset to mdl_base_idx or free_mdl_idx as appropriate
Andy Walls [Fri, 6 Nov 2009 00:51:24 +0000 (21:51 -0300)]
V4L/DVB (13428): cx18: Rename mdl_offset to mdl_base_idx or free_mdl_idx as appropriate

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13427): cx18: Rename struct cx18_queue.buffers to struct cx18_queue.depth
Andy Walls [Thu, 5 Nov 2009 02:13:58 +0000 (23:13 -0300)]
V4L/DVB (13427): cx18: Rename struct cx18_queue.buffers to struct cx18_queue.depth

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13426): cx18: Rename struct cx18_mdl to struct cx18_mdl_ent
Andy Walls [Thu, 5 Nov 2009 01:33:33 +0000 (22:33 -0300)]
V4L/DVB (13426): cx18: Rename struct cx18_mdl to struct cx18_mdl_ent

Rename type in anticipation of implementing a struct cx18_mdl type that
actually keeps track of a memory descriptor list.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13425): gspca - ov534: Bad name of the ov965x 320x240 resolution.
Jean-Francois Moine [Thu, 12 Nov 2009 09:13:41 +0000 (06:13 -0300)]
V4L/DVB (13425): gspca - ov534: Bad name of the ov965x 320x240 resolution.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13424): gspca - ov534: Fix ov772x brightness and ov965x frame rate.
Jean-Francois Moine [Thu, 12 Nov 2009 09:10:36 +0000 (06:10 -0300)]
V4L/DVB (13424): gspca - ov534: Fix ov772x brightness and ov965x frame rate.

- the ov772x brightness was not setteble (fixed by M. Thrun)
- the set_frame_rate function does not work for ov965x

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13423): gspca - ov534: More ov772x changes from Max Thrun.
Jean-Francois Moine [Wed, 11 Nov 2009 17:28:53 +0000 (14:28 -0300)]
V4L/DVB (13423): gspca - ov534: More ov772x changes from Max Thrun.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13422): gspca - ov534: ov772x changes from Richard Kaswy.
Jean-Francois Moine [Wed, 11 Nov 2009 10:46:28 +0000 (07:46 -0300)]
V4L/DVB (13422): gspca - ov534: ov772x changes from Richard Kaswy.

- 320x240 resolution added
- controls added
- different sd_desc tables

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13421): gspca - main: Clearer message when bandwidth too small.
Jean-Francois Moine [Tue, 10 Nov 2009 17:49:43 +0000 (14:49 -0300)]
V4L/DVB (13421): gspca - main: Clearer message when bandwidth too small.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13420): gspca - doc: Change the name of some webcams.
Jean-Francois Moine [Tue, 10 Nov 2009 09:46:59 +0000 (06:46 -0300)]
V4L/DVB (13420): gspca - doc: Change the name of some webcams.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13419): gspca - pac7302: Add debug register write interface.
Márton Németh [Mon, 9 Nov 2009 10:10:46 +0000 (07:10 -0300)]
V4L/DVB (13419): gspca - pac7302: Add debug register write interface.

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 supported by this patch.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13418): gspca - pac7311: Stop sending URBs on first error.
Márton Németh [Mon, 9 Nov 2009 10:08:04 +0000 (07:08 -0300)]
V4L/DVB (13418): gspca - pac7311: Stop sending URBs on first error.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13417): Fix videobuf_queue_vmalloc_init() prototype
Jonathan Corbet [Mon, 23 Nov 2009 17:29:35 +0000 (14:29 -0300)]
V4L/DVB (13417): Fix videobuf_queue_vmalloc_init() prototype

For whatever reason, the device structure pointer to
videobuf_queue_vmalloc_init is typed "void *", even though it's passed
right through to videobuf_queue_core_init(), which expects a struct
device pointer.  The other videobuf implementations use struct device *;
I think vmalloc should too.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13416): smssdio: initialize return value
Márton Németh [Sun, 22 Nov 2009 21:52:31 +0000 (18:52 -0300)]
V4L/DVB (13416): smssdio: initialize return value

The return value may be used uninitialized when the size parameter
happens to be 0.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13415): videobuf-core: explicitly cast page count
Márton Németh [Sun, 22 Nov 2009 21:03:05 +0000 (18:03 -0300)]
V4L/DVB (13415): videobuf-core: explicitly cast page count

Explicitly cast page count in the debug message.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13414): ttusb-dec: do not overwrite the first part of phys string
Márton Németh [Sat, 21 Nov 2009 16:46:12 +0000 (13:46 -0300)]
V4L/DVB (13414): ttusb-dec: do not overwrite the first part of phys string

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;
@@
  usb_make_path(dev, phys, size);
- strlcpy(phys, str, size);
+ strlcat(phys, str, size);
// </smpl>

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13413): introduce missing kfree
Julia Lawall [Sat, 21 Nov 2009 11:49:41 +0000 (08:49 -0300)]
V4L/DVB (13413): introduce missing kfree

Error handling code following a kzalloc should free the allocated data.
Similarly for usb-alloc urb.

The semantic match that finds the first problem is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@r exists@
local idexpression x;
statement S;
expression E;
identifier f,f1,l;
position p1,p2;
expression *ptr != NULL;
@@

x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
...
if (x == NULL) S
<... when != x
     when != if (...) { <+...x...+> }
(
x->f1 = E
|
 (x->f1 == NULL || ...)
|
 f(...,x->f1,...)
)
...>
(
 return \(0\|<+...x...+>\|ptr\);
|
 return@p2 ...;
)

@script:python@
p1 << r.p1;
p2 << r.p2;
@@

print "* file: %s kmalloc %s return %s" % (p1[0].file,p1[0].line,p2[0].line)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: Fix test in copy_reg_bits()
Roel Kluin [Fri, 20 Nov 2009 18:34:13 +0000 (15:34 -0300)]
V4L/DVB: Fix test in copy_reg_bits()

The reg_pair2[j].reg was tested twice.

Cc: <stable@kernel.org>
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13410): firedtv: remove an unnecessary function argument
Stefan Richter [Wed, 18 Nov 2009 19:01:34 +0000 (16:01 -0300)]
V4L/DVB (13410): firedtv: remove an unnecessary function argument

All read transactions initiated by firedtv are only quadlet-sized, hence
the backend->read call can be simplified a little.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13409): firedtv: packet requeuing is likely to succeed
Stefan Richter [Wed, 18 Nov 2009 19:01:14 +0000 (16:01 -0300)]
V4L/DVB (13409): firedtv: packet requeuing is likely to succeed

Packet DMA buffers are queued either initially all at once (then, a
queueing failure will cause firedtv to release the DMA context as a
whole) or subsequently one by one as they recycled after use (then a
failure is extremely unlikely).  Therefore we can be a little less
cautious when counting at which packet buffer to set the interrupt flag.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13408): firedtv: shrink buffer pointer table
Stefan Richter [Wed, 18 Nov 2009 19:00:55 +0000 (16:00 -0300)]
V4L/DVB (13408): firedtv: shrink buffer pointer table

Cache only addresses of whole pages, not of each buffer chunk.  Besides,
page addresses can be obtained by page_address() instead of kmap() since
they were allocated in lowmem.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13407): Add Prof 7301 PCI DVB-S2 card
Igor M. Liplianin [Tue, 17 Nov 2009 01:22:32 +0000 (22:22 -0300)]
V4L/DVB (13407): Add Prof 7301 PCI DVB-S2 card

Add Prof 7301 PCI DVB-S2 card

The card based on stv0903 demod, stb6100 tuner.

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: pt1: remove duplicated #include
Huang Weiyi [Thu, 12 Nov 2009 13:16:09 +0000 (10:16 -0300)]
V4L/DVB: pt1: remove duplicated #include

Remove duplicated #include('s) in
  drivers/media/dvb/pt1/pt1.c

Signed-off-by: Huang Weiyi <weiyi.huang@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13402): radio-mr800 - autosuspend for radio-mr800 driver
Oliver Neukum [Mon, 9 Nov 2009 22:09:49 +0000 (19:09 -0300)]
V4L/DVB (13402): radio-mr800 - autosuspend for radio-mr800 driver

Patch adds autosuspend support for mr800 radio driver.

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Acked-by: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13400): firedtv: port to new firewire core
Stefan Richter [Sun, 8 Nov 2009 21:30:54 +0000 (18:30 -0300)]
V4L/DVB (13400): firedtv: port to new firewire core

The firedtv DVB driver will now work not only on top of the old ieee1394
driver stack but also on the new firewire driver stack.

Alongside to the firedtv-1394.c backend for driver binding and I/O, the
firedtv-fw.c backend is added.  Depending on which of the two 1394
stacks is configured, one or the other or both backends will be built
into the firedtv driver.

This has been tested with a DVB-T and a DVB-C box on x86-64 and x86-32
together with a few different controllers (Agere FW323, a NEC chip, TI
TSB82AA2, TSB43AB22/A, VIA VT6306).

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13399): firedtv: add missing include, rename a constant
Stefan Richter [Sun, 8 Nov 2009 21:29:41 +0000 (18:29 -0300)]
V4L/DVB (13399): firedtv: add missing include, rename a constant

Add #include <dvb_demux.h> for dvb_dmx_swfilter_packets().  This was
already indirectly included via firedtv.h, but don't rely on it.

The 4 bytes which were referred to as FIREWIRE_HEADER_SIZE are actually
the source packet header from IEC 61883-4 (MPEG2-TS data transmission
over 1394), not e.g. the IEEE 1394 isochronous packet header.  So choose
a more precise name.

Also, express the payload size as a preprocessor constant too.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13398): firedtv: reform lock transaction backend call
Stefan Richter [Sun, 8 Nov 2009 21:29:08 +0000 (18:29 -0300)]
V4L/DVB (13398): firedtv: reform lock transaction backend call

Preparation for the port of firedtv to the firewire-core kernel API:
The fdtv->backend->lock() hook and thus the CMP code is slightly changed
to better fit with the new API.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13397): firedtv: move remote control workqueue handling into rc source file
Stefan Richter [Sun, 8 Nov 2009 21:28:45 +0000 (18:28 -0300)]
V4L/DVB (13397): firedtv: move remote control workqueue handling into rc source file

Preparation for the port of firedtv to the firewire-core kernel API:
Canceling of the remote control workqueue job is factored into
firedtv-rc.c.  Plus trivial whitespace change.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13396): correct initialization of audio_mode
Julia Lawall [Sun, 8 Nov 2009 17:49:05 +0000 (14:49 -0300)]
V4L/DVB (13396): correct initialization of audio_mode

This initialization of the value of audio_mode is the one used if nothing
matches in the subsequent switch.  The variable audio_mode is subsequently
assigned to constants such as TUNER_AUDIO_MONO and TUNER_AUDIO_STEREO.
TUNER_AUDIO_STEREO has the same value as V4L2_TUNER_MODE_STEREO, so it
would seem better to use that value here.

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13394): pt1: Support FE_READ_SNR
hiranotaka@zng.jp [Sun, 8 Nov 2009 08:42:28 +0000 (05:42 -0300)]
V4L/DVB (13394): pt1: Support FE_READ_SNR

Signed-off-by: HIRANO Takahito <hiranotaka@zng.info>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13389): gspca - pac7302: Handle return values in sd_start().
Marton Nemeth [Sun, 8 Nov 2009 07:41:28 +0000 (04:41 -0300)]
V4L/DVB (13389): gspca - pac7302: Handle return values in sd_start().

Signed-off-by: Marton Nemeth <nm127@freemail.hu>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13388): gspca - pac7302: Add white balance control.
Marton Nemeth [Sun, 8 Nov 2009 07:35:12 +0000 (04:35 -0300)]
V4L/DVB (13388): gspca - pac7302: Add white balance control.

Signed-off-by: Marton Nemeth <nm127@freemail.hu>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13387): gspca - main: Fix a compilation warning.
Jean-Francois Moine [Sat, 7 Nov 2009 19:38:55 +0000 (16:38 -0300)]
V4L/DVB (13387): gspca - main: Fix a compilation warning.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13386): gspca - main: Change version to 2.8.0.
Jean-Francois Moine [Sat, 7 Nov 2009 18:30:50 +0000 (15:30 -0300)]
V4L/DVB (13386): gspca - main: Change version to 2.8.0.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13385): gspca - pac7302: Add red and blue balance control.
Márton Németh [Sat, 7 Nov 2009 18:15:56 +0000 (15:15 -0300)]
V4L/DVB (13385): gspca - pac7302: Add red and blue balance control.

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 and 0xc7 by the camera.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13384): gspca - sonixj: Optimize code and add some comments.
Jean-Francois Moine [Sat, 7 Nov 2009 09:10:08 +0000 (06:10 -0300)]
V4L/DVB (13384): gspca - sonixj: Optimize code and add some comments.

- the i2c base address is now taken from the sn9c1xx register table

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13383): gspca - pac7311/pac7302: Propagate error to higher level software.
Márton Németh [Sat, 7 Nov 2009 08:52:02 +0000 (05:52 -0300)]
V4L/DVB (13383): gspca - pac7311/pac7302: Propagate error to higher level software.

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.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13382): gspca - pac7302: Remove redundant stream off command.
Márton Németh [Sat, 7 Nov 2009 08:45:33 +0000 (05:45 -0300)]
V4L/DVB (13382): gspca - pac7302: Remove redundant stream off command.

The stream off command is sent to the device twice, one is enough.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13380): sms-cards: make id unsigned in sms_get_board()
Roel Kluin [Tue, 17 Nov 2009 22:43:40 +0000 (19:43 -0300)]
V4L/DVB (13380): sms-cards: make id unsigned in sms_get_board()

Make id signed so we can't get an invalid pointer when we pass a negative
id.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13379): quickcam_messenger: possible buffer overflow while use strncat
Alexander Strakh [Tue, 17 Nov 2009 22:43:38 +0000 (19:43 -0300)]
V4L/DVB (13379): quickcam_messenger: possible buffer overflow while use strncat

In driver ./drivers/media/video/usbvideo/quickcam_messenger.c in line 91:

  91         usb_make_path(dev, cam->input_physname, sizeof(cam->input_physname));

After this line we use strncat:

  92         strncat(cam->input_physname, "/input0", sizeof(cam->input_physname));

where sizeof(cam->input_physname) returns length of cam->input_phisname
without length for null-symbol.  But this parameter must be - "maximum
numbers of bytes to copy", i.e.:
sizeof(cam->input_physname)-strlen(cam->input_physname)-1.

In this case, after call to usb_make_path the similar drivers use strlcat.

Like in: drivers/hid/usbhid/hid-core.c:
1152         usb_make_path(dev, hid->phys, sizeof(hid->phys));
1153         strlcat(hid->phys, "/input", sizeof(hid->phys));

Found by Linux Driver Verification Project.

Use strlcat instead of strncat.

Signed-off-by: Alexander Strakh <strakh@ispras.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13378): konicawc.c: possible buffer overflow while use strncat
Alexander Strakh [Tue, 17 Nov 2009 22:43:37 +0000 (19:43 -0300)]
V4L/DVB (13378): konicawc.c: possible buffer overflow while use strncat

In driver ./drivers/media/video/usbvideo/konicawc.c in line 227:

227         usb_make_path(dev, cam->input_physname, sizeof(cam->input_physname));

After this line we use strncat:

228         strncat(cam->input_physname, "/input0", sizeof(cam->input_physname));

where sizeof(cam->input_physname) returns length of cam->input_phisname
without length for null-symbol.  But this parameter must be - "maximum
numbers of bytes to copy", i.e.:
sizeof(cam->input_physname)-strlen(cam->input_physname)-1.

In this case, after call to usb_make_path the similar drivers use strlcat.

Like in drivers/hid/usbhid/hid-core.c:
1152         usb_make_path(dev, hid->phys, sizeof(hid->phys));
1153         strlcat(hid->phys, "/input", sizeof(hid->phys));

Found by Linux Driver Verification Project.

Use strlcat instead of strncat.

Signed-off-by: Alexander Strakh <strakh@ispras.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13377): make struct videobuf_queue_ops constant
Jonathan Corbet [Tue, 17 Nov 2009 22:43:41 +0000 (19:43 -0300)]
V4L/DVB (13377): make struct videobuf_queue_ops constant

The videobuf_queue_ops function vector is not declared constant, but
there's no need for the videobuf layer to ever change it.  Make it const
so that videobuf users can make their operations const without warnings.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13376): cx-usb: add Mygica D689 DMB-TH USB support
David Wong [Mon, 26 Oct 2009 12:41:22 +0000 (09:41 -0300)]
V4L/DVB (13376): cx-usb: add Mygica D689 DMB-TH USB support

X-Patchwork-Id: 55873

Add support for cxusb card Mygica D689 DBM-TH USB

Signed-off-by: David T. L. Wong <davidtlwong@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13375): cx23885: Add support for Mygica X8558Pro DMB-TH
David T. L. Wong [Mon, 26 Oct 2009 11:54:04 +0000 (08:54 -0300)]
V4L/DVB (13375): cx23885: Add support for Mygica X8558Pro DMB-TH

Adds support for cx23885 card Mygica X8558 Pro DMB-TH

Signed-off-by: David T. L. Wong <davidtlwong@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13374): AltoBeam ATBM8830 GB20600-2006(DMB-TH) demodulator
David T.L. Wong [Mon, 26 Oct 2009 10:08:17 +0000 (07:08 -0300)]
V4L/DVB (13374): AltoBeam ATBM8830 GB20600-2006(DMB-TH) demodulator

Adds support for Maxim MAX2165 silicon tuner.

It was tested on Mygica X8558Pro, which has MAX2165, ATBM8830 and CX23885.

Signed-off-by: David T. L. Wong <davidtlwong@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13373): Maxium MAX2165 silicon tuner
David T.L. Wong [Mon, 26 Oct 2009 09:42:34 +0000 (06:42 -0300)]
V4L/DVB (13373): Maxium MAX2165 silicon tuner

Adds support for Maxim MAX2165 silicon tuner.

It is tested on Mygica X8558Pro, which has MAX2165, ATBM8830 and CX23885

Signed-off-by: David T. L. Wong <davidtlwong@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13368): af9015: support for Sveon STV20 Tuner USB DVB-T HDTV
Ignacio de Miguel Diaz [Sat, 14 Nov 2009 02:13:34 +0000 (23:13 -0300)]
V4L/DVB (13368): af9015: support for Sveon STV20 Tuner USB DVB-T HDTV

Add USB ID 1b80:e39d for Sveon STV20 Tuner USB DVB-T HDTV.

Signed-off-by: Ignacio de Miguel Diaz <imigueldiaz@gmail.com>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13364): ec168: add new driver for E3C EC168 DVB USB
Antti Palosaari [Sat, 14 Nov 2009 01:38:55 +0000 (22:38 -0300)]
V4L/DVB (13364): ec168: add new driver for E3C EC168 DVB USB

E3C EC168 DVB USB driver

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13363): ec100: add new driver for E3C EC100 DVB-T demodulator
Antti Palosaari [Sat, 14 Nov 2009 01:33:45 +0000 (22:33 -0300)]
V4L/DVB (13363): ec100: add new driver for E3C EC100 DVB-T demodulator

E3C EC100 DVB-T demodulator driver

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13361): stv090x: fix TS corruption with High Symbol Rate streams
Manu Abraham [Fri, 13 Nov 2009 21:51:39 +0000 (18:51 -0300)]
V4L/DVB (13361): stv090x: fix TS corruption with High Symbol Rate streams

With a lower bandwidth setup, the Transport Stream gets corrupted due to
TSFIFO overrun. The patch fixes the issue.

The issue is seen with Transport Streams having a Symbol Rate of 22MSPS
and/or greater.

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13360): stv090x: fix the calculation of the r divider in stv6110x_set_frequency
Andreas Regel [Fri, 13 Nov 2009 21:22:02 +0000 (18:22 -0300)]
V4L/DVB (13360): stv090x: fix the calculation of the r divider in stv6110x_set_frequency

It had always the value 3 no matter what frequency was given.

Signed-off-by: Andreas Regel <andreas.regel@gmx.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13359): stv090x: adds corrections of some register values
Andreas Regel [Fri, 13 Nov 2009 21:20:54 +0000 (18:20 -0300)]
V4L/DVB (13359): stv090x: adds corrections of some register values

While here, also do some blind scan related fixes.

Signed-off-by: Andreas Regel <andreas.regel@gmx.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13358): stv090x: add an additional check for packet delineator lock in stv09...
Andreas Regel [Fri, 13 Nov 2009 21:19:54 +0000 (18:19 -0300)]
V4L/DVB (13358): stv090x: add an additional check for packet delineator lock in stv090x_read_status in case of a tuned DVB-S2 signal

Signed-off-by: Andreas Regel <andreas.regel@gmx.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13357): stv090x: adds an additional check for signal presence based on AGC1
Andreas Regel [Fri, 13 Nov 2009 21:18:53 +0000 (18:18 -0300)]
V4L/DVB (13357): stv090x: adds an additional check for signal presence based on AGC1

Signed-off-by: Andreas Regel <andreas.regel@gmx.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13356): stv090x: fixes signal lock logic
Andreas Regel [Fri, 13 Nov 2009 21:17:45 +0000 (18:17 -0300)]
V4L/DVB (13356): stv090x: fixes signal lock logic

This patch contains several fixes for the stv090x driver:
- added missing else
- use calculated timeout instead of fixed one
- use correct frequency when doing zigzag scan
- added missing read of GENCFG register

Signed-off-by: Andreas Regel <andreas.regel@gmx.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13355): stv090x: fixes calculation of AGC2 and uses a different AGC2 thresho...
Andreas Regel [Fri, 13 Nov 2009 21:16:44 +0000 (18:16 -0300)]
V4L/DVB (13355): stv090x: fixes calculation of AGC2 and uses a different AGC2 threshold for cut 3 chips

Signed-off-by: Andreas Regel <andreas.regel@gmx.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13354): stv090x: fixes some typos like wrong register or variable names
Andreas Regel [Fri, 13 Nov 2009 21:15:27 +0000 (18:15 -0300)]
V4L/DVB (13354): stv090x: fixes some typos like wrong register or variable names

Signed-off-by: Andreas Regel <andreas.regel@gmx.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13353): stv090x: fixes STR and SNR calculation and normalizes the value...
Andreas Regel [Fri, 13 Nov 2009 21:14:00 +0000 (18:14 -0300)]
V4L/DVB (13353): stv090x: fixes STR and SNR calculation and normalizes the value into the 0..0xFFFF range

Signed-off-by: Andreas Regel <andreas.regel@gmx.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13352): stv090x: fixes errors and typos in register definitions
Andreas Regel [Fri, 13 Nov 2009 21:12:48 +0000 (18:12 -0300)]
V4L/DVB (13352): stv090x: fixes errors and typos in register definitions

Signed-off-by: Andreas Regel <andreas.regel@gmx.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13351): stv090x: increases search range based on symbol rate
Andreas Regel [Fri, 13 Nov 2009 21:11:26 +0000 (18:11 -0300)]
V4L/DVB (13351): stv090x: increases search range based on symbol rate

Signed-off-by: Andreas Regel <andreas.regel@gmx.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13349): cx23885: Enable IR input keypress handling for the Hauppauge WinTV...
Michael Krufky [Wed, 11 Nov 2009 18:46:09 +0000 (15:46 -0300)]
V4L/DVB (13349): cx23885: Enable IR input keypress handling for the Hauppauge WinTV HVR-1290

The IR on the HVR-1290 is identical to that of the HVR-1850

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13348): cx23885: update model matrix for models 85021 and 85721
Michael Krufky [Wed, 11 Nov 2009 13:46:40 +0000 (10:46 -0300)]
V4L/DVB (13348): cx23885: update model matrix for models 85021 and 85721

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13347): cx23885: add digital television support for Hauppauge WinTV-HVR1290
Michael Krufky [Wed, 11 Nov 2009 04:52:45 +0000 (01:52 -0300)]
V4L/DVB (13347): cx23885: add digital television support for Hauppauge WinTV-HVR1290

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13341): stv0900: big rework to support cut 3.0.
Igor M. Liplianin [Sat, 7 Nov 2009 02:46:32 +0000 (23:46 -0300)]
V4L/DVB (13341): stv0900: big rework to support cut 3.0.

Patch 4 of 4.
Also patch changes logic to prevent code repetitions and big indents.
It makes checkpatch silent :)

Signed-off-by: Igor M. Liplianin <liplianin@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13340): stv0900: big rework to support cut 3.0.
Igor M. Liplianin [Sat, 7 Nov 2009 02:42:22 +0000 (23:42 -0300)]
V4L/DVB (13340): stv0900: big rework to support cut 3.0.

Patch 3 of 4.
Also patch changes logic to prevent code repetitions and big indents.
It makes checkpatch silent :)

Signed-off-by: Igor M. Liplianin <liplianin@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13339): stv0900: big rework to support cut 3.0.
Igor M. Liplianin [Sat, 7 Nov 2009 02:23:29 +0000 (23:23 -0300)]
V4L/DVB (13339): stv0900: big rework to support cut 3.0.

Patch 2 of 4.
Also patch changes logic to prevent code repetitions and big indents.
It makes checkpatch silent :)

Signed-off-by: Igor M. Liplianin <liplianin@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13338): stv0900: big rework to support cut 3.0.
Igor M. Liplianin [Sat, 7 Nov 2009 02:07:56 +0000 (23:07 -0300)]
V4L/DVB (13338): stv0900: big rework to support cut 3.0.

Patch 1 of 4.
Also patch changes logic to prevent code repetitions and big indents.
It makes checkpatch silent :)

Signed-off-by: Igor M. Liplianin <liplianin@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13337): Change str snr scale for stv0900/903 and Netup Dual DVB-S2 card.
Igor M. Liplianin [Tue, 27 Oct 2009 17:59:53 +0000 (14:59 -0300)]
V4L/DVB (13337): Change str snr scale for stv0900/903 and Netup Dual DVB-S2 card.

Signed-off-by: Igor M. Liplianin <liplianin@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13336): stv0900: config definition for single/dual mode
Igor M. Liplianin [Sat, 17 Oct 2009 11:58:26 +0000 (08:58 -0300)]
V4L/DVB (13336): stv0900: config definition for single/dual mode

Signed-off-by: Igor M. Liplianin <liplianin@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13335): stv0900: fix diseqc support for NetUP card
Abylay Ospan [Sat, 17 Oct 2009 11:38:45 +0000 (08:38 -0300)]
V4L/DVB (13335): stv0900: fix diseqc support for NetUP card

Signed-off-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13334): stv6110: add configurable gain
Abylay Ospan [Sat, 17 Oct 2009 11:23:00 +0000 (08:23 -0300)]
V4L/DVB (13334): stv6110: add configurable gain

It has positive effect for NetUP Dual DVB-S2 CI card.

Signed-off-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13332): s5h1409: remove a set register that would cause lock to be lost.
Devin Heitmueller [Mon, 2 Nov 2009 04:30:40 +0000 (01:30 -0300)]
V4L/DVB (13332): s5h1409: remove a set register that would cause lock to be lost.

On particularly weak signals, changing register 0xab after setting the
interleave mode will cause the FEC lock to get lost (while still holding the
EQ lock).  So remove the write entirely, which seems to have had no adverse
effect in either of my ClearQAM environments (and in particular resolves the
customer's reported issue).

Also flip around the order of the amhum optimization and the interleave setup
to be consistent with the windows driver, which has the side-benefit of doing
them both in the same call (since the amhum optimization can only be done once
the interleave setup).

This work was sponsored by ONELAN Limited.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13331): mxl5005s: provide ability to override QAM gain for HVR-1600
Devin Heitmueller [Thu, 29 Oct 2009 02:10:16 +0000 (23:10 -0300)]
V4L/DVB (13331): mxl5005s: provide ability to override QAM gain for HVR-1600

The HVR-1600 doesn't use the standard mechanism for computing the gain when
in QAM mode, instead always forcing it to be 0x02.  Provide the ability to
override the algorithm on a per-board basis.

This change results in an improvement of 0.4-0.6 dB for QAM tuning.

This work was sponsored by ONELAN Limited.

Cc: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13330): s5h1409: properly handle QAM optimization after lock achieved
Devin Heitmueller [Wed, 28 Oct 2009 04:26:05 +0000 (01:26 -0300)]
V4L/DVB (13330): s5h1409: properly handle QAM optimization after lock achieved

The sh51409 driver was only doing the QAM optimization a single time, and it
would only occur if you received a lock instantaneously after the tuning
request.  Restructure the code so that the optimization occurs once you reach
a signal lock.

Note that this depends on the caller polling for status, but we don't have
much choice at this point without an independent thread monitoring the lock
status.  Also, at this point pretty much every application polls for status
lock after doing the tune, so the likelihood of the optimization not occurring
in the real world is pretty low.

The state machine has also been reworked such that setting the interleave mode
is now a dependency of doing the QAM optimization.  Before both were mutually
exclusive, which was not consistent with the Windows driver.  We now have a
single state machine that controls both.

The changes as-is are only enabled for the HVR-1600.  Once the changes are
tested with some of the other boards, this change should be made generic and
the "_legacy" functions should be removed.

This work was sponsored by ONELAN Limited.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13329): s5h1409: provide HVR-1600 specific optimizations
Devin Heitmueller [Wed, 28 Oct 2009 02:33:21 +0000 (23:33 -0300)]
V4L/DVB (13329): s5h1409: provide HVR-1600 specific optimizations

Perform some optimization of the register configuration based on a trace
of the HVR-1600 Windows i2c traffic (and consultation with Steven Toth).
Note that some of these values may be able to be moved into the common driver,
but I am holding off on that until they can be tested with other boards.

This work was sponsored by ONELAN Limited.

Cc: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13328): em28xx: Add chip ID for em2800
Mauro Carvalho Chehab [Thu, 12 Nov 2009 14:21:05 +0000 (11:21 -0300)]
V4L/DVB (13328): em28xx: Add chip ID for em2800

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13327): em28xx: fix alt modprobe parameter
Mauro Carvalho Chehab [Sat, 7 Nov 2009 17:51:01 +0000 (14:51 -0300)]
V4L/DVB (13327): em28xx: fix alt modprobe parameter

It seems that some patch broke alt modprobe parameter. Fix it to allow
changing alternate interfaces during module load and at runtime.

If changed during runtime, you'll need to stop a and restart stream for
the parameter to be used.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13325): gspca - pac7302/pac7311: Fix buffer overrun.
Marton Nemeth [Thu, 5 Nov 2009 08:40:46 +0000 (05:40 -0300)]
V4L/DVB (13325): gspca - pac7302/pac7311: Fix buffer overrun.

The reg_w_seq() function expects the sequence length in entries
and not in bytes. One entry in init_7302 and init_7311 is two
bytes and not one.

Signed-off-by: Marton Nemeth <nm127@freemail.hu>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13324): gspca - pac7302/pac7311: Handle return value of usb_control_msg().
Marton Nemeth [Thu, 5 Nov 2009 08:35:08 +0000 (05:35 -0300)]
V4L/DVB (13324): gspca - pac7302/pac7311: Handle return value of usb_control_msg().

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: Marton Nemeth <nm127@freemail.hu>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13323): gspca - zc3xx: Adjust the exchanges of sensors mi0360soc and pb0330.
Jean-Francois Moine [Wed, 4 Nov 2009 19:38:04 +0000 (16:38 -0300)]
V4L/DVB (13323): gspca - zc3xx: Adjust the exchanges of sensors mi0360soc and pb0330.

- the pb03303x exchanges were the mi0360soc ones
- add the new sensor mi0360soc
- the new exchanges are taken from the info file of the ms-win driver
  of the webcams 0ac8:301b and 0ac8:303b (vm30x.inf)

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13310): uvcvideo: Return -EINVAL instead of -ENODEV in read()
Laurent Pinchart [Wed, 4 Nov 2009 14:53:49 +0000 (11:53 -0300)]
V4L/DVB (13310): uvcvideo: Return -EINVAL instead of -ENODEV in read()

-EINVAL is required by the V4L2 specification. -ENODEV is simply wrong
as the device exists.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13308): uvcvideo: Add support for MSI StarCam 370i webcams
Laurent Pinchart [Wed, 21 Oct 2009 21:36:18 +0000 (18:36 -0300)]
V4L/DVB (13308): uvcvideo: Add support for MSI StarCam 370i webcams

The MSI StarCam 370i (1b3b:2951) requires the MINMAX quirk. Add a
corresponding entry in the device IDs list.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13306): gspca - sonixj: Change the copyright.
Jean-Francois Moine [Mon, 2 Nov 2009 13:00:48 +0000 (10:00 -0300)]
V4L/DVB (13306): gspca - sonixj: Change the copyright.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13305): gspca - sonixj: The V flip control does not exist for all sensors.
Jean-Francois Moine [Mon, 2 Nov 2009 12:58:49 +0000 (09:58 -0300)]
V4L/DVB (13305): gspca - sonixj: The V flip control does not exist for all sensors.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13304): gspca - sonixj: Don't access the sensor when setting the bridge.
Jean-Francois Moine [Mon, 2 Nov 2009 12:56:59 +0000 (09:56 -0300)]
V4L/DVB (13304): gspca - sonixj: Don't access the sensor when setting the bridge.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13303): gspca - sonixj: Change sensor and om6802 exchanges.
Jean-Francois Moine [Mon, 2 Nov 2009 12:54:04 +0000 (09:54 -0300)]
V4L/DVB (13303): gspca - sonixj: Change sensor and om6802 exchanges.

- the sensors are now initialized sooner
- om6802:
  . set some parameters in factory mode
  . lack of some parameters
  . gpio adjustments

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13302): gspca - sonixj: Fix some bad values of sensor om6802.
Jean-Francois Moine [Mon, 2 Nov 2009 12:21:06 +0000 (09:21 -0300)]
V4L/DVB (13302): gspca - sonixj: Fix some bad values of sensor om6802.

- sensor address is 0x34
- sensor i2c is 100 kHz

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13301): gspca - sonixj: Simplify the sensor init exchanges.
Jean-Francois Moine [Mon, 2 Nov 2009 12:10:25 +0000 (09:10 -0300)]
V4L/DVB (13301): gspca - sonixj: Simplify the sensor init exchanges.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13300): gspca - pac7302/pac7311: Separate the two subdrivers.
Marton Nemeth [Mon, 2 Nov 2009 11:13:21 +0000 (08:13 -0300)]
V4L/DVB (13300): gspca - pac7302/pac7311: Separate the two subdrivers.

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 remove sensor infromation from the USB
device table.

The common functions are just copied to both subdrivers. These common
functions can be separated later to a common file or helper module.

Signed-off-by: Marton Nemeth <nm127@freemail.hu>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13299): gspca - pac7311: Extract pac_start_frame.
Marton Nemeth [Mon, 2 Nov 2009 11:09:34 +0000 (08:09 -0300)]
V4L/DVB (13299): gspca - pac7311: Extract pac_start_frame.

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: Marton Nemeth <nm127@freemail.hu>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13298): gspca - pac207/pac7311/mr97310a: Simplify pac_find_sof.
Marton Nemeth [Mon, 2 Nov 2009 11:05:51 +0000 (08:05 -0300)]
V4L/DVB (13298): gspca - pac207/pac7311/mr97310a: Simplify pac_find_sof.

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: Marton Nemeth <nm127@freemail.hu>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13297): dib0700_devices: EvolutePC TvWay+ USB ISDB-Tb remote control support
Sergio C Fortier [Wed, 4 Nov 2009 18:55:09 +0000 (15:55 -0300)]
V4L/DVB (13297): dib0700_devices: EvolutePC TvWay+ USB ISDB-Tb remote control support

Patch for EvolutePC TvWay+ USB ISDB-Tb remote control support.

[dougsland@redhat.com: fixed malformed patch]
Cc: Patrick Boettcher <pboettcher@dibcom.fr>
Signed-off-by: Sergio C Fortier <sergiofortier@yahoo.com.br>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13295): sms1xxx: load smsdvb also for the hauppauge tiger cards
Éric Piel [Wed, 4 Nov 2009 18:46:11 +0000 (15:46 -0300)]
V4L/DVB (13295): sms1xxx: load smsdvb also for the hauppauge tiger cards

load smsdvb also for the hauppauge tiger cards

[dougsland@redhat.com: fixed rejects due changes in sms-cards.c]
Signed-off-by: Éric Piel <eric.piel@tremplin-utc.net>
Acked-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13294): dvb-usb-friio: cleaning up unnecessary functions
Akihiro Tsukada [Wed, 4 Nov 2009 18:40:36 +0000 (15:40 -0300)]
V4L/DVB (13294): dvb-usb-friio: cleaning up unnecessary functions

This patch removes some fe->ops.X() functions which do nothing more useful than the default.

Signed-off-by: Akihiro Tsukada <tskd2@yahoo.co.jp>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13293): dvb-usb-friio: return the correct DTV_DELIVERY_SYSTEM
Akihiro Tsukada [Wed, 4 Nov 2009 18:39:31 +0000 (15:39 -0300)]
V4L/DVB (13293): dvb-usb-friio: return the correct DTV_DELIVERY_SYSTEM

This patch makes the driver return the correct DTV_DELIVERY_SYSTEM.

The driver previously returned SYS_UNDEFINED for DTV_DELIVERY_SYSTEM property,
as it lacked any driver specific S2API support.

Signed-off-by: Akihiro Tsukada <tskd2@yahoo.co.jp>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13292): tvp514x: recognize the error case in tvp514x_read_reg()
Sebastian Andrzej Siewior [Wed, 4 Nov 2009 18:35:09 +0000 (15:35 -0300)]
V4L/DVB (13292): tvp514x: recognize the error case in tvp514x_read_reg()

i2c_smbus_read_byte_data() returns a negative value on error. It is very
likely to be != -1 (-EPERM).

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13290): em28xx-dvb: Convert printks to em28xx_err and em28xx_info
Filipe Rosset [Wed, 4 Nov 2009 18:32:37 +0000 (15:32 -0300)]
V4L/DVB (13290): em28xx-dvb: Convert printks to em28xx_err and em28xx_info

Convert printks to em28xx_err and em28xx_info

Signed-off-by: Filipe Rosset <rosset.filipe@gmail.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>