GitHub/LineageOS/android_kernel_motorola_exynos9610.git
15 years agoV4L/DVB (12713): em28xx: Cleanups at ir_i2c handler
Mauro Carvalho Chehab [Tue, 8 Sep 2009 17:07:05 +0000 (14:07 -0300)]
V4L/DVB (12713): em28xx: Cleanups at ir_i2c handler

There are some extra parenthesis at the clauses, and some switch() tests
for boards that don't have i2c ir. Remove those extra code.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12712): em28xx: properly load ir-kbd-i2c when needed
Mauro Carvalho Chehab [Tue, 8 Sep 2009 17:04:41 +0000 (14:04 -0300)]
V4L/DVB (12712): em28xx: properly load ir-kbd-i2c when needed

Currently, the logic to load ir i2c ancillary module is broken. It is
associated to Hauppauge devices with IR flag on their eeprom, no matter
if the device uses i2c or em28xx direct IR support. That's wrong.

Instead, add a flag to the boards that use i2c IR chips and load the
module only for those devices and if ir is not disabled.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12701): saa7134: ir-kbd-i2c init data needs a persistent object
Mauro Carvalho Chehab [Mon, 7 Sep 2009 05:22:01 +0000 (02:22 -0300)]
V4L/DVB (12701): saa7134: ir-kbd-i2c init data needs a persistent object

ir-kbd-i2c's ir_probe() function can be called much later (i.e. at
ir-kbd-i2c module load), than the lifetime of a struct IR_i2c_init_data
allocated off of the stack in cx18_i2c_new_ir() at registration time.
Make sure we pass a pointer to a persistent IR_i2c_init_data object at
i2c registration time.

Thanks to Brian Rogers, Dustin Mitchell, Andy Walls and Jean Delvare to
rise this question.

Before this patch, if ir-kbd-i2c were probed after SAA7134, trash data
were used.

Compile tested only, but the patch is identical to em28xx one. So, it
should work properly.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12699): cx18: ir-kbd-i2c initialization data should point to a persistent...
Andy Walls [Sat, 5 Sep 2009 13:58:37 +0000 (10:58 -0300)]
V4L/DVB (12699): cx18: ir-kbd-i2c initialization data should point to a persistent object

ir-kbd-i2c's ir_probe() function can be called much later (i.e. at ir-kbd-i2c
module load), than the lifetime of a struct IR_i2c_init_data allocated off of
the stack in cx18_i2c_new_ir() at registration time.  Make sure we pass
a pointer to a persistent IR_i2c_init_data object at i2c registration time.

Thanks to Brian Rogers for pointing out a solution, and Dustin Mitchell for
testing against a 2.6.30 kernel.

Reported-by: Dustin Mitchell <soxslayer@gmail.com>
Reported-by: Brian Rogers <brian@xyzw.org>
Tested-by: Dustin Mitchell <soxslayer@gmail.com>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12698): em28xx: ir-kbd-i2c init data needs a persistent object
Mauro Carvalho Chehab [Mon, 7 Sep 2009 05:16:47 +0000 (02:16 -0300)]
V4L/DVB (12698): em28xx: ir-kbd-i2c init data needs a persistent object

ir-kbd-i2c's ir_probe() function can be called much later (i.e. at
ir-kbd-i2c module load), than the lifetime of a struct IR_i2c_init_data
allocated off of the stack in cx18_i2c_new_ir() at registration time.
Make sure we pass a pointer to a persistent IR_i2c_init_data object at
i2c registration time.

Thanks to Brian Rogers, Dustin Mitchell, Andy Walls and Jean Delvare to
rise this question.

Before this patch, if ir-kbd-i2c were probed after em28xx, trash data
were used. After the patch, no matter what order, it is properly
reported as tested by me:

input: i2c IR (i2c IR (EM2840 Hauppaug as /class/input/input10
ir-kbd-i2c: i2c IR (i2c IR (EM2840 Hauppaug detected at i2c-4/4-0030/ir0 [em28xx #0]

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12707): gspca - sn9c20x: Add SXGA support to MT9M111
Brian Johnson [Thu, 3 Sep 2009 22:10:15 +0000 (19:10 -0300)]
V4L/DVB (12707): gspca - sn9c20x: Add SXGA support to MT9M111

Signed-off-by: Brian Johnson <brijohn@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12706): gspca - sn9c20x: disable exposure/gain controls for MT9M111 sensors.
Brian Johnson [Thu, 3 Sep 2009 22:07:13 +0000 (19:07 -0300)]
V4L/DVB (12706): gspca - sn9c20x: disable exposure/gain controls for MT9M111 sensors.

Using the MT9M111's IFP to handle exposure/gain gives better results.

Signed-off-by: Brian Johnson <brijohn@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12705): gspca - sn9c20x: Add SXGA support to SOI968
Brian Johnson [Wed, 2 Sep 2009 16:14:41 +0000 (13:14 -0300)]
V4L/DVB (12705): gspca - sn9c20x: Add SXGA support to SOI968

Signed-off-by: Brian Johnson <brijohn@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12703): gspca - sn9c20x: Reduces size of object
Joe Perches [Wed, 2 Sep 2009 04:12:13 +0000 (01:12 -0300)]
V4L/DVB (12703): gspca - sn9c20x: Reduces size of object

Use s16 instead of int where possible.
Use struct instead of arrays

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Brian Johnson <brijohn@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12704): gspca - sn9c20x: Fix exposure on SOI968 sensors
Brian Johnson [Wed, 2 Sep 2009 15:39:41 +0000 (12:39 -0300)]
V4L/DVB (12704): gspca - sn9c20x: Fix exposure on SOI968 sensors

Fixes broken exposure on SOI968 webcams that was causing
the camera to display a black screen

Signed-off-by: Brian Johnson <brijohn@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12696): gspca - sonixj / sn9c102: Two drivers for 0c45:60fc and 0c45:613e.
Jean-Francois Moine [Tue, 1 Sep 2009 17:52:04 +0000 (14:52 -0300)]
V4L/DVB (12696): gspca - sonixj / sn9c102: Two drivers for 0c45:60fc and 0c45:613e.

Let 0c45:60fc in sn9c102 and 0c45:613e in gspca-sonixj (sensor not supported).

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12695): gspca - vc032x: Do the LED work with the sensor hv7131r.
Jean-Francois Moine [Tue, 1 Sep 2009 17:02:22 +0000 (14:02 -0300)]
V4L/DVB (12695): gspca - vc032x: Do the LED work with the sensor hv7131r.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12694): gspca - vc032x: Change the start exchanges of the sensor hv7131r.
Jean-Francois Moine [Tue, 1 Sep 2009 16:49:05 +0000 (13:49 -0300)]
V4L/DVB (12694): gspca - vc032x: Change the start exchanges of the sensor hv7131r.

The new exchanges are taken from the information file of the ms-win driver
(usbvm326.inf - webcam 15b8:6002).

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12693): gspca - sunplus: The brightness is signed.
Jean-Francois Moine [Wed, 2 Sep 2009 09:04:14 +0000 (06:04 -0300)]
V4L/DVB (12693): gspca - sunplus: The brightness is signed.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12692): gspca - sunplus: Optimize code.
Jean-Francois Moine [Mon, 31 Aug 2009 09:15:22 +0000 (06:15 -0300)]
V4L/DVB (12692): gspca - sunplus: Optimize code.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12691): gspca - sonixj: Don't use mdelay().
Jean-Francois Moine [Sat, 29 Aug 2009 10:11:58 +0000 (07:11 -0300)]
V4L/DVB (12691): gspca - sonixj: Don't use mdelay().

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12690): gspca - pac7311: Webcam 06f8:3009 added.
Stephane Marguet (Stemp) [Tue, 25 Aug 2009 07:14:04 +0000 (04:14 -0300)]
V4L/DVB (12690): gspca - pac7311: Webcam 06f8:3009 added.

Signed-off-by: Stephane Marguet (Stemp) <smarguet@gmail.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12686): dvb-core: check supported QAM modulations
Janne Grunau [Tue, 1 Sep 2009 22:24:08 +0000 (19:24 -0300)]
V4L/DVB (12686): dvb-core: check supported QAM modulations

Check the modulation in dvb_frontend_check_parameters against
frontend's capabilties for FE_QAM devices.

Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12685): dvb-core: check fe->ops.set_frontend return value
Janne Grunau [Tue, 1 Sep 2009 22:23:09 +0000 (19:23 -0300)]
V4L/DVB (12685): dvb-core: check fe->ops.set_frontend return value

Various frontend driver have parameter checks in their set_frontend
functions and return an error if the parameters are not supported,
tda10021 and cx24116 to name two.

The tuning ioctls FE_SET_FRONTEND/FE_SET_PROPERTY only change values
in the property cache and return before set_frontend is called. If a
set_frontend call in software zigzag algorithm fails and the card was
previously locked it will report a lock and the new parameters but is
still tuned to the old transport. This is not detectable from
userspace.

This change checks the return values of fe->ops.set_frontend and
changes the state to the added FESTATE_ERROR for software zigzag.
No lock will be reported to userspace if the State is FESTATE_ERROR.

Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12684): DVB: make DVB_MAX_ADAPTERS configurable
Janne Grunau [Tue, 1 Sep 2009 22:15:39 +0000 (19:15 -0300)]
V4L/DVB (12684): DVB: make DVB_MAX_ADAPTERS configurable

Support for more than 8 DVB devices is requested regularly so make it
a kconfig variable instead of a header define. Values in the range 4-32
are tested.

Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12627): gspca_mr97310a: Add one more vivitar mini cam to the list of CIF...
Hans de Goede [Thu, 3 Sep 2009 07:14:36 +0000 (04:14 -0300)]
V4L/DVB (12627): gspca_mr97310a: Add one more vivitar mini cam to the list of CIF cams

gspca_mr97310a: Add one more vivitar mini cam to the list of CIF cams

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12626): gspca_mr97310a: Allow overriding of detected sensor type
Hans de Goede [Wed, 2 Sep 2009 12:55:16 +0000 (09:55 -0300)]
V4L/DVB (12626): gspca_mr97310a: Allow overriding of detected sensor type

gspca_mr97310a: Allow overriding of detected sensor type

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12625): Add new V4L2_FMT_FLAG_EMULATED flag to videodev2.h
Hans de Goede [Mon, 31 Aug 2009 14:32:46 +0000 (11:32 -0300)]
V4L/DVB (12625): Add new V4L2_FMT_FLAG_EMULATED flag to videodev2.h

V4L2_FMT_FLAG_EMULATED 0x0002 This format is not native to the device but
emulated through software (usually libv4l2), where possible try to use a
native format instead for better performance.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12624): gspca_mr97310a: Use correct register for CIF type 1 sensor gain...
Hans de Goede [Mon, 17 Aug 2009 15:25:17 +0000 (12:25 -0300)]
V4L/DVB (12624): gspca_mr97310a: Use correct register for CIF type 1 sensor gain settings

gspca_mr97310a: Use correct register for CIF type 1 sensor gain settings

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12623): gspca_mr97310a: Add controls for CIF type 0 sensor cams
Hans de Goede [Fri, 14 Aug 2009 20:11:36 +0000 (17:11 -0300)]
V4L/DVB (12623): gspca_mr97310a: Add controls for CIF type 0 sensor cams

gspca_mr97310a: Add controls for CIF type 0 sensor cams

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12622): gspca_mr97310a: make the probing a bit less chatty
Hans de Goede [Fri, 14 Aug 2009 14:05:38 +0000 (11:05 -0300)]
V4L/DVB (12622): gspca_mr97310a: make the probing a bit less chatty

gspca_mr97310a: make the probing a bit less chatty

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12621): gspca_mr97310a: Move detection of CIF sensor type to probe() function
Hans de Goede [Fri, 14 Aug 2009 13:40:26 +0000 (10:40 -0300)]
V4L/DVB (12621): gspca_mr97310a: Move detection of CIF sensor type to probe() function

gspca_mr97310a: Move detection of CIF sensor type to probe() function,
so that the right controls are set to disabled from the start, rather then
having them disappear all of a sudden when the stream is started.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12620): gspca_mr97310a: cleanup/fixup control handling
Hans de Goede [Fri, 14 Aug 2009 13:15:52 +0000 (10:15 -0300)]
V4L/DVB (12620): gspca_mr97310a: cleanup/fixup control handling

gspca_mr97310a: cleanup/fixup control handling

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12619): gspca: mr97310a fix detection of sensortype for vivicam with id...
Hans de Goede [Fri, 14 Aug 2009 09:56:32 +0000 (06:56 -0300)]
V4L/DVB (12619): gspca: mr97310a fix detection of sensortype for vivicam with id byte of 0x53

gspca: mr97310a fix detection of sensortype for vivicam with id byte of 0x53

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12618): gspca: mr97310a add support for CIF and more VGA camera's
Theodore Kilgore [Fri, 14 Aug 2009 09:51:52 +0000 (06:51 -0300)]
V4L/DVB (12618): gspca: mr97310a add support for CIF and more VGA camera's

This patch adds supports for mr97310a camera's with CIF sensors (2 different
types) and for VGA mr97310a camera with a different sensor then supported
until now.

This patch also add support for controls for one of the 2 CIF sensors, this
was written by Thomas Kaiser <thomas@kaiser-linux.li>

Signed-off-by: Theodore Kilgore <kilgota@auburn.edu>
Signed-off-by: Thomas Kaiser <thomas@kaiser-linux.li>
Signed-off-by: Hans de Goede <hdgoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12617): gspca_pac207: enable higher framerates / lower exposure settings
Hans de Goede [Wed, 29 Jul 2009 11:03:17 +0000 (08:03 -0300)]
V4L/DVB (12617): gspca_pac207: enable higher framerates / lower exposure settings

Now that we've figured out the higher compression settings (supported in
libv4l-0.6.0 and later, so after this patch the driver should be used with
libv4l-0.6.0 or higher only!), we can enable higher framerates. Which
means lower exposure times, which is important for the use of the pac207
in full daylight.

This patch also tweakes the brightness default and the per color gain
balances to use the values which are adviced by Pixart in the pac207
application note.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12616): gspca_pac207: remove a number of unneeded (repeated) register writes
Hans de Goede [Wed, 29 Jul 2009 11:02:50 +0000 (08:02 -0300)]
V4L/DVB (12616): gspca_pac207: remove a number of unneeded (repeated) register writes

gspca_pac207: remove a number of unneeded (repeated) register writes

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12613): cx25840: fix determining the firmware name
Hans Verkuil [Mon, 31 Aug 2009 20:57:52 +0000 (17:57 -0300)]
V4L/DVB (12613): cx25840: fix determining the firmware name

Depending on the model there are three different firmwares to choose from.
Unfortunately if a cx23885 is loaded first, then the global firmware name
is overwritten with that firmware and if ivtv is loaded next, then it
tries to load the wrong firmware. In addition, the original approach would
also overwrite any firmware that the user specified explicitly.

Cc: Jarod Wilson <jarod@wilsonet.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12612): si4713: simplify the code to remove a compiler warning.
Hans Verkuil [Mon, 31 Aug 2009 20:21:04 +0000 (17:21 -0300)]
V4L/DVB (12612): si4713: simplify the code to remove a compiler warning.

The compiler warned about an uninitialized stereo variable. By simplifying
the code it 1) improved readability and 2) fixed the compiler warning.

Acked-by: Eduardo Valentin <eduardo.valentin@nokia.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12600): dvb-usb-remote: return KEY_RESERVED if there's free space for new...
Mauro Carvalho Chehab [Sun, 30 Aug 2009 01:03:47 +0000 (22:03 -0300)]
V4L/DVB (12600): dvb-usb-remote: return KEY_RESERVED if there's free space for new keys

The input subsystem checks if get_keycode works for a scan code. Due to that,
we need to return a valid value when there's some space at the table that
can be used by a scancode.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12599): dvb-usb-remote: Allow dynamically replacing the IR keycodes
Mauro Carvalho Chehab [Sat, 29 Aug 2009 18:27:29 +0000 (15:27 -0300)]
V4L/DVB (12599): dvb-usb-remote: Allow dynamically replacing the IR keycodes

Implements handler for EVIOCGKEYCODE/EVIOCSKEYCODE via adding two new callbacks
to the input device.

Since on dvb-usb a scan code has 16 bits, to fulfill rc5 standard codes, the default
getkeycode/setkeycode input methods would require the driver to spend up to 64 Kb of
a sparse table. Instead, add two new callbacks to the event device.

With this, it is now possible to replace the keycode tables. There are, however, a few
implementation details at the current patch:

1) It will replace the existing device keytable, instead of creating an instance
of the data. This works. However, if two devices pointing to the same table
were connected, changing the IR table of one will also change the IR table for
the other (the solution for this one is simple: just kmalloc some memory);

2) In order to change the scan code, you need first to change the key to
KEY_RESERVED or KEY_UNKNOWN to free some space at the table (solution: allocate
some additional space for newer scan codes or allow dynamic table grow);

3) The table size cannot be extended. It would be easy to allow the table to
grow dynamically: just calling kmalloc(size+1); kfree(old). Yet, maybe we can
just create a bigger table with a fixed size, like for example a table with 128
entries. This should be enough even for a very big IR.

The current issues should be addressed on a later patch.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12598): dvb-usb: store rc5 custom and data at the same field
Mauro Carvalho Chehab [Sat, 29 Aug 2009 18:19:31 +0000 (15:19 -0300)]
V4L/DVB (12598): dvb-usb: store rc5 custom and data at the same field

In order to be closer to V4L IR implementation, it is needed to replace
u8 custom, data
to:
u16 scan

This allows using non-rc5 mappings, like the 8 bit keycodes used on older
protocols. It will also allow future implementations of rc6 keystrokes
when needed.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12595): common/ir: use a struct for keycode tables
Mauro Carvalho Chehab [Sat, 29 Aug 2009 17:15:55 +0000 (14:15 -0300)]
V4L/DVB (12595): common/ir: use a struct for keycode tables

Currently, V4L uses a scancode table whose index is the scancode and
the value is the keycode. While this works, it has some drawbacks:

1) It requires that the scancode to be at the range 00-7f;

2) keycodes should be masked on 7 bits in order for it to work;

3) due to the 7 bits approach, sometimes it is not possible to replace
the default keyboard to another one with a different encoding rule;

4) it is different than what is done with dvb-usb approach;

5) it requires a typedef for it to work. This is not a recommended
Linux CodingStyle.

This patch is part of a larger series of IR changes. It basically
replaces the IR_KEYTAB_TYPE tables by a structured table:
struct ir_scancode {
       u16     scancode;
       u32     keycode;
};

This is very close to what dvb does. So, a further integration with DVB
code will be easy.

While we've changed the tables, for now, the IR keycode handling is still
based on the old approach.

The only notable effect is the redution of about 35% of the ir-common
module size:

   text    data     bss     dec     hex filename
   6721   29208       4   35933    8c5d old/ir-common.ko
   5756   18040       4   23800    5cf8 new/ir-common.ko

In thesis, we could be using above u8 for scancode, reducing even more the size
of the module, but defining it as u16 is more convenient, since, on dvb, each
scancode has up to 16 bits, and we currently have a few troubles with rc5, as their
scancodes are defined with more than 8 bits.

This patch itself shouldn't be doing any functional changes.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12501): gspca - sonixj: Do the ov7660 sensor work again.
Jean-Francois Moine [Tue, 25 Aug 2009 09:14:54 +0000 (06:14 -0300)]
V4L/DVB (12501): gspca - sonixj: Do the ov7660 sensor work again.

- bad sensor power
- bad edge gain/threshold
- set back the auto gain
- light frequency filter inverted

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12469): fix bad whitespaces at cx88_geniatech_x8000_mt
Mauro Carvalho Chehab [Thu, 20 Aug 2009 13:14:45 +0000 (10:14 -0300)]
V4L/DVB (12469): fix bad whitespaces at cx88_geniatech_x8000_mt

It were using 7 spaces instead of tab for indent.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12591): em28xx: Add entry for GADMEI UTV330+ and related IR keymap
Mauro Carvalho Chehab [Sun, 30 Aug 2009 16:05:56 +0000 (13:05 -0300)]
V4L/DVB (12591): em28xx: Add entry for GADMEI UTV330+ and related IR keymap

[mchehab@redhat.com: Fix a few wrong IR keymaps]
Signed-off-by: Shine Liu <shinel@foxmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12589): Add support for RoverMedia TV Link Pro FM
Eugene Yudin [Sat, 29 Aug 2009 12:32:11 +0000 (09:32 -0300)]
V4L/DVB (12589): Add support for RoverMedia TV Link Pro FM

This patch add support for RoverMedia TV Link Pro FM (LR138 REV:I) card
based on saa7134.

Signed-off-by: Eugene Yudin <Eugene.Yudin@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12587): Add support BeholdTV X7 card
Dmitri Belimov [Wed, 26 Aug 2009 04:01:12 +0000 (01:01 -0300)]
V4L/DVB (12587): Add support BeholdTV X7 card

Add support our new TV card based on xc5000 and saa7134.
Analog TV works well.

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12586): Update ALSA capture controls according to selected source.
Oldřich Jedlička [Sat, 22 Aug 2009 18:13:51 +0000 (15:13 -0300)]
V4L/DVB (12586): Update ALSA capture controls according to selected source.

The patch introduces new snd_saa7134_capsrc_set (code taken from
snd_saa7134_capsrc_put) that updates also the ALSA capture controls during
snd_card_saa7134_capture_prepare and snd_saa7134_capsrc_put.

There can be much more work done in order to unify the control of the card
(now the card's capture source is tuned/switched in saa7134-video.c too), but
I don't have enough time. This work could be a starting point, but it can be
applied as-is too (it doesn't need any further work to make it working).

Signed-off-by: Oldřich Jedlička <oldium.pro@seznam.cz>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12585): Add remote support to cph03x bttv card
Mauro Carvalho Chehab [Sat, 22 Aug 2009 17:43:50 +0000 (14:43 -0300)]
V4L/DVB (12585): Add remote support to cph03x bttv card

Hello kernel developers.
I found a bug report from an user in launchpad. I just copy it here. It
includes patch.

I don't own the necessary hardware to test it but the patch looks
trivial.

I'm not subscribed to this list, so please CC me. Thanks!

Here is the text:

"""
remote control for my tv card doesnt work

I have Askey CPH03x TV Capturer.
When I load bttv module with "card=59" option which is proper for this
tv card,
I can watch tv with sound but my remote control doesnt work. There is no
ir
event in /proc/bus/input/device .
When bttv module is loaded with "card=137" option remote control works
very
well.

$ cat /proc/bus/input/devices
.......
........
: Bus=0001 Vendor=109e Product=0350 Version=0001
N: Name="bttv IR (card=137)"
P: Phys=pci-0000:00:0d.0/ir0
S: Sysfs=/devices/pci0000:00/0000:00:0d.0/input/input144
U: Uniq=
H: Handlers=kbd event6
B: EV=100003
B: KEY=2c0814 100004 0 0 0 4 2008000 2090 2001 1e0000 4400 0 ffc

Unfortunately there is no sound.
"""

https://bugs.launchpad.net/ubuntu/+bug/239733
http://bugzilla.kernel.org/show_bug.cgi?id=11995

--

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12584): Support for Kaiser Baas ExpressCard Dual HD Tuner
James A Webb [Tue, 4 Aug 2009 05:38:05 +0000 (02:38 -0300)]
V4L/DVB (12584): Support for Kaiser Baas ExpressCard Dual HD Tuner

The card is reported as YUAN High-Tech Development Co., Ltd STK7700D

[mchehab@redhat.com: fix merge conflicts and properly name USB PID]
Cc: Patrick Boettcher <patrick.boettcher@desy.de>
Signed-off-by: James A Webb <jamesawebb@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12583): firedtv: combine some debug logging code
Stefan Richter [Sat, 1 Aug 2009 11:05:16 +0000 (08:05 -0300)]
V4L/DVB (12583): firedtv: combine some debug logging code

Shrinks source and kernel object size a bit.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12582): The current AVC debugging can clog the log down a lot since many
Henrik Kurelid [Sat, 1 Aug 2009 11:04:06 +0000 (08:04 -0300)]
V4L/DVB (12582): The current AVC debugging can clog the log down a lot since many

applications tend to check the signal strength very often.  This patch
enables users to select which AVC messages to log using a bitmask.  In
addition, it also enables the possibility to debug application PMTs sent
to the driver.  This will be usable since the CA support is still poorly
tested for lots of CAMs and CA systems.

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>
15 years agoV4L/DVB (12578): tda18271: allow drivers to request RF tracking filter calibration...
Michael Krufky [Thu, 27 Aug 2009 19:58:06 +0000 (16:58 -0300)]
V4L/DVB (12578): tda18271: allow drivers to request RF tracking filter calibration during attach

On certain master / slave dual tuner configurations, tuning performance
improves when the RF tracking filter calibration is performed sequentially.

This patch allows for the bridge driver to specify this behavior in the
configuration structure at attach-time.

The "cal" module option will continue to override this attach-time
configuration: set cal=0 to prevent RF tracking filter calibration
on startup, and set cal=1 to force it.

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Reviewed-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12577): tda18271: remove excess whitespace from tda_foo printk macros
Michael Krufky [Thu, 27 Aug 2009 01:43:16 +0000 (22:43 -0300)]
V4L/DVB (12577): tda18271: remove excess whitespace from tda_foo printk macros

remove excess spacing from the tda_foo printk macros & line things up better

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12576): tda18271: simplify debug printk macros
Michael Krufky [Thu, 27 Aug 2009 01:43:16 +0000 (22:43 -0300)]
V4L/DVB (12576): tda18271: simplify debug printk macros

Rename dprintk to tda_dprintk to be consistent with the other tda_foo macros.

Move KERN_DEBUG facility level to tda_dprintk.

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12575): Fix test of bandwidth range in cx22700_set_tps()
Roel Kluin [Thu, 27 Aug 2009 01:13:43 +0000 (22:13 -0300)]
V4L/DVB (12575): Fix test of bandwidth range in cx22700_set_tps()

For the bandwidth to be less than 8 MHZ and greater than 6 MHZ is logically
impossible.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12574): support AverMedia Studio 505
Vasiliy Temnikov [Thu, 27 Aug 2009 01:10:55 +0000 (22:10 -0300)]
V4L/DVB (12574): support AverMedia Studio 505

Added support to AverMedia Studio 505

[dougsland@redhat.com: fixed rejects and removed the change to add dk as default secam variant]
[mchehab@redhat.com: fix a few CodingStyle issues]
Signed-off-by: Vasiliy Temnikov <vaka@newmail.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12573): FM1216MK5 FM radio
Dmitri Belimov [Thu, 27 Aug 2009 01:06:28 +0000 (22:06 -0300)]
V4L/DVB (12573): FM1216MK5 FM radio

Implement Philips FM1216MK5.

1. Implement get_stereo function.
2. Add correct data byte for FM radio mode

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12567): ir-keymaps: use KEY_CAMERA for snapshots
Mauro Carvalho Chehab [Sat, 29 Aug 2009 12:48:21 +0000 (09:48 -0300)]
V4L/DVB (12567): ir-keymaps: use KEY_CAMERA for snapshots

KEY_CAMERA is already used for a long time with webcam drivers to take a picture.
On other media drivers, due to the lack of a snapshot button, random KEY codes
were sent, being KEY_SHUFFLE the most used one, probably due to cut-and-paste
from other remotes, since one of them uses the same key for snapshot and shuffle.

The better is to use KEY_CAMERA on all drivers solving this issue. This
follows the IR standard map as defined at:
http://linuxtv.org/wiki/index.php/Remote_Controllers

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12566): ir-keymaps: Fix IR mappings for channel and volume +/- keys
Mauro Carvalho Chehab [Sat, 29 Aug 2009 12:37:00 +0000 (09:37 -0300)]
V4L/DVB (12566): ir-keymaps: Fix IR mappings for channel and volume +/- keys

Use standard definitions for channel controls, as defined at:
http://linuxtv.org/wiki/index.php/Remote_Controllers

While here, fix a few broken up/down/left/right mappings

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12565): ir-keymaps: standardize timeshift key
Mauro Carvalho Chehab [Sat, 29 Aug 2009 12:06:07 +0000 (09:06 -0300)]
V4L/DVB (12565): ir-keymaps: standardize timeshift key

Each remote were using a different keycode for timeshift. Use the same
keycode for all of them, using the map as defined at:
http://linuxtv.org/wiki/index.php/Remote_Controllers

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12564): ir-keymaps: Replace most KEY_[A-Z] to the proper definitions
Mauro Carvalho Chehab [Sat, 29 Aug 2009 12:01:54 +0000 (09:01 -0300)]
V4L/DVB (12564): ir-keymaps: Replace most KEY_[A-Z] to the proper definitions

There are several IR's that were using IR to type a letter that it is
known by some random application. Instead, the better is to use
the standard definitions found at:
http://linuxtv.org/wiki/index.php/Remote_Controllers

And, if needed, submit a patch for the application to understand the
media keys.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12563): ir-keymaps: add a link to the IR standard layout page
Mauro Carvalho Chehab [Sat, 29 Aug 2009 11:43:20 +0000 (08:43 -0300)]
V4L/DVB (12563): ir-keymaps: add a link to the IR standard layout page

While we're still discussing it, let's point to the wiki page. In
the future, this should be added at V4L2 API spec DocBooks.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12562): ir-keymaps: replace KEY_KP[0-9] to KEY_[0-9]
Mauro Carvalho Chehab [Sat, 29 Aug 2009 11:37:58 +0000 (08:37 -0300)]
V4L/DVB (12562): ir-keymaps: replace KEY_KP[0-9] to KEY_[0-9]

This is needed to match the standard mapping defined at:
http://linuxtv.org/wiki/index.php/Remote_Controllers#Remote_Controllers

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12560): Fix a number of EXPORT_SYMBOL warnings
Mauro Carvalho Chehab [Thu, 27 Aug 2009 12:54:44 +0000 (09:54 -0300)]
V4L/DVB (12560): Fix a number of EXPORT_SYMBOL warnings

