OSDN Git Service

hantro: Make sure we don't use post-processor on an encoder
authorEzequiel Garcia <ezequiel@collabora.com>
Wed, 1 Jul 2020 13:16:07 +0000 (15:16 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 19 Jul 2020 11:26:06 +0000 (13:26 +0200)
commit46d7aaebbe441d5381e35d8e16df784690e65ef3
tree400a92e60e58c4cfea2d3cbe56b6b615947ee904
parentb72a6342dd240ce8e15b7acf1c38c67a0c56092b
hantro: Make sure we don't use post-processor on an encoder

Commit 986eee3a5234 ("media: hantro: Prevent encoders from using
post-processing") fixed hantro_needs_postproc condition,
but missed one case. Encoders don't have any post-processor
hardware block, so also can't be disabled.

Fix it.

Fixes: 986eee3a5234 ("media: hantro: Prevent encoders from using post-processing")
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/hantro/hantro_drv.c