]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
[media] v4l: tvp5150: Add missing break in set control handler
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 8 Dec 2016 22:22:43 +0000 (20:22 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 12 Dec 2016 09:49:58 +0000 (07:49 -0200)
A break is missing resulting in the hue control enabling or disabling
the decode completely. Fix it.

Fixes: c43875f66140 ("[media] tvp5150: replace MEDIA_ENT_F_CONN_TEST by a control")
Cc: stable@vger.kernel.org
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/tvp5150.c

index febe6833a5042a57fb47872e133df85f7028dcef..3a0fe8cc64e94c5199730e00a6ce0e6fcb41ffb2 100644 (file)
@@ -818,6 +818,7 @@ static int tvp5150_s_ctrl(struct v4l2_ctrl *ctrl)
                return 0;
        case V4L2_CID_HUE:
                tvp5150_write(sd, TVP5150_HUE_CTL, ctrl->val);
+               break;
        case V4L2_CID_TEST_PATTERN:
                decoder->enable = ctrl->val ? false : true;
                tvp5150_selmux(sd);