summaryrefslogtreecommitdiff
path: root/linux/include
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-04-04 13:46:34 +0000
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-04 13:46:34 +0000
commitc03a147c1c7804df6087513c653e2613e72aa407 (patch)
tree271af8998f147aafd137fe96557e5038d5ec12cb /linux/include
parent01b6d97d0059d0f1b5e00d0a6f0e3031460d762f (diff)
downloadmediapointer-dvb-s2-c03a147c1c7804df6087513c653e2613e72aa407.tar.gz
mediapointer-dvb-s2-c03a147c1c7804df6087513c653e2613e72aa407.tar.bz2
soc-camera: use a spinlock for videobuffer queue
From: Guennadi Liakhovetski <g.liakhovetski@pengutronix.de> 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 'linux/include')
-rw-r--r--linux/include/media/soc_camera.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/include/media/soc_camera.h b/linux/include/media/soc_camera.h
index 80e1193c0..6a8c8be7a 100644
--- a/linux/include/media/soc_camera.h
+++ b/linux/include/media/soc_camera.h
@@ -48,6 +48,7 @@ struct soc_camera_device {
struct soc_camera_file {
struct soc_camera_device *icd;
struct videobuf_queue vb_vidq;
+ spinlock_t *lock;
};
struct soc_camera_host {
@@ -73,6 +74,8 @@ struct soc_camera_host_ops {
int (*try_bus_param)(struct soc_camera_device *, __u32);
int (*set_bus_param)(struct soc_camera_device *, __u32);
unsigned int (*poll)(struct file *, poll_table *);
+ spinlock_t* (*spinlock_alloc)(struct soc_camera_file *);
+ void (*spinlock_free)(spinlock_t *);
};
struct soc_camera_link {