]> err.no Git - linux-2.6/log
linux-2.6
17 years agoV4L/DVB (5811): Use mutex instead of semaphore in Virtual Video driver
Matthias Kaehlcke [Mon, 2 Jul 2007 13:19:38 +0000 (10:19 -0300)]
V4L/DVB (5811): Use mutex instead of semaphore in Virtual Video driver

The Virtual Video driver uses a semaphore as mutex. Use the mutex API
instead of the (binary) semaphore.

Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5809): Use mutex instead of semaphore in Philips webcam driver
Matthias Kaehlcke [Mon, 2 Jul 2007 13:04:52 +0000 (10:04 -0300)]
V4L/DVB (5809): Use mutex instead of semaphore in Philips webcam driver

The Philips webcam driver uses a semaphore as mutex. Use the mutex API
instead of the (binary) semaphore.
--

Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5807): Bttv: Add support for DBG_[SG]_REGISTER ioctls
Trent Piepho [Fri, 29 Jun 2007 03:17:36 +0000 (00:17 -0300)]
V4L/DVB (5807): Bttv: Add support for DBG_[SG]_REGISTER ioctls

Adds the advanced debugging register read/write ioctl support to the bttv
driver.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5806): Bttv: Be consistent in using symbolic names instead of constants
Trent Piepho [Thu, 28 Jun 2007 21:30:36 +0000 (18:30 -0300)]
V4L/DVB (5806): Bttv: Be consistent in using symbolic names instead of constants

For svhs, tuner, and tuner_type, be consistent in using UNSET instead of -1.

For tuner_type also consistently use the existing constants:
0  => TUNER_TEMIC_PAL
1  => TUNER_PHILIPS_PAL_I
2  => TUNER_PHILIPS_NTSC
4  => TUNER_ABSENT
5  => TUNER_PHILIPS_PAL
21 => TUNER_TEMIC_4039FR5_NTSC
25 => TUNER_LG_PAL_I_FM

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5805): Bttv: Fix problems with probing for non-existent tuners
Trent Piepho [Thu, 28 Jun 2007 20:51:08 +0000 (17:51 -0300)]
V4L/DVB (5805): Bttv: Fix problems with probing for non-existent tuners

The bttv driver has code to detect if a tda9887 is present, that was previous
used to auto-load the tda9887 driver.  Now there is no tda9887 driver, so the
code is pointless; it just figures out if it should load the driver and then
does nothing.

For cards that are defined as having no tuner, the init code would still do
i2c probes for various tuner devices and auto-load the tuner module.  That can
be skipped for cards that don't need it.  The code is made to understand that
in addition to 'UNSET', 'TUNER_ABSENT' also means no tuner.

The tuner into printk()s are also made nicer.  Levels are added, INFO or
WARNING, depending on the meaning.  For cards with no tuner, or no tuner
defined, a more informative message is printed.

Card has no tuner, before patch:
bttv0: tuner type=-1
 or
bttv0: tuner type=4

After patch:

bttv0: tuner absent

Card has a tuner, but the type isn't defined, before patch:
bttv0: tuner type=-1

After patch:
bttv0: tuner type unset   [<- also warning now, as the tuner won't work right]

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5803): Bttv: add support for DViCO FusionHDTV 2
Michael Krufky [Thu, 28 Jun 2007 15:19:20 +0000 (12:19 -0300)]
V4L/DVB (5803): Bttv: add support for DViCO FusionHDTV 2

add analog video support for DViCO FusionHDTV 2
Thanks to Todd Ignasiak for donating the card.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5801): Tuner: update FCV1236D ranges to match the datasheet
Michael Krufky [Wed, 27 Jun 2007 19:26:32 +0000 (16:26 -0300)]
V4L/DVB (5801): Tuner: update FCV1236D ranges to match the datasheet

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5800): Tuner: correct description of Philips FCV1236D tuner
Michael Krufky [Wed, 27 Jun 2007 17:38:45 +0000 (14:38 -0300)]
V4L/DVB (5800): Tuner: correct description of Philips FCV1236D tuner

The old description was "Philips 1236D ATSC/NTSC dual in", which can be
confused with other Philips tuner models.  This patch corrects the name
to "Philips FCV1236D ATSC/NTSC dual in", and updates the range and params
array names to match the description.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5799): Or51211: remove hardcoded fcv1236d tuner programming
Michael Krufky [Sun, 24 Jun 2007 21:14:52 +0000 (18:14 -0300)]
V4L/DVB (5799): Or51211: remove hardcoded fcv1236d tuner programming

- Remove hardcoded fcv1236d tuner programmming from or51211.c
- Alter dvb-bt8xx for the pcHDTV-2000 to use dvb-pll for fcv1236d support.
Thanks to Jarom Hatch <jshatch@gmail.com> for testing this change.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5798): Dvb-pll: add support for Philips fcv1236d
Michael Krufky [Sat, 14 Oct 2006 01:18:01 +0000 (22:18 -0300)]
V4L/DVB (5798): Dvb-pll: add support for Philips fcv1236d

This patch adds support to the dvb-pll library for the
Philips fcv1236d tuner, based on the FCV1236D datasheet.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5795): Fix: remove unused struct that could avoiding load the firmware
Marco Gittler [Thu, 28 Jun 2007 13:10:00 +0000 (10:10 -0300)]
V4L/DVB (5795): Fix: remove unused struct that could avoiding load the firmware

The dvb_usb_device* d is not used anymore and can be removed.

