mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
V4L/DVB (6601): V4L: videobuf-core locking fixes and comments
- Add comments to functions that require that caller hold q->lock - Add __videobuf_mmap_free that doesn't hold q->lock for use within videobuf - Add locking to videobuf_mmap_free - Fix linux/drivers/media/common/saa7146_video.c which was holding lock around videobuf_read_stop - Add locking to functions that operate on a queue - Add videobuf_stop to take care of stopping in both the read and stream case TODO: bttv still has an unsafe call to videobuf_queue_is_busy Signed-off-by: Brandon Philips <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
63337dd3f5
commit
19bc5133da
3 changed files with 161 additions and 93 deletions
|
|
@ -208,6 +208,8 @@ int videobuf_cgmbuf(struct videobuf_queue *q,
|
|||
int videobuf_streamon(struct videobuf_queue *q);
|
||||
int videobuf_streamoff(struct videobuf_queue *q);
|
||||
|
||||
void videobuf_stop(struct videobuf_queue *q);
|
||||
|
||||
int videobuf_read_start(struct videobuf_queue *q);
|
||||
void videobuf_read_stop(struct videobuf_queue *q);
|
||||
ssize_t videobuf_read_stream(struct videobuf_queue *q,
|
||||
|
|
|
|||
Loading…
Reference in a new issue