summaryrefslogtreecommitdiffstats
path: root/drivers/media/video
Commit message (Collapse)AuthorAgeFilesLines
* V4L/DVB (9930): em28xx: Fix bad locks on error conditionMauro Carvalho Chehab2008-12-301-6/+6
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9927): em28xx: use a more standard way to specify video formatsMauro Carvalho Chehab2008-12-303-21/+69
| | | | | | | This patch uses the same code for enumberating video formats that are present on cx88, bttv and saa7134 drivers. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9926): em28xx: Fix a bug that were putting xc2028/3028 tuner to sleepMauro Carvalho Chehab2008-12-301-1/+2
| | | | | | | | | | | | | | | | | | | The changeset 78aa52a159cf introduced a bug on em28xx: buffer setup should be awaking xc3028. Instead, since we didn't specify the tuner mode, the device were going to sleep, due to the lack of tuner mode when asking tuner to handle VIDIOC_S_FREQUENCY: xc2028 0-0061: Device is Xceive 3028 version 1.0, firmware version 2.7 xc2028 0-0061: divisor= 00 00 14 d0 (freq=83.250) xc2028 0-0061: Putting xc2028/3028 into poweroff mode. xc2028 0-0061: Printing sleep stack trace: Pid: 10936, comm: mplayer Tainted: P M 2.6.27.8 #1 Call Trace: [<ffffffffa0b759ea>] xc2028_sleep+0x89/0x1ab [tuner_xc2028] [<ffffffffa0b48fb9>] tuner_s_frequency+0xf5/0x165 [tuner] Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9925): tuner-core: add debug msg's when asking tuner to sleepMauro Carvalho Chehab2008-12-301-0/+4
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9922): em28xx: don't assume every eb1a:2820 reference design is a ↵Devin Heitmueller2008-12-301-1/+1
| | | | | | | | | | | | Prolink PlayTV USB2 Don't operate under the assumption that every device that uses the em2820 default USB ID is a Prolink PlayTV USB. We have an eeprom hash, so use that, since otherwise we cannot support other devices with the 2820 default USB ID (such as the ADS Tech Instant TV USB USBAV-704) Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9921): em28xx: add chip id for em2874Devin Heitmueller2008-12-302-0/+5
| | | | | | | Add the em2870 to the list of known em28xx chip ids. Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9918): cx88: advise/acquire clean-up for HVR-1300/3000/4000Darron Broad2008-12-302-24/+36
| | | | | | | | | | | | | | This cleans-up the advise/acquire methods. This has been tested on the hvr-1300/4000 and assumed to be correct on the hvr-3000. This update also fixes analogue tuning on the hvr-1300 when in blackbird mode. Signed-off-by: Darron Broad <darron@kewl.org> Cc: Steven Toth <stoth@hauppauge.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9912): em28xx: fix/improve em28xx locking schemaMauro Carvalho Chehab2008-12-301-12/+43
| | | | | | | | | | | | | | | Changes/fixes on em28xx dev->lock: - em28xx_init_dev() were unlocking without a previous lock; - some read ioctls need to lock after the removal of KBL, since a write may be happening at the same time an ioctl is reading; - keep the device locked during all device initialization; - lock/unlock while reading/writing registers. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9911): em28xx: vidioc_try_fmt_vid_cap() doesn't need any lockMauro Carvalho Chehab2008-12-301-8/+5
| | | | | | | | | | | vidioc_try_fmt_vid_cap() just checks if a given resolution is supported. It doesn't touch on struct em28xx device descriptor. so, there's no need to lock. While there, use unlikely() for those values that aren't likely to occur. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9910): em28xx: move res_get locks to the caller routinesMauro Carvalho Chehab2008-12-301-11/+25
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9909): em28xx: move dev->lock from res_free to the caller routinesMauro Carvalho Chehab2008-12-301-4/+3
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9905): v4l2-compat32: add missing newline after kernel messageHans Verkuil2008-12-301-0/+2
| | | | | Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9904): v4l: fix compile warning.Hans Verkuil2008-12-301-1/+1
| | | | | | | Fix (bogus) compile warning about uninitialized variable. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9903): uvcvideo: V4L2 zoom controls supportLaurent Pinchart2008-12-303-14/+71
| | | | | | | | Add support for absolute and continuous zoom controls (mapped to absolute and relative UVC zoom controls). Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9902): uvcvideo: V4L2 privacy control supportLaurent Pinchart2008-12-301-0/+10
| | | | | Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9899): v4l2: Add missing control namesLaurent Pinchart2008-12-301-11/+77
| | | | | | | | Update v4l2_ctrl_get_name() and v4l2_ctrl_get_menu() with missing control names and menu values. Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9895): cx18: Refine the firmware load and firmware startup processAndy Walls2008-12-305-52/+60
| | | | | | | | | Refine the firmware load and firmware startup process. Significant changes are to ensure the SCB and IPC area are correct before starting up the firmware, and letting the CPU firmware start up the APU firmware for us. Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9894): cx18: Use a known open task handle when setting stream ↵Andy Walls2008-12-304-4/+19
| | | | | | | | | | | | CX2341x parameters cx18: Use a known open task handle when setting stream CX2341x parameters Sometimes, we might only have VBI or YUV stream open instead of an MPEG stream. Let's make sure we use a valid task handle to perform the CX2341x control settings. Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9893): cx18: Convert some list manipulations to emphasize entries ↵Andy Walls2008-12-302-11/+7
| | | | | | | not lists Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9892): cx18: VBI comment corrections and comments about VBI issuesAndy Walls2008-12-301-4/+12
| | | | | | | | VBI comment corrections to avoid future confusion about standards. Comments on cx18 VBI implementation shortcomings that need resolution. Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9891): cx18 Replace magic number 63 with CX18_MAX_FW_MDLS_PER_STREAMAndy Walls2008-12-303-6/+9
| | | | | | | | Removed magic number that referred to firmware limit on the number of MDLs the firmware can maintain for any stream at any one time. Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9884): gspca - ov534: Fix a warning when compilation without ↵Jean-Francois Moine2008-12-301-0/+2
| | | | | | | GSPCA_DEBUG. Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9883): gspca - ov534: Show sensor ID.Antonio Ospite2008-12-301-0/+17
| | | | | | | | | | | The original version of sccb_read_reg() is from Jim Paris. NOTE: as it is now reading sensor ID won't work for sensors on different i2c slave address. Signed-off-by: Antonio Ospite <ospite@studenti.unina.it> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9882): gspca - ov534: Fix typo.Antonio Ospite2008-12-301-1/+1
| | | | | | Signed-off-by: Antonio Ospite <ospite@studenti.unina.it> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9880): gspca - vc032x: Add V&H flips and sharpness controls for ↵Jean-Francois Moine2008-12-301-9/+68
| | | | | | | sensor po1200. Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9879): gspca - vc032x: Remove the unused quality/qindex.Jean-Francois Moine2008-12-301-7/+0
| | | | | Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9878): gspca - vc032x: Fix frame overflow errors with vc0321.Hans de Goede2008-12-301-0/+6
| | | | | | | | | The vc0321 sends some additional data after sending the complete frame, we ignore this. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9877): gspca - ov534: Add framerate support.Jim Paris2008-12-301-37/+78
| | | | | | | | | Add support for getting and setting framerate via v4l2 controls, rather than setting a fixed value at module insertion. Signed-off-by: Jim Paris <jim@jtan.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9876): gspca - main: Allow subdrivers to handle v4l2_streamparm ↵Jim Paris2008-12-302-0/+26
| | | | | | | | | | | requests. Add get_streamparm and set_streamparm operations so subdrivers can get/set stream parameters such as framerate. Signed-off-by: Jim Paris <jim@jtan.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9874): gspca - ov534: Explicitly initialize frame format.Jim Paris2008-12-301-0/+4
| | | | | | | | | Set frame format registers 0x0a and 0x0b to explicit values rather than relying on reset-time defaults. Signed-off-by: Jim Paris <jim@jtan.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9873): gspca - ov534: Improve payload handling.Jim Paris2008-12-301-5/+18
| | | | | | | | | Frame data in bulk transfers is separated into 2048-byte payloads. Each payload has its own header. Signed-off-by: Jim Paris <jim@jtan.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9871): gspca - vc032x: Bad detection of sensor mi0360.Jean-Francois Moine2008-12-301-1/+1
| | | | | Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9870): gspca - vc032x: Webcam 15b8:6002 and sensor po1200 added.Jean-Francois Moine2008-12-301-8/+311
| | | | | Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9869): gspca - zc3xx: Change the USB exchanges for the sensor pas202b.Jean-Francois Moine2008-12-301-375/+348
| | | | | | | | | This sensor was declared as hdcs2020. The new exchanges have been extracted from the ms-win file usbvm31b.inf. The light frequency control has been added. Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9868): gspca - zc3xx: Remove the duplicated register namesJean-Francois Moine2008-12-302-44/+36
| | | | | Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9867): gspca - vc032x: Remove the autogain control.Jean-Francois Moine2008-12-301-44/+3
| | | | | | | This control was not coded. Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9866): gspca - vc032x: V and H flips added for sensors ov7660 and 7670.Jean-Francois Moine2008-12-301-9/+128
| | | | | Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9865): gspca - vc032x: Bad check of the sensor mi0360.Jean-Francois Moine2008-12-301-7/+7
| | | | | | | Error was due to bad variable names. Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9864): gspca - ov519: Change copyright information.Romain Beauxis2008-12-301-1/+12
| | | | | | Signed-off-by: Romain Beauxis <toots@rastageeks.org> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9863): gspca - sonixj: Cleanup / simplify code.Jean-Francois Moine2008-12-301-31/+34
| | | | | Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9861): gspca - ov534: Accept many simultaneous webcams.Jean-Francois Moine2008-12-301-6/+7
| | | | | | | This patch moves the last fid and pts from static to the sd structure. Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9860): gspca - ov534: Frame transfer improvements.Jim Paris2008-12-301-32/+71
| | | | | | | | | | | | | | The indirect registers at 0x1c/0x1d control frame settings. If we leave the values at 0x0a and 0x0b at their reset-time defaults, frame data from the camera matches the UVC payload format. This lets us better reassemble the data into frames and know when data was lost. This also lets us relax the bulk_size requirement from 600K to 2K, which should help systems on with limited RAM (like the PS3). Signed-off-by: Jim Paris <jim@jtan.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9859): gspca - ov534: Fix frame size so we don't miss the last pixel.Jim Paris2008-12-301-19/+9
| | | | | | | | | The frame size is too small, so we lose the last YUYV pixel. Fix the setup and remove the last_pixel hack. Signed-off-by: Jim Paris <jim@jtan.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9858): gspca - ov534: Initialization cleanup.Jim Paris2008-12-301-178/+159
| | | | | | Signed-off-by: Jim Paris <jim@jtan.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9857): gspca: Use smaller chunks for urb buffer in ov534.Antonio Ospite2008-12-301-16/+30
| | | | | | Signed-off-by: Antonio Ospite <ospite@studenti.unina.it> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9856): gspca: Use u8 values for USB control messages in ov534.Antonio Ospite2008-12-301-14/+14
| | | | | | Signed-off-by: Antonio Ospite <ospite@studenti.unina.it> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9855): gspca: Simplify frame rate setting and debug in ov534.Antonio Ospite2008-12-301-17/+9
| | | | | | Signed-off-by: Antonio Ospite <ospite@studenti.unina.it> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9853): gspca: Webcam 093a:2622 added in pac7311.Jean-Francois Moine2008-12-301-0/+1
| | | | | Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9852): gspca: Fix image problem at low resolutions with ov7660 in ↵Jean-Francois Moine2008-12-301-10/+6
| | | | | | | sonixj. Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* V4L/DVB (9850): gspca: Bad color control in sonixj.Jean-Francois Moine2008-12-301-4/+4
| | | | | Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
OpenPOWER on IntegriCloud