GitHub/LineageOS/android_kernel_motorola_exynos9610.git
16 years agoV4L/DVB (7639): au8522: fix a small bug introduced by Checkpatch cleanup
Mauro Carvalho Chehab [Sat, 19 Apr 2008 01:24:01 +0000 (22:24 -0300)]
V4L/DVB (7639): au8522: fix a small bug introduced by Checkpatch cleanup

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7638): CodingStyle fixes for au8522 and au0828
Mauro Carvalho Chehab [Sat, 19 Apr 2008 01:12:52 +0000 (22:12 -0300)]
V4L/DVB (7638): CodingStyle fixes for au8522 and au0828

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7637): au0828: Typo
Steven Toth [Fri, 18 Apr 2008 01:30:22 +0000 (22:30 -0300)]
V4L/DVB (7637): au0828: Typo

au0828: Typo

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7636): au0828: Add HVR850 model number
Steven Toth [Fri, 18 Apr 2008 00:47:11 +0000 (21:47 -0300)]
V4L/DVB (7636): au0828: Add HVR850 model number

au0828: Add HVR850 model number

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7635): au8522: Cleanup
Steven Toth [Fri, 18 Apr 2008 00:45:08 +0000 (21:45 -0300)]
V4L/DVB (7635): au8522: Cleanup

au8522: Cleanup

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7634): au0828: Cleanup
Steven Toth [Fri, 18 Apr 2008 00:41:28 +0000 (21:41 -0300)]
V4L/DVB (7634): au0828: Cleanup

au0828: Cleanup

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7633): au8522: consolidate mse2snr_lookup functions
Michael Krufky [Thu, 10 Apr 2008 07:24:56 +0000 (04:24 -0300)]
V4L/DVB (7633): au8522: consolidate mse2snr_lookup functions

consolidate au8522_qam256_mse2snr_lookup, au8522_qam64_mse2snr_lookup and
au8522_vsb_mse2snr_lookup into a single function, au8522_mse2snr_lookup.

Pass the mse2snr table into au8522_mse2snr_lookup depending on the
modulation type.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7632): au8522: Added SNR support and basic cleanup
Steven Toth [Thu, 10 Apr 2008 05:01:48 +0000 (02:01 -0300)]
V4L/DVB (7632): au8522: Added SNR support and basic cleanup

au8522: Added SNR support and basic cleanup

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7631): au8522: add function au8522_read_mse
Michael Krufky [Sun, 6 Apr 2008 02:13:05 +0000 (23:13 -0300)]
V4L/DVB (7631): au8522: add function au8522_read_mse

add function au8522_read_mse, which will be used to compute snr

TO DO: mse2snr

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7630): au8522: fix au8522_read_ucblocks for qam
Michael Krufky [Sun, 6 Apr 2008 02:08:08 +0000 (23:08 -0300)]
V4L/DVB (7630): au8522: fix au8522_read_ucblocks for qam

ucblocks are reported in separate registers for vsb & qam

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7629): au8522: replace __FUNCTION__ with __func__
Michael Krufky [Wed, 2 Apr 2008 21:59:48 +0000 (18:59 -0300)]
V4L/DVB (7629): au8522: replace __FUNCTION__ with __func__

replace __FUNCTION__ with __func__ and clean associated checkpatch.pl warnings.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7628): au8522: codingstyle cleanups
Michael Krufky [Wed, 2 Apr 2008 21:59:48 +0000 (18:59 -0300)]
V4L/DVB (7628): au8522: codingstyle cleanups

Fixed some checkpatch.pl warnings

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7627): au0828: replace __FUNCTION__ with __func__
Michael Krufky [Sat, 19 Apr 2008 00:42:30 +0000 (21:42 -0300)]
V4L/DVB (7627): au0828: replace __FUNCTION__ with __func__

replace __FUNCTION__ with __func__ and clean associated checkpatch.pl
warnings.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7626): Kconfig: VIDEO_AU0828 should select DVB_AU8522 and DVB_TUNER_XC5000
Michael Krufky [Wed, 2 Apr 2008 21:59:48 +0000 (18:59 -0300)]
V4L/DVB (7626): Kconfig: VIDEO_AU0828 should select DVB_AU8522 and DVB_TUNER_XC5000

VIDEO_AU0828 should select DVB_AU8522 and DVB_TUNER_XC5000 if !DVB_FE_CUSTOMIZE

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7625): au0828: Cleanup
Steven Toth [Sat, 19 Apr 2008 00:39:11 +0000 (21:39 -0300)]
V4L/DVB (7625): au0828: Cleanup

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7624): Avoid an oops if the board is not fully defined
Steven Toth [Wed, 2 Apr 2008 04:10:40 +0000 (01:10 -0300)]
V4L/DVB (7624): Avoid an oops if the board is not fully defined

Avoid an oops if the board is not fully defined.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7623): Scripts to maintain the CARDLIST file
Steven Toth [Tue, 1 Apr 2008 04:27:41 +0000 (01:27 -0300)]
V4L/DVB (7623): Scripts to maintain the CARDLIST file

Scripts to maintain the CARDLIST file.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7622): HVR950Q Hauppauge eeprom support
Steven Toth [Sat, 29 Mar 2008 22:53:07 +0000 (19:53 -0300)]
V4L/DVB (7622): HVR950Q Hauppauge eeprom support

