]> git.karo-electronics.de Git - linux-beck.git/commit
[media] gspca: Switch to V4L2 core locking, except for the buffer queuing ioctls
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 6 May 2012 12:28:27 +0000 (09:28 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 14 May 2012 12:31:03 +0000 (09:31 -0300)
commita3d6e8cc0e6ddc8b3cfdeb3c979f07ed1aa528b3
tree60e69fcac849b505328e5755ee71195d0bc6728b
parent254902b01d2acc6aced99ec17caa4c6cd890cdea
[media] gspca: Switch to V4L2 core locking, except for the buffer queuing ioctls

Due to latency concerns the VIDIOC_QBUF, DQBUF and QUERYBUF do not use the
core lock, instead they rely only on queue_lock.

Changes by HdG:
1) Change release from the video_device to the v4l2_device, to avoid a
race on disconnect.
2) Adjust for the V4L2 core changes which cause non ioctl fops to no longer
take the V4L2 core lock.

[mchehab@redhat.com: fix a merge conflict]
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/gspca.c
drivers/media/video/gspca/gspca.h