Signed-off-by: Marco Gittler <g.marco@freenet.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5793): Tuner: remove hardware-specific info from public header
Michael Krufky [Tue, 26 Jun 2007 16:12:08 +0000 (13:12 -0300)]
V4L/DVB (5793): Tuner: remove hardware-specific info from public header

Move internal structures and debug macros to drivers/media/video/tuner-driver.h

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5792): Zr364xx: add support for Trust Powerc@m 970Z
Antoine Jacquet [Mon, 25 Jun 2007 19:00:34 +0000 (16:00 -0300)]
V4L/DVB (5792): Zr364xx: add support for Trust Powerc@m 970Z

Add Trust Powerc@m 970Z (0x06d6:0x003b) to the list of supported devices.

Signed-off-by: Antoine Jacquet <royale@zerezo.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5791): Fix Kbuild for kbd-ir-i2c
Mauro Carvalho Chehab [Mon, 25 Jun 2007 18:42:01 +0000 (15:42 -0300)]
V4L/DVB (5791): Fix Kbuild for kbd-ir-i2c

Potentially, all board types with I2C and IR support can use an i2c
based IR. Currently, the driver is selected only if bt848 or saa7134
boards are selected.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5790): Fix error handling for stv680
Mauro Carvalho Chehab [Mon, 25 Jun 2007 18:33:41 +0000 (15:33 -0300)]
V4L/DVB (5790): Fix error handling for stv680

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5789): Fix 3dfx Voodoo entries on Cardlist
Mauro Carvalho Chehab [Mon, 25 Jun 2007 18:21:05 +0000 (15:21 -0300)]
V4L/DVB (5789): Fix 3dfx Voodoo entries on Cardlist

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5788): Cx88-input: convert nested if's to switch..case
Michael Krufky [Mon, 25 Jun 2007 17:54:09 +0000 (14:54 -0300)]
V4L/DVB (5788): Cx88-input: convert nested if's to switch..case

In the function, cx88_ir_handle_key:
- convert nested if statement to a switch..case block

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5787): Cx88: add remote control support for Leadtek Winfast DTV1000
Edgar Pisani [Mon, 25 Jun 2007 17:46:05 +0000 (14:46 -0300)]
V4L/DVB (5787): Cx88: add remote control support for Leadtek Winfast DTV1000

Signed-off-by: Edgar Pisani <episani@onqweb.com.au>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5786): Ir-kbd-i2c: add support for Hauppauge HVR1300 remote
Jan Frey [Mon, 25 Jun 2007 17:34:06 +0000 (14:34 -0300)]
V4L/DVB (5786): Ir-kbd-i2c: add support for Hauppauge HVR1300 remote

- add support for the I2C based IR transceiver of the Hauppauge HVR-1300
- remove bad code from cx88-input.c

Signed-off-by: Jan Frey <jfrey@gmx.de>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5785): Revisited: 3dfx Voodoo TV 200 (US)
Wade Berrier [Mon, 25 Jun 2007 16:02:16 +0000 (13:02 -0300)]
V4L/DVB (5785): Revisited: 3dfx Voodoo TV 200 (US)

Fix support for 3dfx Voodoo TV 200 variant

Signed-off-by: Wade Berrier <wberrier@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5784): Dibusb-mb: fix tuner autodetection regression
Michael Krufky [Fri, 22 Jun 2007 20:41:07 +0000 (17:41 -0300)]
V4L/DVB (5784): Dibusb-mb: fix tuner autodetection regression

We must set i2c_msg.addr in order for the autodetection test to succeed!

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5783): Fix excess of debug messages on cx88-mpeg
Mauro Carvalho Chehab [Fri, 22 Jun 2007 20:26:54 +0000 (17:26 -0300)]
V4L/DVB (5783): Fix excess of debug messages on cx88-mpeg

Closes the issue opened on Kernel bugzilla:
http://bugzilla.kernel.org/show_bug.cgi?id=8383
There's no need to print timeout without debug turned on:
Apr 27 23:02:14 video kernel: cx88[1]/2-mpeg: cx8802_timeout

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5780): Dvb: Remove static dependencies on dvb-pll
Michael Krufky [Tue, 12 Jun 2007 19:10:51 +0000 (16:10 -0300)]
V4L/DVB (5780): Dvb: Remove static dependencies on dvb-pll

This patch removes all static dependencies on the dvb-pll module.
All exported dvb_pll_desc's have been UNexported, and the caller
will reference the individual dvb_pll_desc by it's index in the
pll_list array.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Acked-by: Oliver Endriss <o.endriss@gmx.de>
Acked-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5779): Dibusb-mb: fix broken 'tuner_pass_ctrl' functionality
Michael Krufky [Tue, 12 Jun 2007 15:43:25 +0000 (12:43 -0300)]
V4L/DVB (5779): Dibusb-mb: fix broken 'tuner_pass_ctrl' functionality

'tuner_pass_ctrl' functionality of the dib3000-mb devices was broken in
the previous changeset:

"dibusb-mb: convert pll handling to properly use dvb-pll"

This patch fixes this problem by assigning this functionality to the
i2c_gate_ctrl callback

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5778): Dvb-usb: kill unused tuner/i2c functions
Michael Krufky [Tue, 12 Jun 2007 15:40:35 +0000 (12:40 -0300)]
V4L/DVB (5778): Dvb-usb: kill unused tuner/i2c functions

These two functions are no longer being used:
dvb_usb_tuner_init_i2c
dvb_usb_tuner_set_params_i2c

This functionality has been taken over by dvb-pll

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5777): Dvb-pll digitv dvb-usb: Eliminate last user of dvb_pll_configure
Trent Piepho [Sat, 2 Jun 2007 19:30:46 +0000 (16:30 -0300)]
V4L/DVB (5777): Dvb-pll digitv dvb-usb: Eliminate last user of dvb_pll_configure

The last user of dvb_pll_configure was the dvb-usb function
dvb_usb_tuner_calc_regs(), which was nothing more than a wrapper around
dvb_pll_configure().  It's just a copy of the functionality provided by
the tuner_ops calc_regs method, and can be deleted.

There were two users of dvb_usb_tuner_calc_regs().
One was dvb_usb_tuner_set_params_i2c(), which is converted to use
fe->ops.tuner_ops.calc_regs().

The other was the digitv driver.  This driver can use one of two demods,
mt352 or nxt6000.

For the mt352, the driver would set tuner_ops.calc_regs to
dvb_usb_tuner_calc_regs().

We can just attach dvb_pll and use the tuner_ops.calc_regs() provided by
that module. For the nxt600, the driver would set tuner_ops.set_params
to digitv_nxt6000_tuner_set_params.

That function would in turn use dvb_usb_tuner_calc_regs().

We convert it to use tuner_ops.calc_regs() instead, and use
dvb_pll_attach.

The digitv_tuner_attach() needs to know which frontend was attached by
digitv_frontend_attach(), since the nxt6000 needs tuner_ops.set_params()
to be overridden with digitv_nxt6000_tuner_set_params().

So, to do this a digitv_state that says which frontend was used is added
to the dvb_usb_device private state field.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5776): Hardware MPEG audio fix for SAA7134 based "KNC One TV-Station DVR...
Rafael Bilski [Wed, 20 Jun 2007 08:37:27 +0000 (05:37 -0300)]
V4L/DVB (5776): Hardware MPEG audio fix for SAA7134 based "KNC One TV-Station DVR" card

With previous patch card is generating MPEG audio stream too.
Unfortunatly I2S audio output is muted. Unmute it.

Signed-off-by: Rafal Bilski <rafalbilski@interia.pl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5775): Alsa fix for SAA7134 based "KNC One TV-Station DVR" card
Rafał Bilski [Wed, 20 Jun 2007 08:36:26 +0000 (05:36 -0300)]
V4L/DVB (5775): Alsa fix for SAA7134 based "KNC One TV-Station DVR" card

Sound recording doesn't work for this card because ACNI and ACPF
are not set before snd_card_saa7134_capture_prepare(). As a result
timeout occurs. These registers aren't poked because thread
never gets wake up signal. ACNI initialization is done in the
thread.
Sound is muted when capture stops. Shouldn't be because it may
be used during TV playback.

Signed-off-by: Rafal Bilski <rafalbilski@interia.pl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5772): Cx88: remove two unused pointers from struct cx8802_dev
Michael Krufky [Fri, 15 Jun 2007 22:17:46 +0000 (19:17 -0300)]
V4L/DVB (5772): Cx88: remove two unused pointers from struct cx8802_dev

The following two pointers in struct cx8802_dev are unused - remove them:

void* fe_handle;
int   (*fe_release)(void *handle);

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5771): Get_dvb_firmware: update script for new location
Michael Krufky [Fri, 15 Jun 2007 22:14:52 +0000 (19:14 -0300)]
V4L/DVB (5771): Get_dvb_firmware: update script for new location

Get_dvb_firmware: update script for new location of sp8870 firmware

This url is no longer valid:
http://www.technotrend.de/new/217g/tt_Premium_217g.zip

Replace with:
http://www.softwarepatch.pl/9999ccd06a4813cb827dbb0005071c71/tt_Premium_217g.zip

Thanks-to: Tobias Stoeber <tobi@to-st.de>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5770): Ivtv: fix return code of VIDIOC_G/S_FBUF when no FB is present
Hans Verkuil [Sat, 16 Jun 2007 21:24:47 +0000 (18:24 -0300)]
V4L/DVB (5770): Ivtv: fix return code of VIDIOC_G/S_FBUF when no FB is present

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5769): Ivtv: fix broken VBI output support
Hans Verkuil [Sat, 16 Jun 2007 20:02:11 +0000 (17:02 -0300)]
V4L/DVB (5769): Ivtv: fix broken VBI output support

The old service_set_out setting was still tested, even though it no longer
was ever set and was in fact obsolete. This meant that everything that was
written to /dev/vbi16 was ignored. Removed the service_set_out variable
altogether and now it works again.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5768): Ivtv: fix converity warning
Hans Verkuil [Sat, 16 Jun 2007 19:46:56 +0000 (16:46 -0300)]
V4L/DVB (5768): Ivtv: fix converity warning

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5767): ZC0301 driver updates
Luca Risolia [Wed, 13 Jun 2007 18:11:15 +0000 (15:11 -0300)]
V4L/DVB (5767): ZC0301 driver updates

- Make the driver depend on V4L2 only (KConfig)
- Better and safe locking mechanism of the device structure on open(), close()
  and disconnect()
- Use kref for handling device deallocation
- Generic cleanups

Signed-off-by: Luca Risolia <luca.risolia@studio.unibo.it>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5766): ET61x251 driver updates
Luca Risolia [Wed, 13 Jun 2007 17:52:01 +0000 (14:52 -0300)]
V4L/DVB (5766): ET61x251 driver updates

- Make the driver depend on V4L2 only (KConfig)
- Better and safe locking mechanism of the device structure on open(),
  close() and disconnect()
- Use kref for handling device deallocation
- Generic cleanups