HVR950Q Hauppauge eeprom support.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7621): Add support for Hauppauge HVR950Q/HVR850/FusioHDTV7-USB
Steven Toth [Sat, 19 Apr 2008 00:34:00 +0000 (21:34 -0300)]
V4L/DVB (7621): Add support for Hauppauge HVR950Q/HVR850/FusioHDTV7-USB

Including support for the AU0828 USB Bridge.
Including support for the AU8522 ATSC/QAM Demodulator.
Including support for the AU8522 ATSC/QAM Demodulator.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7620): Adding support for a new i2c bridge type
Steven Toth [Sat, 29 Mar 2008 21:15:33 +0000 (18:15 -0300)]
V4L/DVB (7620): Adding support for a new i2c bridge type

Adding support for a new i2c bridge type

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7619): em28xx: adds proper demod IF for HVR-900
Mauro Carvalho Chehab [Fri, 18 Apr 2008 21:37:25 +0000 (18:37 -0300)]
V4L/DVB (7619): em28xx: adds proper demod IF for HVR-900

Thanks to Aidan Thornton <makosoft@googlemail.com> for helping
to test this firmware

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7618): em28xx: make some symbols static
Mauro Carvalho Chehab [Fri, 18 Apr 2008 21:34:31 +0000 (18:34 -0300)]
V4L/DVB (7618): em28xx: make some symbols static

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7617): Removes a manual mode setup
Mauro Carvalho Chehab [Fri, 18 Apr 2008 00:49:59 +0000 (21:49 -0300)]
V4L/DVB (7617): Removes a manual mode setup

The setup is already done at open().

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7616): em28xx-dvb: Properly selects digital mode at the right place
Mauro Carvalho Chehab [Fri, 18 Apr 2008 00:49:20 +0000 (21:49 -0300)]
V4L/DVB (7616): em28xx-dvb: Properly selects digital mode at the right place

The driver should be switched to digital mode, when trying to access the
frontend or when streaming.

This patch provides the correct code to support this feature.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7615): em28xx: Provide the proper support for switching between analog/digital
Mauro Carvalho Chehab [Fri, 18 Apr 2008 00:48:00 +0000 (21:48 -0300)]
V4L/DVB (7615): em28xx: Provide the proper support for switching between analog/digital

Before this patch,  HVR900/HVR950 were incorreclty going back to analog. The
result is that only digital were working.

This patch provides the proper setup for analog/digital and tuner callback.
It also properly resets analog into a sane state at open().

Thanks to Steven Toth <stoth@linuxtv.org> and Michael Krufky <mkrufky@linuxtv.org>
for helping to set the proper parameters to GPO/GPIO em2883 ports.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7614): em28xx-core: fix some debug printk's that wrongly received KERN_INFO
Mauro Carvalho Chehab [Fri, 18 Apr 2008 00:46:14 +0000 (21:46 -0300)]
V4L/DVB (7614): em28xx-core: fix some debug printk's that wrongly received KERN_INFO

Those printk's were adding more info to a line that were already being
printed.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7613): em28xx: rename registers
Mauro Carvalho Chehab [Fri, 18 Apr 2008 00:44:58 +0000 (21:44 -0300)]
V4L/DVB (7613): em28xx: rename registers

Now, all registers will follow the same convension:

EM28XX_R<reg_number>_<reg_name>

This allows to associate a register with its value, and also with a canonical
name. Also, registers that are specific to a given chip were renamed accordingly,
as EM2800_foo (for 2800 only registers) or EM2880_foo (for registers that started
to appear on em2880).

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7612): em28xx-cards: use register names for GPIO/GPO
Mauro Carvalho Chehab [Fri, 18 Apr 2008 00:43:38 +0000 (21:43 -0300)]
V4L/DVB (7612): em28xx-cards: use register names for GPIO/GPO

Before this patch, registers 0x04 and 0x08 were referenced by its value. This is
bad, since makes harder for someone to understand what this is doing.

This patch renames those two registers into an appropriate name.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7611): em28xx: Move registers to a separate file
Mauro Carvalho Chehab [Fri, 18 Apr 2008 00:42:58 +0000 (21:42 -0300)]
V4L/DVB (7611): em28xx: Move registers to a separate file

em28xx.h contains lots of different stuff inside. The better is to break it on
some files.

This patch removes the register names, moving them to a separate file.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7610): em28xx: Select reg wait time based on chip ID
Mauro Carvalho Chehab [Fri, 18 Apr 2008 00:42:14 +0000 (21:42 -0300)]
V4L/DVB (7610): em28xx: Select reg wait time based on chip ID

This is more conservative than just removing the msleep() from
em28xx_write_regs_req(), since some old hardware may still need it.
So, it will remove the sleep time only for those chips where this
removal were tested.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7609): em28xx-core: speed-up firmware load
Devin Heitmueller [Fri, 18 Apr 2008 00:41:23 +0000 (21:41 -0300)]
V4L/DVB (7609): em28xx-core: speed-up firmware load

