summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorTodor Tomov <ttomov@mm-sol.com>2011-01-25 17:46:43 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2011-02-07 15:37:53 +0100
commit6f30903cd6aeda5d61b3fa2a0e2e11e7bfb50c1e (patch)
treec607d9565a3c0a232f144eac47ab5f699cb3c104 /main.c
parent7ac89cd8f37ce9665c1701521b27a19d64223bed (diff)
Add inbound links support
Store all inbound and outbound links in media_entity.links. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.c b/main.c
index b46affe..4bc0d39 100644
--- a/main.c
+++ b/main.c
@@ -229,7 +229,7 @@ static void media_print_topology_dot(struct media_device *media)
continue;
}
- for (j = 0; j < entity->info.links; j++) {
+ for (j = 0; j < entity->num_links; j++) {
struct media_entity_link *link = &entity->links[j];
if (link->source->entity != entity)
@@ -284,7 +284,7 @@ static void media_print_topology_text(struct media_device *media)
printf("\n");
- for (k = 0; k < entity->info.links; k++) {
+ for (k = 0; k < entity->num_links; k++) {
struct media_entity_link *link = &entity->links[k];
if (link->source->entity != entity ||
@@ -383,7 +383,7 @@ static struct media_entity_link *parse_link(struct media_device *media, const ch
*endp = end;
- for (i = 0; i < source->entity->info.links; i++) {
+ for (i = 0; i < source->entity->num_links; i++) {
link = &source->entity->links[i];
if (link->source == source && link->sink == sink)
@@ -691,7 +691,7 @@ static int setup_format(struct media_device *media, const char *p, char **endp)
* the remote subdev input pads, if any.
*/
if (pad->flags & MEDIA_PAD_FLAG_OUTPUT) {
- for (i = 0; i < pad->entity->info.links; ++i) {
+ for (i = 0; i < pad->entity->num_links; ++i) {
struct media_entity_link *link = &pad->entity->links[i];
struct v4l2_mbus_framefmt remote_format;