Signed-off-by: Luca Risolia <luca.risolia@studio.unibo.it>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5765): SN9C1xx driver updates
Luca Risolia [Wed, 13 Jun 2007 17:37:50 +0000 (14:37 -0300)]
V4L/DVB (5765): SN9C1xx driver updates

- Add support for pair OV7630+SN9C120
- Better and safe locking mechanism of the device structure on open(),
  close() and disconnect()
- Use kref for handling device deallocation
- Generic cleanups

Signed-off-by: Luca Risolia <luca.risolia@studio.unibo.it>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5763): Fix tea5761 unselection
Mauro Carvalho Chehab [Fri, 8 Jun 2007 11:21:27 +0000 (08:21 -0300)]
V4L/DVB (5763): Fix tea5761 unselection

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5759): Tuner-simple: store tuning operations in tuner_operations struct
Michael Krufky [Wed, 6 Jun 2007 19:17:57 +0000 (16:17 -0300)]
V4L/DVB (5759): Tuner-simple: store tuning operations in tuner_operations struct

Create static struct tuner_operations simple_tuner_ops
for tuner-simple tuning function callback pointers

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5758): Tea5767: store tuning operations in tuner_operations structure
Michael Krufky [Wed, 6 Jun 2007 19:17:17 +0000 (16:17 -0300)]
V4L/DVB (5758): Tea5767: store tuning operations in tuner_operations structure

Create static struct tuner_operations tea5767_tuner_ops for tea5767
tuning function callback pointers

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5757): Tea5761: store tuning operations in tuner_operations structure
Michael Krufky [Wed, 6 Jun 2007 19:16:29 +0000 (16:16 -0300)]
V4L/DVB (5757): Tea5761: store tuning operations in tuner_operations structure

Create static struct tuner_operations tea5761_tuner_ops
for tea5761 tuning function callback pointers

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5756): Tda9887: store tuning operations in tuner_operations structure
Michael Krufky [Wed, 6 Jun 2007 19:15:48 +0000 (16:15 -0300)]
V4L/DVB (5756): Tda9887: store tuning operations in tuner_operations structure

Create static struct tuner_operations tda9887_tuner_ops
for tda9887 tuning function callback pointers

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5755): Tda8290: store tuning operations in tuner_operations structure
Michael Krufky [Wed, 6 Jun 2007 19:15:15 +0000 (16:15 -0300)]
V4L/DVB (5755): Tda8290: store tuning operations in tuner_operations structure

Create static struct tuner_operations tda8290_tuner_ops
for tda8290 tuning function callback pointers

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5754): Mt20xx: store tuning operations in tuner_operations structure
Michael Krufky [Wed, 6 Jun 2007 19:14:18 +0000 (16:14 -0300)]
V4L/DVB (5754): Mt20xx: store tuning operations in tuner_operations structure

Create static struct tuner_operations mt2050_tuner_ops and mt2032_tuner_ops
for mt20xx tuning function callback pointers

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5753): Tuner: create struct tuner_operations
Michael Krufky [Wed, 6 Jun 2007 19:10:39 +0000 (16:10 -0300)]
V4L/DVB (5753): Tuner: create struct tuner_operations

Move tuner callback function pointers out of struct tuner, into
struct tuner_operations.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5750): Remove obsoleted support for PROC_FS on vicam.c
Mauro Carvalho Chehab [Thu, 7 Jun 2007 11:26:37 +0000 (08:26 -0300)]
V4L/DVB (5750): Remove obsoleted support for PROC_FS on vicam.c

Procfs support on V4L were converted to sysfs support by a pre-2.6 patch:

http://www.ussg.iu.edu/hypermail/linux/kernel/0307.1/2356.html

There's no sense on keeping the dead code inside vicam.c. Also,it won't
work anyway, as part of proc_fs support were previously inside
videodev.c.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5774a): Remove CONFIG_BIGPHYS_AREA from zoran_driver
Mauro Carvalho Chehab [Thu, 7 Jun 2007 11:10:41 +0000 (08:10 -0300)]
V4L/DVB (5774a): Remove CONFIG_BIGPHYS_AREA from zoran_driver

CONFIG_BIGPHYS_AREA is an out-of-tree kernel patch. It makes no sense to
keep supporting this on mainstream.

The out-of-tree compilation with CONFIG_BIGPHYS_AREA will still be
preserved at the v4l-dvb development tree at:
http://linuxtv.org/hg/v4l-dvb

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5747): Tea5761: remove duplicated "#include <media/tuner.h>"
Michael Krufky [Wed, 6 Jun 2007 18:28:10 +0000 (15:28 -0300)]
V4L/DVB (5747): Tea5761: remove duplicated "#include <media/tuner.h>"

The line, "#include <media/tuner.h>" appears twice.
This patch removes the second occurance.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5745): Dvb: use '+=' instead of '=' for EXTRA_CFLAGS
Trent Piepho [Mon, 4 Jun 2007 23:18:51 +0000 (20:18 -0300)]
V4L/DVB (5745): Dvb: use '+=' instead of '=' for EXTRA_CFLAGS

The Makefiles in the dvb directory tree used '=' when defining EXTRA_CFLAGS
rather than '+=', which is far more common in the rest of the kernel source.
  =  14 times (9 of which this patch removes)
 :=  25 times
 += 123 times
This change also has certain advantages for the out of kernel v4l-dvb build
system.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5743): Tuner: clean up kfree() after release
Michael Krufky [Mon, 4 Jun 2007 19:00:45 +0000 (16:00 -0300)]
V4L/DVB (5743): Tuner: clean up kfree() after release