em28xx-core.c:
 - Remove sleep in i2c message routine which slows down i2c by a factor
   10x.  Load time for BASE firmware went from 13s to .973s

Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7608): em28xx-dvb: Some cleanups and fixes
Devin Heitmueller [Fri, 18 Apr 2008 00:41:16 +0000 (21:41 -0300)]
V4L/DVB (7608): em28xx-dvb: Some cleanups and fixes

em28xx-dvb.c:
 - Remove unneeded xc3028_ctrl structure.  The driver automatically preserves
   the previous value

tuner-xc2028.c:
 - Make the return type for xc2028_get_reg signed, since all of the callers
   are looking for "< 0" to detect errors.

Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7607): CodingStyle fixes
Douglas Schilling Landgraf [Fri, 18 Apr 2008 00:41:10 +0000 (21:41 -0300)]
V4L/DVB (7607): CodingStyle fixes

Signed-off-by: Douglas Schilling Landgraf <dougsland@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7606): em28xx-dvb: Program GPO as well
Mauro Carvalho Chehab [Fri, 18 Apr 2008 00:41:00 +0000 (21:41 -0300)]
V4L/DVB (7606): em28xx-dvb: Program GPO as well

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7605): tuner-xc3028: Avoids too much firmware reloads
Mauro Carvalho Chehab [Fri, 18 Apr 2008 00:40:53 +0000 (21:40 -0300)]
V4L/DVB (7605): tuner-xc3028: Avoids too much firmware reloads

xc3028_sleep function is being used with a different meaning. This
should be called only before doing S1/S3 sleep.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7604): em28xx-dvb: Fix analog mode
Mauro Carvalho Chehab [Fri, 18 Apr 2008 00:40:45 +0000 (21:40 -0300)]
V4L/DVB (7604): em28xx-dvb: Fix analog mode

The analog entries are wrong. Fix it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7603): em28xx-dvb: don't use videobuf-dvb
Aidan Thornton [Fri, 18 Apr 2008 00:40:36 +0000 (21:40 -0300)]
V4L/DVB (7603): em28xx-dvb: don't use videobuf-dvb

Modifies em28xx-dvb not to use videobuf-dvb, but instead to include the code
for registering dvb devices locally and use the URB management code in the
em28xx driver directly. DVB data streaming should now work.

Signed-off-by: Aidan Thornton <makosoft@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7602): em28xx: generalise URB setup code
Aidan Thornton [Fri, 18 Apr 2008 00:40:16 +0000 (21:40 -0300)]
V4L/DVB (7602): em28xx: generalise URB setup code

Move the URB setup and management code to em28xx-core.c and generalise
it slighlty so that the DVB code can use it.

Signed-off-by: Aidan Thornton <makosoft@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7601): em28xx-dvb: add support for the HVR-900
Aidan Thornton [Fri, 18 Apr 2008 00:40:03 +0000 (21:40 -0300)]
V4L/DVB (7601): em28xx-dvb: add support for the HVR-900

Adds the correct GPIOs and demod attach code for the HVR-900

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7600): em28xx: Sets frequency when changing to analog mode
Mauro Carvalho Chehab [Fri, 18 Apr 2008 00:38:53 +0000 (21:38 -0300)]
V4L/DVB (7600): em28xx: Sets frequency when changing to analog mode

This will make tuner-xc2028 to change to analog, if needed.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7599): em28xx-dvb: videobuf callbacks are waiting for em28xx_fh
Mauro Carvalho Chehab [Fri, 18 Apr 2008 00:38:38 +0000 (21:38 -0300)]
V4L/DVB (7599): em28xx-dvb: videobuf callbacks are waiting for em28xx_fh

Thanks to Devin Heitmueller <devin.heitmueller@gmail.com> for pointing
this issue.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7598): em28xx: several fixes on gpio programming
Devin Heitmueller [Fri, 18 Apr 2008 00:38:27 +0000 (21:38 -0300)]
V4L/DVB (7598): em28xx: several fixes on gpio programming

em28xx-cards.c:
 - Fix reversed val/rst values in both analog_gpio and digital_gpio
   vectors
 - Fix crash that would was occurring during every analog startup
   while looping over gpio_ctl
 - Remove what appears to be a redundant setting of gpio_ctl->val
 - Don't use OREN538 demodulation for the HVR-950 (prevents ATSC
   scanning from working)

em28xx-dvb.c:
 - Tuner should be in digital mode when issuing the reset
 - Add copyright
 - Change struct definition (corresponds to fix in em28xx-cards.c for
   gpio_ctl looping)

Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7597): em28xx: share the same xc3028 setup for analog and digital modes
Mauro Carvalho Chehab [Fri, 18 Apr 2008 00:37:53 +0000 (21:37 -0300)]
V4L/DVB (7597): em28xx: share the same xc3028 setup for analog and digital modes

Thanks to Devin Heitmueller <devin.heitmueller@gmail.com> and Aidan
Thornton" <makosoft@googlemail.com> for pointing some errors with the
previous scenario.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7596): em28xx-dvb: Add support for HVR950
Mauro Carvalho Chehab [Fri, 18 Apr 2008 00:37:40 +0000 (21:37 -0300)]
V4L/DVB (7596): em28xx-dvb: Add support for HVR950

This patch adds DVB support for Hauppauge HVR950.

Thanks to Michael Krufky <mkrufky@linuxtv.org> for getting those values.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7595): Improve generic support for setting gpio values
Mauro Carvalho Chehab [Fri, 18 Apr 2008 00:37:31 +0000 (21:37 -0300)]
V4L/DVB (7595): Improve generic support for setting gpio values

em28xx based devices with xc3028 may require some specific gpio values.
This patch adds a generic handling for such values.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7594): em28xx: Fix Kconfig
Mauro Carvalho Chehab [Fri, 18 Apr 2008 00:37:18 +0000 (21:37 -0300)]
V4L/DVB (7594): em28xx: Fix Kconfig

Some devices have msp3400 audio decoder chip. Selects it, if em28xx.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7593): em28xx: add a module to handle dvb
Mauro Carvalho Chehab [Fri, 18 Apr 2008 00:36:41 +0000 (21:36 -0300)]
V4L/DVB (7593): em28xx: add a module to handle dvb

This patch adds em28xx-dvb. This driver is highly based on cx88-dvb and
saa7134-dvb.

This code currently loads and unloads successfully. However, some
changes are needed to properly support the mpeg streams and to setup
em28xx to work on DVB mode.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7591): drivers/media/video: use time_before, time_before_eq, etc
Julia Lawall [Wed, 16 Apr 2008 19:13:15 +0000 (16:13 -0300)]
V4L/DVB (7591): drivers/media/video: use time_before, time_before_eq, etc

The functions time_before, time_before_eq, time_after, and time_after_eq
are more robust for comparing jiffies against other values.

A simplified version of the semantic patch making this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@ change_compare_np @
expression E;
@@

(
- jiffies <= E
+ time_before_eq(jiffies,E)
|
- jiffies >= E
+ time_after_eq(jiffies,E)
|
- jiffies < E
+ time_before(jiffies,E)
|
- jiffies > E
+ time_after(jiffies,E)
)

@ include depends on change_compare_np @
@@

@ no_include depends on !include && change_compare_np @
@@

  #include <linux/...>
+ #include <linux/jiffies.h>
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7590): ir-common: Adds 3 missing IR keys for FlyVIdeo2000
Ivan Bobyr [Wed, 16 Apr 2008 19:01:55 +0000 (16:01 -0300)]
V4L/DVB (7590): ir-common: Adds 3 missing IR keys for FlyVIdeo2000

The patch extends the default keymap of FlyVIdeo2000 IR remote control so that
this remote may also serve movie & music players in a better way.

I bought a SAA7130 TV tuner with a remote control having 3 additional button
as the default layout, exactly as:

1) labeled "<<<" : key code 0x19, may be used as "backward"in MPlayer,XMMS etc

2) labeled ">>>" : key code 0x1f, may be used as "forward"...

3) not labeled : key code 0x0a, may be used as "pause"...

Once have added these code definitions to the kernel, me got all these
operations available for viewing movies & listening music.

Signed-off-by : Ivan Bobyr <brefi@yandex.ru>

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7589): ibmcam: improve support for the IBM PC Camera Pro
David Hilvert [Wed, 16 Apr 2008 07:27:09 +0000 (04:27 -0300)]
V4L/DVB (7589): ibmcam: improve support for the IBM PC Camera Pro

This patch modifies Dmitri's original ibmcam driver for Linux to improve
support for the IBM PC Camera Pro.  It may also offer improved support for
other models classified by the driver as 'Model 3', such as the IBM PC Camera
Pro Max.

See http://auricle.dyndns.org/xvp610/

Signed-off-by: David Hilvert <dhilvert@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7584): Fix build that occurs when CONFIG_VIDEO_PMS=y and VIDEO_V4L2_COMMON=m
Mauro Carvalho Chehab [Tue, 15 Apr 2008 21:11:50 +0000 (18:11 -0300)]
V4L/DVB (7584): Fix build that occurs when CONFIG_VIDEO_PMS=y and VIDEO_V4L2_COMMON=m

This patch removes zoran checks for VIDEO_V4L2, since this API is always
present, when V4L is selected.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7582): proc: switch /proc/driver/radio-typhoon to seq_file interface
Alexey Dobriyan [Fri, 11 Apr 2008 00:34:39 +0000 (21:34 -0300)]
V4L/DVB (7582): proc: switch /proc/driver/radio-typhoon to seq_file interface

Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7580): Fix concurrent read from /proc/videocodecs
Alexey Dobriyan [Sun, 13 Apr 2008 11:48:43 +0000 (08:48 -0300)]
V4L/DVB (7580): Fix concurrent read from /proc/videocodecs

Observation one: ->write_proc and ->data assignments aren't needed. Removed.
Observation two: codecs lists are unprotected. Patch doesn't fix this.
Observation three:
/proc/videocodecs printout is done to temporary _global_ buffer which
is freed in between. Consequently, two users hitting this file can
screwup each other.

Steps to reproduce:

modprobe videocodec
while true; do cat /proc/videocodecs &>/dev/null; done &
while true; do cat /proc/videocodecs &>/dev/null; done &

The fix is switching to seq_files, this removes code, especially some
line-length "logic".

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Jan Kara <jack@suse.cz>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7579): bttv: Fix memory leak in radio_release
Robert Fitzsimons [Thu, 10 Apr 2008 12:40:31 +0000 (09:40 -0300)]
V4L/DVB (7579): bttv: Fix memory leak in radio_release

