[media] uvcvideo: Rename and split uvc_queue_enable to uvc_queue_stream(on|off)

This brings the function name in line with the V4L2 API terminology and
allows removing the duplicate queue type check.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
Laurent Pinchart
2014-10-21 16:19:04 -03:00
committed by Mauro Carvalho Chehab
parent 1b7f9c989e
commit 0da4ab984b
4 changed files with 30 additions and 41 deletions

View File

@@ -2038,7 +2038,8 @@ static int __uvc_resume(struct usb_interface *intf, int reset)
if (stream->intf == intf) {
ret = uvc_video_resume(stream, reset);
if (ret < 0)
uvc_queue_enable(&stream->queue, 0);
uvc_queue_streamoff(&stream->queue,
stream->queue.queue.type);
return ret;
}
}