linux/drivers/media/pci
Hans Verkuil 17e7f1b515 [media] saa7134: fix regression with tvtime
This solves this bug:

https://bugzilla.kernel.org/show_bug.cgi?id=73361

The problem is that when you quit tvtime it calls STREAMOFF, but then it queues a
bunch of buffers for no good reason before closing the file descriptor.

In the past closing the fd would free the vb queue since that was part of the file
handle struct. Since that was moved to the global struct that no longer happened.

This wouldn't be a problem, but the extra QBUF calls that tvtime does meant that
the buffer list in videobuf (q->stream) contained buffers, so REQBUFS would fail
with -EBUSY.

The solution is to init the list head explicitly when releasing the file
descriptor and to not free the video resource when calling streamoff.

The real fix will hopefully go into kernel 3.16 when the vb2 conversion is
merged. Basically the saa7134 driver with the old videobuf is so full of holes it
ain't funny anymore, so consider this a band-aid for kernels 3.14 and 15.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: stable@vger.kernel.org      # for v3.14 and up
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-05-13 13:23:41 -03:00
..
b2c2 [media] pci: flexcop: Remove redundant pci_set_drvdata 2013-10-17 05:56:55 -03:00
bt8xx [media] bttv: Add support for PCI-8604PW 2014-04-16 18:22:48 -03:00
cx18 [media] Convert to snd_card_new() with a device pointer 2014-02-14 08:14:09 +01:00
cx88 Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2014-04-04 09:50:07 -07:00
cx23885 Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2014-04-04 09:50:07 -07:00
cx25821 [media] Convert to snd_card_new() with a device pointer 2014-02-14 08:14:09 +01:00
ddbridge [media] ddbridge: remove unneeded an NULL check 2014-03-11 15:55:37 -03:00
dm1105 [media] dm1105: remove unneeded not-null test 2013-10-31 04:53:40 -02:00
ivtv [media] Convert to snd_card_new() with a device pointer 2014-02-14 08:14:09 +01:00
mantis [media] pci: mantis: Remove redundant pci_set_drvdata 2013-10-17 06:01:32 -03:00
meye [media] misc drivers: remove deprecated IRQF_DISABLED 2013-10-17 06:08:31 -03:00
ngene [media] ngene: Remove casting the return value which is a void pointer 2013-10-31 04:53:59 -02:00
pluto2 [media] media_tree: Fix spelling errors 2013-12-09 14:50:50 -02:00
pt1 [media] pci: pt1: Remove redundant pci_set_drvdata 2013-10-17 06:01:59 -03:00
saa7134 [media] saa7134: fix regression with tvtime 2014-05-13 13:23:41 -03:00
saa7146 [media] mxb: check register address when reading/writing a register 2013-06-17 08:53:48 -03:00
saa7164 [media] saa7164: fix return value check in saa7164_initdev() 2013-11-29 14:20:06 -02:00
sta2x11 [media] vb2: stop_streaming should return void 2014-04-23 10:12:51 -03:00
ttpci [media] av7110_hw: fix a sanity check in av7110_fw_cmd() 2014-03-11 15:54:49 -03:00
zoran [media] zoran: don't build it on alpha 2013-11-07 15:03:19 -02:00
Kconfig Properly handle tristate dependencies on USB/PCI menus 2013-06-17 11:40:28 -03:00
Makefile