Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1531a208 authored by Kieran Bingham's avatar Kieran Bingham Committed by Mauro Carvalho Chehab
Browse files

[media] v4l: vsp1: Register pipe with output WPF



The DRM object does not register the pipe with the WPF object. This is
used internally throughout the driver as a means of accessing the pipe.
As such this breaks operations which require access to the pipe from WPF
interrupts.

Register the pipe inside the WPF object after it has been declared as
the output.

Fixes: ff7e97c9 ("[media] v4l: vsp1: Store pipeline pointer in rwpf")

Signed-off-by: default avatarKieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 1b8ce406
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -602,6 +602,7 @@ int vsp1_drm_init(struct vsp1_device *vsp1)
	pipe->bru = &vsp1->bru->entity;
	pipe->bru = &vsp1->bru->entity;
	pipe->lif = &vsp1->lif->entity;
	pipe->lif = &vsp1->lif->entity;
	pipe->output = vsp1->wpf[0];
	pipe->output = vsp1->wpf[0];
	pipe->output->pipe = pipe;


	return 0;
	return 0;
}
}