]> git.baikalelectronics.ru Git - kernel.git/commit
media: usbtv: Implement wait_prepare and wait_finish
authorEzequiel Garcia <ezequiel@collabora.com>
Fri, 11 May 2018 00:17:20 +0000 (20:17 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 25 May 2018 19:17:19 +0000 (15:17 -0400)
commit1eb0021f0b4ee33c313f5d7028dfea158b35728d
treedc3ef9340ab33c62a6368d333a59c30d5f4ad214
parenteab0db3c58b2ad6ef5148442ef98a83a2dc4a9be
media: usbtv: Implement wait_prepare and wait_finish

This driver is currently specifying a vb2_queue lock,
which means it straightforward to implement wait_prepare
and wait_finish.

Having these callbacks releases the queue lock while blocking,
which improves latency by allowing for example streamoff
or qbuf operations while waiting in dqbuf.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/usbtv/usbtv-video.c