|
@@ -901,6 +901,8 @@ static int check_ext_ctrls(struct v4l2_ext_controls *c, int allow_priv)
|
|
*/
|
|
*/
|
|
if (!allow_priv && c->ctrl_class == V4L2_CID_PRIVATE_BASE)
|
|
if (!allow_priv && c->ctrl_class == V4L2_CID_PRIVATE_BASE)
|
|
return 0;
|
|
return 0;
|
|
|
|
+ if (c->ctrl_class == 0)
|
|
|
|
+ return 1;
|
|
/* Check that all controls are from the same control class. */
|
|
/* Check that all controls are from the same control class. */
|
|
for (i = 0; i < c->count; i++) {
|
|
for (i = 0; i < c->count; i++) {
|
|
if (V4L2_CTRL_ID2CLASS(c->controls[i].id) != c->ctrl_class) {
|
|
if (V4L2_CTRL_ID2CLASS(c->controls[i].id) != c->ctrl_class) {
|