mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[media] v4l2: use new flag to enable core priority handling
Rather than guess which driver supports core priority handling, require drivers that do to explicitly set the V4L2_FL_USE_FH_PRIO flag in video_device. Updated the core prio handling accordingly and set the flag in the three drivers that do. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
2f82441a86
commit
b1a873a37b
8 changed files with 27 additions and 14 deletions
|
|
@ -35,7 +35,10 @@ struct v4l2_ctrl_handler;
|
|||
Drivers can clear this flag if they want to block all future
|
||||
device access. It is cleared by video_unregister_device. */
|
||||
#define V4L2_FL_REGISTERED (0)
|
||||
/* file->private_data points to struct v4l2_fh */
|
||||
#define V4L2_FL_USES_V4L2_FH (1)
|
||||
/* Use the prio field of v4l2_fh for core priority checking */
|
||||
#define V4L2_FL_USE_FH_PRIO (2)
|
||||
|
||||
/* Priority helper functions */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue