Commit 3afb1939 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab

[media] v4l: vsp1: Disconnect unused RPFs from the DRM pipeline

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent f3af9572
...@@ -38,14 +38,18 @@ static int vsp1_drm_pipeline_run(struct vsp1_pipeline *pipe) ...@@ -38,14 +38,18 @@ static int vsp1_drm_pipeline_run(struct vsp1_pipeline *pipe)
struct vsp1_entity *entity; struct vsp1_entity *entity;
list_for_each_entry(entity, &pipe->entities, list_pipe) { list_for_each_entry(entity, &pipe->entities, list_pipe) {
/* Skip unused RPFs. */ /* Disconnect unused RPFs from the pipeline. */
if (entity->type == VSP1_ENTITY_RPF) { if (entity->type == VSP1_ENTITY_RPF) {
struct vsp1_rwpf *rpf = struct vsp1_rwpf *rpf =
to_rwpf(&entity->subdev); to_rwpf(&entity->subdev);
if (!pipe->inputs[rpf->entity.index]) if (!pipe->inputs[rpf->entity.index]) {
vsp1_write(entity->vsp1,
entity->route->reg,
VI6_DPR_NODE_UNUSED);
continue; continue;
} }
}
vsp1_entity_route_setup(entity); vsp1_entity_route_setup(entity);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment