Skip to content

Commit d171c45

Browse files
ezequielgarciamchehab
authored andcommitted
media: hantro: Fix broken media controller links
The driver currently creates a broken topology, with a source-to-source link and a sink-to-sink link instead of two source-to-sink links. Reported-by: Nicolas Dufresne <[email protected]> Cc: <[email protected]> # for v5.3 and up Signed-off-by: Ezequiel Garcia <[email protected]> Tested-by: Nicolas Dufresne <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 044041c commit d171c45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/staging/media/hantro/hantro_drv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,13 +558,13 @@ static int hantro_attach_func(struct hantro_dev *vpu,
558558
goto err_rel_entity1;
559559

560560
/* Connect the three entities */
561-
ret = media_create_pad_link(&func->vdev.entity, 0, &func->proc, 1,
561+
ret = media_create_pad_link(&func->vdev.entity, 0, &func->proc, 0,
562562
MEDIA_LNK_FL_IMMUTABLE |
563563
MEDIA_LNK_FL_ENABLED);
564564
if (ret)
565565
goto err_rel_entity2;
566566

567-
ret = media_create_pad_link(&func->proc, 0, &func->sink, 0,
567+
ret = media_create_pad_link(&func->proc, 1, &func->sink, 0,
568568
MEDIA_LNK_FL_IMMUTABLE |
569569
MEDIA_LNK_FL_ENABLED);
570570
if (ret)

0 commit comments

Comments
 (0)