Although it is safe to kfree(NULL), We only need to kfree(priv)
if the release callback is undefined.  As it stands now, there
is some redundancy in the operation of releasing the priv data
structures. This patch will call kfree(priv) and set priv to NULL,
if the release callback isnt defined.  Otherwise, let the release
callback handle this itself.
Thanks to Mauro Carvalho Chehab for suggesting this.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5742): Tuner: define release callback for mt20xx, tda9887 and tda8290
Michael Krufky [Mon, 4 Jun 2007 18:20:11 +0000 (15:20 -0300)]
V4L/DVB (5742): Tuner: define release callback for mt20xx, tda9887 and tda8290

Define tuner release callbacks for mt20xx, tda9887 and tda8290, so that
these drivers can release their own private structures themselves.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5741): Tuner: add release callback
Michael Krufky [Mon, 4 Jun 2007 17:40:27 +0000 (14:40 -0300)]
V4L/DVB (5741): Tuner: add release callback

Individual tuner drivers are now allocating memory themselves for
their own private data structures.  This changeset adds a release
callback to the tuner operations, so that newer drivers that may
require more complex data structures may release this private data
themselves.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5740): Git-dvb: fix the tea5761 tuner support
Adrian Bunk [Tue, 5 Jun 2007 08:22:00 +0000 (05:22 -0300)]
V4L/DVB (5740): Git-dvb: fix the tea5761 tuner support

Due to a typo the tea5761 tuner support was dead code.
This patch also fixes a bug in the no longer dead code:
A void function can't return anything.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5739): Replace C code with calls to ARRAY_SIZE macro.
Robert P. J. Day [Tue, 5 Jun 2007 08:20:56 +0000 (05:20 -0300)]
V4L/DVB (5739): Replace C code with calls to ARRAY_SIZE macro.

Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5734): Cx88: kill dev->fw_size
Michael Krufky [Wed, 30 May 2007 16:29:32 +0000 (13:29 -0300)]
V4L/DVB (5734): Cx88: kill dev->fw_size

Now that cx88-blackbird is only accepting the official firmware image,
we no longer have any need to store the size of the firmware inside the
cx88 data structure.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5733): Blackbird should accept only new cx2341x encoding firmwares
Hans Verkuil [Wed, 30 May 2007 12:39:46 +0000 (09:39 -0300)]
V4L/DVB (5733): Blackbird should accept only new cx2341x encoding firmwares

Remove temporary support for older 256 kB firmwares.
ivtv, pvrusb2 and blackbird can now all handle the newer larger firmwares,
so support for the older (buggier) firmware can be removed.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5729): Remove support for 256 Kb firmware files.
Hans Verkuil [Tue, 29 May 2007 10:18:55 +0000 (07:18 -0300)]
V4L/DVB (5729): Remove support for 256 Kb firmware files.

For backwards compatibility firmware files of 256 Kb were allowed: all
drivers have now been updated to support the newer larger firmwares so
remove this compatibility code and only support the newer firmware.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5727): Remove VIVI_SCATTER
Mauro Carvalho Chehab [Tue, 29 May 2007 10:14:59 +0000 (07:14 -0300)]
V4L/DVB (5727): Remove VIVI_SCATTER

vivi scatter method were used as a proof of concept. It can be
safelly removed from mainstream, since the current method is
faster and better than the previous solution.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5724): Saa7134-tvaudio: kthread conversion
Christoph Hellwig [Fri, 1 Jun 2007 23:15:26 +0000 (20:15 -0300)]
V4L/DVB (5724): Saa7134-tvaudio: kthread conversion

Acked-by: Hermann Pitton <hermann-pitton@arcor.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5719): Tuner: Move device-specific private data out of tuner struct
Michael Krufky [Wed, 30 May 2007 01:54:06 +0000 (22:54 -0300)]
V4L/DVB (5719): Tuner: Move device-specific private data out of tuner struct

Create private data struct for device specific private data.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5718): Mt20xx: whitespace cleanup
Michael Krufky [Tue, 29 May 2007 18:36:37 +0000 (15:36 -0300)]
V4L/DVB (5718): Mt20xx: whitespace cleanup

replace leading spaces with tabs

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5705): Removed unnecessary .hardware from video_device struct.
Douglas Schilling Landgraf [Sun, 27 May 2007 17:05:01 +0000 (14:05 -0300)]
V4L/DVB (5705): Removed unnecessary .hardware from video_device struct.

From: Douglas Schilling Landgraf <dougsland@gmail.com>

Signed-off-by: Douglas Schilling Landgraf <dougsland@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5704): Remove worthless references to obsolete MODULE_PARM macro.
Robert P. J. Day [Mon, 28 May 2007 19:21:40 +0000 (16:21 -0300)]
V4L/DVB (5704): Remove worthless references to obsolete MODULE_PARM macro.

Remove the long-dead references to the obsolete MODULE_PARM macro.
Given that the first one of those is actually misspelled as
"MODULE_PARAM", it's clear that they can't have been doing any good.
Acked-by: Thierry Merle <thierry.merle@free.fr>
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5698): Input: drivers/media - switch to using input_dev->dev.parent
Dmitry Torokhov [Mon, 16 Jul 2007 12:28:15 +0000 (09:28 -0300)]
V4L/DVB (5698): Input: drivers/media - switch to using input_dev->dev.parent

In preparation for struct class_device -> struct device input
core conversion switch to using input_dev->dev.parent when
specifying device position in sysfs tree.

Signed-off-by: Dmitry Torokhov <dtor at mail.ru>
Acked-by: Thierry Merle <thierry.merle@free.fr>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5701): Documentation/dvb/bt8xx.txt update
Uwe Bugla [Sat, 26 May 2007 10:56:29 +0000 (07:56 -0300)]
V4L/DVB (5701): Documentation/dvb/bt8xx.txt update

