V4L/DVB (5052): Pvrusb2: Remove stream claiming hack from /dev/radio
authorMike Isely <isely@pobox.com>
Thu, 28 Dec 2006 02:33:00 +0000 (23:33 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 21 Feb 2007 15:34:33 +0000 (13:34 -0200)
commit62f5fdace7774a45e75e4d651237e7e1e8f05327
treec0d95c7d31d7d755c24869d707400ac39ad1cd99
parent1bde02891b3d4d17ee743584bb49ed5f275dff01
V4L/DVB (5052): Pvrusb2: Remove stream claiming hack from /dev/radio

Trying to temporarily check that the stream is not claimed during open
of the radio device is at best a race condition.  What's to stop
another app from claiming the stream anyway the instant after the
check is done?  The implementation for this was dicey anyway.  So it's
removed.  The only "price" for this is that if /dev/radioX is opened
while streaming video, then the video stream is just going to switch
to radio mode anyway.  If a user does this, he gets what he expects...

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/pvrusb2/pvrusb2-context.c
drivers/media/video/pvrusb2/pvrusb2-context.h
drivers/media/video/pvrusb2/pvrusb2-v4l2.c