]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] pwc: poll(): Check that the device has not beem claimed for streaming already
authorHans de Goede <hdegoede@redhat.com>
Sun, 9 Oct 2011 13:28:27 +0000 (10:28 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 26 Nov 2011 15:42:49 +0000 (13:42 -0200)
commit31d2b33937670ce2806e4ac57dbabb66b4e12194
tree0028ca6af837437f1fa574ef222bed764b67a5d9
parent3fa3c1120a1f9c77d7fe1933d8e89590078c4714
[media] pwc: poll(): Check that the device has not beem claimed for streaming already

Some apps which use read() start the streaming through a call to poll(),
this means that if another app has already claimed the device for streaming
(through for example a s_fmt, or a reqbufs), that the poll should fail instead
of getting passed through to vb2_poll.

We only check for this when the app is polling for reads, so that ctrl events
still work.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/pwc/pwc-if.c