summaryrefslogtreecommitdiffstats
path: root/drivers/media/video
Commit message (Collapse)AuthorAgeFilesLines
...
| * V4L/DVB (13488): gspca - ov534: Remove extra values at end of ov965x sequences.Jean-Francois Moine2009-12-051-14/+0Star
| | | | | | | | | | Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13487): gspca - ov534: Add svga, xga and sxga modes for ov965x.Jean-Francois Moine2009-12-051-37/+262
| | | | | | | | | | Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13478): cx18: remove bogus init call.Hans Verkuil2009-12-052-8/+7Star
| | | | | | | | | | | | | | | | | | The cx18 av core implemented an init call for no good reason. It's now turned into an internal function. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Reviewed-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13469): Davinci VPFE Capture: Add support for Control ioctlsVaibhav Hiremath2009-12-051-0/+38
| | | | | | | | | | | | | | | | | | | | | | Added support for Control IOCTL, - s_ctrl - g_ctrl - queryctrl Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13467): V4L2: Added CID's V4L2_CID_ROTATE/BG_COLORVaibhav Hiremath2009-12-051-0/+9
| | | | | | | | | | | | Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13466): Davinci VPFE Capture:Replaced IRQ_VDINT1 with ↵Vaibhav Hiremath2009-12-051-1/+1
| | | | | | | | | | | | | | | | vpfe_dev->ccdc_irq1 Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13465): Davinci VPFE Capture: Take i2c adapter id through platform dataVaibhav Hiremath2009-12-051-2/+1Star
| | | | | | | | | | | | | | | | | | The I2C adapter ID is actually depends on Board and may vary, Davinci uses id=1, but in case of AM3517 id=3. Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13463): Davinci VPFE Capture: Specify device pointer in ↵Vaibhav Hiremath2009-12-051-1/+1
| | | | | | | | | | | | | | | | videobuf_queue_dma_contig_init Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13453): gspca - all subdrivers: Remove the unused frame ptr from ↵Jean-Francois Moine2009-12-0535-287/+240Star
| | | | | | | | | | | | | | pkt_scan(). Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13452): gspca - main: Let the driver scan URB packets when no frame ↵Jean-Francois Moine2009-12-051-23/+12Star
| | | | | | | | | | | | | | buffer. Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13451): gspca - main: Memorize the current frame buffer.Jean-Francois Moine2009-12-052-10/+12
| | | | | | | | | | Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13450): gspca - main: Clear the urb status before resubmit.Jean-Francois Moine2009-12-051-3/+2Star
| | | | | | | | | | Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13449): gspca - ov534: The AWB control works only when autogain is set.Jean-Francois Moine2009-12-051-12/+22
| | | | | | | | | | Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13448): gspca - main: Add a gspca flag for inactive controls.Jean-Francois Moine2009-12-052-0/+4
| | | | | | | | | | Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13446): ivtv: Add more explicit detection of known IR devices for ↵Andy Walls2009-12-054-26/+88
| | | | | | | | | | | | | | | | | | | | | | | | Hauppauge cards Avoid legacy IR I2C probing for PVR-150, PVR-500, and PVR-350 cards. This still probes, but restricts the possbile addresses probed per card. Also removed legacy probe addresses for the KNC and PixelView cards which are not supported by ivtv as far as I know. Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13445): cx18: Use per cx18 instance init data for ir-kbd-i2c ↵Andy Walls2009-12-053-15/+16
| | | | | | | | | | | | | | | | | | | | | | instead of const data This change creates per cx18 instances of IR_i2c_init_data for handing over initialization data to ir-kbd-i2c, since that module wants non-const data even though it never modifies the data. Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13444): ivtv: Add explicit IR controller initialization for the ↵Andy Walls2009-12-054-23/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | AVerTV M116 Add explicit support for the AVerTV M116 for use with the ir-kbd-i2c module. This also eases future support for other AVerMedia ivtv boards with the same microcontroller program at I2C address 0x40. This is a reworked version of an earlier patch that was... Reviewed-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13443): ivtv: Defer legacy I2C IR probing until after setup of ↵Andy Walls2009-12-053-27/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | known I2C devices This avoids collisions of legacy IR controller probing with known I2C devices in the card definitions in ivtv-cards.c. I2C driver modules for device listed explicitly in a card definition should always take precedence over a probe guessing where and IR controller may be. Reviewed-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13442): ivtv: Add module parameter to adjust I2C SCL clock period ↵Andy Walls2009-12-053-2/+28
| | | | | | | | | | | | | | | | | | | | | | | | per board Add a module parameter to adjust I2C SCL clock period per board. This allows some experimental fine tuning by end users to overcome quirky I2C device problems. Reported-by: "Aleksandr V. Piskunov" <aleksandr.v.piskunov@gmail.com> Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13441): ivtv: Added FM radio support to Avermedia AVerTV MCE 116 ↵Aleksandr V. Piskunov2009-12-051-0/+1
| | | | | | | | | | | | | | | | Plus card Signed-off-by: Aleksandr V. Piskunov <alexandr.v.piskunov@gmail.com> Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13440): ivtv: Update the cards definitions to add another AVerMedia ↵Andy Walls2009-12-051-1/+4
| | | | | | | | | | | | | | | | | | | | M113 variant Add an AVerMedia M113 variant that was... Reported-by: Hiemanshu Sharma <hiemanshu@fedoraproject.org> Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13438): zr364xx: add support for Trust Powerc@m 910ZAntoine Jacquet2009-12-051-0/+1
| | | | | | | | | | | | Tested-by: Enrique Dominguez <enrique.pinos@gmail.com> Signed-off-by: Antoine Jacquet <royale@zerezo.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13434): cx18: Bump version number due to significant buffer ↵Andy Walls2009-12-051-1/+1
| | | | | | | | | | | | | | handling changes. Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13433): cx18: Remove duplicate list traversal when processing ↵Andy Walls2009-12-052-32/+8Star
| | | | | | | | | | | | | | | | | | | | incoming MDLs Update the incoming MDL's buffers' bytesused and sync the buffers for the cpu in one pass instead of two. Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13432): cx18: Adjust encoder VBI MDL size to be exactly frame's ↵Andy Walls2009-12-053-4/+17
| | | | | | | | | | | | | | worth of VBI data Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13431): cx18: Adjust an MDL's final buffer size to force encoder ↵Andy Walls2009-12-051-3/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | transfer size The encoder was not honoring the MDL size sent in DE_SET_MDL mailbox commands. This change adjusts the size of the last buffer in an MDL, as reported to the firmware, so that the encoder will send the exact amount of bytes we specify per MDL transfer. This eliminates tearing in YUV playback when using non-default YUV buffer sizes. Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13430): cx18: Fix YUV capture so that encoder passes a single frame ↵Andy Walls2009-12-055-22/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | per transfer Fix YUV capture such that the encoder will pass one frame per transfer. This will allow the application to maintain frame alignment when a transfer from the encoder is missed due to high system latency in service the CX23418 IRQ. Also force YUV buffer sizes to be specified in multiples of 33.75 kB, the smalled amount of buffer sizes need to store a complete set of HM12 4:2:0 macroblocks specifying 32 lines of the frame. A full 60Hz/525 line screen requires 15 * 33.75 kB per frame and a full 50Hz/625 line screen requires 18 * 33.75 kB per frame so the default buffer size is 3 * 33.75 kB, requiring exactly 5 or 6 buffers per MDL respectively. The bytes needed per frame and hence MDL need not be the bytes in an integer number of buffers. However, if frame artifacts are seen with scaled screen sizes, the YUV buffer size can be set 34 kB (33.75 kB) to get rid of the artifacts at the cost of more copies between the kernel and userspace. Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13429): cx18: Add Memory Descriptor List (MDL) layer to buffer handlingAndy Walls2009-12-0512-173/+540
| | | | | | | | | | | | | | | | Add a Memory Descriptor List (MDL) layer to buffer handling to implement scatter-gather I/O. Currently there is still only 1 buffer per MDL. Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13428): cx18: Rename mdl_offset to mdl_base_idx or free_mdl_idx as ↵Andy Walls2009-12-053-7/+7
| | | | | | | | | | | | | | appropriate Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13427): cx18: Rename struct cx18_queue.buffers to struct ↵Andy Walls2009-12-055-15/+15
| | | | | | | | | | | | | | cx18_queue.depth Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13426): cx18: Rename struct cx18_mdl to struct cx18_mdl_entAndy Walls2009-12-053-4/+4
| | | | | | | | | | | | | | | | Rename type in anticipation of implementing a struct cx18_mdl type that actually keeps track of a memory descriptor list. Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13425): gspca - ov534: Bad name of the ov965x 320x240 resolution.Jean-Francois Moine2009-12-051-6/+6
| | | | | | | | | | Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13424): gspca - ov534: Fix ov772x brightness and ov965x frame rate.Jean-Francois Moine2009-12-051-8/+7Star
| | | | | | | | | | | | | | | | - the ov772x brightness was not setteble (fixed by M. Thrun) - the set_frame_rate function does not work for ov965x Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13423): gspca - ov534: More ov772x changes from Max Thrun.Jean-Francois Moine2009-12-051-8/+197
| | | | | | | | | | Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13422): gspca - ov534: ov772x changes from Richard Kaswy.Jean-Francois Moine2009-12-051-85/+591
| | | | | | | | | | | | | | | | | | - 320x240 resolution added - controls added - different sd_desc tables Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13421): gspca - main: Clearer message when bandwidth too small.Jean-Francois Moine2009-12-051-3/+7
| | | | | | | | | | Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13419): gspca - pac7302: Add debug register write interface.Márton Németh2009-12-051-0/+54
| | | | | | | | | | | | | | | | | | | | | | | | Add debug register write interface to pac7302 to be able to set for example the edge detect mode (bit 2 register 0x55) or the test pattern (bit 0..3, register 0x72) and test overlay (bit 4, register 0x72) from the user space. Only write of register page 0 is supported by this patch. Signed-off-by: Márton Németh <nm127@freemail.hu> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13418): gspca - pac7311: Stop sending URBs on first error.Márton Németh2009-12-051-10/+21
| | | | | | | | | | | | Signed-off-by: Márton Németh <nm127@freemail.hu> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13417): Fix videobuf_queue_vmalloc_init() prototypeJonathan Corbet2009-12-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | For whatever reason, the device structure pointer to videobuf_queue_vmalloc_init is typed "void *", even though it's passed right through to videobuf_queue_core_init(), which expects a struct device pointer. The other videobuf implementations use struct device *; I think vmalloc should too. Signed-off-by: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13415): videobuf-core: explicitly cast page countMárton Németh2009-12-051-2/+3
| | | | | | | | | | | | | | Explicitly cast page count in the debug message. Signed-off-by: Márton Németh <nm127@freemail.hu> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13413): introduce missing kfreeJulia Lawall2009-12-051-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Error handling code following a kzalloc should free the allocated data. Similarly for usb-alloc urb. The semantic match that finds the first problem is as follows: (http://www.emn.fr/x-info/coccinelle/) // <smpl> @r exists@ local idexpression x; statement S; expression E; identifier f,f1,l; position p1,p2; expression *ptr != NULL; @@ x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...); ... if (x == NULL) S <... when != x when != if (...) { <+...x...+> } ( x->f1 = E | (x->f1 == NULL || ...) | f(...,x->f1,...) ) ...> ( return \(0\|<+...x...+>\|ptr\); | return@p2 ...; ) @script:python@ p1 << r.p1; p2 << r.p2; @@ print "* file: %s kmalloc %s return %s" % (p1[0].file,p1[0].line,p2[0].line) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13407): Add Prof 7301 PCI DVB-S2 cardIgor M. Liplianin2009-12-055-0/+76
| | | | | | | | | | | | | | | | | | Add Prof 7301 PCI DVB-S2 card The card based on stv0903 demod, stb6100 tuner. Signed-off-by: Igor M. Liplianin <liplianin@me.by> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13396): correct initialization of audio_modeJulia Lawall2009-12-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | This initialization of the value of audio_mode is the one used if nothing matches in the subsequent switch. The variable audio_mode is subsequently assigned to constants such as TUNER_AUDIO_MONO and TUNER_AUDIO_STEREO. TUNER_AUDIO_STEREO has the same value as V4L2_TUNER_MODE_STEREO, so it would seem better to use that value here. Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13389): gspca - pac7302: Handle return values in sd_start().Marton Nemeth2009-12-051-3/+3
| | | | | | | | | | | | Signed-off-by: Marton Nemeth <nm127@freemail.hu> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13388): gspca - pac7302: Add white balance control.Marton Nemeth2009-12-051-0/+57
| | | | | | | | | | | | Signed-off-by: Marton Nemeth <nm127@freemail.hu> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13387): gspca - main: Fix a compilation warning.Jean-Francois Moine2009-12-051-1/+1
| | | | | | | | | | Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13386): gspca - main: Change version to 2.8.0.Jean-Francois Moine2009-12-051-2/+2
| | | | | | | | | | Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13385): gspca - pac7302: Add red and blue balance control.Márton Németh2009-12-051-0/+126
| | | | | | | | | | | | | | | | | | | | The valid values for these controls are 0..3 (lower two bits) which was identified by trial and error on Labtec Webcam 2200 (USB ID 093a:2626). The upper 6 bits are ignored on page 0, registers 0xc5 and 0xc7 by the camera. Signed-off-by: Márton Németh <nm127@freemail.hu> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13384): gspca - sonixj: Optimize code and add some comments.Jean-Francois Moine2009-12-051-79/+82
| | | | | | | | | | | | | | - the i2c base address is now taken from the sn9c1xx register table Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * V4L/DVB (13383): gspca - pac7311/pac7302: Propagate error to higher level ↵Márton Németh2009-12-052-109/+207
| | | | | | | | | | | | | | | | | | | | | | | | | | software. The usb_control_msg() can fail any time. Only continue writing sequence if there was no error with the previous write. If there was any problem stop sending URBs and propagate the error to the gspca_main. Signed-off-by: Márton Németh <nm127@freemail.hu> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>