|
@@ -510,7 +510,7 @@ int v4l2_subdev_link_validate_default(struct v4l2_subdev *sd,
|
|
|
if (source_fmt->format.width != sink_fmt->format.width
|
|
|
|| source_fmt->format.height != sink_fmt->format.height
|
|
|
|| source_fmt->format.code != sink_fmt->format.code)
|
|
|
- return -EINVAL;
|
|
|
+ return -EPIPE;
|
|
|
|
|
|
/* The field order must match, or the sink field order must be NONE
|
|
|
* to support interlaced hardware connected to bridges that support
|
|
@@ -518,7 +518,7 @@ int v4l2_subdev_link_validate_default(struct v4l2_subdev *sd,
|
|
|
*/
|
|
|
if (source_fmt->format.field != sink_fmt->format.field &&
|
|
|
sink_fmt->format.field != V4L2_FIELD_NONE)
|
|
|
- return -EINVAL;
|
|
|
+ return -EPIPE;
|
|
|
|
|
|
return 0;
|
|
|
}
|