aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/vivi.c
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@iki.fi>2012-01-24 19:05:34 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-05-14 07:46:27 -0400
commit77e7c4e624404c6edb5686b3d5f873c6008ed6b0 (patch)
tree1ba1d9903bb8eca6e3ca3439d3a5981274ea86ba /drivers/media/video/vivi.c
parent8227c92b69688403dee2adf5f399a49539ae5049 (diff)
[media] v4l: Allow changing control handler lock
Allow choosing the lock used by the control handler. This may be handy sometimes when a driver providing multiple subdevs does not want to use several locks to serialise its functions. Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/vivi.c')
-rw-r--r--drivers/media/video/vivi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/vivi.c b/drivers/media/video/vivi.c
index d64d482f4f6b..6f2e354a242d 100644
--- a/drivers/media/video/vivi.c
+++ b/drivers/media/video/vivi.c
@@ -485,7 +485,7 @@ static void vivi_fillbuff(struct vivi_dev *dev, struct vivi_buffer *buf)
485 gen_text(dev, vbuf, line++ * 16, 16, str); 485 gen_text(dev, vbuf, line++ * 16, 16, str);
486 486
487 gain = v4l2_ctrl_g_ctrl(dev->gain); 487 gain = v4l2_ctrl_g_ctrl(dev->gain);
488 mutex_lock(&dev->ctrl_handler.lock); 488 mutex_lock(dev->ctrl_handler.lock);
489 snprintf(str, sizeof(str), " brightness %3d, contrast %3d, saturation %3d, hue %d ", 489 snprintf(str, sizeof(str), " brightness %3d, contrast %3d, saturation %3d, hue %d ",
490 dev->brightness->cur.val, 490 dev->brightness->cur.val,
491 dev->contrast->cur.val, 491 dev->contrast->cur.val,
@@ -509,7 +509,7 @@ static void vivi_fillbuff(struct vivi_dev *dev, struct vivi_buffer *buf)
509 dev->int_menu->qmenu_int[dev->int_menu->cur.val], 509 dev->int_menu->qmenu_int[dev->int_menu->cur.val],
510 dev->int_menu->cur.val); 510 dev->int_menu->cur.val);
511 gen_text(dev, vbuf, line++ * 16, 16, str); 511 gen_text(dev, vbuf, line++ * 16, 16, str);
512 mutex_unlock(&dev->ctrl_handler.lock); 512 mutex_unlock(dev->ctrl_handler.lock);
513 if (dev->button_pressed) { 513 if (dev->button_pressed) {
514 dev->button_pressed--; 514 dev->button_pressed--;
515 snprintf(str, sizeof(str), " button pressed!"); 515 snprintf(str, sizeof(str), " button pressed!");