Fix the leak of the bttv_fh structure allocated in radio_open which
was introduced by commit 5cd3955cb8adfc1edf481e9e1cb2289db50ccacb.

Signed-off-by: Robert Fitzsimons <robfitz@273k.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7575a): Revert changeset 4c3b01f71181a52ab7735a7c52b1aa2232826075
Mauro Carvalho Chehab [Tue, 22 Apr 2008 17:47:03 +0000 (14:47 -0300)]
V4L/DVB (7575a): Revert changeset 4c3b01f71181a52ab7735a7c52b1aa2232826075

Due to the patch order change, pvrusb2 were broken. So, changeset
4c3b01f71181a52ab7735a7c52b1aa2232826075 were applied at mainstream to fix.
After the pvrusb2 changes, this patch is no longer required and should be
reverted.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7569): Added support for SkyStar2 rev2.7 and ITD1000 DVB-S tuner
Patrick Boettcher [Sun, 13 Apr 2008 18:49:22 +0000 (15:49 -0300)]
V4L/DVB (7569): Added support for SkyStar2 rev2.7 and ITD1000 DVB-S tuner

This patches adds support for the SkyStar2 rev2.7 with the PN1010/ITD1000 Frontend.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7471): SkyStar2: preparing support for the rev2.8
Patrick Boettcher [Sun, 30 Mar 2008 00:28:07 +0000 (21:28 -0300)]
V4L/DVB (7471): SkyStar2: preparing support for the rev2.8

Support is prepared, but the CX24113-driver .c-file is missing. After sorting out the NDA problems, the file will be there immediatly.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7575): mt312: add attach-time setting to invert lnb-voltage
Matthias Schwarzott [Sat, 12 Apr 2008 18:04:50 +0000 (15:04 -0300)]
V4L/DVB (7575): mt312: add attach-time setting to invert lnb-voltage

Add a setting to config struct for inversion of lnb-voltage.
Needed for support of Avermedia A700 cards.

Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7574): mt312: Add support for zl10313 demod
Matthias Schwarzott [Sat, 12 Apr 2008 18:04:49 +0000 (15:04 -0300)]
V4L/DVB (7574): mt312: Add support for zl10313 demod

Add zl10313 support to mt312 driver.
zl10313 uses 10.111MHz xtal.

Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7573): mt312: Supports different xtal frequencies
Matthias Schwarzott [Sat, 12 Apr 2008 18:04:48 +0000 (15:04 -0300)]
V4L/DVB (7573): mt312: Supports different xtal frequencies

Do not hardcode xtal frequency but allow different values
for future zl10313 support.

Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7572): mt312: Fix diseqc
Matthias Schwarzott [Sat, 12 Apr 2008 18:04:47 +0000 (15:04 -0300)]
V4L/DVB (7572): mt312: Fix diseqc

Correct the frequency of the emitted diseqc signal to 22kHz.
Adds sleep(100) to wait for message to be transmitted.

For now the only user of mt312 is b2c2-flexcop, and it
does overwrite all diseqc related functions with own code.

Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7571): mt312: Cleanup buffer variables of read/write functions
Matthias Schwarzott [Sat, 12 Apr 2008 18:04:46 +0000 (15:04 -0300)]
V4L/DVB (7571): mt312: Cleanup buffer variables of read/write functions

Change type of buffer variables from void* to u8* to save some casts.

Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7568): Support for DVB-S demod PN1010 (clone of S5H1420) added
Patrick Boettcher [Sun, 13 Apr 2008 18:47:53 +0000 (15:47 -0300)]
V4L/DVB (7568): Support for DVB-S demod PN1010 (clone of S5H1420) added

This device is a clone of the PN1010 used by SkyStar2 rev2.7 .

This patch adds support for the flexcop-device and makes the driver look a little bit nicer.

It needs to be checked whether the driver is still ok for the budget-cards.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7567): em28xx: Some cleanups
Mauro Carvalho Chehab [Sun, 13 Apr 2008 18:11:08 +0000 (15:11 -0300)]
V4L/DVB (7567): em28xx: Some cleanups

Removes some fields from data structs.

There are some fields that are just caching some calculus for buffer
size. The calculus were moved to the places it were needed and the now
unused fields were removed.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7566): videobuf-dvb: allow its usage with videobuf-vmalloc
Mauro Carvalho Chehab [Sun, 13 Apr 2008 18:10:00 +0000 (15:10 -0300)]
V4L/DVB (7566): videobuf-dvb: allow its usage with videobuf-vmalloc

videobuf-dvb were still using a function that were videobuf-dma-sg
dependent. This patch creates a generic handler for this function. This
way, videobuf-dvb can now work with all videobuf implementations.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7565): em28xx: fix buffer underrun handling
Aidan Thornton [Sun, 13 Apr 2008 18:09:36 +0000 (15:09 -0300)]
V4L/DVB (7565): em28xx: fix buffer underrun handling

This patch fixes three related issues and a fourth trivial one:

- Use buffers even if no-one's currently waiting for them (fixes
  underrun issues);

