Skip to content

Commit

Permalink
[media] gspca: Switch to V4L2 core locking, except for the buffer que…
Browse files Browse the repository at this point in the history
…uing 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>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed May 14, 2012
1 parent 254902b commit a3d6e8c
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 182 deletions.
Loading

0 comments on commit a3d6e8c

Please sign in to comment.