Skip to content
Snippets Groups Projects
Commit aaea725d authored by Ezequiel Garcia's avatar Ezequiel Garcia Committed by Nicolas Dufresne
Browse files

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: default avatarNicolas Dufresne <nicolas@ndufresne.ca>
Cc: <stable@vger.kernel.org>      # for v5.3 and up
Signed-off-by: default avatarEzequiel Garcia <ezequiel@collabora.com>
parent 4ae8461b
No related branches found
No related tags found
No related merge requests found
...@@ -563,13 +563,13 @@ static int hantro_attach_func(struct hantro_dev *vpu, ...@@ -563,13 +563,13 @@ static int hantro_attach_func(struct hantro_dev *vpu,
goto err_rel_entity1; goto err_rel_entity1;
/* Connect the three entities */ /* Connect the three entities */
ret = media_create_pad_link(&func->vdev.entity, 0, &func->proc, 1, ret = media_create_pad_link(&func->vdev.entity, 0, &func->proc, 0,
MEDIA_LNK_FL_IMMUTABLE | MEDIA_LNK_FL_IMMUTABLE |
MEDIA_LNK_FL_ENABLED); MEDIA_LNK_FL_ENABLED);
if (ret) if (ret)
goto err_rel_entity2; goto err_rel_entity2;
ret = media_create_pad_link(&func->proc, 0, &func->sink, 0, ret = media_create_pad_link(&func->proc, 1, &func->sink, 0,
MEDIA_LNK_FL_IMMUTABLE | MEDIA_LNK_FL_IMMUTABLE |
MEDIA_LNK_FL_ENABLED); MEDIA_LNK_FL_ENABLED);
if (ret) if (ret)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment