media: coda: disable encoder command on decoder and vice versa
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 8 Apr 2019 12:32:51 +0000 (08:32 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 22 Apr 2019 15:54:25 +0000 (11:54 -0400)
commit784867d2135a1a8ebc213bcc3ca26283a2c0d9b8
tree9c6792f5935b958dc93ac49c11d11be9e128415e
parentc1b6761e1f4ea9ca6e858c4b0d6fd5461786f2b9
media: coda: disable encoder command on decoder and vice versa

Return -ENOTTY when userspace tries to call VIDIOC_(TRY_)ENCODER_CMD on
a decoder instance or VIDIOC_(TRY_)DECODER_CMD on an encoder instance.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/coda/coda-common.c