media: venus: keep resolution when adjusting format
authorAlexandre Courbot <acourbot@chromium.org>
Tue, 5 Jun 2018 04:50:46 +0000 (00:50 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 28 Jun 2018 11:55:10 +0000 (07:55 -0400)
commit1946117b8f135a62eea5cfa18be63b1741174b9f
tree7250c14b885f7f75eb590e738c52146333d9622f
parente95d7c6eb94c634852eaa5ff4caf3db05b5d2e86
media: venus: keep resolution when adjusting format

When checking a format for validity, the resolution is reset to 1280x720
whenever the pixel format is not supported. This behavior can mislead
user-space into believing that this is the only resolution supported,
and looks strange considering that if we try/set the same format with
just the pixel format changed to a valid one, the call will this time
succeed without altering the resolution.

Resolution is managed independently of the pixel format, so remove this
reset.

Signed-off-by: Alexandre Courbot <acourbot@chromium.org>
Acked-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/qcom/venus/vdec.c
drivers/media/platform/qcom/venus/venc.c