This patch synchronizes the Documentation for bt8xx-based cards to the
actual state of kernel 2.6.22-rc1.

Signed-off-by: Uwe Bugla <uwe.bugla@gmx.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5696): M920x: add missing error handling to prevent syslog spamming
Aapo Tahkola [Tue, 8 May 2007 21:33:52 +0000 (18:33 -0300)]
V4L/DVB (5696): M920x: add missing error handling to prevent syslog spamming

Signed-off-by: Aapo Tahkola <aet@rasterburn.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5695): M920x: enable second adapter on LifeView TV Walker Twin
Aapo Tahkola [Tue, 8 May 2007 21:23:38 +0000 (18:23 -0300)]
V4L/DVB (5695): M920x: enable second adapter on LifeView TV Walker Twin

Enable second adapter on LifeView TV Walker Twin DVB-T USB2.0

Signed-off-by: Aapo Tahkola <aet@rasterburn.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5694): M920x: fix for Dposh devices
Aapo Tahkola [Tue, 8 May 2007 21:21:47 +0000 (18:21 -0300)]
V4L/DVB (5694): M920x: fix for Dposh devices

Make sure devices manufactured by Dposh are not affected by previous hw
pid filtering changes

Doing so might crash it.

Signed-off-by: Aapo Tahkola <aet@rasterburn.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5693): M920x: second endpoint also needs to be changed to alt setting
Aapo Tahkola [Tue, 8 May 2007 15:56:54 +0000 (12:56 -0300)]
V4L/DVB (5693): M920x: second endpoint also needs to be changed to alt setting

Spotted by Jeremy Nysen.

Signed-off-by: Aapo Tahkola <aet@rasterburn.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5692): M920x: attempt to fix hw pid filters on second endpoint
Aapo Tahkola [Tue, 8 May 2007 15:03:55 +0000 (12:03 -0300)]
V4L/DVB (5692): M920x: attempt to fix hw pid filters on second endpoint

Signed-off-by: Aapo Tahkola <aet@rasterburn.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5685): Cx88: add support for ADS Tech Instant Video PCI
Daniel Gimpelevich [Thu, 17 May 2007 21:10:17 +0000 (18:10 -0300)]
V4L/DVB (5685): Cx88: add support for ADS Tech Instant Video PCI

Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5684): V4L: ir-kbd-i2c - switch to using msecs_to_jiffies()
Dmitry Torokhov [Mon, 21 May 2007 14:51:11 +0000 (11:51 -0300)]
V4L/DVB (5684): V4L: ir-kbd-i2c - switch to using msecs_to_jiffies()

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5683): V4L: cx88 - switch to using msecs_to_jiffies()
Dmitry Torokhov [Mon, 21 May 2007 14:48:11 +0000 (11:48 -0300)]
V4L/DVB (5683): V4L: cx88 - switch to using msecs_to_jiffies()

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5682): SAA7134 - switch to use msecs_to_jiffies()
Dmitry Torokhov [Mon, 21 May 2007 14:41:02 +0000 (11:41 -0300)]
V4L/DVB (5682): SAA7134 - switch to use msecs_to_jiffies()

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5681): Correct aliases for STD/L and STD/Lc
Mauro Carvalho Chehab [Mon, 21 May 2007 14:39:21 +0000 (11:39 -0300)]
V4L/DVB (5681): Correct aliases for STD/L and STD/Lc

Some macros were using very weird names, like PAL/L (this std doesn't
exist). Fixing it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5678): Zr364xx: fix return values
Akinobu Mita [Sun, 20 May 2007 12:12:10 +0000 (09:12 -0300)]
V4L/DVB (5678): Zr364xx: fix return values

This patch fixes several return value related problems in zr364xx.

- return -ENOMEM instead of -ENODEV on out of memory

- zr364xx checks video_register_device() error only when
  its return value is -1. But video_register_device() doesn't
  always return -1 on error.

- If usb_register() returns error, module_init() wrongly returns 1:
retval = usb_register(&zr364xx_driver) < 0;
...
return retval;

  And it allows the module to be loaded. Because sys_init_module() doesn't
  see positive return value as error.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Antoine Jacquet <royale@zerezo.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5674): Models 30012-30039 are for a low profile PVR250, not PVR150.
Hans Verkuil [Fri, 18 May 2007 19:18:17 +0000 (16:18 -0300)]
V4L/DVB (5674): Models 30012-30039 are for a low profile PVR250, not PVR150.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5671): Autodetect new PVR150 low profile cards.
Hans Verkuil [Thu, 17 May 2007 09:52:32 +0000 (06:52 -0300)]
V4L/DVB (5671): Autodetect new PVR150 low profile cards.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5669): Budget-av: Add support for EasyWatch DVB-S (0x1894:0x001b)
Oliver Endriss [Mon, 14 May 2007 02:25:57 +0000 (23:25 -0300)]
V4L/DVB (5669): Budget-av: Add support for EasyWatch DVB-S (0x1894:0x001b)

Add support for Satelco EasyWatch PCI DVB-S card (subsystem 0x1894:0x001b).

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5637): Cx88: kill core->pll_desc and core->pll_addr
Michael Krufky [Tue, 8 May 2007 21:23:40 +0000 (18:23 -0300)]
V4L/DVB (5637): Cx88: kill core->pll_desc and core->pll_addr

Now that dvb-pll is being used properly in all cx88-dvb instances,
the cx88 driver no longer needs to store pll_desc nor pll_addr.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5636): Integrate all users of the fmd1216 tuner with dvb-pll
Trent Piepho [Tue, 8 May 2007 21:05:16 +0000 (18:05 -0300)]
V4L/DVB (5636): Integrate all users of the fmd1216 tuner with dvb-pll

Enhance the dvb-pll definition of the fmd1216 tuner by adding an init sequence
and a sleep sequence.

The init sequence sets the AGC control register to 0xa0, selecting the fast
time constant and 112 dBuV take-over point.  This the recommended value for
DVB-T operation.

The sleep sequence sets bit P4 (which is believed to turn the analog
demodulator on), turns off the tuning voltage, and sets the AGC control
register to 0x60 (external AGC voltage, the recommended value for analog
operation).

The existing dvb-pll users in the cx88 driver, listed below, will gain these
init and sleep sequences.

CX88_BOARD_HAUPPAUGE_HVR1100    Hauppauge WinTV-HVR1100 DVB-T/Hybrid
CX88_BOARD_HAUPPAUGE_HVR1100LP  Hauppauge WinTV-HVR1100 DVB-T/Hybrid (Low Profi
CX88_BOARD_WINFAST_DTV2000H     WinFast DTV2000 H
CX88_BOARD_HAUPPAUGE_HVR3000    Hauppauge WinTV-HVR3000 TriMode Analog/DVB-S/DV
CX88_BOARD_HAUPPAUGE_HVR1300    Hauppauge WinTV-HVR1300 DVB-T/Hybrid MPEG Encod

This non-dvb-pll user in the cx88 driver should only gain the sleep sequence,
as it already had an equivalent init sequence.  The non-dvb-pll code for this
user is removed.

X88_BOARD_DNTV_LIVE_DVB_T_PRO   digitalnow DNTV Live! DVB-T Pro

In these saa7134 driver, these non-dvb-pll users are converted to use dvb-pll:

SAA7134_BOARD_MD7134                    Medion 7134
SAA7134_BOARD_ASUS_EUROPA2_HYBRID       Asus Europa2 OEM

The saa7134 functions philips_fmd1216_tuner_init(),
philips_fmd1216_tuner_sleep(), and philips_fmd1216_tuner_set_params() are
deleted and the dvb-pll versions are used.

This should result in equivalent sleep, init, and tuning sequences being sent
to the tuner.

For the cxusb driver, only one board is effected:

USB_PID_MEDION_MD95700           Medion MD95700

This board used dvb_usb_tuner_init_i2c() and dvb_usb_tuner_set_params_i2c()
for init and tuning, respectively.  These functions are effectively the same
as the dvb-pll versions.  They call a tuner pass control function defined at
the dvb-usb level, but this does not matter, as this card does not have a
tuner pass control function (only the dib3000mb does).  This board will gain
the sleep sequence, while init and tuning should be unchanged.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5628): Add support for A-LINK DTU dvb-t adapter
Aapo Tahkola [Tue, 8 May 2007 20:36:40 +0000 (17:36 -0300)]
V4L/DVB (5628): Add support for A-LINK DTU dvb-t adapter

Support for A-LINK DTU(m) is not included in this patch.

Signed-off-by: Aapo Tahkola <aet@rasterburn.org>
Acked-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5626): Marked af9005 driver as experimental and fix dependencies
Luca Olivetti [Mon, 7 May 2007 19:57:57 +0000 (16:57 -0300)]
V4L/DVB (5626): Marked af9005 driver as experimental and fix dependencies

Marked af9005 driver as experimental and add dependency for qt1010;
Added a dependency on qt1010 in Kconfig;
Corrected the experimental gain  reduction of the mt2060 in case of
strong signal (though it is code included in #ifdef 0).

Signed-off-by: Luca Olivetti <luca@ventoso.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5625): Add support for the AF9005 demodulator from Afatech
Luca Olivetti [Mon, 7 May 2007 18:19:32 +0000 (15:19 -0300)]
V4L/DVB (5625): Add support for the AF9005 demodulator from Afatech

Signed-off-by: Luca Olivetti <luca@ventoso.org>
Signed-off-by: Manu Abraham <abraham.manu@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5652): Dibusb-mb: use dvb_attach for dib3000mb_attach
Michael Krufky [Wed, 9 May 2007 17:52:52 +0000 (14:52 -0300)]
V4L/DVB (5652): Dibusb-mb: use dvb_attach for dib3000mb_attach

convert calls to dib3000mb_attach to use dvb_attach

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5651): Dibusb-mb: convert pll handling to properly use dvb-pll
Michael Krufky [Wed, 9 May 2007 18:58:17 +0000 (15:58 -0300)]
V4L/DVB (5651): Dibusb-mb: convert pll handling to properly use dvb-pll

moved tda665x pll_init into dvb_pll_desc dvb_pll_tda665x.initdata
convert handling of tda665x and tua6010xs to properly use dvb-pll

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5650): Umt-010: trivial whitespace cleanup
Michael Krufky [Wed, 9 May 2007 16:34:54 +0000 (13:34 -0300)]
V4L/DVB (5650): Umt-010: trivial whitespace cleanup

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5649): Umt-010: convert tua6034 handling to properly use dvb-pll
Michael Krufky [Wed, 9 May 2007 16:33:21 +0000 (13:33 -0300)]
V4L/DVB (5649): Umt-010: convert tua6034 handling to properly use dvb-pll

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5648): Dvb/frontends: remove unnecessary #include's of "dvb-pll.h"
Michael Krufky [Wed, 9 May 2007 14:49:24 +0000 (11:49 -0300)]
V4L/DVB (5648): Dvb/frontends: remove unnecessary #include's of "dvb-pll.h"

