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>
"invalid route from memory input (%u) to pipe %u\n",
route->sink_pad,
route->source_pad - xbar->num_sinks);
- return -EINVAL;
+ return -ENXIO;
}
}
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,
{
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)) {