aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@pengutronix.de>2008-04-04 12:46:34 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:07:57 -0400
commit1a0063a9852380190a7172c1a1cb79e934b06cd4 (patch)
tree71b91bdeaae1b72c3718507dec6922f609b9edd0 /include/media
parentb8d9904c3525c0a149976ffaad48fcb03e8703f7 (diff)
V4L/DVB (7501): soc-camera: use a spinlock for videobuffer queue
All drivers should provide a spinlock to be used in videobuf operations. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@pengutronix.de> Reviewed-by: Brandon Philips <bphilips@suse.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/soc_camera.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h
index 80e1193c07d5..6a8c8be7a1ae 100644
--- a/include/media/soc_camera.h
+++ b/include/media/soc_camera.h
@@ -48,6 +48,7 @@ struct soc_camera_device {
48struct soc_camera_file { 48struct soc_camera_file {
49 struct soc_camera_device *icd; 49 struct soc_camera_device *icd;
50 struct videobuf_queue vb_vidq; 50 struct videobuf_queue vb_vidq;
51 spinlock_t *lock;
51}; 52};
52 53
53struct soc_camera_host { 54struct soc_camera_host {
@@ -73,6 +74,8 @@ struct soc_camera_host_ops {
73 int (*try_bus_param)(struct soc_camera_device *, __u32); 74 int (*try_bus_param)(struct soc_camera_device *, __u32);
74 int (*set_bus_param)(struct soc_camera_device *, __u32); 75 int (*set_bus_param)(struct soc_camera_device *, __u32);
75 unsigned int (*poll)(struct file *, poll_table *); 76 unsigned int (*poll)(struct file *, poll_table *);
77 spinlock_t* (*spinlock_alloc)(struct soc_camera_file *);
78 void (*spinlock_free)(spinlock_t *);
76}; 79};
77 80
78struct soc_camera_link { 81struct soc_camera_link {