GitHub/exynos8895/android_kernel_samsung_universal8895.git
16 years agoV4L/DVB (7676): saa7134: fix: Properly handle busy states on i2c bus
Dmitry Belimov [Wed, 23 Apr 2008 17:07:09 +0000 (14:07 -0300)]
V4L/DVB (7676): saa7134: fix: Properly handle busy states on i2c bus

There are two conditions, reported by saa7134 that indicates that the I2C bus
is busy: TO_SCL and TO_ARB.

On both states, it needs to wait for I2C release, before using the bus.

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7675): tea5767 autodetection is not working on some saa7134 boards
Dmitry Belimov [Wed, 23 Apr 2008 17:01:52 +0000 (14:01 -0300)]
V4L/DVB (7675): tea5767 autodetection is not working on some saa7134 boards

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7674): tda10048: Adding an SNR table
Steven Toth [Wed, 23 Apr 2008 01:52:01 +0000 (22:52 -0300)]
V4L/DVB (7674): tda10048: Adding an SNR table

Trying to improve the SNR reporting.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7673): cx23885: Add support for the Hauppauge HVR1400
Steven Toth [Tue, 22 Apr 2008 18:38:26 +0000 (15:38 -0300)]
V4L/DVB (7673): cx23885: Add support for the Hauppauge HVR1400

DVB-T mode is now supported using the DiBcom dib7000p demodulator
and the Xceive xc3028L silicon tuner. Analog mode is not supported.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Reviewed-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7672): dib7000p: Add output mode param to the attach struct
Steven Toth [Tue, 22 Apr 2008 18:37:01 +0000 (15:37 -0300)]
V4L/DVB (7672): dib7000p: Add output mode param to the attach struct

This allows future drivers to select the most appropriate output mode.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Reviewed-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7671): pxa-camera: fix DMA sg-list coalescing for more than 2 buffers
Guennadi Liakhovetski [Tue, 22 Apr 2008 13:40:23 +0000 (10:40 -0300)]
V4L/DVB (7671): pxa-camera: fix DMA sg-list coalescing for more than 2 buffers

Currently the pxa-camera driver has a bug, visible when the user requests
more than 2 video buffers. When the third buffer is queued, it is not
appended to the DMA-descriptor list of the second buffer, but is again
appended to the first buffer. Fix it.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7670): pxa-camera: handle FIFO overruns
Guennadi Liakhovetski [Tue, 22 Apr 2008 13:37:49 +0000 (10:37 -0300)]
V4L/DVB (7670): pxa-camera: handle FIFO overruns

FIFO overruns are not seldom on PXA camera interface FIFOs. Handle them by
dropping the corrupted frame, waiting for the next start-of-frame, and
restarting capture.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7669): pxa_camera: Add support for YUV modes
Mike Rapoport [Tue, 22 Apr 2008 13:36:32 +0000 (10:36 -0300)]
V4L/DVB (7669): pxa_camera: Add support for YUV modes

This patch adds support for YUV packed and planar capture for pxa_camera.

Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7668): soc-camera: Remove redundant return
Guennadi Liakhovetski [Tue, 22 Apr 2008 13:33:39 +0000 (10:33 -0300)]
V4L/DVB (7668): soc-camera: Remove redundant return

This obviously redundant return has been in the driver from the very first
version. Remove it.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7666): meye: Replace meye_do_ioctl to use video_ioctl2
Douglas Schilling Landgraf [Thu, 10 Apr 2008 05:07:14 +0000 (02:07 -0300)]
V4L/DVB (7666): meye: Replace meye_do_ioctl to use video_ioctl2

Convert meye to use video_ioctl2

Signed-off-by: Douglas Schilling Landgraf <dougsland@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7665): videodev: Add default vidioc handler
Douglas Schilling Landgraf [Thu, 10 Apr 2008 04:18:56 +0000 (01:18 -0300)]
V4L/DVB (7665): videodev: Add default vidioc handler

Added default vidioc handler for other private ioctls

Signed-off-by: Douglas Schilling Landgraf <dougsland@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7663): budget: Support for Activy budget card with BSBE1 tuner
Oliver Endriss [Mon, 21 Apr 2008 01:34:57 +0000 (22:34 -0300)]
V4L/DVB (7663): budget: Support for Activy budget card with BSBE1 tuner

Add support for Activy budget card with BSBE1 tuner, subsystem id 0x1131:0x4f60.
Low band and DiSEqC support should work now (BSBE1 and BSRU6 tuner).

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7662): stv0299: Fixed some typos
Oliver Endriss [Mon, 21 Apr 2008 01:13:37 +0000 (22:13 -0300)]
V4L/DVB (7662): stv0299: Fixed some typos

Fixed some typos.

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7661): stv0299: Add flag to turn off OP0 output
Oliver Endriss [Mon, 21 Apr 2008 00:57:34 +0000 (21:57 -0300)]
V4L/DVB (7661): stv0299: Add flag to turn off OP0 output

Add flag to turn off OP0 output.

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7660): bsbe1: Use settings recommended by the manufacturer
Oliver Endriss [Sun, 20 Apr 2008 23:41:42 +0000 (20:41 -0300)]
V4L/DVB (7660): bsbe1: Use settings recommended by the manufacturer

Reworked the BSBE1 tuner support in bsbe1.h to follow
the ALPS-recommended parameters more closely.

Tested with BSBE1-based Activy cards and TT DVB-S rev 2.3.

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7659): dvb-core: Implement DMX_SET_BUFFER_SIZE for dvr
Andrea Odetti [Sun, 20 Apr 2008 22:14:51 +0000 (19:14 -0300)]
V4L/DVB (7659): dvb-core: Implement DMX_SET_BUFFER_SIZE for dvr

Implementation of DMX_SET_BUFFER_SIZE for dvr.
Synchronization of the code of DMX_SET_BUFFER_SIZE for demux and dvr.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7658): dvb-core: Fix DMX_SET_BUFFER_SIZE in case the buffer shrinks
Andrea Odetti [Sun, 20 Apr 2008 21:37:45 +0000 (18:37 -0300)]
V4L/DVB (7658): dvb-core: Fix DMX_SET_BUFFER_SIZE in case the buffer shrinks

This patch fixes the bug in DMX_SET_BUFFER_SIZE for the demux.
Basically it resets read and write pointers to 0 in case they are
beyond the new size of the buffer.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7656): tda826x: Calculate cut off fequency from symbol rate
Hartmut Hackmann [Mon, 14 Apr 2008 01:41:19 +0000 (22:41 -0300)]
V4L/DVB (7656): tda826x: Calculate cut off fequency from symbol rate

This patch makes the tuner work with transonders providing higher
symbol rates.
It was contributed by Oliver Endriss.

Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7655): tda10086 coding stlye fixes
Hartmut Hackmann [Mon, 14 Apr 2008 00:09:11 +0000 (21:09 -0300)]
V4L/DVB (7655): tda10086 coding stlye fixes

This patch replaces the c++ style comments.
No functional changes

Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7654): tda10086: make the xtal frequency a configuration option
Hartmut Hackmann [Thu, 10 Apr 2008 02:07:11 +0000 (23:07 -0300)]
V4L/DVB (7654): tda10086: make the xtal frequency a configuration option

Some DVB-S boards, i.e. with the SD1878 tuner, use a 4 MHz reference frequency.
This reqires a different setup of the clock PLL.
This patch adds an enum to the tda10086_config struct and sets the proper
values for the boards.

This patch also fixes the DVB-S section of the MD7134_BRIDGE_2

Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7653): tuner-xc2028: drop the severity of version reporting
Devin Heitmueller [Mon, 21 Apr 2008 10:02:09 +0000 (07:02 -0300)]
V4L/DVB (7653): tuner-xc2028: drop the severity of version reporting

tuner-xc2028.c
 - Drop the severity level of the xc3028 version reporting, since it's
   only of interest to developers and user's don't need to have it show up
   in their dmesg output every time they change the channel.

Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7652): em28xx: Drop the severity level of the "urb resubmit failed"
Devin Heitmueller [Mon, 21 Apr 2008 10:01:09 +0000 (07:01 -0300)]
V4L/DVB (7652): em28xx: Drop the severity level of the "urb resubmit failed"

em28xx-core.c
 - Drop the severity level of the "urb resubmit failed" to debug, since it
   occurs every time a stream disconnects, which fills the dmesg log

Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7651): tuner-xc2028: Several fixes to SCODE
Mauro Carvalho Chehab [Mon, 21 Apr 2008 09:58:48 +0000 (06:58 -0300)]
V4L/DVB (7651): tuner-xc2028: Several fixes to SCODE

This patch fixes several issues on SCODE:

1) The extracting tool weren't generating the proper tags for SCODE. This
   has almost no effect, since those tags shouldn't be used;

2) DIBCOM52 were using a wrong IF. It should be 5200, instead of 5700;

3) seek_firmware were wanting an exact match for firmware type. This is
   wrong. As result, no SCODE firmware were loaded;

4) A few files were including the wrong file for seeking demod firmwares;

5) XC3028_FE_DEFAULT can be used, if user doesn't want to load a firmware.
   However, this weren't documentated. This feature require more testing.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7650): git-dvb: Kconfig fix
Andrew Morton [Fri, 18 Apr 2008 01:16:31 +0000 (22:16 -0300)]
V4L/DVB (7650): git-dvb: Kconfig fix

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7648): cx23885: Load any module dependencies accordingly
Steven Toth [Sat, 19 Apr 2008 04:36:06 +0000 (01:36 -0300)]
V4L/DVB (7648): cx23885: Load any module dependencies accordingly

For boards that require the avcore (cx25840) to be active, ensure
it gets loaded.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7647): Add support for the Hauppauge HVR-1700 digital mode
Steven Toth [Sat, 19 Apr 2008 04:25:52 +0000 (01:25 -0300)]
V4L/DVB (7647): Add support for the Hauppauge HVR-1700 digital mode

This adds support for DVB-T mode only, analog is not supported.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7646): cx25840: Ensure GPIO2 is correctly set for cx23885/7/8 based products
Steven Toth [Sat, 19 Apr 2008 04:18:47 +0000 (01:18 -0300)]
V4L/DVB (7646): cx25840: Ensure GPIO2 is correctly set for cx23885/7/8 based products

cx25840: Ensure GPIO2 is correctly set for cx23885/7/8 based products.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7645): Add support for the Hauppauge HVR-1200
Steven Toth [Sat, 19 Apr 2008 04:14:19 +0000 (01:14 -0300)]
V4L/DVB (7645): Add support for the Hauppauge HVR-1200

This adds support for DVB-T mode only, analog mode is not supported.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7644): Adding support for the NXP TDA10048HN DVB OFDM demodulator
Steven Toth [Sat, 19 Apr 2008 04:06:25 +0000 (01:06 -0300)]
V4L/DVB (7644): Adding support for the NXP TDA10048HN DVB OFDM demodulator

Adding support for the NXP TDA10048HN DVB OFDM demodulator

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7642): cx88: enable radio GPIO correctly
Steven Toth [Sat, 5 Apr 2008 19:45:57 +0000 (16:45 -0300)]
V4L/DVB (7642): cx88: enable radio GPIO correctly

cx88: enable radio GPIO correctly.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7641): V4L: ov511 - use usb_interface as parent, not usb_device
Kay Sievers [Fri, 18 Apr 2008 01:55:29 +0000 (22:55 -0300)]
V4L/DVB (7641): V4L: ov511 - use usb_interface as parent, not usb_device

The current code creates a bogus DEVPATH:
  /devices/pci0000:00/0000:00:1d.0/usb1/1-2/video4linux/video0
while it should be:
  /devices/pci0000:00/0000:00:1d.0/usb1/1-2/1-2:1.0/video4linux/video0

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
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>