Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e975be28 authored by Felipe Balbi's avatar Felipe Balbi
Browse files

usb: gadget: function: uvc: return correct alt-setting



If our alternate setting has been selected, we must
return that on a subsequent Get Interface request
even if we're not streaming.

Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent c92bae75
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -279,7 +279,7 @@ uvc_function_get_alt(struct usb_function *f, unsigned interface)
	else if (interface != uvc->streaming_intf)
	else if (interface != uvc->streaming_intf)
		return -EINVAL;
		return -EINVAL;
	else
	else
		return uvc->state == UVC_STATE_STREAMING ? 1 : 0;
		return uvc->video.ep->driver_data ? 1 : 0;
}
}


static int
static int