media: v4l2: Fix the _MPLANE format check in v4l_enum_fmt()
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 5 Jun 2019 16:46:25 +0000 (12:46 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 10 Jun 2019 18:52:03 +0000 (14:52 -0400)
commitf0d2b7a8915a00917207dd23aaf8554d7bf777b0
tree0a9d03fe3a3134d7296bfd1249a63e749615f1b7
parentedadd68031e5b7c1ba0c413a9549dce62a02844c
media: v4l2: Fix the _MPLANE format check in v4l_enum_fmt()

CAP_M2M_MPLANE means the device supports _MPLANE formats for both
capture and output. Adjust the check to avoid EINVAL errors on
such devices.

Reported-by: Maxime Jourdan <mjourdan@baylibre.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/v4l2-core/v4l2-ioctl.c