diff --git a/drivers/media/usb/uvc/uvc_video.c b/drivers/media/usb/uvc/uvc_video.c index 79ea054eb9ba..3d9b9c44e9e6 100644 --- a/drivers/media/usb/uvc/uvc_video.c +++ b/drivers/media/usb/uvc/uvc_video.c @@ -2,6 +2,7 @@ /* * uvc_video.c -- USB Video Class driver - Video handling * + * SPDX-FileCopyrightText: Copyright (c) 2021-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved. * Copyright (C) 2005-2010 * Laurent Pinchart (laurent.pinchart@ideasonboard.com) */ @@ -2308,9 +2309,8 @@ void uvc_video_stop_streaming(struct uvc_streaming *stream) { uvc_video_stop_transfer(stream, 1); - if (stream->intf->num_altsetting > 1) { - usb_set_interface(stream->dev->udev, stream->intfnum, 0); - } else { + usb_set_interface(stream->dev->udev, stream->intfnum, 0); + if (stream->intf->num_altsetting <= 1) { /* * UVC doesn't specify how to inform a bulk-based device * when the video stream is stopped. Windows sends a