Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
uvc_ctrl.c File Reference
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/uaccess.h>
#include <linux/usb.h>
#include <linux/videodev2.h>
#include <linux/vmalloc.h>
#include <linux/wait.h>
#include <linux/atomic.h>
#include <media/v4l2-ctrls.h>
#include "uvcvideo.h"

Go to the source code of this file.

Macros

#define UVC_CTRL_DATA_CURRENT   0
 
#define UVC_CTRL_DATA_BACKUP   1
 
#define UVC_CTRL_DATA_MIN   2
 
#define UVC_CTRL_DATA_MAX   3
 
#define UVC_CTRL_DATA_RES   4
 
#define UVC_CTRL_DATA_DEF   5
 
#define UVC_CTRL_DATA_LAST   6
 

Functions

int uvc_query_v4l2_ctrl (struct uvc_video_chain *chain, struct v4l2_queryctrl *v4l2_ctrl)
 
int uvc_query_v4l2_menu (struct uvc_video_chain *chain, struct v4l2_querymenu *query_menu)
 
int uvc_ctrl_begin (struct uvc_video_chain *chain)
 
int __uvc_ctrl_commit (struct uvc_fh *handle, int rollback, const struct v4l2_ext_control *xctrls, unsigned int xctrls_count)
 
int uvc_ctrl_get (struct uvc_video_chain *chain, struct v4l2_ext_control *xctrl)
 
int uvc_ctrl_set (struct uvc_video_chain *chain, struct v4l2_ext_control *xctrl)
 
int uvc_xu_ctrl_query (struct uvc_video_chain *chain, struct uvc_xu_control_query *xqry)
 
int uvc_ctrl_resume_device (struct uvc_device *dev)
 
int uvc_ctrl_add_mapping (struct uvc_video_chain *chain, const struct uvc_control_mapping *mapping)
 
int uvc_ctrl_init_device (struct uvc_device *dev)
 
void uvc_ctrl_cleanup_device (struct uvc_device *dev)
 

Variables

struct v4l2_subscribed_event_ops uvc_ctrl_sub_ev_ops
 

Macro Definition Documentation

#define UVC_CTRL_DATA_BACKUP   1

Definition at line 29 of file uvc_ctrl.c.

#define UVC_CTRL_DATA_CURRENT   0

Definition at line 28 of file uvc_ctrl.c.

#define UVC_CTRL_DATA_DEF   5

Definition at line 33 of file uvc_ctrl.c.

#define UVC_CTRL_DATA_LAST   6

Definition at line 34 of file uvc_ctrl.c.

#define UVC_CTRL_DATA_MAX   3

Definition at line 31 of file uvc_ctrl.c.

#define UVC_CTRL_DATA_MIN   2

Definition at line 30 of file uvc_ctrl.c.

#define UVC_CTRL_DATA_RES   4

Definition at line 32 of file uvc_ctrl.c.

Function Documentation

int __uvc_ctrl_commit ( struct uvc_fh handle,
int  rollback,
const struct v4l2_ext_control xctrls,
unsigned int  xctrls_count 
)

Definition at line 1387 of file uvc_ctrl.c.

int uvc_ctrl_add_mapping ( struct uvc_video_chain chain,
const struct uvc_control_mapping mapping 
)

Definition at line 1897 of file uvc_ctrl.c.

int uvc_ctrl_begin ( struct uvc_video_chain chain)

Definition at line 1332 of file uvc_ctrl.c.

void uvc_ctrl_cleanup_device ( struct uvc_device dev)

Definition at line 2146 of file uvc_ctrl.c.

int uvc_ctrl_get ( struct uvc_video_chain chain,
struct v4l2_ext_control xctrl 
)

Definition at line 1409 of file uvc_ctrl.c.

int uvc_ctrl_init_device ( struct uvc_device dev)

Definition at line 2078 of file uvc_ctrl.c.

int uvc_ctrl_resume_device ( struct uvc_device dev)

Definition at line 1792 of file uvc_ctrl.c.

int uvc_ctrl_set ( struct uvc_video_chain chain,
struct v4l2_ext_control xctrl 
)

Definition at line 1422 of file uvc_ctrl.c.

int uvc_query_v4l2_ctrl ( struct uvc_video_chain chain,
struct v4l2_queryctrl v4l2_ctrl 
)

Definition at line 1051 of file uvc_ctrl.c.

int uvc_query_v4l2_menu ( struct uvc_video_chain chain,
struct v4l2_querymenu query_menu 
)

Definition at line 1083 of file uvc_ctrl.c.

int uvc_xu_ctrl_query ( struct uvc_video_chain chain,
struct uvc_xu_control_query xqry 
)

Definition at line 1661 of file uvc_ctrl.c.

Variable Documentation

struct v4l2_subscribed_event_ops uvc_ctrl_sub_ev_ops
Initial value:
= {
.add = uvc_ctrl_add_event,
.del = uvc_ctrl_del_event,
.replace = v4l2_ctrl_replace,
.merge = v4l2_ctrl_merge,
}

Definition at line 1301 of file uvc_ctrl.c.