Skip to content

Commit f78073e

Browse files
Laurent PinchartHans Verkuil
authored andcommitted
Revert "media: renesas: vsp1: brx: Fix format propagation"
This reverts commit 937f3e6. The change to format propagation in the BRx broke configuration of the DRM pipeline. Revert it to fix the regression. The original commit was meant to fix a v4l2-compliance failure, with no known userspace applications being affected beside test tools. Reverting is the simplest option, a more comprehensive fix can be developed (and tested more thoroughly) later. Reported-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Closes: https://lore.kernel.org/linux-media/CA+V-a8t481xuwava0nb7uY9CUPqFWZ_8EP0xrK3BgumP7HDcLg@mail.gmail.com Fixes: 937f3e6 ("media: renesas: vsp1: brx: Fix format propagation") Tested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> # On RZ/T2H Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Link: https://patch.msgid.link/20260506215650.1897177-3-laurent.pinchart+renesas@ideasonboard.com Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
1 parent a0d8f7a commit f78073e

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

drivers/media/platform/renesas/vsp1/vsp1_brx.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,20 +156,14 @@ static int brx_set_format(struct v4l2_subdev *subdev,
156156
compose->height = format->height;
157157
}
158158

159-
/*
160-
* Propagate the format code to all pads, and the whole format to the
161-
* source pad.
162-
*/
159+
/* Propagate the format code to all pads. */
163160
if (fmt->pad == BRX_PAD_SINK(0)) {
164161
unsigned int i;
165162

166-
for (i = 0; i < brx->entity.source_pad; ++i) {
163+
for (i = 0; i <= brx->entity.source_pad; ++i) {
167164
format = v4l2_subdev_state_get_format(state, i);
168165
format->code = fmt->format.code;
169166
}
170-
171-
format = v4l2_subdev_state_get_format(state, i);
172-
*format = fmt->format;
173167
}
174168

175169
done:

0 commit comments

Comments
 (0)