summaryrefslogtreecommitdiff
path: root/linux/drivers/media/common/saa7146_video.c
AgeCommit message (Collapse)Author
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>
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-19backport of 2.6.12 changes to match other API changes (i2c, usb)Johannes Stezenbach
2005-03-02whitespace cleanup (remove ws at eol, sync with changes in mainline kernel)Johannes Stezenbach
2004-11-21- prefix IER_DISABLE and IER_ENABLE with SAA7146_Johannes Stezenbach
- add SAA7146_ISR_CLEAR - use those consistently in the ttpci driver
2004-11-16 - videobuf api changes in 2.6.10Kenneth Aafloy
2004-11-16 - MODULE_PARM -> module_paramKenneth Aafloy
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-28- rename memory to max_memory, because it clashes with some obscure ↵Michael Hunold
definition of memory on some esoteric platform
2004-06-18- apply cpu_to_le32() to all write operations concerning page tables, ↵Michael Hunold
necessary to support big-endian machines (thanks to Wolfram Joost)
2004-04-28- fix some ppc be endianess issues, overlay works fine, grabbing does not ↵Michael Hunold
work reliably yet, though
2004-03-19- copy & paste error: don't check for streaming capture twice, check for ↵Michael Hunold
overlay video in one case
2004-03-16- fix two debug messages (mixed up streaming capture and overlay)Michael Hunold
- restrict S_FBUF ioctl to CAP_SYS_ADMIN or CAP_SYS_RAWIO - don't refuse setting S_FBUF when overlay is active (changes become visible with the next update)
2004-03-15- code review of what's actually needed to be protected by a spinlock and by ↵Michael Hunold
the device lock - this fixes the "in_atomic():1, irqs_disabled():1" warnings in the syslog
2004-03-12With the addition of the ressource management, an overlay couldn't beMichael Hunold
interrupted by a streaming capture any more. So: - revamp video_begin()/video_end(), saa7146_start_preview()/saa7146_stop_preview - clean up a lot of mess around the usage of these functions - allow overlay to be suspended by streaming capture again, if ressources are available
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-02-26[PATCH] C99 initializers for drivers/media/common/saa7146_video.c by Art HaasMichael Hunold
2004-02-02- don't free resources while spinlock is held (might sleep)Michael Hunold
2004-02-02- release resources for video overlay properly, don't rely on VIDIOC_OVERLAY(0)Michael Hunold
2004-01-26- don't try to disable video overlay if it wasn't enabled beforeMichael Hunold
(bug catched by new resource management)
2004-01-26- make sure to disable clipping before capturing, otherwise capturing mayMichael Hunold
not work - make sure to disable the right video dma at capture stop
2004-01-14- bit masks are evil: disable the right video dma upon device close, otherwiseMichael Hunold
severe memory damage can occur...
2004-01-06fix build with 2.6.1-rc1-mm2 (VIDIOC_S_CTRL_OLD / VIDIOC_OVERLAY_OLD)Johannes Stezenbach
2004-01-05- fix compiler warningMichael Hunold
- fix problems caused by changes in ioctl definitions
2004-01-04- some small indentation fixes in saa7146_hlp.cMichael Hunold
- deny usage of planar formats for video overlay - more intelligent checks in VIDIOC_STREAMON and VIDIOC_STREAMOFF - fix read() capture while overlay is 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-21- don't disable the capture engine via video_end() before video-buf hasMichael Hunold
cleared the various capture queue and has shut down capturing (Thanks Gerd for explaining the pitfalls here!)
2003-12-15- fix compilationMichael Hunold
- more video/vbi open/release fixes
2003-12-15- fix a bunch of race conditions and locking bugs in video and vbiMichael Hunold
capture code on device closure - change minimal picture size to 48x32 just like other drivers
2003-11-20- make saa7146_pgtable_build_single() deliver a return code, make someMichael Hunold
sanity checks of the arguments (if a bad pagetable is created, unpredictable thinks can happen. trust me... ;-) - follow this change for the several uses
2003-11-20- remove unnecessary "capture memory in framebuffer" special functionsMichael Hunold
which were commented out anyway - fix one typo
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-09-29fix VIDIOC_S_FBUF for v4l1 backward compatility with xfree86 / v4l_drvJohannes Stezenbach
2003-08-26Fix bytesperline-calculation forMichael Hunold
V4L2_FIELD_ALTERNATE vs. V4L2_FIELD_INTERLACED captures
2003-08-11- follow latest changes in video-bufMichael Hunold
- fix pgtable_build_single, it should work for all kinds of buffers (system memory (kernel/user) and gfx-memory) - add/change some debug messages
2003-07-31Improvements regarding streaming capture to gfx card memory.Michael Hunold
2003-07-17[V4L] - fix static build for hexium_gemini and hexium_orion drivers (Thanks ↵Michael Hunold
to Adrian Bunk <bunk@fs.tum.de> for reporting this) [V4L] - set debug verbosity to 0 for hexium_gemini and hexium_orion drivers [V4L] - make hexium_gemini and hexium_orion drivers depdend on i2c module [V4L] - make saa7146 module depend on hexium_gemini and hexium_orion drivers [V4L] - let the saa7146 i2c bus report itself as I2C_ADAP_CLASS_TV_ANALOG
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- capturing alternating fields to different buffers works nowMichael Hunold
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-27Don't complain when an app tries to turn *off* overlay, butMichael Hunold
there are no overlay informations.
2003-06-26- fix usage of "v4l2_common_std()" from v4l2-common.c in saa7146_video.cMichael Hunold
- change saa7146_vv.h the way described earlier - follow these changes in budget-av and hexium driver
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-06-03Here comes the "dvb-c analog module hack"Michael Hunold
- if the analog module is detected, the saa7113 is initialized and some more v4l2 ioctls are available. you can use "xawtv" now to switch between "dvb" and "analog" input. when you are one the "analog" input, you can tune in analog channels with the cursor keys via v4l2. currently, this is a big hack -- tuning is not mutually exclusive, so "szap" and v4l2 tuning can interfere with each other. the demodulator address is hardcoded to 0x09. Other changes: - changed the saa7146 ioctl parameters, give out the data of the current device open "fh" (=> "file handle"), not the pointer to the device structure "dev". It is "dev = fh->dev". Some stuff does not work: - analog audio does not work. does the msp3400 need to be reprogrammed? - one field is "missing", so the picture is very bad and capturing does not work neither. this needs to be investigated by looking at the programming the windows driver uses for the saa7146