Re: [PATCH] media: venus: keep resolution when adjusting format

From: Stanimir Varbanov
Date: Fri Jun 15 2018 - 04:11:57 EST


Hi Alex,

Thanks for the patch!

On 06/05/2018 07:50 AM, Alexandre Courbot wrote:
> 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@xxxxxxxxxxxx>
> ---
> drivers/media/platform/qcom/venus/vdec.c | 2 --
> drivers/media/platform/qcom/venus/venc.c | 2 --
> 2 files changed, 4 deletions(-)

Acked-by: Stanimir Varbanov <stanimir.varbanov@xxxxxxxxxx>

--
regards,
Stan