Make Checkpatch tool happy:

-:2349: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable

On all cases, it were just a blank line at the wrong place. Yet, fixing it is trivial

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12559): Properly indent comments with tabs
Mauro Carvalho Chehab [Thu, 27 Aug 2009 12:50:21 +0000 (09:50 -0300)]
V4L/DVB (12559): Properly indent comments with tabs

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12558): CodingStyle: Use [0x0f] instead of [ 0x0f ]
Mauro Carvalho Chehab [Thu, 27 Aug 2009 12:31:30 +0000 (09:31 -0300)]
V4L/DVB (12558): CodingStyle: Use [0x0f] instead of [ 0x0f ]

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12557): Use C99 comment CodingStyle
Mauro Carvalho Chehab [Thu, 27 Aug 2009 12:28:48 +0000 (09:28 -0300)]
V4L/DVB (12557): Use C99 comment CodingStyle

The ir-keymaps.c has frequent additions. As people tend to copy an old
keyboard entry, a bad CodingStyle at an ancient entry may result on a
freshly bad CodingStyle patch.

So, better to fix the CodingStyle for the entire file.

This patch is the first of a series of patches fixing it, generated by
some perl magic plus manual handling.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12554): FM TX: si4713: Add document file
Eduardo Valentin [Sat, 8 Aug 2009 12:01:34 +0000 (09:01 -0300)]
V4L/DVB (12554): FM TX: si4713: Add document file

This patch adds a document file for si4713 device driver.
It describes the driver interfaces and organization.

Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12553): FM TX: si4713: Add Kconfig and Makefile entries
Hans Verkuil [Sat, 8 Aug 2009 12:00:37 +0000 (09:00 -0300)]
V4L/DVB (12553): FM TX: si4713: Add Kconfig and Makefile entries

Simply add Makefile and Kconfig entries.

[hverkuil@xs4all.nl: auto-select I2C_SI4713]
Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12552): FM TX: si4713: Add files to handle si4713 i2c device
Eduardo Valentin [Sat, 8 Aug 2009 11:46:53 +0000 (08:46 -0300)]
V4L/DVB (12552): FM TX: si4713: Add files to handle si4713 i2c device

This patch adds files to control si4713 devices.
Internal functions to control device properties
and initialization procedures are into these files.
Also, a v4l2 subdev interface is also exported.
This way other drivers can use this as v4l2 i2c subdevice.

Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12551): FM TX: si4713: Add files to add radio interface for si4713
Eduardo Valentin [Sat, 8 Aug 2009 11:45:49 +0000 (08:45 -0300)]
V4L/DVB (12551): FM TX: si4713: Add files to add radio interface for si4713

This patch adds files which creates the radio interface
for si4713 FM transmitter (modulator) devices.

In order to do the real access to device registers, this
driver uses the v4l2 subdev interface exported by si4713 i2c driver.

Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12549): v4l2: video device: Add FM TX controls default configurations
Eduardo Valentin [Tue, 11 Aug 2009 21:49:12 +0000 (18:49 -0300)]
V4L/DVB (12549): v4l2: video device: Add FM TX controls default configurations

This patch adds basic configurations for FM TX extended controls.
That includes controls names, menu strings, pointer identification,
type classification and flags configuration.

Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12548): v4l2: video device: Add V4L2_CTRL_CLASS_FM_TX controls
Eduardo Valentin [Sat, 8 Aug 2009 11:38:58 +0000 (08:38 -0300)]
V4L/DVB (12548): v4l2: video device: Add V4L2_CTRL_CLASS_FM_TX controls

This patch adds a new class of extended controls. This class
is intended to support FM Radio Modulators properties such as:
rds, audio limiters, audio compression, pilot tone generation,
tuning power levels and preemphasis properties.

Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12547): v4l2-subdev.h: Add g/s_modulator callbacks to subdev api
Eduardo Valentin [Sat, 8 Aug 2009 11:34:18 +0000 (08:34 -0300)]
V4L/DVB (12547): v4l2-subdev.h: Add g/s_modulator callbacks to subdev api

Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12543): v4l: introduce string control support.
Hans Verkuil [Tue, 11 Aug 2009 21:47:18 +0000 (18:47 -0300)]
V4L/DVB (12543): v4l: introduce string control support.

The upcoming RDS encoder needs support for string controls. This patch
implements the core implementation.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12492): saa7134-input: don't probe for the Pinnacle remotes anymore
hermann pitton [Thu, 20 Aug 2009 01:30:58 +0000 (22:30 -0300)]
V4L/DVB (12492): saa7134-input: don't probe for the Pinnacle remotes anymore

With the recent improvements we don't need to probe anymore, if we know
the i2c address of the receiver.

The address of the receiver for the remote with the gray buttons is not
confirmed anywhere, but it is very unlikely to see it on something else.

We want to have that information anyway.

BTW, those remaining still probing, please join.

Signed-off-by: hermann pitton <hermann-pitton@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12491): remove unnecessary power management primitive in stk-webcam
Oliver Neukum [Wed, 19 Aug 2009 19:41:59 +0000 (16:41 -0300)]
V4L/DVB (12491): remove unnecessary power management primitive in stk-webcam

This patch removes an unneeded power management primitive.
Power management is automatically enabled as probe ends.

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12490): Report only 32kHz for ALSA
Oldřich Jedlička [Tue, 18 Aug 2009 19:24:54 +0000 (16:24 -0300)]
V4L/DVB (12490): Report only 32kHz for ALSA

There are several reasons:

 - SAA7133/35 uses DDEP (DemDec Easy Programming mode), which works in 32kHz
   only
 - SAA7134 for TV mode uses DemDec mode (32kHz)
 - Radio works in 32kHz only
 - When recording 48kHz from Line1/Line2, switching of capture source to TV
   means switching to 32kHz without any frequency translation

Signed-off-by: Oldřich Jedlička <oldium.pro@seznam.cz>
Acked-by: hermann pitton <hermann-pitton@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12489): pwc - fix few use-after-free and memory leaks
Dmitry Torokhov [Fri, 14 Aug 2009 05:22:52 +0000 (02:22 -0300)]
V4L/DVB (12489): pwc - fix few use-after-free and memory leaks

