]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita4bdcc4df75c5d9bc193fee20428ea38a1e93c89
treec0d95c7d31d7d755c24869d707400ac39ad1cd99
parentbde67995af240427cde061969b15cb24e7b923d9
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