profile/ivi/kernel-adaptation-intel-automotive.git
14 years agoV4L/DVB: cx2341x: Remove temporal filter control restriction
Ian Armstrong [Sun, 7 Mar 2010 00:43:04 +0000 (21:43 -0300)]
V4L/DVB: cx2341x: Remove temporal filter control restriction

Since the change that stops the CX23415/6 firmware-intiiated secondary stream
appears to fix the temporal filter, it's now fully re-enabled for all capture
resolutions.

Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: ivtv: Really stop capture on device close
Ian Armstrong [Sun, 7 Mar 2010 00:37:04 +0000 (21:37 -0300)]
V4L/DVB: ivtv: Really stop capture on device close

When a capture is started, the firmware also appears to start a secondary
stream. Unless this secondary stream is also stopped, the encoder will remain
active and not reinitialise for the next capture. Unfortunately, setting up
the video source can glitch the encoder and result in undesirable effects that
this initialisation will clear.

Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: ivtv: Combine capture start delays into a single delay
Andy Walls [Sun, 7 Mar 2010 00:08:35 +0000 (21:08 -0300)]
V4L/DVB: ivtv: Combine capture start delays into a single delay

Combine the two 150 ms delays into a single 300 ms delay.  Ian Armstrong has
noted that the delay between CX2341X_ENC_INITIALIZE_INPUT and
CX2341X_ENC_START_CAPTURE can cause problems if the temporal filter is allowed
to be enabled.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: configurable IRQ from CAM
Abylay Ospan [Sat, 6 Mar 2010 18:46:39 +0000 (15:46 -0300)]
V4L/DVB: configurable IRQ from CAM

IRQ from CAM disabled by default. In some environment enabled IRQ can cause of
machine freeze.

Signed-off-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: get_frontend for STV0900
Abylay Ospan [Sat, 6 Mar 2010 18:05:26 +0000 (15:05 -0300)]
V4L/DVB: get_frontend for STV0900

Signed-off-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: af9015: support for KWorld TV Stick II (395UR)
Antti Palosaari [Mon, 1 Mar 2010 17:06:52 +0000 (14:06 -0300)]
V4L/DVB: af9015: support for KWorld TV Stick II (395UR)

Add USB ID 1b80:e39a for KWorld TV Stick II (395UR).

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: af9015: support for KWorld USB DVB-T Stick Mobile (UB383-T)
Antti Palosaari [Mon, 1 Mar 2010 16:50:40 +0000 (13:50 -0300)]
V4L/DVB: af9015: support for KWorld USB DVB-T Stick Mobile (UB383-T)

Add USB ID 1b80:e383 for KWorld USB DVB-T Stick Mobile (UB383-T).

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: s2255drv: support for frame skipping
Dean Anderson [Mon, 8 Mar 2010 23:04:48 +0000 (20:04 -0300)]
V4L/DVB: s2255drv: support for frame skipping

adds hardware frame skipping using VIDIOC_S_PARM ioctl.
adds support for VIDIOC_ENUM_FRAMEINTERVALS.

Signed-off-by: Dean Anderson <dean@sensoray.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gspca cpia1: make local functions static
Márton Németh [Sun, 7 Mar 2010 06:33:45 +0000 (03:33 -0300)]
V4L/DVB: gspca cpia1: make local functions static

Make the local functions static. Note that the function command_setlights() is
currently not called from anywhere.

This will remove the following sparse warnings (see "make C=1"):
 * symbol 'command_setformat' was not declared. Should it be static?
 * symbol 'command_setcolourparams' was not declared. Should it be static?
 * symbol 'command_setapcor' was not declared. Should it be static?
 * symbol 'command_setvloffset' was not declared. Should it be static?
 * symbol 'command_setexposure' was not declared. Should it be static?
 * symbol 'command_setcolourbalance' was not declared. Should it be static?
 * symbol 'command_setcompressiontarget' was not declared. Should it be static?
 * symbol 'command_setyuvtresh' was not declared. Should it be static?
 * symbol 'command_setcompressionparams' was not declared. Should it be static?
 * symbol 'command_setcompression' was not declared. Should it be static?
 * symbol 'command_setsensorfps' was not declared. Should it be static?
 * symbol 'command_setflickerctrl' was not declared. Should it be static?
 * symbol 'command_setecptiming' was not declared. Should it be static?
 * symbol 'command_pause' was not declared. Should it be static?
 * symbol 'command_resume' was not declared. Should it be static?
 * symbol 'command_setlights' was not declared. Should it be static?

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: fix broken I2C IR for Beholder
Dmitri Belimov [Thu, 4 Mar 2010 05:40:37 +0000 (02:40 -0300)]
V4L/DVB: fix broken I2C IR for Beholder

Fix broken I2C IR for TV cards of Beholder.

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: s2255drv: Add support for 2257 device
Dean Anderson [Fri, 5 Mar 2010 22:59:48 +0000 (19:59 -0300)]
V4L/DVB: s2255drv: Add support for 2257 device

2257 is 2255 with 2 svideo inputs

Signed-off-by: Dean Anderson <dean@sensoray.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: s2255drv: cleanup of V4L2 controls
Dean Anderson [Fri, 5 Mar 2010 17:29:09 +0000 (14:29 -0300)]
V4L/DVB: s2255drv: cleanup of V4L2 controls

Signed-off-by: Dean Anderson <dean@sensoray.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: s2255drv: fixes for big endian arch
Dean Anderson [Thu, 4 Mar 2010 23:47:33 +0000 (20:47 -0300)]
V4L/DVB: s2255drv: fixes for big endian arch

s2255drv fixes for big endian architecture

Signed-off-by: Dean Anderson <dean@sensoray.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: em28xx: Support for Kworld VS-DVB-T 323UR
Antonio Larrosa [Fri, 5 Mar 2010 01:19:48 +0000 (22:19 -0300)]
V4L/DVB: em28xx: Support for Kworld VS-DVB-T 323UR

This patch adapts the changes submitted by Dainius Ridzevicius to the
linux-media mailing list on 8/14/09, to the current sources in order
to make the Kworld VS-DVB-T 323UR usb device work.

I also removed the "not validated" flag since I own the device and validated
that it works fine after the patch is applied.

Thanks to Devin Heitmueller for his guidance with the code.

Signed-off-by: Antonio Larrosa <larrosa@kde.org>
Acked-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: s2255drv: adding video input status capability
Dean Anderson [Wed, 3 Mar 2010 22:39:19 +0000 (19:39 -0300)]
V4L/DVB: s2255drv: adding video input status capability

Video status capability for inputs on Sensoray 2255 driver.

Signed-off-by: Dean Anderson <dean@sensoray.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000 register defines
Dmitri Belimov [Tue, 2 Mar 2010 00:24:12 +0000 (21:24 -0300)]
V4L/DVB: tm6000 register defines

Add defines for all registers of the tm6000 module.
This defines made by doc for TM6010, need look docs for TM6000 and TM5600
Some registers can be different.

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: Allow to enable TS continuity and TEI check on loaded module
Abylay Ospan [Sat, 6 Mar 2010 17:58:01 +0000 (14:58 -0300)]
V4L/DVB: Allow to enable TS continuity and TEI check on loaded module

Current dvb_demux_tscheck processing doesn't allow to enable check on loaded
module. dvb_demux_tscheck can be enabled only when loading module (
dvb_dmx_init should be called to enable dvb_demux_tscheck ). This patch fix
this issue.

Signed-off-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gspca - cpia1 / sn9c2028: Make control descriptors constant
Jean-François Moine [Sun, 7 Mar 2010 10:18:59 +0000 (07:18 -0300)]
V4L/DVB: gspca - cpia1 / sn9c2028: Make control descriptors constant

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gspca - main: Use ktime instead of jiffies for buffer timestamping
Paulo Assis [Sun, 7 Mar 2010 09:56:56 +0000 (06:56 -0300)]
V4L/DVB: gspca - main: Use ktime instead of jiffies for buffer timestamping

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gspca - sn9c20x: Fix exposure control for HV7131R sensor
German Galkin [Sun, 7 Mar 2010 09:19:02 +0000 (06:19 -0300)]
V4L/DVB: gspca - sn9c20x: Fix exposure control for HV7131R sensor

Make the range of exposure values (0-0x1770) distribute evenly through
HV7131R's exposure control bytes.

Signed-off-by: German Galkin <galkinga@gmail.com>
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gspca - t613: Check the result of kmalloc
Jean-François Moine [Sun, 7 Mar 2010 08:58:55 +0000 (05:58 -0300)]
V4L/DVB: gspca - t613: Check the result of kmalloc

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gspca - pac207: Let all pac207 ctrls have a coherent naming
Erik Andrén [Sun, 7 Mar 2010 08:13:49 +0000 (05:13 -0300)]
V4L/DVB: gspca - pac207: Let all pac207 ctrls have a coherent naming

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: firedtv: correct version number and current/next in CA_PMT
Henrik Kurelid [Tue, 21 Jul 2009 16:45:50 +0000 (13:45 -0300)]
V4L/DVB: firedtv: correct version number and current/next in CA_PMT

The version number in the CA_PMT message sent to the hardware was
alwaysed set to zero. This could cause problems if the PMT would
change during decryption of a channel since the new CA_PMT would have
the same version number as the old. The version number is now copied
from the original PMT.

Signed-off-by: Henrik Kurelid <henrik@kurelid.se>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: az6027: remove redundant condition check
Márton Németh [Mon, 1 Mar 2010 07:10:52 +0000 (04:10 -0300)]
V4L/DVB: az6027: remove redundant condition check

The condition (msg[i].addr == 0xd0) is checked twice the second one
is not necessary.

This will remove the following compiler warning:
   az6027.c: In function 'az6027_i2c_xfer':
   az6027.c:942: warning: 'index' may be used uninitialized in this function
   az6027.c:943: warning: 'value' may be used uninitialized in this function
   az6027.c:944: warning: 'length' may be used uninitialized in this function
   az6027.c:945: warning: 'req' may be used uninitialized in this function

Signed-off-by: Márton Németh <nm127@freemail.hu>
Cc: Manu Abraham <abraham.manu@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tlg2300: make local variables and functions static
Márton Németh [Mon, 1 Mar 2010 06:31:02 +0000 (03:31 -0300)]
V4L/DVB: tlg2300: make local variables and functions static

Make the local variables and functions static. Some of them are not exported by their
symbol name but used trough other means. For example a pointer of the operation
structure is passed through a function call.

This will remove the following sparse warnings (see "make C=1"):
 * pd-video.c:20:5: warning: symbol 'usb_transfer_mode' was not declared. Should it be static?
 * pd-video.c:621:5: warning: symbol 'fire_all_urb' was not declared. Should it be static?
 * pd-video.c:881:5: warning: symbol 'vidioc_s_std' was not declared. Should it be static?
 * pd-video.c:1024:5: warning: symbol 'vidioc_g_audio' was not declared. Should it be static?
 * pd-video.c:1033:5: warning: symbol 'vidioc_s_audio' was not declared. Should it be static?
 * pd-video.c:1193:5: warning: symbol 'usb_transfer_stop' was not declared. Should it be static?
 * pd-video.c:1522:14: warning: symbol 'pd_video_poll' was not declared. Should it be static?
 * pd-video.c:1528:9: warning: symbol 'pd_video_read' was not declared. Should it be static?
 * pd-radio.c:164:5: warning: symbol 'tlg_fm_vidioc_g_tuner' was not declared. Should it be static?
 * pd-radio.c:206:5: warning: symbol 'fm_get_freq' was not declared. Should it be static?
 * pd-radio.c:249:5: warning: symbol 'fm_set_freq' was not declared. Should it be static?
 * pd-radio.c:261:5: warning: symbol 'tlg_fm_vidioc_g_ctrl' was not declared. Should it be static?
 * pd-radio.c:267:5: warning: symbol 'tlg_fm_vidioc_g_exts_ctrl' was not declared. Should it be static?
 * pd-radio.c:288:5: warning: symbol 'tlg_fm_vidioc_s_exts_ctrl' was not declared. Should it be static?
 * pd-radio.c:315:5: warning: symbol 'tlg_fm_vidioc_s_ctrl' was not declared. Should it be static?
 * pd-radio.c:321:5: warning: symbol 'tlg_fm_vidioc_queryctrl' was not declared. Should it be static?
 * pd-radio.c:340:5: warning: symbol 'tlg_fm_vidioc_querymenu' was not declared. Should it be static?
 * pd-main.c:58:12: warning: symbol 'firmware_name' was not declared. Should it be static?
 * pd-main.c:59:19: warning: symbol 'poseidon_driver' was not declared. Should it be static?

Signed-off-by: Márton Németh <nm127@freemail.hu>
Acked-by: Huang Shijie <shijie8@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: nGene: use NULL when pointer is needed
Márton Németh [Sun, 28 Feb 2010 14:34:35 +0000 (11:34 -0300)]
V4L/DVB: nGene: use NULL when pointer is needed

Use NULL when calling a function with pointer parameter, initializing a
pointer and returning a pointer. This will remove the following sparse
warning at different locations (see "make C=1"):
 * warning: Using plain integer as NULL pointer

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tlg2300: cleanups when power management is not configured
Márton Németh [Sun, 28 Feb 2010 14:19:47 +0000 (11:19 -0300)]
V4L/DVB: tlg2300: cleanups when power management is not configured

When power management is not configured (CONFIG_PM) then some code is no longer
necessary.

This patch will remove the following compiler warnings:
 * pd-dvb.c: In function 'poseidon_fe_release':
 * pd-dvb.c:101: warning: unused variable 'pd'
 * pd-video.c:14: warning: 'pm_video_suspend' declared 'static' but never defined
 * pd-video.c:15: warning: 'pm_video_resume' declared 'static' but never defined

Signed-off-by: Márton Németh <nm127@freemail.hu>
Acked-by: Huang Shijie <shijie8@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: cx88: increase BUFFER_TIMEOUT to 2 seconds
Marton Balint [Wed, 24 Feb 2010 16:23:36 +0000 (13:23 -0300)]
V4L/DVB: cx88: increase BUFFER_TIMEOUT to 2 seconds

When temporarily there is no video signal, sometimes it takes more than 0.5
secs for the cx88 chip to generate a single frame. If a dma timeout occurs
during recording, it confuses the recording application (at least mencoder)
and the recording stops.

Since there is already an #if 0 for 2 seconds buffer timeout in the code
at the -hg development tree, re-enabling that seemed the most simple
solution.

Signed-off-by: Marton Balint <cus@fazekas.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: au8522: fix case where we don't perform the first tune after going digital
Devin Heitmueller [Thu, 18 Feb 2010 01:51:46 +0000 (22:51 -0300)]
V4L/DVB: au8522: fix case where we don't perform the first tune after going digital

