[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:

committed by
Mauro Carvalho Chehab

parent
1b7f9c989e
commit
0da4ab984b
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user