I just happen to peek inside the PWC driver and did not like what I saw
there. Please consider applying the patch below.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12488): Add RDS config for BeholdTV cards
Dmitri Belimov [Tue, 11 Aug 2009 00:47:29 +0000 (21:47 -0300)]
V4L/DVB (12488): Add RDS config for BeholdTV cards

Add config of RDS part for the BeholdTV tuners.

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12487): Fix control AC-3 of the 6752HS
Dmitri Belimov [Mon, 10 Aug 2009 07:48:16 +0000 (04:48 -0300)]
V4L/DVB (12487): Fix control AC-3 of the 6752HS

Fix error for AC-3 control of the 6752HS MPEG-2 coder.

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12486): cx88: fix TBS 8920 card support
Igor M. Liplianin [Wed, 29 Jul 2009 22:18:28 +0000 (19:18 -0300)]
V4L/DVB (12486): cx88: fix TBS 8920 card support

It does matter to set explicitly gpio0 value in
cx88_board structure for TBS 8920 card.

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12485): zl10353: correct implementation of FE_READ_UNCORRECTED_BLOCKS
Aleksandr V. Piskunov [Sun, 2 Aug 2009 19:01:19 +0000 (16:01 -0300)]
V4L/DVB (12485): zl10353: correct implementation of FE_READ_UNCORRECTED_BLOCKS

Makes zl10353 a bit more DVB API compliant:
FE_READ_UNCORRECTED_BLOCKS - keep a counter of UNC blocks
FE_GET_FRONTEND - return last set frequency instead of zero

Signed-off-by: Aleksandr V. Piskunov <alexandr.v.piskunov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12483): Use DIV_ROUND_CLOSEST
Julia Lawall [Sat, 1 Aug 2009 19:48:41 +0000 (16:48 -0300)]
V4L/DVB (12483): Use DIV_ROUND_CLOSEST

The kernel.h macro DIV_ROUND_CLOSEST performs the computation (x + d/2)/d
but is perhaps more readable.

The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@haskernel@
@@

@depends on haskernel@
expression x,__divisor;
@@

- (((x) + ((__divisor) / 2)) / (__divisor))
+ DIV_ROUND_CLOSEST(x,__divisor)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12482): firedtv: add PID filtering for SW zigzag retune
Henrik Kurelid [Sat, 1 Aug 2009 11:02:38 +0000 (08:02 -0300)]
V4L/DVB (12482): firedtv: add PID filtering for SW zigzag retune

The AVC protocol uses the same command for tuning and PID filtering and
since dvb-core uses a software zigzagging to do automatic retuning this
could cause all PID filters to be cleared.  PID filter information is
now included in all DSD commands to the card.

Background:

There is a problem in the firedtv driver that causes recordings to stop
if the SW zigzag algorithm in dvb-core kicks in with a retune after the
application has set up the PID filters.  Since tuning and setting PID
filters uses the same AVC command (DSD) and only the replace subfunction
is supported by the card, it is not possible to do a retune without
setting the PID filters.  This means that the PID filtering has to be
sent in each tune.

This problem applies to C and T cards since S and S2 cards tune using a
vendor specific command.  The patch corrects the problem by sending the
PID list in each tune.  I have tested it on my T card with a good
result.

How to trigger problem:  Zap to a channel and output AV to a file, e.g.
"tzap -c channels.conf SVT1 -r -o SVT1.ts".  After a short while, pull
the antenna cable from the card.  The lock on the channel will disappear
and the TS file will stop increasing in size. Wait a couple of seconds.
Replug the cable again.  You will get a lock on the channel again, but
the TS file will never increase in size agains sinze no PIDS are
filtered.

Tested with kaffeine with DVB-T and DVB-C:  Fixes retuning after antenna
was plugged out and back in with DVB-T.  Does not fix this with DVB-C,
but also doesn't regress on DVB-C.

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>
15 years agoV4L/DVB (12481): Fix lowband tuning with tda8261
Julian Scheel [Fri, 31 Jul 2009 16:40:43 +0000 (13:40 -0300)]
V4L/DVB (12481): Fix lowband tuning with tda8261

Attached is a patch which fixes tuning to low frequency channels with
stb0899+tda8261 cards like the KNC TV-Station DVB-S2.
The cause of the issue was a broken if construct, which should have been
an if/else if, so that the setting for the lowest matching frequency is
applied.

Without this patch for example tuning to "arte" on Astra 19.2, 10744MHz
SR22000 failed most times and when it failed the communication between
driver and tda8261 was completely broken.
This problem disappears with the attached patch.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB: af9015: add new USB ID for KWorld PlusTV Dual DVB-T Stick (DVB-T 399U)
Mart Raudsepp [Fri, 24 Jul 2009 16:45:41 +0000 (13:45 -0300)]
V4L/DVB: af9015: add new USB ID for KWorld PlusTV Dual DVB-T Stick (DVB-T 399U)

Add new USB ID (1b80:e400) for KWorld PlusTV Dual DVB-T Stick (DVB-T 399U).
The model number on the devices sticker label is "KW-DVB-T 399UR".

Signed-off-by: Mart Raudsepp <mart.raudsepp@artecdesign.ee>
Acked-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12478): ARRAY_SIZE changes
Mauro Carvalho Chehab [Wed, 22 Jul 2009 03:02:29 +0000 (00:02 -0300)]
V4L/DVB (12478): ARRAY_SIZE changes

These changes were a direct result of using a semantic patch
More information can be found at http://www.emn.fr/x-info/coccinelle/

[mchehab@redhat.com: fix a merge conflict]
Signed-off-by: Stoyan Gaydarov <sgayda2@uiuc.edu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12477): Use dst_type field instead of type_flags
Julia Lawall [Tue, 21 Jul 2009 16:47:46 +0000 (13:47 -0300)]
V4L/DVB (12477): Use dst_type field instead of type_flags

It seems from other code that it is the dst_type field rather than the
type_flags field that contains values of the form DST_TYPE_IS...
The type_flags field contains values of the form DST_TYPE_HAS...

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

// <smpl>
@@ struct dst_state E; @@