Address a problem found in MythTV where if we are in digital mode, switch to
analog mode, and the switch back to digital mode, the first tuning request
after switching back to digital mode gets dropped.  This is because the au8522
maintains internal state, and would think the demod was already tuned to the
target frequency.

Thanks to Zaphod Beeblebrox for reporting this issue.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: au8522: fix race condition in switching from digital to analog mode
Devin Heitmueller [Thu, 18 Feb 2010 01:47:55 +0000 (22:47 -0300)]
V4L/DVB: au8522: fix race condition in switching from digital to analog mode

With applications like MythTV, switching inputs results in closing the digital
side and then immediately opening the analog side.  This exposes a race
condition where the dvb_frontend kernel thread powers down the chip and closes
the i2c gate even though we're in the middle of bringing up the analog part
of the chip (since the shutdown of the dvb_frontend kernel thread occurs
asychronously).

Introduce a construct to keep track of what mode we're in, and drop requests
to power down or management the gate if we've already switched to analog mode.

Thanks to Zaphod Beeblebrox for reporting this issue.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: mt9t031: use runtime pm support to restore ADDRESS_MODE registers
Valentin Longchamp [Tue, 9 Feb 2010 10:59:12 +0000 (07:59 -0300)]
V4L/DVB: mt9t031: use runtime pm support to restore ADDRESS_MODE registers

If the platform hooks are provided, soc_camera powers off the device
on close and powers it on on open. This resets the ADDRESS_MODE registers
which then can be different to the value the driver has computed for them.

This patch setups runtime pm usage for mt9t031 and uses the resume function
to write the ADDRESS_MODE registers in order to fix the above described
problem.

Signed-off-by: Valentin Longchamp <valentin.longchamp@epfl.ch>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: soc-camera: add runtime pm support for subdevices
Mauro Carvalho Chehab [Tue, 18 May 2010 03:46:09 +0000 (00:46 -0300)]
V4L/DVB: soc-camera: add runtime pm support for subdevices

To save power soc-camera powers subdevices down, when they are not in use,
if this is supported by the platform. However, the V4L standard dictates,
that video nodes shall preserve configuration between uses. This requires
runtime power management, which is implemented by this patch. It allows
subdevice drivers to specify their runtime power-management methods, by
assigning a type to the video device.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: The first two parameters of soc_camera_limit_side() are usually pointers...
Márton Németh [Wed, 24 Feb 2010 20:13:29 +0000 (17:13 -0300)]
V4L/DVB: The first two parameters of soc_camera_limit_side() are usually pointers  to struct v4l2_rect elements. They are signed, so adjust the prototype  accordingly

This will remove the following sparse warning (see "make C=1"):

 * incorrect type in argument 1 (different signedness)
       expected unsigned int *start
       got signed int *<noident>

as well as a couple more signedness mismatches.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: bugfix reading problems with demodulator zl10353
Stefan Ringel [Mon, 22 Feb 2010 17:35:06 +0000 (14:35 -0300)]
V4L/DVB: tm6000: bugfix reading problems with demodulator zl10353

Reading from zl10353 with tm6000 has a bug. For example:

regs  w/o patch  with patch

0x06     0x00        0x7f
0x07     0x33        0x30
0x08     0x00        0x00
0x09     0x58        0x50
0x0f     0x31        0x28
0x10     0x00        0x84

This patch provides the workaround for the bug

[mchehab@redhat.com: Fix merge conflict and add a comment at the workaround]
Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: add send and recv function
Stefan Ringel [Mon, 22 Feb 2010 17:35:05 +0000 (14:35 -0300)]
V4L/DVB: tm6000: add send and recv function

Split the i2c send and receive functions on separate functions

[mchehab@redhat.com: CodingStyle and fix the logic for more than 2 read values]
Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: fix some info messages
Dmitri Belimov [Mon, 22 Feb 2010 09:32:15 +0000 (06:32 -0300)]
V4L/DVB: tm6000: fix some info messages

Fix some messages for add information about TM6010

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: fix i2c addr test
Stefan Ringel [Sun, 21 Feb 2010 20:10:36 +0000 (17:10 -0300)]
V4L/DVB: tm6000: fix i2c addr test

The i2c addr on I2C core is specified on 7-bit format, but tm6000
expects it on 8-bit format.

Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: remove hack.c hack.h, switch to zl10353 module
Stefan Ringel [Mon, 15 Feb 2010 17:37:23 +0000 (14:37 -0300)]
V4L/DVB: tm6000: remove hack.c hack.h, switch to zl10353 module

"hack"  module were a temporary file with some zl10353 magic. This is not needed anymore.
Just remove it.

[mchehab@redhat.com: CodingStyle fixes]
Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: change version to 0.0.2
Stefan Ringel [Mon, 15 Feb 2010 17:37:24 +0000 (14:37 -0300)]
V4L/DVB: tm6000: change version to 0.0.2

Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: special request for all tuner
Stefan Ringel [Mon, 15 Feb 2010 17:37:21 +0000 (14:37 -0300)]
V4L/DVB: tm6000: special request for all tuner

Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: reset the numbers of feeds to 8
Stefan Ringel [Mon, 15 Feb 2010 17:37:19 +0000 (14:37 -0300)]
V4L/DVB: tm6000: reset the numbers of feeds to 8

Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: add card setup for terratec cinergy hybrid
Stefan Ringel [Mon, 15 Feb 2010 17:37:18 +0000 (14:37 -0300)]
V4L/DVB: tm6000: add card setup for terratec cinergy hybrid

Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: add different tuner reset for terratec
Stefan Ringel [Mon, 15 Feb 2010 17:37:17 +0000 (14:37 -0300)]
V4L/DVB: tm6000: add different tuner reset for terratec

[mchehab@redhat.com: Fix CodingStyle]
Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: add additional init register for tm6010
Stefan Ringel [Mon, 15 Feb 2010 17:37:16 +0000 (14:37 -0300)]
V4L/DVB: tm6000: add additional init register for tm6010

Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: fix mutex lock unbalance
Mauro Carvalho Chehab [Fri, 12 Feb 2010 06:52:46 +0000 (03:52 -0300)]
V4L/DVB: tm6000: fix mutex lock unbalance

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: only register after initialized
Mauro Carvalho Chehab [Fri, 12 Feb 2010 06:51:43 +0000 (03:51 -0300)]
V4L/DVB: tm6000: only register after initialized

Udev calls an utility when it senses a v4l device. So, register needs
to be delayed, otherwise it may cause block conditions.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: drivers/staging/tm6000/tm6000-video.c: correct NULL test
Julia Lawall [Thu, 11 Feb 2010 06:30:30 +0000 (03:30 -0300)]
V4L/DVB: drivers/staging/tm6000/tm6000-video.c: correct NULL test

Test the just-allocated value for NULL rather than some other value.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression x,y;
statement S;
@@

x = \(kmalloc\|kcalloc\|kzalloc\)(...);
(
if ((x) == NULL) S
|
if (
-   y
+   x
       == NULL)
 S
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: fix build errors
Randy Dunlap [Wed, 10 Feb 2010 17:53:57 +0000 (14:53 -0300)]
V4L/DVB: tm6000: fix build errors

(1) tm6000 uses usb_*() interfaces, so it should depend on USB.

drivers/built-in.o: In function `tm6000_usb_disconnect':
tm6000-cards.c:(.text+0x4abb44): undefined reference to `usb_put_dev'
drivers/built-in.o: In function `tm6000_usb_probe':
tm6000-cards.c:(.text+0x4ac923): undefined reference to `usb_get_dev'
tm6000-cards.c:(.text+0x4ac93c): undefined reference to `usb_set_interface'
drivers/built-in.o: In function `tm6000_read_write_usb':
(.text+0x4ad274): undefined reference to `usb_control_msg'
drivers/built-in.o: In function `tm6000_uninit_isoc':
tm6000-video.c:(.text+0x4b00d5): undefined reference to `usb_kill_urb'
tm6000-video.c:(.text+0x4b00e4): undefined reference to `usb_unlink_urb'
tm6000-video.c:(.text+0x4b013c): undefined reference to `usb_buffer_free'
tm6000-video.c:(.text+0x4b014b): undefined reference to `usb_free_urb'
drivers/built-in.o: In function `tm6000_prepare_isoc':
tm6000-video.c:(.text+0x4b0773): undefined reference to `usb_alloc_urb'
tm6000-video.c:(.text+0x4b0835): undefined reference to `usb_buffer_alloc'
drivers/built-in.o: In function `tm6000_irq_callback':
tm6000-video.c:(.text+0x4b1ad3): undefined reference to `usb_submit_urb'
drivers/built-in.o: In function `tm6000_module_init':
tm6000-cards.c:(.init.text+0x24499): undefined reference to `usb_register_driver'
drivers/built-in.o: In function `tm6000_module_exit':
tm6000-cards.c:(.exit.text+0x5cb0): undefined reference to `usb_deregister'

(2) tm6000-alsa uses interfaces from tm6000-core, so when they are
both built as modules, the core interfaces need to be exported.

ERROR: "tm6000_set_reg" [drivers/staging/tm6000/tm6000-alsa.ko] undefined!
ERROR: "tm6000_get_reg" [drivers/staging/tm6000/tm6000-alsa.ko] undefined!

Cc: linux-next@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>, linux-media@vger.kernel.org
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: Michel Ludwig <michel.ludwig@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: move board-specific init to tm6000-cards
Mauro Carvalho Chehab [Mon, 8 Feb 2010 10:43:41 +0000 (08:43 -0200)]
V4L/DVB: tm6000: move board-specific init to tm6000-cards

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: Allow tm6000 driver compilation
Mauro Carvalho Chehab [Mon, 8 Feb 2010 10:44:26 +0000 (08:44 -0200)]
V4L/DVB: tm6000: Allow tm6000 driver compilation

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: add a different set param values
Stefan Ringel [Fri, 5 Feb 2010 23:06:54 +0000 (20:06 -0300)]
V4L/DVB: tm6000: add a different set param values

Fix several parameter sets, in order to make dvb work

Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: Fix several bugs at the usb DVB transfer
Stefan Ringel [Fri, 5 Feb 2010 23:06:52 +0000 (20:06 -0300)]
V4L/DVB: tm6000: Fix several bugs at the usb DVB transfer

Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: remove unused function
Stefan Ringel [Fri, 5 Feb 2010 22:57:08 +0000 (19:57 -0300)]
V4L/DVB: tm6000: remove unused function

Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: add tuner parameter for DVB devices
Stefan Ringel [Fri, 5 Feb 2010 22:57:07 +0000 (19:57 -0300)]
V4L/DVB: tm6000: add tuner parameter for DVB devices

Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: add tuner callback for dvb frontend
Stefan Ringel [Fri, 5 Feb 2010 22:57:06 +0000 (19:57 -0300)]
V4L/DVB: tm6000: add tuner callback for dvb frontend

Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: add special usb request to quit i2c tuner transfer
Stefan Ringel [Fri, 5 Feb 2010 22:57:04 +0000 (19:57 -0300)]
V4L/DVB: tm6000: add special usb request to quit i2c tuner transfer

After sending an i2c command, tm6010 needs a reset, in order to properly
work.

While here, add the missing I2C_CLASS_TV_DIGITAL i2c class.

Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: typo fix: the identifer string is wrong
Stefan Ringel [Fri, 5 Feb 2010 22:57:03 +0000 (19:57 -0300)]
V4L/DVB: tm6000: typo fix: the identifer string is wrong

Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: fix: avoid unregister the driver after success
Stefan Ringel [Fri, 5 Feb 2010 22:57:02 +0000 (19:57 -0300)]
V4L/DVB: tm6000: fix: avoid unregister the driver after success

After successfully running tm6000_init_dev, due to a lack of a return(),
the driver runs the error code, unregistering the device.

Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: add Terratec Cinergy Hybrid XE
Mauro Carvalho Chehab [Mon, 8 Feb 2010 10:50:02 +0000 (08:50 -0200)]
V4L/DVB: tm6000: add Terratec Cinergy Hybrid XE

[mchehab@redhat.com: moved the defines for the two beholder boards to a separate commit ]

Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L-DVB: tm6000: add missing BEHOLDER board definitions
Mauro Carvalho Chehab [Mon, 8 Feb 2010 10:48:22 +0000 (08:48 -0200)]
V4L-DVB: tm6000: add missing BEHOLDER board definitions

The missing of those board definitions break compilation

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: add digital init for tm6010
Stefan Ringel [Wed, 3 Feb 2010 20:27:23 +0000 (17:27 -0300)]
V4L/DVB: tm6000: add digital init for tm6010

The init sequence requires extra initialization for tm6010 in digital
mode.

Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tm6000: fix driver compilation
Stefan Ringel [Wed, 3 Feb 2010 21:48:24 +0000 (18:48 -0300)]
V4L/DVB: tm6000: fix driver compilation

The name of xc5000.h include file were wrong

Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: xc3028: fix regression in firmware loading time
Devin Heitmueller [Tue, 19 Jan 2010 04:38:45 +0000 (01:38 -0300)]
V4L/DVB: xc3028: fix regression in firmware loading time

Fix a regression in the firmware loading time where it went from 1080 ms to
4700 ms.  This was noticed when the em28xx based HVR-950 took noticably longer
to load the driver.

Regression introduced in hg 12824.  The developer added an msleep() call with
an argument based on a newly introduced xc3028_ctrl field, which is left
initialized to zero for pretty much every board that is currently supported.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13556a): v4l: Remove unneeded video_device::minor assignments
Laurent Pinchart [Thu, 10 Dec 2009 13:55:34 +0000 (11:55 -0200)]
V4L/DVB (13556a): v4l: Remove unneeded video_device::minor assignments

Now that the video_device registration is tested using
video_is_registered(), drivers don't need to initialize the
video_device::minor field to -1 anymore.

Remove those unneeded assignments.

[mchehab.redhat.com: apply just the tm6000 changes on a separate patch]

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13555a): v4l: Use video_device_node_name() instead of the minor number
Mauro Carvalho Chehab [Tue, 18 May 2010 03:43:18 +0000 (00:43 -0300)]
V4L/DVB (13555a): v4l: Use video_device_node_name() instead of the minor number

Instead of using the minor number in kernel log messages, use the device
node name as returned by the video_device_node_name() function. This
makes debug, informational and error messages easier to understand for
end users.

[mchehab.redhat.com: apply just the tm6000 changes on a separate patch]

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13403): Add new TV cards of Beholder
Dmitri Belimov [Tue, 10 Nov 2009 04:37:43 +0000 (01:37 -0300)]
V4L/DVB (13403): Add new TV cards of Beholder

Add new TV cards of Beholder for autodetect.

With my best regards, Dmitry.

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agotm6000: Remove legacy code to work with older kernel versions
Mauro Carvalho Chehab [Fri, 18 Sep 2009 04:44:24 +0000 (01:44 -0300)]
tm6000: Remove legacy code to work with older kernel versions

Such code has no space upstream and prevents tm6000 from compiling.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12854): tm6000: i2c addresses should now be specified in 7bit formats
Mauro Carvalho Chehab [Tue, 15 Sep 2009 02:13:53 +0000 (23:13 -0300)]
V4L/DVB (12854): tm6000: i2c addresses should now be specified in 7bit formats

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12853): tm6000: Fix almost all warnings at the driver
Mauro Carvalho Chehab [Mon, 14 Sep 2009 20:16:32 +0000 (17:16 -0300)]
V4L/DVB (12853): tm6000: Fix almost all warnings at the driver

Onr warning is left, since it is there for a purpose:
tm6000-core.c:218: warning: ISO C90 forbids mixed declarations and code

It indicates a place where a temporary hack were added. Tests are needed to be sure that
we can remove it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12852): tm6000: Fix compilation against 2.6.31
Mauro Carvalho Chehab [Mon, 14 Sep 2009 19:37:13 +0000 (16:37 -0300)]
V4L/DVB (12852): tm6000: Fix compilation against 2.6.31

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12848): tm6000: Add README with todo list
Mauro Carvalho Chehab [Mon, 14 Sep 2009 16:04:08 +0000 (13:04 -0300)]
V4L/DVB (12848): tm6000: Add README with todo list

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12846): tuner-xc2028: Fix skip code for devices with broken read (tm6000)
Mauro Carvalho Chehab [Tue, 2 Dec 2008 11:30:16 +0000 (08:30 -0300)]
V4L/DVB (12846): tuner-xc2028: Fix skip code for devices with broken read (tm6000)

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12845): tm6000: more buffer handling fixes
Mauro Carvalho Chehab [Fri, 28 Nov 2008 10:39:00 +0000 (07:39 -0300)]
V4L/DVB (12845): tm6000: more buffer handling fixes

Before this patch, we were writing outside vmalloced buffer

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12844): tm6000: avoid writing on a floating pointer
Mauro Carvalho Chehab [Fri, 28 Nov 2008 09:44:06 +0000 (06:44 -0300)]
V4L/DVB (12844): tm6000: avoid writing on a floating pointer

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12843): tm6000: cleanup: remove a test debug code
Mauro Carvalho Chehab [Fri, 28 Nov 2008 09:42:24 +0000 (06:42 -0300)]
V4L/DVB (12843): tm6000: cleanup: remove a test debug code

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12842): tm6000: avoid kernel panic while retrieving the filling buffer
Mauro Carvalho Chehab [Sun, 26 Oct 2008 12:18:53 +0000 (09:18 -0300)]
V4L/DVB (12842): tm6000: avoid kernel panic while retrieving the filling buffer

Instead of storing next buf on a temp var, saved over URB
processing, restore it using get_next_buf.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12841): tm6000: Fix compilation with newer v4l2-dev API
Mauro Carvalho Chehab [Sat, 25 Oct 2008 13:43:04 +0000 (10:43 -0300)]
V4L/DVB (12841): tm6000: Fix compilation with newer v4l2-dev API

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12840): tm6000: add support for HVR900H
Mauro Carvalho Chehab [Sat, 25 Oct 2008 11:56:22 +0000 (08:56 -0300)]
V4L/DVB (12840): tm6000: add support for HVR900H

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12839): tm6000: Another trial to fix analog streaming
Mauro Carvalho Chehab [Sat, 25 Oct 2008 11:56:22 +0000 (08:56 -0300)]
V4L/DVB (12839): tm6000: Another trial to fix analog streaming

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12838): tm6000: Fix color support on tm6010
Mauro Carvalho Chehab [Sat, 25 Oct 2008 11:56:16 +0000 (08:56 -0300)]
V4L/DVB (12838): tm6000: Fix color support on tm6010

TM6010 uses some different registers for format support.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12837): tm6000: make tree buildable
Maykel Moya [Mon, 28 Apr 2008 22:20:26 +0000 (19:20 -0300)]
V4L/DVB (12837): tm6000: make tree buildable

Signed-off-by: Maykel Moya <moya@infomed.sld.cu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12836): tm6000: revert to an old way to copy video
Mauro Carvalho Chehab [Wed, 9 Apr 2008 11:07:20 +0000 (08:07 -0300)]
V4L/DVB (12836): tm6000: revert to an old way to copy video

The new way is causing machine hangups. This one works.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12835): tm6000: Cleanups to work like em28xx-video
Mauro Carvalho Chehab [Wed, 9 Apr 2008 04:49:19 +0000 (01:49 -0300)]
V4L/DVB (12835): tm6000: Cleanups to work like em28xx-video

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12834): tm6000: Fix two warnings
Mauro Carvalho Chehab [Fri, 11 Jan 2008 16:55:45 +0000 (13:55 -0300)]
V4L/DVB (12834): tm6000: Fix two warnings

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12833): tm6000: add a proper init code for -alsa
Mauro Carvalho Chehab [Fri, 11 Jan 2008 16:51:45 +0000 (13:51 -0300)]
V4L/DVB (12833): tm6000: add a proper init code for -alsa

Uses about the same initialization code as defined on usbaudio.c.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12832): tm6000: allow compilation of tm6000-alsa module
Mauro Carvalho Chehab [Fri, 11 Jan 2008 16:19:45 +0000 (13:19 -0300)]
V4L/DVB (12832): tm6000: allow compilation of tm6000-alsa module

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12831): tm6000: Convert cx88-alsa into tm6000-alsa
Mauro Carvalho Chehab [Fri, 11 Jan 2008 16:19:09 +0000 (13:19 -0300)]
V4L/DVB (12831): tm6000: Convert cx88-alsa into tm6000-alsa

- Remove cx88 specific setups;
- Add tm6000 specific start/stop commands;
- Do CodingStyle cleanups.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12830): tm6000: copy cx88-alsa as tm6000-alsa
Mauro Carvalho Chehab [Fri, 11 Jan 2008 13:28:50 +0000 (10:28 -0300)]
V4L/DVB (12830): tm6000: copy cx88-alsa as tm6000-alsa

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12829): tm6000: several changes on usb preparation trying to avoid -EPROTO...
Mauro Carvalho Chehab [Thu, 10 Jan 2008 20:27:26 +0000 (17:27 -0300)]
V4L/DVB (12829): tm6000: several changes on usb preparation trying to avoid -EPROTO errors

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12828): tm6000: fixes several CodingStyle and do some cleanups
Mauro Carvalho Chehab [Thu, 10 Jan 2008 01:44:51 +0000 (22:44 -0300)]
V4L/DVB (12828): tm6000: fixes several CodingStyle and do some cleanups

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12827): tm6000: fix image hangs
Mauro Carvalho Chehab [Wed, 9 Jan 2008 21:12:39 +0000 (18:12 -0300)]
V4L/DVB (12827): tm6000: fix image hangs

A previous committed patch hanged image output. This patch corrects this issue.
It also warrants that buffer is updated for each frame0+frame1 frame set.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12826): tm6000: adds 10ms delay between two consecutive i2c write ops
Mauro Carvalho Chehab [Tue, 8 Jan 2008 14:27:59 +0000 (11:27 -0300)]
V4L/DVB (12826): tm6000: adds 10ms delay between two consecutive i2c write ops

tm6000 original driver seems to use a delay between two consecutive i2c write
operations.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12825): tm6000: I2C reading operations is not reliable on tm6000
Mauro Carvalho Chehab [Mon, 14 Sep 2009 13:23:20 +0000 (10:23 -0300)]
V4L/DVB (12825): tm6000: I2C reading operations is not reliable on tm6000

tm6000 sometimes can't read from i2c, but this is currently required for
tuner-xc2028 to work.

This patch adds an option to tuner-xc2028 to not rely on i2c reading.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12824): tuner-xc2028: adds an option to send i2c data on slower speed
Mauro Carvalho Chehab [Tue, 8 Jan 2008 14:26:59 +0000 (11:26 -0300)]
V4L/DVB (12824): tuner-xc2028: adds an option to send i2c data on slower speed

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12823): tm6000: Uses another method for handling incomplete packets
Mauro Carvalho Chehab [Tue, 8 Jan 2008 14:25:57 +0000 (11:25 -0300)]
V4L/DVB (12823): tm6000: Uses another method for handling incomplete packets

This requires a little more memory, and some memcpy to work, but the logic is
simpler than the previous method.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12822): tm6000: Add support for tm6010
Mauro Carvalho Chehab [Tue, 8 Jan 2008 14:19:22 +0000 (11:19 -0300)]
V4L/DVB (12822): tm6000: Add support for tm6010

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12821): tm6000: update USB request names and clean up i2c routine
Chris Pascoe [Sat, 24 Nov 2007 07:34:42 +0000 (04:34 -0300)]
V4L/DVB (12821): tm6000: update USB request names and clean up i2c routine

Update the descriptions of the USB request types so that they match what
we now know they do.

Rework the i2c_xfer function so that it is more explicit what sort of I2C
transfers it is that the tm6000 can't perform.

Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12820): tm6000: fix i2c readings
Christopher Pascoe [Fri, 23 Nov 2007 16:18:56 +0000 (13:18 -0300)]
V4L/DVB (12820): tm6000: fix i2c readings

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12819): tm6000: mts parameter has changed on tuner-xc2028.c
Mauro Carvalho Chehab [Fri, 23 Nov 2007 16:00:18 +0000 (13:00 -0300)]
V4L/DVB (12819): tm6000: mts parameter has changed on tuner-xc2028.c

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12818): tm6000: Use dvb_frontend_detach instead of single symbol_put commands
Michel Ludwig [Mon, 19 Nov 2007 09:10:54 +0000 (06:10 -0300)]
V4L/DVB (12818): tm6000: Use dvb_frontend_detach instead of single symbol_put commands

Thanks to Mike Krufky for pointed that one out. Also include some minor
cleanups.

Signed-off-by: Michel Ludwig <michel.ludwig@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>