mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
media: v4l2-subdev: Extend VIDIOC_SUBDEV_S_ROUTING error codes
Return -ENXIO from routing configuration errors other than generic IOCTL argument validation. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
e87ebb4e4f
commit
04ec8572f8
|
|
@ -114,7 +114,7 @@ static int __mxc_isi_crossbar_set_routing(struct v4l2_subdev *sd,
|
|||
"invalid route from memory input (%u) to pipe %u\n",
|
||||
route->sink_pad,
|
||||
route->source_pad - xbar->num_sinks);
|
||||
return -EINVAL;
|
||||
return -ENXIO;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -492,7 +492,7 @@ static int csi2_set_routing(struct v4l2_subdev *sd,
|
|||
const struct v4l2_subdev_route *route = &routing->routes[i];
|
||||
|
||||
if (route->source_stream != 0)
|
||||
return -EINVAL;
|
||||
return -ENXIO;
|
||||
}
|
||||
|
||||
ret = v4l2_subdev_set_routing_with_fmt(sd, state, routing,
|
||||
|
|
|
|||
|
|
@ -2112,7 +2112,7 @@ int v4l2_subdev_routing_validate(struct v4l2_subdev *sd,
|
|||
{
|
||||
u32 *remote_pads = NULL;
|
||||
unsigned int i, j;
|
||||
int ret = -EINVAL;
|
||||
int ret = -ENXIO;
|
||||
|
||||
if (disallow & (V4L2_SUBDEV_ROUTING_NO_STREAM_MIX |
|
||||
V4L2_SUBDEV_ROUTING_NO_MULTIPLEXING)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user