linux/drivers/media/video/pvrusb2
Pantelis Koukousoulas 99cfdf5cc6 V4L/DVB (5038): Pvrusb2: Implement stream claim checking function
Add (and expose) a new function, pvr2_channel_check_stream_no_lock(), in
pvrusb2-context.c. This is hopefully the last V4L2 interface related patch
to change anything outside pvrusb2-v4l2.c.

We need this to implement the open() for the radio device. The reason is
that within the *enter_context() section of open() we need to ensure nobody
is streaming and if we cannot, we should cleanup after ourselves and return
 -EBUSY. We cannot just use claim_stream() because:

   1) That would cause a deadlock trying to re-acquire the context lock
   2) We only need to ensure that nobody is streaming. We don't need to
      actually acquire the stream.

Again, this is a kinda ugly patch. Feel free to improve.

Signed-off-by: Pantelis Koukousoulas <pakt223@freemail.gr>
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-02-21 13:34:23 -02:00
..
Kconfig V4L/DVB (4661): Pvrusb2: improve 24XXX config option description 2006-10-03 15:13:31 -03:00
Makefile V4L/DVB (4604): Fix broken pvrusb2 build 2006-09-26 12:30:35 -03:00
pvrusb2-audio.c Storage class should be before const qualifier 2007-02-17 20:11:19 +01:00
pvrusb2-audio.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2-context.c V4L/DVB (5038): Pvrusb2: Implement stream claim checking function 2007-02-21 13:34:23 -02:00
pvrusb2-context.h V4L/DVB (5038): Pvrusb2: Implement stream claim checking function 2007-02-21 13:34:23 -02:00
pvrusb2-ctrl.c V4L/DVB (5036): Pvrusb2: Fix for min/max control value checking 2007-02-21 13:34:22 -02:00
pvrusb2-ctrl.h V4L/DVB (4240): Various V4L control enhancements in pvrusb2 2006-06-27 00:17:28 -03:00
pvrusb2-cx2584x-v4l.c Storage class should be before const qualifier 2007-02-17 20:11:19 +01:00
pvrusb2-cx2584x-v4l.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2-debug.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2-debugifc.c V4L/DVB (4288): Clean out a zillion sparse warnings in pvrusb2 2006-06-30 15:59:50 -03:00
pvrusb2-debugifc.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2-eeprom.c V4L/DVB (4288): Clean out a zillion sparse warnings in pvrusb2 2006-06-30 15:59:50 -03:00
pvrusb2-eeprom.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2-encoder.c V4L/DVB (5034): Pvrusb2: Enable radio mode round #1 2007-02-21 13:34:21 -02:00
pvrusb2-encoder.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2-hdw-internal.h V4L/DVB (5037): Pvrusb2: Implement multiple minor device number handling 2007-02-21 13:34:22 -02:00
pvrusb2-hdw.c V4L/DVB (5037): Pvrusb2: Implement multiple minor device number handling 2007-02-21 13:34:22 -02:00
pvrusb2-hdw.h V4L/DVB (5037): Pvrusb2: Implement multiple minor device number handling 2007-02-21 13:34:22 -02:00
pvrusb2-i2c-chips-v4l2.c V4L/DVB (5034): Pvrusb2: Enable radio mode round #1 2007-02-21 13:34:21 -02:00
pvrusb2-i2c-cmd-v4l2.c V4L/DVB (5035): Pvrusb2: Enable radio mode round #2 2007-02-21 13:34:22 -02:00
pvrusb2-i2c-cmd-v4l2.h V4L/DVB (5034): Pvrusb2: Enable radio mode round #1 2007-02-21 13:34:21 -02:00
pvrusb2-i2c-core.c i2c: Declare more i2c_adapter parent devices 2007-02-13 22:09:03 +01:00
pvrusb2-i2c-core.h V4L/DVB (4287): Pvrusb2/: possible cleanups 2006-06-30 15:59:48 -03:00
pvrusb2-io.c usb: pvrusb2-io free urb cleanup 2006-12-01 14:23:32 -08:00
pvrusb2-io.h V4L/DVB (4337): Refine dead code elimination in pvrusb2 2006-07-29 17:22:24 -03:00
pvrusb2-ioread.c V4L/DVB (4337): Refine dead code elimination in pvrusb2 2006-07-29 17:22:24 -03:00
pvrusb2-ioread.h V4L/DVB (4287): Pvrusb2/: possible cleanups 2006-06-30 15:59:48 -03:00
pvrusb2-main.c V4L/DVB (4339): Removed the remaining config.h stuff 2006-09-26 09:03:16 -03:00
pvrusb2-std.c Storage class should be before const qualifier 2007-02-17 20:11:19 +01:00
pvrusb2-std.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2-sysfs.c V4L/DVB (5037): Pvrusb2: Implement multiple minor device number handling 2007-02-21 13:34:22 -02:00
pvrusb2-sysfs.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2-tuner.c Storage class should be before const qualifier 2007-02-17 20:11:19 +01:00
pvrusb2-tuner.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2-util.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2-v4l2.c V4L/DVB (5037): Pvrusb2: Implement multiple minor device number handling 2007-02-21 13:34:22 -02:00
pvrusb2-v4l2.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2-video-v4l.c Storage class should be before const qualifier 2007-02-17 20:11:19 +01:00
pvrusb2-video-v4l.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2-wm8775.c Storage class should be before const qualifier 2007-02-17 20:11:19 +01:00
pvrusb2-wm8775.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00