From: Hans de Goede Date: Mon, 31 Oct 2011 14:16:44 +0000 (-0300) Subject: [media] v4l2-ctrl: Send change events to all fh for auto cluster slave controls X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1249a3a82d08d73ece65ae79e0553cd0f3407a15;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [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 Signed-off-by: Mauro Carvalho Chehab --- 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