(
*E.type_flags ==
  \( DST_TYPE_IS_SAT\|DST_TYPE_IS_TERR\|DST_TYPE_IS_CABLE\|DST_TYPE_IS_ATSC \)
|
*E.type_flags !=
  \( DST_TYPE_IS_SAT\|DST_TYPE_IS_TERR\|DST_TYPE_IS_CABLE\|DST_TYPE_IS_ATSC \)
)
// </smpl>

Cc: Manu Abraham <abraham.manu@gmail.com>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12475): Add support for Humax/Coex DVB-T USB Stick 2.0 High Speed
Nam Phạm Thành [Sun, 12 Jul 2009 14:51:10 +0000 (11:51 -0300)]
V4L/DVB (12475): Add support for Humax/Coex DVB-T USB Stick 2.0 High Speed

This patch adds support for Humax/Coex DVB-T USB Stick 2.0 High Speed
which is a very popular tuner sold in Vietnam.
Tested with at least 3 tuners.

Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Pham Thanh Nam <phamthanhnam.ptn@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12472): hdpvr-control: fix bad whitespaces
Mauro Carvalho Chehab [Thu, 20 Aug 2009 13:20:06 +0000 (10:20 -0300)]
V4L/DVB (12472): hdpvr-control: fix bad whitespaces

It were using 7 spaces instead of tab for indent.

Cc: Janne Grunau <j@jannau.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12471): stv06xx: fix bad whitespaces
Mauro Carvalho Chehab [Thu, 20 Aug 2009 13:18:29 +0000 (10:18 -0300)]
V4L/DVB (12471): stv06xx: fix bad whitespaces

It were using 7 spaces instead of tab for indent.

Cc: Erik Andren <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12470): cx231xx/cx231xx-conf-reg.h: fix bad whitespaces
Mauro Carvalho Chehab [Thu, 20 Aug 2009 13:15:48 +0000 (10:15 -0300)]
V4L/DVB (12470): cx231xx/cx231xx-conf-reg.h: fix bad whitespaces

It were using 7 spaces instead of tab for indent.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12468): saa7134: Fix bad whitespacing
Mauro Carvalho Chehab [Thu, 20 Aug 2009 13:13:40 +0000 (10:13 -0300)]
V4L/DVB (12468): saa7134: Fix bad whitespacing

The changeset 0b17d0ed that aded ASUSTeK P7131 Analog were using
7 spaces instead of tab, probably due to some bad cut-and-paste.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12466): Kconfig files: Fix improper use of whitespaces
Mauro Carvalho Chehab [Thu, 20 Aug 2009 12:38:44 +0000 (09:38 -0300)]
V4L/DVB (12466): Kconfig files: Fix improper use of whitespaces

On VIDEO_M52790 and USB_GSPCA_SN9C20X, instead of tab, it were
using 7 whitespaces at the beginning, probably due to some
cut-and-paste trouble.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12465): cx88: High resolution timer for Remote Controls
Andrzej Hajda [Thu, 2 Jul 2009 14:50:35 +0000 (11:50 -0300)]
V4L/DVB (12465): cx88: High resolution timer for Remote Controls

Patch solves problem of missed keystrokes on some remote controls,
as reported on http://bugzilla.kernel.org/show_bug.cgi?id=9637 .

Signed-off-by: Andrzej Hajda <andrzej.hajda@wp.pl>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12463): Add support for Compro VideoMate S350 DVB-S PCI card.
Igor M. Liplianin [Fri, 14 Aug 2009 00:42:21 +0000 (21:42 -0300)]
V4L/DVB (12463): Add support for Compro VideoMate S350 DVB-S PCI card.

Add Compro VideoMate S350 DVB-S driver.
The card uses zl10313, zl10039, saa7130 integrated circuits.

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12462): Add TeVii S630 USB DVB-S card support.
Igor M. Liplianin [Sat, 20 Jun 2009 12:54:18 +0000 (09:54 -0300)]
V4L/DVB (12462): Add TeVii S630 USB DVB-S card support.

The card includes Intel ce5039(Zarlink zl10039) tuner
and Intel ce6313 (Zarlink zl10313) demod.

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12461): Add ce5039(zl10039) tuner support.
Igor M. Liplianin [Sat, 20 Jun 2009 12:51:48 +0000 (09:51 -0300)]
V4L/DVB (12461): Add ce5039(zl10039) tuner support.

The code from Jan D. Louw with some minor changes.
http://article.gmane.org/gmane.linux.drivers.dvb/38163
Tested with TeVii S630 DVB-S USB card by me (Igor)

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12459): gspca - jeilinj: New subdriver for Jeilin chip.
Theodore Kilgore [Mon, 3 Aug 2009 07:13:23 +0000 (04:13 -0300)]
V4L/DVB (12459): gspca - jeilinj: New subdriver for Jeilin chip.

Signed-off-by: Theodore Kilgore <kilgota@auburn.edu>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12455): radio-typhoon: remove obsolete RADIO_TYPHOON_PROC_FS config option
Hans Verkuil [Wed, 12 Aug 2009 13:10:20 +0000 (10:10 -0300)]
V4L/DVB (12455): radio-typhoon: remove obsolete RADIO_TYPHOON_PROC_FS config option

Thanks to Robert P.J. Day for finding this.

Thanks-to: Robert P.J. Day <rpjday@crashcourse.ca>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12452): gspca/Kconfig: Fix bad identation for USB_GSPCA_SN9C20X_EVDEV
Mauro Carvalho Chehab [Fri, 14 Aug 2009 04:45:57 +0000 (01:45 -0300)]
V4L/DVB (12452): gspca/Kconfig: Fix bad identation for USB_GSPCA_SN9C20X_EVDEV

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12444): em28xx: add support for Terratec Cinergy Hybrid T USB XS remote...
Devin Heitmueller [Tue, 4 Aug 2009 02:56:51 +0000 (23:56 -0300)]
V4L/DVB (12444): em28xx: add support for Terratec Cinergy Hybrid T USB XS remote control

Add support for the remote control that comes with the Cinergy Hybrid T USB XS

Thanks to Jelle de Jong for providing sample hardware to test with.

Cc: Jelle de Jong <jelledejong@powercraft.nl>
Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>