From 3e5b2d028c743f8e6f22aae74471a2f1be25d120 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sat, 9 Jun 2018 02:45:00 +0300 Subject: uvc: Add API to set function configuration Add a uvc_set_config() function to set the UVC function configuration instead of accessing the internals of the uvc_device in stream.c. Signed-off-by: Laurent Pinchart --- stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream.c') diff --git a/stream.c b/stream.c index 6fb5a42..ba9a924 100644 --- a/stream.c +++ b/stream.c @@ -243,8 +243,8 @@ void uvc_stream_init_uvc(struct uvc_stream *stream, * FIXME: The maximum size should be specified per format and frame. */ stream->uvc->maxsize = 0; - stream->uvc->fc = fc; + uvc_set_config(stream->uvc, fc); uvc_events_init(stream->uvc, stream->events); } -- cgit v1.2.3