From 7e4423e00daf89b6a5f202741abceba28ce588b2 Mon Sep 17 00:00:00 2001 From: Angus Chen Date: Tue, 7 Jul 2026 10:07:16 +0800 Subject: [PATCH] max9x: use stream-aware active formats Use the V4L2 subdev state format lookup for active formats so deserializer source pads can keep independent format state per stream. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- drivers/media/i2c/max9x/serdes.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/media/i2c/max9x/serdes.c b/drivers/media/i2c/max9x/serdes.c index 674c1391..206b5f7b 100644 --- a/drivers/media/i2c/max9x/serdes.c +++ b/drivers/media/i2c/max9x/serdes.c @@ -1551,10 +1551,7 @@ static struct v4l2_mbus_framefmt *__max9x_get_ffmt(struct v4l2_subdev *sd, return ERR_PTR(-EINVAL); } - if (fmt->which == V4L2_SUBDEV_FORMAT_TRY) - return v4l2_subdev_state_get_format(v4l2_state, fmt->pad, fmt->stream); - - return &common->v4l.ffmts[fmt->pad]; + return v4l2_subdev_state_get_format(v4l2_state, fmt->pad, fmt->stream); } static int max9x_get_fmt(struct v4l2_subdev *sd,