[media] soc-camera: remove struct soc_camera_device::video_lock
Currently soc-camera has a per-device node lock, used for video operations and a per-host lock for code paths, modifying host's pipeline. Manipulating the two locks increases complexity and doesn't bring any advantages. This patch removes the per-device lock and uses the per-host lock for all operations. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
8a97d4c117
commit
dd669e907c
@@ -46,9 +46,8 @@ struct soc_camera_device {
|
||||
int num_user_formats;
|
||||
enum v4l2_field field; /* Preserve field over close() */
|
||||
void *host_priv; /* Per-device host private data */
|
||||
/* soc_camera.c private count. Only accessed with .video_lock held */
|
||||
/* soc_camera.c private count. Only accessed with .host_lock held */
|
||||
int use_count;
|
||||
struct mutex video_lock; /* Protects device data */
|
||||
struct file *streamer; /* stream owner */
|
||||
union {
|
||||
struct videobuf_queue vb_vidq;
|
||||
|
||||
Reference in New Issue
Block a user