summaryrefslogtreecommitdiff
path: root/linux/drivers/media/common/saa7146_fops.c
AgeCommit message (Collapse)Author
2007-08-23Adapt drivers to use the newer videobuf modulesMauro Carvalho Chehab
PCI-dependent videobuf_foo methods were renamed as videobuf_pci_foo. Also, videobuf_dmabuf is now part of videobuf-dma-sg private struct. So, to access it, a subroutine call is needed. This patch renames all occurences of those function calls to be consistent with the video-buf split. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> http://thread.gmane.org/gmane.comp.video.video4linux/34978/focus=34981 Reviewed-by: Ricardo Cerqueira <v4l@cerqueira.org>
2007-05-02saa7146: proper prototype for saa7146_video_do_ioctl()Oliver Endriss
From: Adrian Bunk <bunk@stusta.de> This patch adds a proper prototype for saa7146_video_do_ioctl() in include/media/saa7146_vv.h. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
2007-02-21Backport: make file_operations constMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Backport a kernel patch by Arjan van de Ven <arjan@linux.intel.com> that made all file_operations instances const. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-02-19compat: Add -include linux/version.h to cflagsTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Add -include linux/version.h to the cflags. Now code can have backward compatibility test without including compat.h first. Linux headers included from compat.h are removed, so that code will get the same headers when compiling in v4l-dvb as it does in the kernel. Many drivers have compat.h moved to the end of their include list, as this lets compat.h do things it can't do at the beginning. Such as test of something is defined to include compat code, or to put a wrapper around a function without changing the function's name. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2007-01-31saa7146_vv: pass correct memory size to pci_free_consistentOliver Endriss
From: Marco Schluessler <marco@lordzodiac.de> Pass correct memory size to pci_free_consistent. Signed-off-by: Marco Schluessler <marco@lordzodiac.de> Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
2006-08-02V4L2 Conversion: saa5246a, saa5249, vino, hexium_orion, hexium_geminiMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Just a few adjustments were required on those drivers to be V4L2 compliant. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-04-11Kill drivers/media/common/saa7146_vv_ksyms.cMauro Carvalho Chehab
From: Adrian Bunk <bunk@stusta.de> This patch moves the EXPORT_SYMBOL's from drivers/media/common/saa7146_vv_ksyms.c to the files with the actual functions. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-03-15Merging from mchehab vivi branchMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> merge: Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-03-13BUG_ON() Conversion in drivers/video/mediaMauro Carvalho Chehab
From: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-03-10Make video_buf more genericMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Video_buf were concerned to allow PCI devices to be used as video capture devices. This patch extends video_buf features by virtualizing pci-dependent functions and allowing other type of devices to use it. It is still DMA centric, although it may be used also by devices that emulates scatter/gather behavior or a DMA device Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-02-06sem2mutex: drivers/media/, #2Mauro Carvalho Chehab
Semaphore to mutex conversion. The conversion was generated via scripts, and the result was validated automatically via a script as well. Kernel-sync from patch 3318b Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-01-11From: Panagiotis Issaris <takis@issaris.org>Mauro Carvalho Chehab
Conversions from kmalloc+memset to k(z|c)alloc Conversions from kmalloc+memset to k(z|c)alloc. kernel-sync Signed-off-by: Panagiotis Issaris <takis@issaris.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-01-08WSS output interface for av7110Oliver Endriss
- implemented v4l2 api for sliced vbi data output to pass WSS data from userspace to the av7110 Signed-off-by: Oliver Endriss <o.endriss@gmx.de> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2005-12-08syncronizes some changes between v4l and dvbMauro Carvalho Chehab
- Updated firmware names - kfree (NULL) is valid. - assert_spin_locked() is the new way - small fixes to make in sync with kernel Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-11-26Whitespaces cleanups.Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-11-25saa7146 compatability fix for use with headers in v4l-kernel cvsMichael Krufky
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-07-16Remove all #include <linux/version.h> and all referencesJohannes Stezenbach
to LINUX_VERSION_CODE and KERNEL_VERSION. Based on patch by Olaf Hering. Signed-off-by: Olaf Hering <olh@suse.de> Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
2005-06-02This patch makes a needlessly global function static.Johannes Stezenbach
Signed-off-by: Adrian Bunk <bunk@stusta.de>
2005-05-26remove trailing whitespaceJohannes Stezenbach
2004-11-16 - videobuf api changes in 2.6.10Kenneth Aafloy
2004-11-08- make needlessly global code staticMichael Hunold
- remove unused code Thanks to Adrian Bunk <bunk@stusta.de>
2004-11-03- disable spinlock debugging stuff for 2.4Michael Hunold
2004-10-26- add back support for older kernels due to popular demandMichael Hunold
2004-10-25- follow latest changes in 2.6.10-rc1 regarding video-buf. this changeMichael Hunold
breaks compilation with older kernels for dvb-ttpci
2004-07-31merge back various cleanups from mainline kernel:Johannes Stezenbach
- sparse annotiations (viro) - NULL noise removal (viro) - #if where #ifdef should've been (saa7146) (viro) - convert private ABS() to kernel's abs() (rddunlap) - dvb_register_i2c_device() locking fix for -ENOMEM (akpm) - dvb_register_i2c_bus() locking fix for -ENOMEM (akpm)
2004-07-29 - Fix videodev has no release callback.Kenneth Aafloy
NOTE: Michael, please remember to change the other drivers when submitting to Andrew.
2004-04-28- fix some ppc be endianess issues, overlay works fine, grabbing does not ↵Michael Hunold
work reliably yet, though
2004-03-11- minor debug output cleanup in the resource handling functionsMichael Hunold
- deny activation of streaming capture if overlay is active, apps must disable overlay first - fix resource handling for overlay - don't try to stop streaming capture when it's not running
2004-01-03saa7146 driver improvements, only affects Video4Linux stuff:Michael Hunold
- add resource management functions - lock various stuff against each other, mostly vbi capture vs. planar capture formats, which use the same video dma - remove old commented out code - add new "flag" variable to saa7146_formats struct, store the information if a capture format is planar or packed - check for return codes at various places
2003-12-18- use videobuf_waiton() non-interruptible, so signals won't disturb theMichael Hunold
cleanup of the capture buffers. otherwise the buffers were not cleaned up correctly when a program was killed by CTRL-C, which led to memory corruption and system crashes when capturing
2003-12-16- use DEB_INT for very verbose debugging outputMichael Hunold
2003-12-15- fix compilationMichael Hunold
- more video/vbi open/release fixes
2003-11-14- sanitize enabling of video input pins and i2c pinsMichael Hunold
- use some default values, so the hardware is always in a sane state
2003-10-14Make cleanup handler interruptible.Michael Hunold
2003-10-09- backfeed patches from 2.6.0-test7, which have not gone through our cvs:Michael Hunold
- janitorial fixes (mostly return code handling) - spelling fixes in Kconfig files - line breaks to re-formatting
2003-10-06- add some debug and safety checks for video/vbi capture buffer handlingMichael Hunold
- fix init/exit of vbi capable devices - add new flag SAA7146_USE_PORT_B_FOR_VBI, so we can distinguish on which video port to apply the vbi workaround - add del_timer(...) for vbi capture queue and vbi_read timers, otherwise the kernel timer schedule oopses - add vbi device handling for dvb-c cards with analog module (does not work yet, have to setup the saa7113 decoder differently)
2003-07-31Improvements regarding streaming capture to gfx card memory.Michael Hunold
2003-07-07Make the "ext_vv_data" informations a per-device information insteadMichael Hunold
of a per-extension information. This is needed for the DVB-C cards, which seem to have swapped field order and need to propagate some video4linux specific stuff for the analog module to work.
2003-07-01Holger:Michael Hunold
Kannst Du das bitte ändern und die EXPORT_SYMBOL*()-Gesichten in ein saa7146_ksyms.c oder wie auch immer kapseln? "saa7146_core.c" has all dependencies for the "saa7146_core.o" module (saa7146_core.c and saa7146_i2c.c) The dependencies for the "saa7146_vv.o" module have been moved from the source files to "saa7146_vv_ksyms.c", the Makefiles habe been changed accordingly. Ok?
2003-07-01- fix a capture problem (fields got lost accidentaly, fields belongingMichael Hunold
to different frames were sometimes mixed) - first try to get alternating field capture running - add/change some debug messages
2003-06-18When I submitted the last patchset for the 2.5 kernel series,Michael Hunold
Alan Cox reformatted the code to follow his coding style when he fixed the merge bugs. This patch now introduces these coding style changes, so that we don't wipe out his changes with the next patchset.
2003-05-28I removed all "analog" drivers from the main CVS repository and moved themMichael Hunold
to a separate "analog-2.4" directory. Main reasons: - the drivers don't have anything to do with dvb 8-) - the drivers are already in the kernel (besides the "Hexium" driver) and don't change that much any more - the analog drivers rely on the i2c subsystem, which was heavily modified between 2.4 and 2.5. When making a new DVB patchset I have to work around these differences every time, which is very annoying
2003-05-19First try to use pci_consistent_dma() throughout the whole saa7146Michael Hunold
driver subsystem.
2003-05-05Release clipping memory when device is closed.Michael Hunold
TODO: use scatter/gather DMA for clipping informations, too.
2003-04-22- removed the compatibility crap around KBUILD_MODNAME from all drivers,Michael Hunold
use KBUILD_BASENAME for 2.4 instead ­ some changes to the i2c core to make it work with both 2.4 and late 2.5 kernels (not done yet -- only interesting for analog drivers) - add MODULE_DEVICE_TABLE to all drivers, so that pci "hotplug" can detect the devices automatically. Alan Cox says, that we should use this to load the firmware (not done yet) - fix the long standing "insmod/rmmod with multiple budget cards" bug -- it was a double kfree() call...
2003-03-20This is the beginning of some modifications to get the newMichael Hunold
"dvb-kernel" tree into shape for direct inclusion into the 2.5.x kernel.
2003-03-17- Fixed the build-2.4 tree to compile with 2.4.18 kernels.Michael Hunold
- Moved some generic stuff from budget-core.c to saa7146_core.c where it belongs ----------------------------------------------------------------------
2003-02-27- fix some bugs that appeared in system with both analog and digitalMichael Hunold
based saa7146 cards - change the initialization order to allow static builds of the mxb driver
2003-01-09Fixes for 2.5.55 all over the place:Michael Hunold
- removed the patches, they are not needed any more. you can now use a vanilla 2.5.55 kernel - created a new backport for video-buf and videodev from the 2.5.55 sources - necessary fixes to the saa7146 driver due to changes in 2.5.55 - the core budget functions are now provided by a module called "budget-core.o". (otherwise static compilation is not possible...) - removed #ifdef MODULE crap from all files Misc. - "xawtv" (using xv extension) resulted in wrong colors. the problem is within "xawtv". Gerd Knorr told me, that it'll be fixed in the next release. I tested this version with 2.4.20, 2.5.55 (modules) and 2.5.55 (static).
2003-01-07- Fixed all initializers to C99, expect av7110.cMichael Hunold
- removed unused variables - other code clenaups - corrected H_PIXELS_PAL to 720 (not used for DVB-cards)