These sources do not need to #include "dvb-pll.h"

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5647): Saa7134: enable ir-remote for 10moons TM300
Tony Wan [Fri, 11 May 2007 14:33:50 +0000 (11:33 -0300)]
V4L/DVB (5647): Saa7134: enable ir-remote for 10moons TM300

Using Encore's key codes, we needn't add any additional key table.

Signed-off-by: Tony Wan <wankai@sjtu.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5646): V4l: saa7134: add support for 10moons TM300 card
Tony Wan [Thu, 10 May 2007 15:16:47 +0000 (12:16 -0300)]
V4L/DVB (5646): V4l: saa7134: add support for 10moons TM300 card

Support the 10moons TM300 TV card (so called TV Master 3), which is a
10moons saa7130 based board.  Here not include features for the
IR-remote.
It has been tested using TVTIME.  The card was auto-detected and all the
input sources worked correct with sound.

Signed-off-by: Tony Wan <wankai@sjtu.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5644): Usbvision: video_ioctl2 conversion
Thierry MERLE [Tue, 8 May 2007 20:22:29 +0000 (17:22 -0300)]
V4L/DVB (5644): Usbvision: video_ioctl2 conversion

The ioctl entry point, a big switch/case, is splitted in little
functions.

These functions are set as callbacks for the video_ioctl2 video4linux
facility.

This improves the driver memory consumption and enables the v4l1
compatibility as a side effect.

Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Acked-by: Dwaine P. Garden <dwainegarden@rogers.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5643): Usbvision: make common video and radio ioctls
Thierry MERLE [Wed, 2 May 2007 21:43:55 +0000 (18:43 -0300)]
V4L/DVB (5643): Usbvision: make common video and radio ioctls

Radio and video ioctls are the same,
delete the usbvision_do_radio_ioctl function
add the special cases for radio in usbvision_v4l2_do_ioctl

Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5642): add comment that VO_MODE is also being set.
David Warman [Mon, 30 Apr 2007 17:17:04 +0000 (14:17 -0300)]
V4L/DVB (5642): add comment that VO_MODE is also being set.

usbvision_set_video_format: add comment that VO_MODE is also being set.

Signed-off-by: David Warman <dwarman@davidwarman.net>
Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5641): change VideoNorm to NTSC for Belkin USB Videobus II
David Warman [Mon, 30 Apr 2007 17:12:19 +0000 (14:12 -0300)]
V4L/DVB (5641): change VideoNorm to NTSC for Belkin USB Videobus II

Signed-off-by: David Warman <dwarman@davidwarman.net>
Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5635): Budget-av: convert philips sd1878 / tda8261 to use dvb-pll
Michael Krufky [Mon, 7 May 2007 04:48:56 +0000 (01:48 -0300)]
V4L/DVB (5635): Budget-av: convert philips sd1878 / tda8261 to use dvb-pll

removed philips_sd1878_tda8261_tuner_set_params, using dvb_pll_attach, instead.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5634): Saa7134-dvb: convert philips td1316 handling to use dvb-pll
Michael Krufky [Mon, 7 May 2007 04:34:36 +0000 (01:34 -0300)]
V4L/DVB (5634): Saa7134-dvb: convert philips td1316 handling to use dvb-pll

removed mt352_aver777_tuner_calc_regs, using dvb_pll_attach, instead.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5633): Tuv1236d: move rf input switching code into dvb-pll
Michael Krufky [Sat, 5 May 2007 15:15:57 +0000 (12:15 -0300)]
V4L/DVB (5633): Tuv1236d: move rf input switching code into dvb-pll

This patch removes duplicate code from cx88-dvb and saa7134-dvb that handles
rf input switching for the TUV1236d tuner.

The functionality is added to dvb-pll, where all the other code that
handles the TUV1236d is kept.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5632): Dvb-pll: pass dvb_frontend_parameters to generic set() function
Michael Krufky [Sat, 5 May 2007 15:05:39 +0000 (12:05 -0300)]
V4L/DVB (5632): Dvb-pll: pass dvb_frontend_parameters to generic set() function

Rename dvb_pll_desc.setbw() to set(), and accept struct dvb_frontend_parameters
instead of passing both freq and bandwidth, so that this may be used as a
generic function.

In order to do this, dvb_pll_configure must also be altered in the same manner,
to take struct dvb_frontend_parameters instead of freq and bandwidth.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5631): Dvb-core: Add level fixes to printk()s, plus spelling/grammer
Simon Arlott [Mon, 7 May 2007 00:06:32 +0000 (21:06 -0300)]
V4L/DVB (5631): Dvb-core: Add level fixes to printk()s, plus spelling/grammer

All the printks had missing level prefixes so I've fixed these too.
Also fixed some grammer errors.

Signed-off-by: Simon Arlott <simon@fire.lp0.eu>
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agoV4L/DVB (5629): Cx88: VP3054 support can't be a module when cx88 is compiled in
Trent Piepho [Sat, 5 May 2007 23:11:32 +0000 (20:11 -0300)]
V4L/DVB (5629): Cx88: VP3054 support can't be a module when cx88 is compiled in

If cx88 support is compiled into the kernel while vp3054 is left as a module,
the kernel will fail to link.  Adjust the existing "#if" code in cx88 so
that it won't consider vp3054 to be supported in this case.

It might make sense to move vp3054 selection into the "customisation" menu
instead of a cx88 sub-option (though this is a cx88 feature, there is no extra
chip involved).

It might also make sense to use dvb_attach() to load vp3054 support.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>