mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
CHROMIUM: v4l2-ctrls: fix s_ext_ctrls error when passing non-zero ctrl_class
due to a merge mistake in I3b80a31681765836a134812ebc56686324ca5194. Change-Id: Iad2914518997b664704f2c2933c8327fc4252bbb Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
This commit is contained in:
committed by
Gerrit Code Review
parent
ab5ef60b32
commit
414afa62b9
@@ -2801,6 +2801,7 @@ static int prepare_ext_ctrls(struct v4l2_ctrl_handler *hdl,
|
||||
struct v4l2_ctrl_helper *helpers,
|
||||
bool get)
|
||||
{
|
||||
u32 which = V4L2_CTRL_ID2WHICH(cs->which);
|
||||
unsigned store = cs->config_store & 0xffff;
|
||||
struct v4l2_ctrl_helper *h;
|
||||
bool have_clusters = false;
|
||||
@@ -2814,7 +2815,7 @@ static int prepare_ext_ctrls(struct v4l2_ctrl_handler *hdl,
|
||||
|
||||
cs->error_idx = i;
|
||||
|
||||
if (cs->which && V4L2_CTRL_ID2WHICH(id) != cs->which)
|
||||
if (which && V4L2_CTRL_ID2WHICH(id) != cs->which)
|
||||
return -EINVAL;
|
||||
|
||||
/* Old-style private controls are not allowed for
|
||||
|
||||
Reference in New Issue
Block a user