Commit d183e4ef authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab

[media] v4l: tvp5150: Add missing break in set control handler

A break is missing resulting in the hue control enabling or disabling
the decode completely. Fix it.

Fixes: c43875f6 ("[media] tvp5150: replace MEDIA_ENT_F_CONN_TEST by a control")

Cc: stable@vger.kernel.org
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 6e98bee2
...@@ -818,6 +818,7 @@ static int tvp5150_s_ctrl(struct v4l2_ctrl *ctrl) ...@@ -818,6 +818,7 @@ static int tvp5150_s_ctrl(struct v4l2_ctrl *ctrl)
return 0; return 0;
case V4L2_CID_HUE: case V4L2_CID_HUE:
tvp5150_write(sd, TVP5150_HUE_CTL, ctrl->val); tvp5150_write(sd, TVP5150_HUE_CTL, ctrl->val);
break;
case V4L2_CID_TEST_PATTERN: case V4L2_CID_TEST_PATTERN:
decoder->enable = ctrl->val ? false : true; decoder->enable = ctrl->val ? false : true;
tvp5150_selmux(sd); tvp5150_selmux(sd);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment