[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <c0dbc541-d321-4ce1-9d2d-0c4189ef752f@kernel.org>
Date: Tue, 28 Oct 2025 13:19:39 +0000
From: Bryan O'Donoghue <bod@...nel.org>
To: Val Packett <val@...kett.cool>,
Vikash Garodia <vikash.garodia@....qualcomm.com>,
Dikshita Agarwal <dikshita.agarwal@....qualcomm.com>,
Abhinav Kumar <abhinav.kumar@...ux.dev>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Hans Verkuil <hverkuil@...nel.org>,
Stefan Schmidt <stefan.schmidt@...aro.org>,
Vedang Nagar <quic_vnagar@...cinc.com>
Cc: linux-media@...r.kernel.org, linux-arm-msm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] media: iris: set default size when S_FMT is called with
zero size
On 13/10/2025 00:50, Val Packett wrote:
> drivers/media/platform/qcom/iris/iris_vdec.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/drivers/media/platform/qcom/iris/iris_vdec.c b/drivers/media/platform/qcom/iris/iris_vdec.c
> index ae13c3e1b426..6be09d82e24d 100644
> --- a/drivers/media/platform/qcom/iris/iris_vdec.c
> +++ b/drivers/media/platform/qcom/iris/iris_vdec.c
> @@ -196,6 +196,11 @@ int iris_vdec_s_fmt(struct iris_inst *inst, struct v4l2_format *f)
> if (vb2_is_busy(q))
> return -EBUSY;
>
> + if (f->fmt.pix_mp.width == 0 && f->fmt.pix_mp.height == 0) {
> + f->fmt.pix_mp.width = DEFAULT_WIDTH;
> + f->fmt.pix_mp.height = DEFAULT_HEIGHT;
> + }
> +
> iris_vdec_try_fmt(inst, f);
>
> switch (f->type) {
> --
Doesn't venus do
orig_pixmap = *pixmap;
try_fmt();
format.fmt.pix_mp.width = orig_pixmp.width;
format.fmt.pix_mp.height = orig_pixmp.height;
should you fall back to DEFAULT_WIDTH/HEIGHT or to orig_pixmp.width/height ?
---
bod
Powered by blists - more mailing lists