summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2011-10-31 11:16:44 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-11-08 10:30:33 -0200
commit1249a3a82d08d73ece65ae79e0553cd0f3407a15 (patch)
tree2d57932f202e64825aa28b01f62b93c9bdec28d2 /drivers/media
parente3e72f39b68ec2563d8ef22f9704a66b7f71b638 (diff)
downloadlinux-1249a3a82d08d73ece65ae79e0553cd0f3407a15.tar.bz2
[media] v4l2-ctrl: Send change events to all fh for auto cluster slave controls
Otherwise the fh changing the master control won't get the inactive state change event for the slave controls. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/v4l2-ctrls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/v4l2-ctrls.c b/drivers/media/video/v4l2-ctrls.c
index c58c91bbcfbd..2ece7093b513 100644
--- a/drivers/media/video/v4l2-ctrls.c
+++ b/drivers/media/video/v4l2-ctrls.c
@@ -946,6 +946,7 @@ static void new_to_cur(struct v4l2_fh *fh, struct v4l2_ctrl *ctrl,
if (ctrl->cluster[0]->has_volatiles)
ctrl->flags |= V4L2_CTRL_FLAG_VOLATILE;
}
+ fh = NULL;
}
if (changed || update_inactive) {
/* If a control was changed that was not one of the controls