]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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 (15:28 +0200)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 8 Nov 2011 19:27:10 +0000 (17:27 -0200)
commit40b6be8b941a5edb7465feda165975a8a0cd3337
treeb7890cd8836cd3a1115338413814b4ba91284e04
parent82dfdada4028604aef7416c6b6f980482529d99d
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>
drivers/media/video/pwc/pwc-if.c