|
@@ -235,7 +235,7 @@ static int isp_video_get_graph_data(struct isp_video *video,
|
|
|
while ((entity = media_entity_graph_walk_next(&graph))) {
|
|
|
struct isp_video *__video;
|
|
|
|
|
|
- pipe->entities |= 1 << entity->id;
|
|
|
+ pipe->entities |= 1 << media_entity_id(entity);
|
|
|
|
|
|
if (far_end != NULL)
|
|
|
continue;
|
|
@@ -893,6 +893,7 @@ static int isp_video_check_external_subdevs(struct isp_video *video,
|
|
|
struct v4l2_ext_control ctrl;
|
|
|
unsigned int i;
|
|
|
int ret;
|
|
|
+ u32 id;
|
|
|
|
|
|
/* Memory-to-memory pipelines have no external subdev. */
|
|
|
if (pipe->input != NULL)
|
|
@@ -900,7 +901,7 @@ static int isp_video_check_external_subdevs(struct isp_video *video,
|
|
|
|
|
|
for (i = 0; i < ARRAY_SIZE(ents); i++) {
|
|
|
/* Is the entity part of the pipeline? */
|
|
|
- if (!(pipe->entities & (1 << ents[i]->id)))
|
|
|
+ if (!(pipe->entities & (1 << media_entity_id(ents[i]))))
|
|
|
continue;
|
|
|
|
|
|
/* ISP entities have always sink pad == 0. Find source. */
|
|
@@ -952,7 +953,8 @@ static int isp_video_check_external_subdevs(struct isp_video *video,
|
|
|
|
|
|
pipe->external_rate = ctrl.value64;
|
|
|
|
|
|
- if (pipe->entities & (1 << isp->isp_ccdc.subdev.entity.id)) {
|
|
|
+ id = media_entity_id(&isp->isp_ccdc.subdev.entity);
|
|
|
+ if (pipe->entities & (1 << id)) {
|
|
|
unsigned int rate = UINT_MAX;
|
|
|
/*
|
|
|
* Check that maximum allowed CCDC pixel rate isn't
|