- 10 Oct, 2007 40 commits
-
-
Mauro Carvalho Chehab authored
This workaround fix a bug that happens on some SMP machines. On those machines, videobuf_iolock is called too soon, before file .mmap handler. This patch calls the scheduler before iolocking, allowing it to properly call the pending mmap. Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Mauro Carvalho Chehab authored
Before the videobuf redesign, a procedure for re-using videobuf without PCI scatter/gather where provided by changing the pci-dependent operations by other operations. With the newer approach, those methods are obsolete and can safelly be removed. Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Robert P. J. Day authored
Signed-off-by:
Robert P. J. Day <rpjday@mindspring.com> Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Mauro Carvalho Chehab authored
cx23885 driver were converted to use the newer videobuf support. Unfortunately, the constructor weren't changed. This causes an oops, since the abstract methods (implemented as callbacks) aren't defined. Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org> Reviewed-by:
Michael Krufky <mkrufky@linuxtv.org>
-
Mauro Carvalho Chehab authored
This is a Lifeview hybrid OEM board. Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Jesper Juhl authored
No need to cast the void pointer returned by kmalloc() in drivers/media/video/zoran_driver.c::v4l_fbuffer_alloc(). Signed-off-by:
Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Trent Piepho authored
cx23885 was still uses the old video-buf includes and code, which would only `work' if one happened to be compiling against a kernel that had the old headers. Even then, it wouldn't actually work, it would just compile without errors. Signed-off-by:
Trent Piepho <xyzzy@speakeasy.org> Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Trent Piepho authored
CONFIG_VIDEO_BUF_DVB became CONFIG_VIDEOBUF_DVB. But in these cases, it makes more sense to use CONFIG_VIDEO_SAA7134_DVB or CONFIG_VIDEO_CX88_DVB_MODULE depending on the driver. The reference in cx23885.h should just be removed, as the code there needs to be included if DVB is on or off. I do not think you can even compile the cx23885 driver without DVB. It's clearly just leftover from when the file was obvious copied from the cx88 driver (which is not mentioned in the copyright BTW). Signed-off-by:
Trent Piepho <xyzzy@speakeasy.org> Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Christoph Hellwig authored
Here's an attempted update to the full kthread API + wake_up_process: Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> CC: Andrew de Quincey <adq_dvb@lidskialf.net> Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Maxim Levitsky authored
If videobuf_read_stream reads two or more buffers it was overwriting the first one Signed-off-by:
Maxim Levitsky <maximlevitsky@gmail.com> Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org> http://thread.gmane.org/gmane.comp.video.video4linux/34978/focus=34981Reviewed-by:
Ricardo Cerqueira <v4l@cerqueira.org>
-
Mauro Carvalho Chehab authored
Vivi driver is now simpler. This patch removes the now unused vars. Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Brandon Philips authored
The reading/streaming fields are used for mutual exclusion of the queue and should be protected by the queue lock. Signed-off-by:
Brandon Philips <bphilips@suse.de> Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org> http://thread.gmane.org/gmane.comp.video.video4linux/34978/focus=34981Reviewed-by:
Ricardo Cerqueira <v4l@cerqueira.org>
-
Brandon Philips authored
The "resource" locking in vivi isn't needed since streamon/streamoff/read_stream do mutual exclusion using q->reading/q->streaming. Plus it is sort of broken: a) res_locked() use in vivi_read() is racey. b) res_free() calls mutex_lock twice causing streamoff to break Signed-off-by:
Brandon Philips <bphilips@suse.de> Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Brandon Philips authored
Since vivi is using videobuf_read_stream() it can use videobuf_poll_stream() now. Signed-off-by:
Brandon Philips <bphilips@suse.de> Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Brandon Philips authored
If the client provides V4L2_FIELD_ANY vivi should return a valid field :) Signed-off-by:
Brandon Philips <bphilips@suse.de> Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Maxim Levitsky authored
By "capturing interlaced video" I mean that card ensures that top field is really top and vice versa (I think it takes the filed ID from signal) Properly turn on/off that support depending on signal state Signed-off-by:
Maxim Levitsky <maximlevitsky@gmail.com> Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Maxim Levitsky authored
This adds support for suspend/resume for core of saa7134 Should fix bug#7220 Signed-off-by:
Maxim Levitsky <maximlevitsky@gmail.com> Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Maxim Levitsky authored
When user sets dev->ctl_invert, driver writes negative values to SAA7134_DEC_LUMA_CONTRAST and SAA7134_DEC_CHROMA_SATURATION, but general code that initializes decorder ignores that Signed-off-by:
Maxim Levitsky <maximlevitsky@gmail.com> Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Maxim Levitsky authored
set_tvnorm can sleep in saa7134_i2c_xfer (it will be called through tuner code) but code calls it under spinlock. Fix that Signed-off-by:
Maxim Levitsky <maximlevitsky@gmail.com> Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Maxim Levitsky authored
videobuf_qbuf takes q->lock, and then calls q->ops->buf_prepare which by design in all drivers calls videobuf_iolock which calls videobuf_dma_init_user and this takes current->mm->mmap_sem on the other hand if user calls mumap from other thread, sys_munmap takes current->mm->mmap_sem and videobuf_vm_close takes q->lock Since this can occur only for V4L2_MEMORY_MMAP buffers, take current->mm->mmap_sem in qbuf, before q->lock, and don't take current->mm->mmap_sem videobuf_dma_init_user for those buffers Signed-off-by:
Maxim Levitsky <maximlevitsky@gmail.com> http://thread.gmane.org/gmane.comp.video.video4linux/34978/focus=34981Reviewed-by:
Ricardo Cerqueira <v4l@cerqueira.org> Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Mauro Carvalho Chehab authored
Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org> http://thread.gmane.org/gmane.comp.video.video4linux/34978/focus=34981Reviewed-by:
Ricardo Cerqueira <v4l@cerqueira.org>
-
Mauro Carvalho Chehab authored
Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org> http://thread.gmane.org/gmane.comp.video.video4linux/34978/focus=34981Reviewed-by:
Ricardo Cerqueira <v4l@cerqueira.org>
-
Mauro Carvalho Chehab authored
While this is not the standard color bar behaviour, having some movement there allows to check if buffers are being properly handled. Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Mauro Carvalho Chehab authored
Release code should happen before the cleaning of map variable. Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Mauro Carvalho Chehab authored
Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Mauro Carvalho Chehab authored
Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Mauro Carvalho Chehab authored
Thanks to Michael Krufky for pointing this to me. Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Mauro Carvalho Chehab authored
Due to the replace of videobuf_read_one to videobuf_read_stream, poll() method implementation is wrong. This fixes poll() implementation, making read of /dev/video? to work again. With this method, an USB driver can use video-buf, without needing to request memory from the DMA-safe area. Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Mauro Carvalho Chehab authored
Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Mauro Carvalho Chehab authored
Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org> http://thread.gmane.org/gmane.comp.video.video4linux/34978/focus=34981Reviewed-by:
Ricardo Cerqueira <v4l@cerqueira.org>
-
Mauro Carvalho Chehab authored
This patch removes the usage of videobuf-dma-sg from vivi driver, using instead videobuf-vmalloc. This way, vivi will be useful for testing the newer method. Reverting this patch won't hurt vivi, since both methods work fine. Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Mauro Carvalho Chehab authored
Adds a newer videobuf-vmalloc module. This module uses the same videobuf controls, but implements memory allocation based on vmalloc methods. With this method, an USB driver can use video-buf, without needing to request memory from the DMA-safe area. Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Mauro Carvalho Chehab authored
Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Mauro Carvalho Chehab authored
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=34981Reviewed-by:
Ricardo Cerqueira <v4l@cerqueira.org>
-
Mauro Carvalho Chehab authored
video-buf currently does two different tasks: - Manages video buffers with a common code that allows implementing all the V4L2 different modes of buffering; - Controls memory allocations While the first task is generic, the second were written to support PCI DMA Scatter/Gather needs. The original approach can't even work for those video capture hardware that don't support scatter/gather. I did one approach to make it more generic. While the approach worked fine for vivi driver, it were not generic enough to handle USB needs. This patch creates two different modules, one containing the generic video buffer handling (videobuf-core) and another with PCI DMA S/G. After this patch, it would be simpler to write an USB video-buf and a non-SG DMA module. Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org> http://thread.gmane.org/gmane.comp.video.video4linux/34978/focus=34981Reviewed-by:
Ricardo Cerqueira <v4l@cerqueira.org>
-
Brett Warden authored
coding-style repairs Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Sascha Sommer authored
Adds an entry for the Typhoon Tv-Tuner PCI to bttv-cards.c Signed-off-by:
Sascha Sommer <saschasommer@freenet.de> Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-
Mauro Carvalho Chehab authored
IR workqueue should be disabled during suspend. This avoids some troubles, like the one reported on bug #8689: "The Hauppauge HVR 1100 ir-remote control does not work after resume from suspend to ram or disk." This patch disables IR before suspending, re-enabling it after resume. Thanks to Peter Poklop <Peter.Poklop@gmx.at> for reporting it and helping with the fix. Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org> Reviewed-by:
Peter Poklop <Peter.Poklop@gmx.at>
-
Trent Piepho authored
Redoes the way the control word is stored and set. The existing code was a lot more complicated than it needed to be. Signed-off-by:
Trent Piepho <xyzzy@speakeasy.org> Signed-off-by:
Douglas Schilling Landgraf <dougsland@gmail.com> Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org> Reviewed-by:
Pekka Seppänen <pexu@kapsi.fi>
-
Trent Piepho authored
Frequency calculation to use better math. It's still the same IF offset and step size (which are not the same as the datasheet says) as the code was before. It's just more efficient and accurate. Signed-off-by:
Trent Piepho <xyzzy@speakeasy.org> Reviewed-by:
Pekka Seppänen <pexu@kapsi.fi> Signed-off-by:
Douglas Schilling Landgraf <dougsland@gmail.com> Signed-off-by:
Mauro Carvalho Chehab <mchehab@infradead.org>
-