diff options
| author | Philipp Zabel <p.zabel@pengutronix.de> | 2022-04-04 19:35:28 +0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-04-24 10:43:22 +0300 |
| commit | e7326bec7b07d4608894ba726d7a8f5e88565862 (patch) | |
| tree | 846ca03ffa9220a469f0634b027e3829b3b836c4 /scripts | |
| parent | fc503c8a3f12af7093da60f790e6830f8ca5b23d (diff) | |
| download | linux-e7326bec7b07d4608894ba726d7a8f5e88565862.tar.xz | |
media: coda: disable encoder cmd ioctl on decoder and vice versa
Use v4l2_disable_ioctl() to disable the VIDIOC_TRY_ENCODER_CMD and
VIDIOC_ENCODER_CMD ioctls on decoder video devices and the
VIDIOC_TRY_DECODER_CMD and VIDIOC_DECODER_CMD ioctls on encoder
video devices.
This allows to drop the coda_try_encoder/decoder_cmd() functions
and to use v4l2_m2m_ioctl_try_encoder/decoder_cmd() directly.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
