summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2006-06-19Add cx2341x-specific control array to cx2341x.cHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-06-18Put old MPEGCOMP API under #if __KERNEL__ and issue warnings when used.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-06-18Port new MPEG API to saa7134-empress with saa6752hsHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-06-18Port cx88-blackbird to the new MPEG API.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-06-18Added qv4l2, a Qt application to interactively set/get controls.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-06-18Add v4l2-ctl test tool.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> v4l2-ctl can be used to query and set most v4l2 ioctls. Very useful while testing. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-06-18Update cx2341x fw encoding API doc.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Based on recent tests it turned out that some features are not implemented. This has now been documented. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-06-18Use control helpers for saa7115, cx25840, msp3400.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Replace hardcoded control description by the standard ones supplied by v4l2-common. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-06-18Add CX2341X MPEG encoder module.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Adds the cx2341x.c module that handles the programming of the Conexant cx23415/6 MPEG encoder chip used by cx88-blackbird, pvrusb2 and ivtv. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-06-18Add helper functions for control processing to v4l2-common.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Control processing is often duplicated in the various drivers. Unfortunately, simple things like the names of controls are often different between drivers, even though it is the same controls. Adding in the new extended controls and the need for having control helper functions became apparent. Several functions have now been added to v4l2-common to do things like filling the v4l2_queryctrl and v4l2_querymenu structs, to check for valid control input and to move to the next control when enumerating over all controls. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-06-18Add videodev support for VIDIOC_S/G/TRY_EXT_CTRLS.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> videodev.c copies the control list specified in struct v4l2_ext_controls to kernel space. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-06-18Add the new MPEG control/ioctl definitions to the public videodev2.h header.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> The old, experimental, VIDIOC_S/G_CODEC API to pass MPEG parameters is now obsolete and is replaced by 'extended controls' which offer more flexibility and are hopefully more future proof. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-06-17Fix: videodev.c were cleaning the pointer, not the valuesMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-17Hex handling is different from intMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Kernel handling of hex type passes those values prefixed with 0x to the modules. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-17Small bug in saa7127.cMauro Carvalho Chehab
From: Jose Alberto Reguero <jareguero@telefonica.net> Fix wrong wss debug info. Signed-off-by: Jose Alberto Reguero <jareguero@telefonica.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-17Remove some bad dependencies at userspaceMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Now, #define __user is not needed at userspace. Also, including linux/types.h is already inside videodev2. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-17Fixes some userspace dependencies at V4L2 public api headerMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Make life easier for distro guys, by removing the need of including #define __user at the userspace header. Also, linux/compiler.h is not needed at userspace. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-17integer/hex/string options need to appear in .myconfigMauro Carvalho Chehab
From: Trent Piepho <xyzzy@speakeasy.org> integer/hex/string options were getting omitted from .myconfig, produced by make_noconfig.pl. They don't need to be there for the Makefile that includes .myconfig, it only uses the bool/tristate options. They need to be there for compat-config.h, which is generated from .myconfig and so will only have the #define statements for options that appear in .myconfig. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-17Fix problems with AV7110 firmware buildingMauro Carvalho Chehab
From: Trent Piepho <xyzzy@speakeasy.org> Fix missing $() on variable name in dvb/ttpci/Makefile, prevented AV7110 firmware from building. Remove unnecessary and problematic defines in cflags from v4l/Makefile, they conflict with the kernel's autoconf.h and are are overridden by v4l/config-compat.h anyway. Fix AV7110 firmware dependencies so that parallel builds work correctly. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-17Remove non-functional local version of v4l_printk_ioctl()Mauro Carvalho Chehab
From: Trent Piepho <xyzzy@speakeasy.org> Remove code that tries to handle backward compatibility for v4l_printk_ioctl(), but ironically has the opposite effect. For kernels < 2.6.16, a local version of v4l_printk_ioctl(), which doesn't even compile, is removed. For kernels >= 2.6.16, the unnecessary extern prototype is removed, as the function is prototyped in media/v4l2-common.h. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-17default "yes", no. default y, yes.Mauro Carvalho Chehab
From: Trent Piepho <xyzzy@speakeasy.org> The Kernel config programs expect 'default y' and don't understand 'default "yes"'. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-13rmmod syntax works only on newer mod-utils packagesMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> rmmod <file> doesn't work with rmmod version 3.2.2. This patch uses rmmod <module> instead. This should work with older mod-utils. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-12mailimport improved to accept "hg export" patchesMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Now, script will detect "hg export" patches inside emails, removing non-pertinent headers, keeping only the original commit message and the patch. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-12Hex option defaults weren't handled correct in make_kconfigMauro Carvalho Chehab
From: Trent Piepho <xyzzy@speakeasy.org> The regex for int and hex option defaults was only correct for int options, it didn't handle hex characters. The kernel version code was outputing "default n" lines for disabled hex and int options, it should only be done for boolean and tristate options. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-12fix: whitespace cleanup were at wrong placeMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-12cx88-dvb: clean up long linewrapsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> This patch splits up dvb_pll_attach and isl6421_attach function calls such that the lines do not exceed 80 columns. This patch is purely cosmetic, with no functional change at all. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-06-12cx88: #ifdef cleanupsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> - moved CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL frontend_attach code up to share the #ifdef block with CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-06-12cx88: add support for DViCO FusionHDTV DVB-T Dual PCI based on zl10353Michael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> This patch adds support for a newer version of this device using the zl10353 frontend instead of the mt352 frontend. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-06-12cinergyT2: whitespace cleanupMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-06-11merge: http://linuxtv.org/hg/~mkrufky/bluebirdMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-11pvrusb2 is now a V4L2 driver. Fixed Kconfig.Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-11merge: http://linuxtv.org/hg/~mcisely/v4l-dvbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-11Fix cinergyt2_poll() to allow non-blocking IO on frontendMauro Carvalho Chehab
From: Dyks, Axel (XL) <xl@xlsigned.net> cinergyt2_poll()" shouldn't return (POLLIN | POLLRDNORM | POLLPRI) when there are no pending events. User space programs that do non-bocking IO using "select()" and/or "poll()" would otherwise produce high system load. Signed-off-by: Axel Dyks <xl@xlsigned.net> Acked-by: Andreas Oberritter <obi@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-11cxusb: add support for DViCO FusionHDTV DVB-T Dual USB based on zl10353Michael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> This patch adds support for a newer version of this device using the zl10353 frontend instead of the mt352 frontend. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-06-08Make reload were not working. fixed.Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-08Fixes for card cx88 #50Ricardo Cerqueira
From: Ricardo Cerqueira <v4l@cerqueira.org> The description of the card has been updated to it's full name/model. The tuner has also been switched to a more compatible one (radio wasn't working, now it is) Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org>
2006-06-08Fixes a warning about using pll without init.Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-08There were a cross-reference on cpia and cpia_pp/cpia_usbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Those cross-references were generating an error: *** Warning: "cpia_pp_init" [/home/v4l/master/v4l/cpia.ko] undefined! *** Warning: "cpia_usb/_init" [/home/v4l/master/v4l/cpia.ko] undefined! Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-08Handles also hexa fields on KconfigMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> The same threatment to integer can also be applied Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-08insmod.sh were replaced by a perl script (rmmod.pl)Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> insmod.sh were a hack, were somebody should check all dependencies for each module. Several dependencies were mising, and, to keep it updated for 178 modules is really hard. rmmod.pl is a "smart" script: it does: 1) Check, for each found module on v4l, the correct order for each module; 2) Check any dependencies for out-of-tree modules; 3) rmmod/insmod at the correct order; 4) It have a table with the suggested debug parameter for each module. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-08Improve v4l configuration scripts, handle versions.txt differentlyMauro Carvalho Chehab
From: Trent Piepho <xyzzy@speakeasy.org> This mainly changes the way make_kconfig.pl handles config options that require a newer kernel, as defined by versions.txt. Currently it outputs a blank config stanza defining the variable and setting it to 'n'. These show up as mysterious un-named grayed out options in xconfig, or just don't appear at all in menuconfig. The new method outputs an extra config stanza to the top of v4l/Kconfig, VIDEO_KERNEL_VERSION. This boolean variable defaults to 'n', and if enabled, allows selecting drivers that are listed as needing a newer kernel. Config options that need a newer kernel still apear in v4l/Kconfig with their names and help text, but they now have an additional dependency on VIDEO_KERNEL_VERSION, and an extra bit in the help text warning that they need a newer kernel. They will appear greyed out in xconfig, but will still have their proper names and help text. If the user turns VIDEO_KERNEL_VERSION on, then they can be enabled. The kernel version in versions.txt tends to be somewhat conservative. The default v4l/.config file generated by make_kconfig.pl will have these options set to no, instead of yes/module as it did before. make_noconfig.pl will no longer look at versions.txt, or deal with kernel version detection. It will get a list of all config options by reading v4l/Kconfig, and produce .myconfig by setting all bool/tristate options to their value from v4l/.config, or 'n' if not listed. A few bugs have been fixed, and the regexs adjusted. They were making a few mistakes before, or were otherwise flawed. The scripts do more error checking that the files they parse conform to the expected syntax. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvaho Chehab <mchehab@infradead.org>
2006-06-08Fix compilation with kernel 2.6.17Mauro Carvalho Chehab
From: Andrew Ruder <andy@aeruder.net> This bug were introduced by the changes at videodev2.h Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
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-06Reverted a patch by commited without ackMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> As per Manu's request, patch "TT 1400 DVB-S Budget with different PCI subsystem ID" were reverted due lack of Endcriss ack. 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>