- Don't return incomplete/mangled frames at the start of streaming and
  in the case of buffer underruns;

- Fix an issue which could cause the driver to write to a buffer that's
  been freed after videobuf_queue_cancel is called (exposed by the
  previous two fixes - for some reason, ignoring buffers that weren't
  being waited on worked around the issue);

- Fix a bug which could cause only one field to be filled in the first
  buffer (or first few buffers) after streaming is started.

Signed-off-by: Aidan Thornton <makosoft@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7564): em28xx: Some fixes to display logic
Mauro Carvalho Chehab [Sun, 13 Apr 2008 18:09:14 +0000 (15:09 -0300)]
V4L/DVB (7564): em28xx: Some fixes to display logic

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7563): em28xx: Add missing checks
Mauro Carvalho Chehab [Sun, 13 Apr 2008 18:08:55 +0000 (15:08 -0300)]
V4L/DVB (7563): em28xx: Add missing checks

There are some cases where nobody is waiting for a buffer. Due to the
lack of check, if you try to abort the userspace app, machine were
hanging, since IRQ were trying to use a buffer that were disallocated.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7562): videobuf: Require spinlocks for all videobuf users
Brandon Philips [Fri, 28 Mar 2008 17:18:33 +0000 (10:18 -0700)]
V4L/DVB (7562): videobuf: Require spinlocks for all videobuf users

A spinlock is necessary for queue_cancel to work with every driver in the tree.
Otherwise a race exists between IRQ handlers removing buffers from the queue
and queue_cancel invalidating the queue.

Signed-off-by: Brandon Philips <bphilips@suse.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7561): videobuf-vmalloc: stop streaming before unmap
Mauro Carvalho Chehab [Sun, 13 Apr 2008 18:07:56 +0000 (15:07 -0300)]
V4L/DVB (7561): videobuf-vmalloc: stop streaming before unmap

Before the patch, there were a risk of freeing and unmapping userspace memory,
while there were pending requests.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7560): videodev: Some printk fixes
Mauro Carvalho Chehab [Sun, 13 Apr 2008 18:07:16 +0000 (15:07 -0300)]
V4L/DVB (7560): videodev: Some printk fixes

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7559): em28xx: Fills the entire buffer, before getting another one
Mauro Carvalho Chehab [Sun, 13 Apr 2008 18:06:52 +0000 (15:06 -0300)]
V4L/DVB (7559): em28xx: Fills the entire buffer, before getting another one

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7558): videobuf: Improve command output for debug purposes
Mauro Carvalho Chehab [Sun, 13 Apr 2008 18:06:24 +0000 (15:06 -0300)]
V4L/DVB (7558): videobuf: Improve command output for debug purposes

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7557): em28xx: honour video_debug modprobe parameter
Mauro Carvalho Chehab [Sun, 13 Apr 2008 18:05:47 +0000 (15:05 -0300)]
V4L/DVB (7557): em28xx: honour video_debug modprobe parameter

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7556): em28xx: fix locking on vidioc_s_fmt_cap
Aidan Thornton [Sun, 13 Apr 2008 18:02:24 +0000 (15:02 -0300)]
V4L/DVB (7556): em28xx: fix locking on vidioc_s_fmt_cap

Currently, vidioc_s_fmt_cap is allowed even if streaming is running on some
other fh. This is likely to cause issues.

Block use of vidioc_s_fmt_cap if someone else has claimed access to the device.

Signed-off-by: Aidan Thornton <makosoft@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7555): em28xx: remove timeout
Mauro Carvalho Chehab [Sun, 13 Apr 2008 18:01:12 +0000 (15:01 -0300)]
V4L/DVB (7555): em28xx: remove timeout

It seems that we don't need a timeout for em28xx.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7554): videobuf-dma-sg: Remove unused flag
Mauro Carvalho Chehab [Sun, 13 Apr 2008 17:59:29 +0000 (14:59 -0300)]
V4L/DVB (7554): videobuf-dma-sg: Remove unused flag

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7553): videobuf-vmalloc: fix STREAMOFF/STREAMON
Mauro Carvalho Chehab [Sun, 13 Apr 2008 17:58:43 +0000 (14:58 -0300)]
V4L/DVB (7553): videobuf-vmalloc: fix STREAMOFF/STREAMON

There were a small bug on videobuf-vmalloc that were preventing STREAMOFF to
work. The issue is that vmalloc'ed mmaped memory should only be freed after
being sure that there aren't any mmap usage. Otherwise, the memory remap will
stop working, and the userspace won't receive any frames.

This bug were affecting some userspace applications, like tvtime.

After this patch, tvtime started to work again with the drivers that use
videobuf-vmalloc.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7552): videbuf-vmalloc: Corrects mmap code
Mauro Carvalho Chehab [Sun, 13 Apr 2008 17:58:21 +0000 (14:58 -0300)]
V4L/DVB (7552): videbuf-vmalloc: Corrects mmap code

There were some bugs on videobuf-vmalloc.

Basically, remap were called with a wrong parameter. Due to that, a later remap
were needed, generating the need of some hacks on videobuf-vmalloc and
videobuf-core.

This patch fixes the remap and removes the hacks.

TODO:

- V4L2_MEMORY_USERPTR is not implemented yet. This method should be
  properly implemented, in order to work with a few userspace applications.

- The driver also doesn't implement V4L2_MEMORY_OVERLAY. This method is used
  only by a few applications, and are becaming obsolete, due to the increment
  of cpu performance. So, most apps prefer to retrieve data to an internal
  buffer, doing some processing like de-interlacing.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7551): vivi: Add a missing \n
Mauro Carvalho Chehab [Sun, 13 Apr 2008 17:57:44 +0000 (14:57 -0300)]
V4L/DVB (7551): vivi: Add a missing \n

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7550): em28xx: Fix a possible memory leak
Brandon Philips [Sun, 13 Apr 2008 17:57:01 +0000 (14:57 -0300)]
V4L/DVB (7550): em28xx: Fix a possible memory leak

I did notice a possible memory leak since iolock is could possibly be
called before a buffer has been freed.

This ensure s_fmt isn't called while the queue is busy thereby avoiding
iolock on already allocated buffers.

Signed-off-by: Brandon Philips <bphilips@suse.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7549): em28xx: some small cleanups
Mauro Carvalho Chehab [Sun, 13 Apr 2008 17:56:25 +0000 (14:56 -0300)]
V4L/DVB (7549): em28xx: some small cleanups

- Remove dead code;
- Fix a few CodingStyle issues;
- Prints frame number, if debug is enabled.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7548): Various fixes for the em28xx videobuf code
Aidan Thornton [Sun, 13 Apr 2008 17:56:02 +0000 (14:56 -0300)]
V4L/DVB (7548): Various fixes for the em28xx videobuf code

- Aborting buffer_filled if no-one's waiting on the waitqueue probably isn't
  what we want, since just because no-one's waiting for it now doesn't mean they
  wouldn't dequeue it in time. (vivi gets away with this, possibly because it
  can fill each buffer much faster.)

- The first BUG_ON(lencopy <= 0); really isn't worth causing a kernel panic
  over, especially since there are some reasons why it could trigger in normal use.

- The top and botom frames are actually the wrong way around.

Signed-off-by: Aidan Thornton <makosoft@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7547): em28xx: Fix a broken lock
Mauro Carvalho Chehab [Sun, 13 Apr 2008 17:55:38 +0000 (14:55 -0300)]
V4L/DVB (7547): em28xx: Fix a broken lock

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7545): em28xx: Fix CodingStyle errors and most warnings introduced by videobuf
Mauro Carvalho Chehab [Sun, 13 Apr 2008 17:41:23 +0000 (14:41 -0300)]
V4L/DVB (7545): em28xx: Fix CodingStyle errors and most warnings introduced by videobuf

The last videobuf changes introduced several CodingStyle errors. Fixes all those
errors, as reported by checkpatch.pl

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7544): em28xx: Fix timeout code
Mauro Carvalho Chehab [Sun, 13 Apr 2008 17:40:36 +0000 (14:40 -0300)]
V4L/DVB (7544): em28xx: Fix timeout code

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7543): Fix capture start/stop and timeout
Mauro Carvalho Chehab [Sun, 13 Apr 2008 17:40:10 +0000 (14:40 -0300)]
V4L/DVB (7543): Fix capture start/stop and timeout

Also removes the dead restart_video_queue() function

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7542): em28xx: Fix some warnings
Mauro Carvalho Chehab [Sun, 13 Apr 2008 17:39:29 +0000 (14:39 -0300)]
V4L/DVB (7542): em28xx: Fix some warnings

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7541): em28xx: Some fixes to videobuf
Aidan Thornton [Sun, 13 Apr 2008 17:38:47 +0000 (14:38 -0300)]
V4L/DVB (7541): em28xx: Some fixes to videobuf

It fixes a couple of minor bugs, comments out a bogus BUG_ON, sets fh->type
correctly, uses dev->width and dev->height for now, and adds a missing spinlock
init (nasty - caused a system lockup). It also adds some debug code which
probably isn't all that useful. I haven't tested this version of the patch yet,
though, so I'm not sure what you can expect if you try it.

Signed-off-by: Aidan Thornton <makosoft@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7540): em28xx: convert to use videobuf-vmalloc
Mauro Carvalho Chehab [Sun, 13 Apr 2008 17:37:52 +0000 (14:37 -0300)]
V4L/DVB (7540): em28xx: convert to use videobuf-vmalloc

The usage of videobuf-vmalloc allows to cleanup em28xx logic.

Also, it reduced its size by about 5.42% on i386 arch (and about 7.5% on x86_64):

  39113    4876      40   44029    abfd old/em28xx.ko
  36731    4868      40   41639    a2a7 /home/v4l/master/v4l/em28xx.ko

Also, the preliminary tests, made on a single core 1.5 MHz Centrino showed
that CPU usage reduced from 42%-75% to 28%-33% (reports from "top") command.

A test with time command presented an even better result:

This is the performance tests I did, running code_example to get 1,000 frames
@29.995 Hz (about 35 seconds of stream), tested on a i386 machine, running at
1,5GHz:

The old driver:

$ time -f "%E: %Us User time, %Ss Kernel time, %P CPU used" ./capture_example
0:34.21: 8.22s User time, 25.16s Kernel time, 97% CPU used

