Commit 20d4ab7b authored by Sakari Ailus's avatar Sakari Ailus Committed by Mauro Carvalho Chehab

[media] omap3isp: Default link validation for ccp2, csi2, preview and resizer

Use default link validation for ccp2, csi2, preview and resizer. On ccp2,
csi2 and ccdc we also collect information on external subdevs as one may be
connected to those entities.
Signed-off-by: default avatarSakari Ailus <sakari.ailus@iki.fi>
Acked-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent c6c01f97
...@@ -998,6 +998,7 @@ static int ccp2_link_setup(struct media_entity *entity, ...@@ -998,6 +998,7 @@ static int ccp2_link_setup(struct media_entity *entity,
/* media operations */ /* media operations */
static const struct media_entity_operations ccp2_media_ops = { static const struct media_entity_operations ccp2_media_ops = {
.link_setup = ccp2_link_setup, .link_setup = ccp2_link_setup,
.link_validate = v4l2_subdev_link_validate,
}; };
/* /*
......
...@@ -1167,6 +1167,7 @@ static int csi2_link_setup(struct media_entity *entity, ...@@ -1167,6 +1167,7 @@ static int csi2_link_setup(struct media_entity *entity,
/* media operations */ /* media operations */
static const struct media_entity_operations csi2_media_ops = { static const struct media_entity_operations csi2_media_ops = {
.link_setup = csi2_link_setup, .link_setup = csi2_link_setup,
.link_validate = v4l2_subdev_link_validate,
}; };
void omap3isp_csi2_unregister_entities(struct isp_csi2_device *csi2) void omap3isp_csi2_unregister_entities(struct isp_csi2_device *csi2)
......
...@@ -2217,6 +2217,7 @@ static int preview_link_setup(struct media_entity *entity, ...@@ -2217,6 +2217,7 @@ static int preview_link_setup(struct media_entity *entity,
/* media operations */ /* media operations */
static const struct media_entity_operations preview_media_ops = { static const struct media_entity_operations preview_media_ops = {
.link_setup = preview_link_setup, .link_setup = preview_link_setup,
.link_validate = v4l2_subdev_link_validate,
}; };
void omap3isp_preview_unregister_entities(struct isp_prev_device *prev) void omap3isp_preview_unregister_entities(struct isp_prev_device *prev)
......
...@@ -1641,6 +1641,7 @@ static int resizer_link_setup(struct media_entity *entity, ...@@ -1641,6 +1641,7 @@ static int resizer_link_setup(struct media_entity *entity,
/* media operations */ /* media operations */
static const struct media_entity_operations resizer_media_ops = { static const struct media_entity_operations resizer_media_ops = {
.link_setup = resizer_link_setup, .link_setup = resizer_link_setup,
.link_validate = v4l2_subdev_link_validate,
}; };
void omap3isp_resizer_unregister_entities(struct isp_res_device *res) void omap3isp_resizer_unregister_entities(struct isp_res_device *res)
......
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