|
@@ -39,7 +39,7 @@ static struct media_entity *vpfe_get_input_entity
|
|
|
struct vpfe_device *vpfe_dev = video->vpfe_dev;
|
|
|
struct media_pad *remote;
|
|
|
|
|
|
- remote = media_entity_remote_source(&vpfe_dev->vpfe_isif.pads[0]);
|
|
|
+ remote = media_entity_remote_pad(&vpfe_dev->vpfe_isif.pads[0]);
|
|
|
if (remote == NULL) {
|
|
|
pr_err("Invalid media connection to isif/ccdc\n");
|
|
|
return NULL;
|
|
@@ -56,7 +56,7 @@ static int vpfe_update_current_ext_subdev(struct vpfe_video_device *video)
|
|
|
struct media_pad *remote;
|
|
|
int i;
|
|
|
|
|
|
- remote = media_entity_remote_source(&vpfe_dev->vpfe_isif.pads[0]);
|
|
|
+ remote = media_entity_remote_pad(&vpfe_dev->vpfe_isif.pads[0]);
|
|
|
if (remote == NULL) {
|
|
|
pr_err("Invalid media connection to isif/ccdc\n");
|
|
|
return -EINVAL;
|
|
@@ -89,7 +89,7 @@ static int vpfe_update_current_ext_subdev(struct vpfe_video_device *video)
|
|
|
static struct v4l2_subdev *
|
|
|
vpfe_video_remote_subdev(struct vpfe_video_device *video, u32 *pad)
|
|
|
{
|
|
|
- struct media_pad *remote = media_entity_remote_source(&video->pad);
|
|
|
+ struct media_pad *remote = media_entity_remote_pad(&video->pad);
|
|
|
|
|
|
if (remote == NULL || remote->entity->type != MEDIA_ENT_T_V4L2_SUBDEV)
|
|
|
return NULL;
|
|
@@ -114,7 +114,7 @@ __vpfe_video_get_format(struct vpfe_video_device *video,
|
|
|
return -EINVAL;
|
|
|
|
|
|
fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE;
|
|
|
- remote = media_entity_remote_source(&video->pad);
|
|
|
+ remote = media_entity_remote_pad(&video->pad);
|
|
|
fmt.pad = remote->index;
|
|
|
|
|
|
ret = v4l2_subdev_call(subdev, pad, get_fmt, NULL, &fmt);
|
|
@@ -245,7 +245,7 @@ static int vpfe_video_validate_pipeline(struct vpfe_pipeline *pipe)
|
|
|
return -EPIPE;
|
|
|
|
|
|
/* Retrieve the source format */
|
|
|
- pad = media_entity_remote_source(pad);
|
|
|
+ pad = media_entity_remote_pad(pad);
|
|
|
if (pad == NULL ||
|
|
|
pad->entity->type != MEDIA_ENT_T_V4L2_SUBDEV)
|
|
|
break;
|
|
@@ -667,7 +667,7 @@ static int vpfe_enum_fmt(struct file *file, void *priv,
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
/* get the remote pad */
|
|
|
- remote = media_entity_remote_source(&video->pad);
|
|
|
+ remote = media_entity_remote_pad(&video->pad);
|
|
|
if (remote == NULL) {
|
|
|
v4l2_err(&vpfe_dev->v4l2_dev,
|
|
|
"invalid remote pad for video node\n");
|