|
@@ -279,8 +279,14 @@ __must_check int media_entity_pipeline_start(struct media_entity *entity,
|
|
continue;
|
|
continue;
|
|
|
|
|
|
ret = entity->ops->link_validate(link);
|
|
ret = entity->ops->link_validate(link);
|
|
- if (ret < 0 && ret != -ENOIOCTLCMD)
|
|
|
|
|
|
+ if (ret < 0 && ret != -ENOIOCTLCMD) {
|
|
|
|
+ dev_dbg(entity->parent->dev,
|
|
|
|
+ "link validation failed for \"%s\":%u -> \"%s\":%u, error %d\n",
|
|
|
|
+ entity->name, link->source->index,
|
|
|
|
+ link->sink->entity->name,
|
|
|
|
+ link->sink->index, ret);
|
|
goto error;
|
|
goto error;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
/* Either no links or validated links are fine. */
|
|
/* Either no links or validated links are fine. */
|
|
@@ -288,6 +294,10 @@ __must_check int media_entity_pipeline_start(struct media_entity *entity,
|
|
|
|
|
|
if (!bitmap_full(active, entity->num_pads)) {
|
|
if (!bitmap_full(active, entity->num_pads)) {
|
|
ret = -EPIPE;
|
|
ret = -EPIPE;
|
|
|
|
+ dev_dbg(entity->parent->dev,
|
|
|
|
+ "\"%s\":%u must be connected by an enabled link\n",
|
|
|
|
+ entity->name,
|
|
|
|
+ find_first_zero_bit(active, entity->num_pads));
|
|
goto error;
|
|
goto error;
|
|
}
|
|
}
|
|
}
|
|
}
|