media: vicodec: fix g_selection: either handle crop or compose
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 12 Mar 2019 11:53:55 +0000 (07:53 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 25 Mar 2019 17:27:57 +0000 (13:27 -0400)
commitfb56f4be05adb64674a8a4ec230090960a61732e
tree4f199f241ba0cfc9283a363bd41d38f87844cabf
parent7243e5a06e484746b4bead36dc7fc692781c738b
media: vicodec: fix g_selection: either handle crop or compose

The logic of g_selection was wrong: encoders support crop,
decoders support compose, but the code allowed both.

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