Re: [PATCH] media: v4l2-ctrl: Fix flags field on Control events

2017-10-17 Thread Hans Verkuil
On 10/17/2017 04:53 PM, Ricardo Ribalda Delgado wrote: > VIDIOC_DQEVENT and VIDIOC_QUERY_EXT_CTRL should give the same output for > the control flags field. > > This patch creates a new function user_flags(), that calculates the user > exported flags value (which is different than the kernel

[PATCH] media: v4l2-ctrl: Fix flags field on Control events

2017-10-17 Thread Ricardo Ribalda Delgado
VIDIOC_DQEVENT and VIDIOC_QUERY_EXT_CTRL should give the same output for the control flags field. This patch creates a new function user_flags(), that calculates the user exported flags value (which is different than the kernel internal flags structure). This function is then used by all the code