Re: [PATCH] v4l2-ioctl: allow all controls if ctrl_class == 0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Mar 14, 2015 at 05:28:25PM +0100, Hans Verkuil wrote:
> The check_ext_ctrls() function in v4l2-ioctl.c checks if all controls in the
> control array are from the same control class as c->ctrl_class. However,
> that check should only be done if c->ctrl_class != 0. A 0 value means
> that this restriction does not apply.
> 
> So return 1 (OK) if c->ctrl_class == 0.
> 
> Found by running v4l2-compliance on the uvc driver.
> 
> Signed-off-by: Hans Verkuil <hans.verkuil@xxxxxxxxx>

Acked-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>

-- 
Sakari Ailus
e-mail: sakari.ailus@xxxxxx	XMPP: sailus@xxxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux