summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video
AgeCommit message (Collapse)Author
2006-06-08Remove last bits of V4L1 dependant codeMike Isely
From: Mike Isely <isely@pobox.com> With the removal of the V4L1 API, we also lose the functionality provided by the video_get_drvdata() and video_set_drvdata() functions. These functions had made it possible for a driver to stuff a pointer to its own context inside the V4L device handle context - a useful ability. However now that's going away, so the driver is on its own to find its context when called into from a more generic context (e.g. the open() entrypoint). The changes in this patch implement a global context mapping array, an array index back-reference per instance, and a new global mutex to protect the entire thing. The array is indexed by the minor device id of the V4L device inode. All this fun is present to work around what used to be roughly 4 lines of code. Sigh... Signed-off-by: Mike Isely <isely@pobox.com>
2006-06-07Fix: Wrong callback check for streamoff.Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-07vidioc_streamon/streamoff callbacks were missing at structMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-07Fixes some errors on *FMT functionsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> memset() were being called on wrong places; At the right places where memset() is required, the type value were being lost. Inserted also debug functions to VIDEO_CAPTURE buffers on *_FMT ioctls. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-07Improves debug msg for unsupported fourcc standardsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-06Make vivi to use the debug var from video_deviceMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-06Fixes lots of small errors at videodev.Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Fixes several small errors at debug; Fixes max line size to 80 columns; Fixes parameter passage to callback functions; Removed unused fh pointer at video_device struct. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-06cx88: whitespace cleanupMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-06-06Zoran strncpy() fixMauro Carvalho Chehab
From: Eric Sesterhenn <snakebyte@gmx.de> The zoran driver uses strncpy() in an unsafe way. This patch uses the proper sizeof()-1 size parameter. Since all strncpy() targets are initialised with memset() the trailing '\0' is already set. Where std->name was the target for the strncpy() we overwrote 8 Bytes of the std structure with zeros. Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-05Removed all references to kernel stuff from videodev.h and videodev2.hMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> The videodev.h and videodev2.h describe the public API for V4L and V4L2. It shouldn't have there any kernel-specific stuff. Those were moved to v4l2-dev.h. This patch removes some uneeded headers and include v4l2-common.h on all V4L driver. This header includes device implementation of V4L2 API provided on v4l2-dev.h as well as V4L2 internal ioctls that provides connections between master driver and its i2c devices. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-04Fixed cx25840 to work with PAL/MMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Sub-carrier frequency for PAL/M is slicely different than NTSC/M. Without this patch, colors don't work on PAL/M. Setting method also improved to allow other video standards to be included. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-04vivi.c were ported to the newer videodev2 format.Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Several common handling codes were removed. Maybe even more stuff may be handled at common infrastructure. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-04Several improvements at videodev.cMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Videodev now is capable of better handling V4L2 api, by processing V4L2 ioctls and using callbacks to the driver. The drivers should be migrated to the newer way and the older one will be obsoleted soon. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-04No drivers should use VIDIOC_*_OLDMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> V4L core functions handle VIDIOC_*_OLD older ioctls. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-05-30merge: http://linuxtv.org/hg/~mkrufky/v4l-dvbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-05-29cx88: IR remote support for DTV2000HMichael Krufky
From: Malcolm Valentine <farkit@iinet.net.au> Adds support for the Y0400052 remote supplied with this card. In addition to adding a number of buttons to the current winfast definition, it enables all the keys currently masked out with #ifdef 0. It is supplied separately as it remaps two keys from the current definition, The teletext button now sends KEY_TEXT instead of KEY_SUBTITLE, as that keycode is used by the subtitle button. KEY_BACK was changed to KEY_LAST to group it with KEY_NEXT. Other then that the keys don't overlap, so this should support several different versions of the Leadtek remotes. Signed-off-by: Malcolm Valentine <farkit@iinet.net.au> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-05-29cx88: Add basic support for Leadtek Winfast DTV2000H cardMichael Krufky
From: Malcolm Valentine <farkit@iinet.net.au> Add DVB-T and PAL-G television support for Winfast DTV2000H Signed-off-by: Malcolm Valentine <farkit@iinet.net.au> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-05-28merge: from http://linuxtv.org/hg/~mkrufky/ospreyMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-05-28KWorld HardwareMpegTV XPert: enable s-video/composite video inputsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> - Enabled s-video and composite video inputs. - Updated comments to reflect the current support for this card. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-05-28merge: http://linuxtv.org/hg/~hverkuil/cx25836Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-05-26bttv: add autodetection support for Osprey 230Michael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> - use eeprom data to detect Osprey 230 Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-05-24Add NTSC sliced VBI support to the cx25840 module.Hans Verkuil
From: Christopher Neufeld <television@cneufeld.ca> NTSC sliced VBI support by Christopher Neufeld <television@cneufeld.ca> with additional fixes by Hans Verkuil <hverkuil@xs4all.nl>. Signed-off-by: Christopher Neufeld <television@cneufeld.ca> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-05-24Include at V4L/DVB tree some changes from kernelMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> __devinit were introduced for the device init functions kernel-sync: Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-05-24Merge: from master.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-05-23Fix compilation on PPC 64Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> WARNING: ".bus_to_virt" [drivers/media/video/zr36067.ko] undefined! WARNING: ".virt_to_bus" [drivers/media/video/zr36067.ko] undefined! WARNING: ".virt_to_bus" [drivers/media/video/stradis.ko] undefined! Those functions don't exist on PPC64 architecture. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-05-22New cx88 card #50: NPG Tech RealTVRicardo Cerqueira
From: Ricardo Cerqueira <v4l@cerqueira.org> Added support for a new cx88 card, including it's remote Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org>
2006-05-20Add support for the Texas Instruments TLV320AIC23B audio codecHans Verkuil
From: Scott Alfter <salfter@ssai.us> Signed-off-by: Scott Alfter <salfter@ssai.us> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-05-19Fix some compilation warningsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-05-19Fix broken DVB drivers caused by a recent mergeMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-05-19merge: http://linuxtv.org/hg/~quincy/v4l-dvbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-05-19merge: http://linuxtv.org/hg/~pb/v4l-dvbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-05-18bttv-gpio-irq is no longer used, remove itRicardo Cerqueira
From: Ricardo Cerqueira <rmcc@linuxtv.org> This functionality was used when remote control input for BTTV was handled by a standalone module, to hook some functions of that module into the main bttv core. Since that module is now extinct, this can go away Signed-off-by: Ricardo Cerqueira <rmcc@linuxtv.org>
2006-05-18merge: from masterrmcc@localhost.localdomain
From: Ricardo Cerqueira <v4l@cerqueira.org> merging master changes Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org>
2006-05-17Whitespace removal from previous patchMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-05-17Usbvideo/quickcam_messenger driver v4lMauro Carvalho Chehab
From: jayakumar.video@gmail.com <jayakumar.video@gmail.com> Adds a usbvideo driver for the Logitech Quickcam Messenger USB webcam. Signed-off-by: Jaya Kumar <jayakumar.video@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-05-16Fix Pinnacle 300iAndrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> I had broken the mt352 tuning when a non-directly connected PLL was used - uncommon, but this is what is used on the pinnacle card. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2006-05-15merge: http://linuxtv.org/hg/~mkrufky/cx88Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-05-15merge: http://linuxtv.org/hg/~quincy/v4l-dvbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-05-15merge: http://linuxtv.org/hg/~hverkuil/cx25836Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-05-14Change dvb_frontend_ops to be a real field instead of a pointer field inside ↵Patrick Boettcher
dvb_frontend From: Patrick Boettcher <pb@linuxtv.org> The dvb_frontend_ops is a pointer inside dvb_frontend. That's why every demod-driver is having a field of dvb_frontend_ops in its private-state-struct and using the reference for filling the pointer-field in dvb_frontend. - It saves at least two lines of code per demod-driver, - reduces object size (one less dereference per frontend_ops-access), - be coherent with dvb_tuner_ops, - makes it a little bit easier for newbies to understand how it works and - avoids stupid mistakes because you would have to copy the dvb_frontend_ops always, before you could assign the static pointer directly, which was dangerous. Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2006-05-13Fix cx24123 diseqcAndrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> Rework diseqc support to be more in line with the other demod drivers. Fix Nova-S-Plus/Nova-SE2 diseqc. Cleanup API. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2006-05-12Removed blank line to be in sync with kernelMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> kernel-sync: Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-05-11Adjust VBI offset to match value reported in VBI formatMauro Carvalho Chehab
From: Trent Piepho <xyzzy@speakeasy.org> The actual offset of the start of VBI data is incorrectly documented for both the cx2388x and bt8x8. For the cx2388x, it appears to be about 220 to 224 + VBI_V_DEL*2. The driver has been incorrectly reporting an offset of 244. This patch adjusts VBI_V_DEL to 10, so that the offset of 244 is correct. This is the same offset as the bttv driver, and expected by some software. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-05-09cx88-blackbird: add support for ProLink Pixelview Playtv@P7000Michael Krufky
From: Angelo Marconi <am@massalombarda.net> - Add support for ProLink Pixelview Playtv@P7000 Raw video and MPEG encoded video confirmed to work properly. SVideo, Composite and FM inputs are untested - disabled for now. Signed-off-by: Angelo Marconi <am@massalombarda.net> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-05-09Cx88 NTSC VBI fixesMauro Carvalho Chehab
From: Michael Schimek <mschimek@gmx.at> Hi, VBI (Closed Caption, CC) capturing never worked in NTSC mode with the cx88 driver. They were tested with libzvbi and a patched version of tvtime. Signed-off-by: Michael H. Schimek <mschimek@gmx.at> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-05-08Compat.h were missing in vivi.c. Fixed.Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Without compat.h, it were not compiling for kernel <2.6.15 kernel-sync Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-05-08Merge: from master.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-05-07bug-fix: pvrusb2 must #include <linux/config.h> for compile-time optionsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Added necessary header file in order for kconfig build options to be considered at compile time. Without this patch all options will always be disabled, regardless of whether they are selected or not. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Acked-by: Mike Isely <isely@pobox.com>
2006-05-06cx88: add autodetection for another Twinhan VP-3054 board.Michael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Added autodetection for PCI subsystem id 1822:0019 to use the card definition for CX88_BOARD_DNTV_LIVE_DVB_T_PRO Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-05-04pvrusb2: use encoder firmware filename defined in cx2341x.hMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> This patch removes the explicit definition of the cx23416 encoder firmware image filename, in favor of CX2341X_FIRM_ENC_FILENAME as defined in cx2341x.h Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Acked-by: Mike Isely <isely@pobox.com>