media: v4l2-dev.c: check for V4L2_CAP_STREAMING to enable streaming ioctls
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 1 Feb 2023 11:48:54 +0000 (12:48 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 19 Mar 2023 21:10:23 +0000 (22:10 +0100)
commit5f225889f23db9ddabf6eca82bebb760b283705b
tree3efb3ac3b23490743fa3d54d99ebd36ce3928ec1
parent2f8c0810af739ec3587d00bf36cc5a6a0139be1a
media: v4l2-dev.c: check for V4L2_CAP_STREAMING to enable streaming ioctls

Rather than checking which device type it is, just check the STREAMING
cap since that indicates support for streaming ioctls.

Some drivers only support READWRITE (typically MPEG encoders).

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/v4l2-core/v4l2-dev.c