Go to the documentation of this file.
34 #include <linux/module.h>
35 #include <linux/init.h>
36 #include <linux/kernel.h>
37 #include <linux/version.h>
38 #include <linux/errno.h>
39 #include <linux/slab.h>
40 #include <linux/kref.h>
42 #include <linux/usb.h>
43 #include <media/v4l2-common.h>
44 #include <media/v4l2-ioctl.h>
120 case SYNTEK_STK_M811:
121 case SYNTEK_STK_A311:
125 case SYNTEK_STK_A821:
129 case SYNTEK_STK_6A31:
133 case SYNTEK_STK_6A33:
137 case SYNTEK_STK_6A51:
141 case SYNTEK_STK_6A54:
145 case SYNTEK_STK_6D51:
175 for (i=0; i<nbr; i++) {
180 else if ((value == 0x11) || (value == 0x14)) {
182 else if ((value == 0x30) || (value == 0x31)) {
184 else if ((value == 0x51)) {
186 else if ((value == 0x70) || (value == 0x71)) {
188 else if ((value == 0x91)) {
190 else if (value == 0x01) {
193 else if ((value == 0x04) || (value == 0x05))
195 else if (value == 0x15)
198 STK_ERROR(
"Check device return error (0x0201 = %02X) !\n", value);
225 STK_ERROR(
"Error : Register 0x0001 = %02X\n", value);
244 struct usb_device *udev = dev->
udev;
246 ret = usb_set_interface(udev, 0, 5);
249 STK_ERROR(
"usb_set_interface failed !\n");
267 struct usb_device *udev = dev->
udev;
269 ret = usb_set_interface(udev, 0, 0);
272 STK_ERROR(
"usb_set_interface failed !\n");
292 case SYNTEK_STK_M811:
293 case SYNTEK_STK_A311:
297 case SYNTEK_STK_A821:
301 case SYNTEK_STK_6A31:
305 case SYNTEK_STK_6A33:
309 case SYNTEK_STK_6A51:
313 case SYNTEK_STK_6A54:
317 case SYNTEK_STK_6D51:
347 case SYNTEK_STK_M811:
348 case SYNTEK_STK_A311:
352 case SYNTEK_STK_A821:
356 case SYNTEK_STK_6A31:
360 case SYNTEK_STK_6A33:
364 case SYNTEK_STK_6A51:
368 case SYNTEK_STK_6A54:
372 case SYNTEK_STK_6D51:
402 case SYNTEK_STK_M811:
403 case SYNTEK_STK_A311:
407 case SYNTEK_STK_A821:
411 case SYNTEK_STK_6A31:
415 case SYNTEK_STK_6A33:
419 case SYNTEK_STK_6A51:
423 case SYNTEK_STK_6A54:
427 case SYNTEK_STK_6D51:
454 case SYNTEK_STK_M811:
455 case SYNTEK_STK_A311:
459 case SYNTEK_STK_A821:
463 case SYNTEK_STK_6A31:
467 case SYNTEK_STK_6A33:
471 case SYNTEK_STK_6A51:
475 case SYNTEK_STK_6A54:
479 case SYNTEK_STK_6D51:
506 case SYNTEK_STK_M811:
507 case SYNTEK_STK_A311:
511 case SYNTEK_STK_A821:
515 case SYNTEK_STK_6A31:
519 case SYNTEK_STK_6A33:
523 case SYNTEK_STK_6A51:
527 case SYNTEK_STK_6A54:
531 case SYNTEK_STK_6D51:
557 case SYNTEK_STK_M811:
558 case SYNTEK_STK_A311:
562 case SYNTEK_STK_A821:
566 case SYNTEK_STK_6A31:
570 case SYNTEK_STK_6A33:
574 case SYNTEK_STK_6A51:
578 case SYNTEK_STK_6A54:
582 case SYNTEK_STK_6D51:
609 case SYNTEK_STK_M811:
610 case SYNTEK_STK_A311:
614 case SYNTEK_STK_A821:
618 case SYNTEK_STK_6A31:
622 case SYNTEK_STK_6A33:
626 case SYNTEK_STK_6A51:
630 case SYNTEK_STK_6A54:
634 case SYNTEK_STK_6D51:
int dev_stka311_camera_settings(struct usb_stk11xx *dev)
This function permits to modify the settings of the camera.
int dev_stk6a31_initialize_device(struct usb_stk11xx *dev)
This function permits to initialize the device.
int dev_stk6a54_set_camera_quality(struct usb_stk11xx *dev)
This function permits to modify the settings of the camera.
int dev_stk6a31_camera_settings(struct usb_stk11xx *dev)
This function permits to modify the settings of the camera.
int dev_stka311_set_camera_quality(struct usb_stk11xx *dev)
This function permits to modify the settings of the camera.
int dev_stk11xx_initialize_device(struct usb_stk11xx *dev)
This function permits to initialize the device.
int dev_stk6a33_set_camera_quality(struct usb_stk11xx *dev)
This function permits to modify the settings of the camera.
int dev_stk6a54_init_camera(struct usb_stk11xx *dev)
This function initializes the device for the stream.
int dev_stka821_reconf_camera(struct usb_stk11xx *dev)
Reconfigure the camera before the stream.
int dev_stka311_reconf_camera(struct usb_stk11xx *dev)
Reconfigure the camera before the stream.
int dev_stk11xx_camera_on(struct usb_stk11xx *dev)
This function switchs on the camera.
int dev_stk6d51_stop_stream(struct usb_stk11xx *dev)
This function sets the device to stop the stream.
int dev_stk6a51_set_camera_fps(struct usb_stk11xx *dev)
This function permits to modify the settings of the camera.
int dev_stka821_stop_stream(struct usb_stk11xx *dev)
This function sets the device to stop the stream.
int dev_stk11xx_stop_stream(struct usb_stk11xx *dev)
This function sets the device to stop the stream.
int dev_stk6a31_stop_stream(struct usb_stk11xx *dev)
This function sets the device to stop the stream.
int dev_stk11xx_camera_off(struct usb_stk11xx *dev)
This function switchs off the camera.
int dev_stk11xx_set_camera_fps(struct usb_stk11xx *dev)
This function permits to modify the fps of the camera.
int dev_stk6d51_reconf_camera(struct usb_stk11xx *dev)
Reconfigure the camera before the stream.
int dev_stk6d51_camera_settings(struct usb_stk11xx *dev)
This function permits to modify the settings of the camera.
int dev_stk6a33_camera_asleep(struct usb_stk11xx *dev)
Wake-up the camera.
int dev_stk6a31_set_camera_quality(struct usb_stk11xx *dev)
This function permits to modify the settings of the camera.
int dev_stk11xx_start_stream(struct usb_stk11xx *dev)
This function sets the device to start the stream.
Driver for Syntek USB video camera.
int dev_stk6a31_set_camera_fps(struct usb_stk11xx *dev)
This function permits to modify the settings of the camera.
int dev_stk6a51_stop_stream(struct usb_stk11xx *dev)
This function sets the device to stop the stream.
int dev_stka821_set_camera_fps(struct usb_stk11xx *dev)
This function permits to modify the settings of the camera.
int dev_stk11xx_reconf_camera(struct usb_stk11xx *dev)
Reconfigure the camera before the stream.
int dev_stk6a54_start_stream(struct usb_stk11xx *dev)
This function sets the device to start the stream.
int dev_stk6a33_camera_settings(struct usb_stk11xx *dev)
This function permits to modify the settings of the camera.
int dev_stk6a33_set_camera_fps(struct usb_stk11xx *dev)
This function permits to modify the settings of the camera.
int dev_stk6a54_initialize_device(struct usb_stk11xx *dev)
This function permits to initialize the device.
int dev_stka311_set_camera_fps(struct usb_stk11xx *dev)
This function permits to modify the settings of the camera.
int dev_stk6a54_camera_settings(struct usb_stk11xx *dev)
This function permits to modify the settings of the camera.
int dev_stka821_start_stream(struct usb_stk11xx *dev)
This function sets the device to start the stream.
int dev_stka821_camera_settings(struct usb_stk11xx *dev)
This function permits to modify the settings of the camera.
int dev_stk6d51_set_camera_fps(struct usb_stk11xx *dev)
This function permits to modify the settings of the camera.
int dev_stk6a33_reconf_camera(struct usb_stk11xx *dev)
Reconfigure the camera before the stream.
int dev_stk6a51_set_camera_quality(struct usb_stk11xx *dev)
This function permits to modify the settings of the camera.
#define STK_ERROR(str, args...)
int dev_stk11xx_camera_settings(struct usb_stk11xx *dev)
This function permits to modify the settings of the camera.
int dev_stk6a51_initialize_device(struct usb_stk11xx *dev)
This function permits to initialize the device.
int dev_stk6a33_init_camera(struct usb_stk11xx *dev)
This function initializes the device for the stream.
int dev_stka311_stop_stream(struct usb_stk11xx *dev)
This function sets the device to stop the stream.
int dev_stk6a51_reconf_camera(struct usb_stk11xx *dev)
Reconfigure the camera before the stream.
int dev_stk11xx_camera_asleep(struct usb_stk11xx *dev)
Wake-up the camera.
int dev_stka311_start_stream(struct usb_stk11xx *dev)
This function sets the device to start the stream.
int dev_stk6a31_camera_asleep(struct usb_stk11xx *dev)
Wake-up the camera.
int dev_stk6a31_start_stream(struct usb_stk11xx *dev)
This function sets the device to start the stream.
int dev_stka311_initialize_device(struct usb_stk11xx *dev)
This function permits to initialize the device.
int dev_stka821_camera_asleep(struct usb_stk11xx *dev)
Wake-up the camera.
int dev_stk6a54_set_camera_fps(struct usb_stk11xx *dev)
This function permits to modify the settings of the camera.
int dev_stka311_init_camera(struct usb_stk11xx *dev)
This function initializes the device for the stream.
int dev_stk6a51_camera_settings(struct usb_stk11xx *dev)
This function permits to modify the settings of the camera.
int usb_stk11xx_read_registry(struct usb_stk11xx *dev, __u16 index, int *value)
Read a 16-bits value from a 16-bits register.
int dev_stk6a54_reconf_camera(struct usb_stk11xx *dev)
Reconfigure the camera before the stream.
int dev_stk6d51_initialize_device(struct usb_stk11xx *dev)
This function permits to initialize the device.
int dev_stk6a31_init_camera(struct usb_stk11xx *dev)
This function initializes the device for the stream.
int dev_stk11xx_set_camera_quality(struct usb_stk11xx *dev)
This function permits to modify the quality video of the camera.
int dev_stk11xx_init_camera(struct usb_stk11xx *dev)
This function initializes the device for the stream.
int dev_stk6d51_set_camera_quality(struct usb_stk11xx *dev)
This function permits to modify the settings of the camera.
int dev_stk6a33_start_stream(struct usb_stk11xx *dev)
This function sets the device to start the stream.
int dev_stk6d51_camera_asleep(struct usb_stk11xx *dev)
Wake-up the camera.
int dev_stka821_initialize_device(struct usb_stk11xx *dev)
This function permits to initialize the device.
int dev_stk6a54_stop_stream(struct usb_stk11xx *dev)
This function sets the device to stop the stream.
int dev_stk6a51_camera_asleep(struct usb_stk11xx *dev)
Wake-up the camera.
int dev_stk6a33_initialize_device(struct usb_stk11xx *dev)
This function permits to initialize the device.
int dev_stka821_set_camera_quality(struct usb_stk11xx *dev)
This function permits to modify the settings of the camera.
int dev_stk6a51_start_stream(struct usb_stk11xx *dev)
This function sets the device to start the stream.
int dev_stk6d51_start_stream(struct usb_stk11xx *dev)
This function sets the device to start the stream.
Driver for Syntek USB video camera.
int dev_stk11xx_check_device(struct usb_stk11xx *dev, int nbr)
This function permits to check the device in reading the register 0x0201.
int dev_stk6a51_init_camera(struct usb_stk11xx *dev)
This function initializes the device for the stream.
int dev_stk6a54_camera_asleep(struct usb_stk11xx *dev)
Wake-up the camera.
int dev_stka311_camera_asleep(struct usb_stk11xx *dev)
Wake-up the camera.
int dev_stk11xx_watchdog_camera(struct usb_stk11xx *dev)
A espece of software watchdog.
int dev_stk6a31_reconf_camera(struct usb_stk11xx *dev)
Reconfigure the camera before the stream.
int dev_stk6a33_stop_stream(struct usb_stk11xx *dev)
This function sets the device to stop the stream.
int dev_stka821_init_camera(struct usb_stk11xx *dev)
This function initializes the device for the stream.
int dev_stk6d51_init_camera(struct usb_stk11xx *dev)
This function initializes the device for the stream.