The videobuf-based driver:

$ time -f "%E: %Us User time, %Ss Kernel time, %P CPU used" ./capture_example
0:35.36: 0.01s User time, 0.05s Kernel time, 0% CPU used

Conclusion:

The time consumption to receive the stream where reduced from about 33.38
seconds to 0.05 seconds.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7538): Adds selectable adapter numbers as per module option
Janne Grunau [Wed, 9 Apr 2008 22:13:13 +0000 (19:13 -0300)]
V4L/DVB (7538): Adds selectable adapter numbers as per module option

The adapter_nr module options can be used to allocate static adapter
numbers on a driver level. It avoids problems with changing DVB apapter
numbers after warm/cold boot or device unplugging and repluging.

Each driver holds DVB_MAX_ADAPTER long array of the preferred order of
adapter numbers.

options dvb-usb-dib0700 adapter_nr=7,6,5,4,3,2,1,0 would result in a
reversed allocation of adapter numbers.

With adapter_nr=2,5 it tries first to get adapter number 2 and 5. If
both are already in use it will allocate the lowest free adapter number.

Signed-off-by: Janne Grunau <janne-dvb@grunau.be>
Acked-by: Hermann Pitton <hermann.pitton@arcor.de>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7537): cx88/saa7134: Fix: avoid OOPS on module unload
Mauro Carvalho Chehab [Fri, 11 Apr 2008 14:29:44 +0000 (11:29 -0300)]
V4L/DVB (7537): cx88/saa7134: Fix: avoid OOPS on module unload

If frontend is not attached, both cx88-dvb and saa7134-dvb don't
register DVB. However, dvb unregister were inconditionally called.

Due to that, an OOPS is generated.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7535): saa717x: add new audio/video decoder i2c driver
Hans Verkuil [Wed, 9 Apr 2008 09:26:17 +0000 (06:26 -0300)]
V4L/DVB (7535): saa717x: add new audio/video decoder i2c driver

Added the last remaining out-of-tree kernel driver from the ivtv project.
The saa717x is used in several Japanese cards and a Russian card. The
driver is not complete in that only NTSC is supported and no PAL/SECAM.

Hopefully this will be added in the future.

Signed-off-by: Takahiro Adachi <tadachi@tadachi-net.com>
Signed-off-by: Kyuma Ohta <whatisthis@jcom.home.ne.jp>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7534): ivtv: the upd* modules have to be probed to properly autodetect some...
Hans Verkuil [Mon, 7 Apr 2008 11:32:14 +0000 (08:32 -0300)]
V4L/DVB (7534): ivtv: the upd* modules have to be probed to properly autodetect some cards

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7532): budget: Add support for Fujitsu Siemens DVB-T Activy Budget
Oliver Endriss [Wed, 9 Apr 2008 20:49:55 +0000 (17:49 -0300)]
V4L/DVB (7532): budget: Add support for Fujitsu Siemens DVB-T Activy Budget

Implement support for Fujitsu Siemens DVB-T Activy Budget, sub-system id 0x1131:0x5f61.

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7531): budget-av: Fix CI interface on (some) KNC1 DVBS cards
Christoph Pfister [Wed, 9 Apr 2008 20:37:36 +0000 (17:37 -0300)]
V4L/DVB (7531): budget-av: Fix CI interface on (some) KNC1 DVBS cards

Quoting the commit introducing reinitialise_demod (3984 / by adq):
"These cards [KNC1 DVBT and DVBC] need special handling for CI - reinitialising the frontend
device when the CI module is reset."
Apparently my 1894:0010 also needs that fix, because once you initialise CI/CAM you lose lock.

Signed-off-by: Christoph Pfister <pfister@linuxtv.org>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7530): budget-av: Fix support for certain cams
Christoph Pfister [Wed, 9 Apr 2008 20:34:09 +0000 (17:34 -0300)]
V4L/DVB (7530): budget-av: Fix support for certain cams

The current ci implementation doesn't accept 0xff when reading data bytes (address == 0),
thus breaks cams which report a buffer size of 0x--ff like my orion one.
Remove the 0xff check altogether, because validation is really the job of a higher layer.

Signed-off-by: Christoph Pfister <pfister@linuxtv.org>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7529): media/video/zc0301 replace remaining __FUNCTION__ occurrences
Harvey Harrison [Wed, 9 Apr 2008 02:20:00 +0000 (23:20 -0300)]
V4L/DVB (7529): media/video/zc0301 replace remaining __FUNCTION__ occurrences

__FUNCTION__ is gcc-specific, use __func__

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7528): media/video/usbvideo replace remaining __FUNCTION__ occurrences
Harvey Harrison [Wed, 9 Apr 2008 02:20:00 +0000 (23:20 -0300)]
V4L/DVB (7528): media/video/usbvideo replace remaining __FUNCTION__ occurrences

__FUNCTION__ is gcc-specific, use __func__

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7527): media/video/sn9c102 replace remaining __FUNCTION__ occurrences
Harvey Harrison [Wed, 9 Apr 2008 02:20:00 +0000 (23:20 -0300)]
V4L/DVB (7527): media/video/sn9c102 replace remaining __FUNCTION__ occurrences

__FUNCTION__ is gcc-specific, use __func__

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>