diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2018-06-09 02:45:00 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2018-06-09 02:45:00 +0300 |
commit | 3e5b2d028c743f8e6f22aae74471a2f1be25d120 (patch) | |
tree | fa38d6c407b2f9d261d92207164db168ed18d0e3 /uvc.c | |
parent | 34abad8f7a46b4d93fb1f8db958782285fb8938f (diff) |
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 <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'uvc.c')
-rw-r--r-- | uvc.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -341,3 +341,8 @@ void uvc_events_init(struct uvc_device *dev, struct events *events) events_watch_fd(events, dev->vdev->fd, EVENT_EXCEPTION, uvc_events_process, dev); } + +void uvc_set_config(struct uvc_device *dev, struct uvc_function_config *fc) +{ + dev->fc = fc; +} |