Go to the source code of this file.
Data Structures | |
struct | stk11xx_iso_buf |
struct | stk11xx_frame_buf |
struct | stk11xx_image_buf |
struct | stk11xx_coord |
struct | stk11xx_video |
struct | usb_stk11xx |
Defines | |
#define | DRIVER_NAME "stk11xx" |
#define | DRIVER_VERSION "v1.0.0" |
#define | DRIVER_VERSION_NUM 0x000100 |
#define | DRIVER_DESC "Syntek USB Video Camera" |
#define | DRIVER_AUTHOR "Nicolas VIVIEN" |
#define | PREFIX DRIVER_NAME ": " |
#define | USB_SYNTEK1_VENDOR_ID 0x174F |
#define | USB_SYNTEK2_VENDOR_ID 0x05E1 |
#define | USB_STK_A311_PRODUCT_ID 0xa311 |
#define | USB_STK_A821_PRODUCT_ID 0xa821 |
#define | USB_STK_6A31_PRODUCT_ID 0x6A31 |
#define | USB_STK_0501_PRODUCT_ID 0x0501 |
#define | VID_HARDWARE_STK11XX 88 |
#define | MAX_ISO_BUFS 16 |
#define | ISO_FRAMES_PER_DESC 10 |
#define | ISO_MAX_FRAME_SIZE 3 * 1024 |
#define | ISO_BUFFER_SIZE (ISO_FRAMES_PER_DESC * ISO_MAX_FRAME_SIZE) |
#define | STK11XX_MAX_IMAGES 10 |
#define | STK11XX_FRAME_SIZE (1280 * 1024 * 4) |
#define | DRIVER_SUPPORT "Syntek USB Camera : STK-1135" |
#define | CONFIG_STK11XX_DEBUG 0 |
#define | STK_INFO(str, args...) printk(KERN_INFO PREFIX str, ##args) |
#define | STK_ERROR(str, args...) printk(KERN_ERR PREFIX str, ##args) |
#define | STK_WARNING(str, args...) printk(KERN_WARNING PREFIX str, ##args) |
#define | STK_DEBUG(str, args...) do { } while(0) |
#define | CONFIG_STK11XX_DEBUG_STREAM 0 |
#define | STK_STREAM(str, args...) do { } while(0) |
#define | STK11XX_PERCENT(x, y) ( ((int)x * (int)y) / 100) |
#define | to_stk11xx_dev(d) container_of(d, struct usb_stk11xx, kref) |
Enumerations | |
enum | T_SYNTEK_DEVICE { SYNTEK_STK_M811 = 1, SYNTEK_STK_A311 = 2, SYNTEK_STK_A821 = 3, SYNTEK_STK_6A31 = 4 } |
enum | T_STK11XX_VIDEOMODE { STK11XX_VGA, STK11XX_SXGA, STK11XX_UXGA } |
enum | T_STK11XX_RESOLUTION { STK11XX_80x60, STK11XX_128x96, STK11XX_160x120, STK11XX_213x160, STK11XX_320x240, STK11XX_640x480, STK11XX_800x600, STK11XX_1024x768, STK11XX_1280x1024, STK11XX_NBR_SIZES } |
enum | T_STK11XX_PALETTE { STK11XX_PALETTE_RGB24, STK11XX_PALETTE_RGB32, STK11XX_PALETTE_BGR24, STK11XX_PALETTE_BGR32 } |
Functions | |
int | usb_stk11xx_write_registry (struct usb_stk11xx *, __u16, __u16) |
Write a 16-bits value to a 16-bits register. | |
int | usb_stk11xx_read_registry (struct usb_stk11xx *, __u16, int *) |
Read a 16-bits value from a 16-bits register. | |
int | usb_stk11xx_set_feature (struct usb_stk11xx *, int) |
Send the message SET_FEATURE and choose the interface. | |
int | usb_stk11xx_set_configuration (struct usb_stk11xx *) |
Send the message SET_CONFIGURATION. | |
int | usb_stk11xx_isoc_init (struct usb_stk11xx *) |
Initilize an isochronous pipe. | |
void | usb_stk11xx_isoc_handler (struct urb *) |
ISOC handler. | |
void | usb_stk11xx_isoc_cleanup (struct usb_stk11xx *) |
Clean-up all the ISOC buffers. | |
int | dev_stk11xx_initialize_device (struct usb_stk11xx *) |
This function permits to initialize the device. | |
int | dev_stk11xx_start_stream (struct usb_stk11xx *) |
This function sets the device to start the stream. | |
int | dev_stk11xx_stop_stream (struct usb_stk11xx *) |
This function sets the device to stop the stream. | |
int | dev_stk11xx_check_device (struct usb_stk11xx *, int) |
This function permits to check the device in reading the register 0x0201. | |
int | dev_stk11xx_camera_on (struct usb_stk11xx *) |
This function switchs on the camera. | |
int | dev_stk11xx_camera_off (struct usb_stk11xx *) |
This function switchs off the camera. | |
int | dev_stk11xx_camera_asleep (struct usb_stk11xx *) |
Wake-up the camera. | |
int | dev_stk11xx_init_camera (struct usb_stk11xx *) |
This function initializes the device for the stream. | |
int | dev_stk11xx_reconf_camera (struct usb_stk11xx *) |
Reconfigure the camera before the stream. | |
int | dev_stk11xx_camera_settings (struct usb_stk11xx *) |
This function permits to modify the settings of the camera. | |
int | dev_stk11xx_set_camera_quality (struct usb_stk11xx *) |
This function permits to modify the quality video of the camera. | |
int | dev_stk11xx_set_camera_fps (struct usb_stk11xx *) |
This function permits to modify the fps of the camera. | |
int | dev_stk11xx_watchdog_camera (struct usb_stk11xx *) |
A espece of software watchdog. | |
int | v4l_stk11xx_select_video_mode (struct usb_stk11xx *, int, int) |
Select a video mode. | |
int | v4l_stk11xx_register_video_device (struct usb_stk11xx *) |
Register the video device. | |
int | v4l_stk11xx_unregister_video_device (struct usb_stk11xx *) |
Unregister the video device. | |
int | stk11xx_create_sysfs_files (struct video_device *) |
Create the 'sys' entries. | |
void | stk11xx_remove_sysfs_files (struct video_device *) |
Remove the 'sys' entries. | |
int | stk11xx_allocate_buffers (struct usb_stk11xx *) |
Allocate all ISOC buffers. | |
int | stk11xx_reset_buffers (struct usb_stk11xx *) |
Reset all ISOC buffers. | |
int | stk11xx_clear_buffers (struct usb_stk11xx *) |
Clear current buffers. | |
int | stk11xx_free_buffers (struct usb_stk11xx *) |
Release all buffers. | |
void | stk11xx_next_image (struct usb_stk11xx *) |
Prepare the next image. | |
int | stk11xx_next_frame (struct usb_stk11xx *) |
Prepare the next frame. | |
int | stk11xx_handle_frame (struct usb_stk11xx *) |
Handler frame. | |
int | stk11xx_decompress (struct usb_stk11xx *) |
Decompress a frame. | |
Variables | |
struct stk11xx_coord | stk11xx_image_sizes [STK11XX_NBR_SIZES] |
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Definition in file stk11xx.h.
#define CONFIG_STK11XX_DEBUG 0 |
#define CONFIG_STK11XX_DEBUG_STREAM 0 |
#define DRIVER_AUTHOR "Nicolas VIVIEN" |
#define DRIVER_DESC "Syntek USB Video Camera" |
Short description of this driver
Definition at line 41 of file stk11xx.h.
Referenced by usb_stk11xx_init(), and v4l_stk11xx_register_video_device().
#define DRIVER_SUPPORT "Syntek USB Camera : STK-1135" |
#define DRIVER_VERSION "v1.0.0" |
#define DRIVER_VERSION_NUM 0x000100 |
Version numerical of this driver
Definition at line 40 of file stk11xx.h.
Referenced by v4l_stk11xx_do_ioctl().
#define ISO_BUFFER_SIZE (ISO_FRAMES_PER_DESC * ISO_MAX_FRAME_SIZE) |
Maximal size of buffer
Definition at line 82 of file stk11xx.h.
Referenced by stk11xx_allocate_buffers(), and usb_stk11xx_isoc_init().
#define ISO_FRAMES_PER_DESC 10 |
Number frames per ISOC descriptor
Definition at line 80 of file stk11xx.h.
Referenced by usb_stk11xx_isoc_init().
#define ISO_MAX_FRAME_SIZE 3 * 1024 |
Maximale size of frame
Definition at line 81 of file stk11xx.h.
Referenced by usb_stk11xx_isoc_init().
#define MAX_ISO_BUFS 16 |
Number maximal of ISOC buffers
Definition at line 79 of file stk11xx.h.
Referenced by stk11xx_allocate_buffers(), stk11xx_free_buffers(), usb_stk11xx_isoc_cleanup(), and usb_stk11xx_isoc_init().
#define PREFIX DRIVER_NAME ": " |
#define STK11XX_FRAME_SIZE (1280 * 1024 * 4) |
Maximum size after decompression
Definition at line 93 of file stk11xx.h.
Referenced by stk11xx_allocate_buffers().
#define STK11XX_MAX_IMAGES 10 |
Absolute maximum number of buffers available for mmap()
Definition at line 92 of file stk11xx.h.
Referenced by stk11xx_allocate_buffers(), and v4l_stk11xx_mmap().
#define STK11XX_PERCENT | ( | x, | |||
y | ) | ( ((int)x * (int)y) / 100) |
Calculate a value from a percent
Definition at line 347 of file stk11xx.h.
Referenced by usb_stk11xx_default_settings().
#define STK_DEBUG | ( | str, | |||
args... | ) | do { } while(0) |
Print debug message. Use this function like the function printf.
Definition at line 145 of file stk11xx.h.
Referenced by dev_stk6a31_configure_device(), dev_stk6a31_set_camera_quality(), dev_stka311_camera_settings(), dev_stka311_configure_device(), dev_stka311_initialize_device(), dev_stka311_set_camera_quality(), dev_stka821_configure_device(), dev_stka821_initialize_device(), dev_stka821_set_camera_quality(), stk11xx_allocate_buffers(), stk11xx_free_buffers(), stk11xx_reset_buffers(), usb_stk11xx_init(), usb_stk11xx_isoc_cleanup(), usb_stk11xx_isoc_handler(), usb_stk11xx_isoc_init(), usb_stk11xx_probe(), usb_stk11xx_set_configuration(), usb_stk11xx_set_feature(), v4l_stk11xx_do_ioctl(), v4l_stk11xx_ioctl(), v4l_stk11xx_open(), and v4l_stk11xx_select_video_mode().
#define STK_ERROR | ( | str, | |||
args... | ) | printk(KERN_ERR PREFIX str, ##args) |
Print error message. Use this function like the function printf.
Definition at line 143 of file stk11xx.h.
Referenced by dev_stk11xx_camera_off(), dev_stk11xx_camera_on(), dev_stk11xx_check_device(), dev_stk11xx_watchdog_camera(), dev_stk6a31_load_microcode(), dev_stka311_load_microcode(), dev_stka821_load_microcode(), stk11xx_allocate_buffers(), stk11xx_next_frame(), usb_stk11xx_init(), usb_stk11xx_isoc_handler(), usb_stk11xx_isoc_init(), usb_stk11xx_probe(), usb_stk11xx_read_registry(), usb_stk11xx_set_configuration(), usb_stk11xx_set_feature(), usb_stk11xx_write_registry(), v4l_stk11xx_do_ioctl(), v4l_stk11xx_mmap(), v4l_stk11xx_open(), v4l_stk11xx_register_video_device(), and v4l_stk11xx_release().
#define STK_INFO | ( | str, | |||
args... | ) | printk(KERN_INFO PREFIX str, ##args) |
Print information message. Use this function like the function printf.
Definition at line 142 of file stk11xx.h.
Referenced by dev_stk6a31_initialize_device(), dev_stka311_initialize_device(), dev_stka821_initialize_device(), runtest(), usb_stk11xx_disconnect(), usb_stk11xx_exit(), usb_stk11xx_init(), usb_stk11xx_probe(), v4l_stk11xx_register_video_device(), and v4l_stk11xx_unregister_video_device().
#define STK_STREAM | ( | str, | |||
args... | ) | do { } while(0) |
Print stream debug message. Use this function like the function printf.
Definition at line 168 of file stk11xx.h.
Referenced by stk11xx_handle_frame(), stk11xx_next_frame(), stk11xx_next_image(), usb_stk11xx_isoc_handler(), v4l_stk11xx_mmap(), v4l_stk11xx_poll(), and v4l_stk11xx_read().
#define STK_WARNING | ( | str, | |||
args... | ) | printk(KERN_WARNING PREFIX str, ##args) |
#define to_stk11xx_dev | ( | d | ) | container_of(d, struct usb_stk11xx, kref) |
#define USB_STK_0501_PRODUCT_ID 0x0501 |
Product ID of the camera DC-1125
Definition at line 52 of file stk11xx.h.
Referenced by usb_stk11xx_probe().
#define USB_STK_6A31_PRODUCT_ID 0x6A31 |
Product ID of the camera DC-NEW
Definition at line 50 of file stk11xx.h.
Referenced by usb_stk11xx_probe().
#define USB_STK_A311_PRODUCT_ID 0xa311 |
Product ID of the camera STK-1125
Definition at line 48 of file stk11xx.h.
Referenced by usb_stk11xx_probe().
#define USB_STK_A821_PRODUCT_ID 0xa821 |
Product ID of the camera STK-1135
Definition at line 49 of file stk11xx.h.
Referenced by usb_stk11xx_probe().
#define USB_SYNTEK1_VENDOR_ID 0x174F |
#define USB_SYNTEK2_VENDOR_ID 0x05E1 |
#define VID_HARDWARE_STK11XX 88 |
This value must be inserted into the kernel headers linux/videodev.h It's useful only for the support of V4L v1
Definition at line 61 of file stk11xx.h.
Referenced by v4l_stk11xx_register_video_device().
enum T_STK11XX_PALETTE |
enum T_STK11XX_RESOLUTION |
enum T_STK11XX_VIDEOMODE |
enum T_SYNTEK_DEVICE |
int dev_stk11xx_camera_asleep | ( | struct usb_stk11xx * | dev | ) |
Wake-up the camera.
dev | Device structure |
Definition at line 277 of file stk11xx-dev.c.
References dev_stk6a31_camera_asleep(), dev_stka311_camera_asleep(), dev_stka821_camera_asleep(), SYNTEK_STK_6A31, SYNTEK_STK_A311, SYNTEK_STK_A821, SYNTEK_STK_M811, and usb_stk11xx::webcam_model.
int dev_stk11xx_camera_off | ( | struct usb_stk11xx * | dev | ) |
This function switchs off the camera.
dev | Device structure |
Definition at line 254 of file stk11xx-dev.c.
References STK_ERROR, and usb_stk11xx::udev.
int dev_stk11xx_camera_on | ( | struct usb_stk11xx * | dev | ) |
This function switchs on the camera.
dev | Device structure |
Definition at line 231 of file stk11xx-dev.c.
References STK_ERROR, and usb_stk11xx::udev.
int dev_stk11xx_camera_settings | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
Definition at line 316 of file stk11xx-dev.c.
References dev_stk6a31_camera_settings(), dev_stka311_camera_settings(), dev_stka821_camera_settings(), SYNTEK_STK_6A31, SYNTEK_STK_A311, SYNTEK_STK_A821, SYNTEK_STK_M811, and usb_stk11xx::webcam_model.
int dev_stk11xx_check_device | ( | struct usb_stk11xx * | dev, | |
int | nbr | |||
) |
This function permits to check the device in reading the register 0x0201.
dev | Device structure | |
nbr | Number of tries |
Definition at line 172 of file stk11xx-dev.c.
References STK_ERROR, and usb_stk11xx_read_registry().
int dev_stk11xx_init_camera | ( | struct usb_stk11xx * | dev | ) |
This function initializes the device for the stream.
dev | Device structure |
Definition at line 133 of file stk11xx-dev.c.
References dev_stk6a31_init_camera(), dev_stka311_init_camera(), dev_stka821_init_camera(), SYNTEK_STK_6A31, SYNTEK_STK_A311, SYNTEK_STK_A821, SYNTEK_STK_M811, and usb_stk11xx::webcam_model.
int dev_stk11xx_initialize_device | ( | struct usb_stk11xx * | dev | ) |
This function permits to initialize the device.
dev | Device structure |
This function is written from the USB log.
Definition at line 97 of file stk11xx-dev.c.
References dev_stk6a31_initialize_device(), dev_stka311_initialize_device(), dev_stka821_initialize_device(), SYNTEK_STK_6A31, SYNTEK_STK_A311, SYNTEK_STK_A821, SYNTEK_STK_M811, and usb_stk11xx::webcam_model.
int dev_stk11xx_reconf_camera | ( | struct usb_stk11xx * | dev | ) |
Reconfigure the camera before the stream.
dev | Device structure |
Definition at line 462 of file stk11xx-dev.c.
References dev_stk6a31_reconf_camera(), dev_stka311_reconf_camera(), dev_stka821_reconf_camera(), SYNTEK_STK_6A31, SYNTEK_STK_A311, SYNTEK_STK_A821, SYNTEK_STK_M811, and usb_stk11xx::webcam_model.
int dev_stk11xx_set_camera_fps | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the fps of the camera.
dev | Device structure |
Definition at line 391 of file stk11xx-dev.c.
References dev_stk6a31_set_camera_fps(), dev_stka311_set_camera_fps(), dev_stka821_set_camera_fps(), SYNTEK_STK_6A31, SYNTEK_STK_A311, SYNTEK_STK_A821, SYNTEK_STK_M811, and usb_stk11xx::webcam_model.
int dev_stk11xx_set_camera_quality | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the quality video of the camera.
dev | Device structure |
Definition at line 355 of file stk11xx-dev.c.
References dev_stk6a31_set_camera_quality(), dev_stka311_set_camera_quality(), dev_stka821_set_camera_quality(), SYNTEK_STK_6A31, SYNTEK_STK_A311, SYNTEK_STK_A821, SYNTEK_STK_M811, and usb_stk11xx::webcam_model.
int dev_stk11xx_start_stream | ( | struct usb_stk11xx * | dev | ) |
This function sets the device to start the stream.
dev | Device structure |
Definition at line 427 of file stk11xx-dev.c.
References dev_stk6a31_start_stream(), dev_stka311_start_stream(), dev_stka821_start_stream(), SYNTEK_STK_6A31, SYNTEK_STK_A311, SYNTEK_STK_A821, SYNTEK_STK_M811, and usb_stk11xx::webcam_model.
int dev_stk11xx_stop_stream | ( | struct usb_stk11xx * | dev | ) |
This function sets the device to stop the stream.
dev | Device structure |
Definition at line 498 of file stk11xx-dev.c.
References dev_stk6a31_stop_stream(), dev_stka311_stop_stream(), dev_stka821_stop_stream(), SYNTEK_STK_6A31, SYNTEK_STK_A311, SYNTEK_STK_A821, SYNTEK_STK_M811, and usb_stk11xx::webcam_model.
int dev_stk11xx_watchdog_camera | ( | struct usb_stk11xx * | dev | ) |
A espece of software watchdog.
dev | Device structure |
We don't know the purpose. I assume that it seems to a software watchdog.
Definition at line 208 of file stk11xx-dev.c.
References STK_ERROR, and usb_stk11xx_read_registry().
int stk11xx_allocate_buffers | ( | struct usb_stk11xx * | dev | ) |
Allocate all ISOC buffers.
dev | Device structure |
Definition at line 125 of file stk11xx-buf.c.
References stk11xx_frame_buf::data, stk11xx_iso_buf::data, default_nbrframebuf, usb_stk11xx::framebuf, usb_stk11xx::image_data, usb_stk11xx::images, ISO_BUFFER_SIZE, usb_stk11xx::isobuf, usb_stk11xx::len_per_image, MAX_ISO_BUFS, usb_stk11xx::nbuffers, stk11xx_image_buf::offset, STK11XX_FRAME_SIZE, STK11XX_MAX_IMAGES, stk11xx_rvmalloc(), STK_DEBUG, STK_ERROR, and stk11xx_image_buf::vma_use_count.
int stk11xx_clear_buffers | ( | struct usb_stk11xx * | dev | ) |
Clear current buffers.
dev | Device structure |
Definition at line 267 of file stk11xx-buf.c.
References usb_stk11xx::image_data, usb_stk11xx::len_per_image, and usb_stk11xx::nbuffers.
int stk11xx_create_sysfs_files | ( | struct video_device * | vdev | ) |
Create the 'sys' entries.
This function permits to create all the entries in the 'sys' filesystem.
vdev | Video device structure |
Definition at line 472 of file stk11xx-sysfs.c.
int stk11xx_decompress | ( | struct usb_stk11xx * | dev | ) |
Decompress a frame.
This function permits to decompress a frame from the video stream.
dev | Device structure |
Definition at line 78 of file stk11xx-bayer.c.
References stk11xx_video::brightness, stk11xx_frame_buf::data, stk11xx_video::depth, usb_stk11xx::fill_image, stk11xx_video::hflip, usb_stk11xx::image, usb_stk11xx::image_data, usb_stk11xx::images, stk11xx_image_buf::offset, stk11xx_video::palette, usb_stk11xx::read_frame, usb_stk11xx::resolution, STK11XX_1024x768, STK11XX_1280x1024, STK11XX_128x96, STK11XX_160x120, STK11XX_213x160, STK11XX_320x240, STK11XX_640x480, STK11XX_800x600, STK11XX_80x60, stk11xx_b2bgr24(), stk11xx_b2bgr32(), stk11xx_b2rgb24(), stk11xx_b2rgb32(), stk11xx_correct_brightness(), STK11XX_PALETTE_BGR24, STK11XX_PALETTE_BGR32, STK11XX_PALETTE_RGB24, STK11XX_PALETTE_RGB32, stk11xx_video::vflip, usb_stk11xx::view, usb_stk11xx::vsettings, stk11xx_coord::x, and stk11xx_coord::y.
int stk11xx_free_buffers | ( | struct usb_stk11xx * | dev | ) |
Release all buffers.
dev | Device structure |
Definition at line 284 of file stk11xx-buf.c.
References stk11xx_frame_buf::data, stk11xx_iso_buf::data, default_nbrframebuf, usb_stk11xx::framebuf, usb_stk11xx::image_data, usb_stk11xx::isobuf, usb_stk11xx::len_per_image, MAX_ISO_BUFS, usb_stk11xx::nbuffers, stk11xx_rvfree(), and STK_DEBUG.
int stk11xx_handle_frame | ( | struct usb_stk11xx * | dev | ) |
Handler frame.
dev | Device structure |
Definition at line 404 of file stk11xx-buf.c.
References dev_stk11xx_watchdog_camera(), usb_stk11xx::empty_frames, usb_stk11xx::empty_frames_tail, usb_stk11xx::full_frames, stk11xx_frame_buf::next, usb_stk11xx::read_frame, usb_stk11xx::spinlock, stk11xx_decompress(), and STK_STREAM.
int stk11xx_next_frame | ( | struct usb_stk11xx * | dev | ) |
Prepare the next frame.
dev | Device structure |
Definition at line 349 of file stk11xx-buf.c.
References usb_stk11xx::empty_frames, usb_stk11xx::fill_frame, usb_stk11xx::full_frames, usb_stk11xx::full_frames_tail, stk11xx_frame_buf::next, usb_stk11xx::spinlock, STK_ERROR, and STK_STREAM.
void stk11xx_next_image | ( | struct usb_stk11xx * | dev | ) |
Prepare the next image.
dev | Device structure |
Definition at line 331 of file stk11xx-buf.c.
References usb_stk11xx::fill_image, usb_stk11xx::image_used, usb_stk11xx::nbuffers, and STK_STREAM.
void stk11xx_remove_sysfs_files | ( | struct video_device * | vdev | ) |
Remove the 'sys' entries.
This function permits to remove all the entries in the 'sys' filesystem.
vdev | Video device structure |
Definition at line 500 of file stk11xx-sysfs.c.
int stk11xx_reset_buffers | ( | struct usb_stk11xx * | dev | ) |
Reset all ISOC buffers.
dev | Device structure |
Definition at line 218 of file stk11xx-buf.c.
References usb_stk11xx::empty_frames, usb_stk11xx::empty_frames_tail, stk11xx_frame_buf::errors, usb_stk11xx::fill_frame, usb_stk11xx::fill_image, stk11xx_frame_buf::filled, usb_stk11xx::framebuf, usb_stk11xx::full_frames, usb_stk11xx::full_frames_tail, usb_stk11xx::image_read_pos, usb_stk11xx::image_used, usb_stk11xx::nbuffers, stk11xx_frame_buf::next, usb_stk11xx::read_frame, usb_stk11xx::spinlock, and STK_DEBUG.
void usb_stk11xx_isoc_cleanup | ( | struct usb_stk11xx * | dev | ) |
Clean-up all the ISOC buffers.
dev | Device structure |
Definition at line 424 of file stk11xx-usb.c.
References usb_stk11xx::isobuf, usb_stk11xx::isoc_init_ok, MAX_ISO_BUFS, STK_DEBUG, and stk11xx_iso_buf::urb.
void usb_stk11xx_isoc_handler | ( | struct urb * | urb | ) |
ISOC handler.
urb | URB structure |
Definition at line 236 of file stk11xx-usb.c.
References stk11xx_frame_buf::data, stk11xx_frame_buf::errors, usb_stk11xx::fill_frame, stk11xx_frame_buf::filled, usb_stk11xx::frame_size, stk11xx_next_frame(), STK_DEBUG, STK_ERROR, STK_STREAM, usb_stk11xx::udev, usb_stk11xx::vframes_dumped, usb_stk11xx::vframes_error, usb_stk11xx::visoc_errors, and usb_stk11xx::wait_frame.
int usb_stk11xx_isoc_init | ( | struct usb_stk11xx * | dev | ) |
Initilize an isochronous pipe.
dev | Device structure |
Definition at line 117 of file stk11xx-usb.c.
References stk11xx_iso_buf::data, ISO_BUFFER_SIZE, ISO_FRAMES_PER_DESC, ISO_MAX_FRAME_SIZE, usb_stk11xx::isobuf, usb_stk11xx::isoc_in_endpointAddr, usb_stk11xx::isoc_in_size, usb_stk11xx::isoc_init_ok, MAX_ISO_BUFS, STK_DEBUG, STK_ERROR, usb_stk11xx::udev, stk11xx_iso_buf::urb, and usb_stk11xx_isoc_handler().
int usb_stk11xx_read_registry | ( | struct usb_stk11xx * | dev, | |
__u16 | index, | |||
int * | value | |||
) |
Read a 16-bits value from a 16-bits register.
dev | ||
index | ||
value |
Definition at line 565 of file stk11xx-usb.c.
References STK_ERROR, and usb_stk11xx::udev.
int usb_stk11xx_set_configuration | ( | struct usb_stk11xx * | dev | ) |
Send the message SET_CONFIGURATION.
dev | Device structure |
Definition at line 499 of file stk11xx-usb.c.
References STK_DEBUG, STK_ERROR, and usb_stk11xx::udev.
int usb_stk11xx_set_feature | ( | struct usb_stk11xx * | dev, | |
int | index | |||
) |
Send the message SET_FEATURE and choose the interface.
dev | Device structure | |
index | Choice of the interface |
Definition at line 467 of file stk11xx-usb.c.
References STK_DEBUG, STK_ERROR, and usb_stk11xx::udev.
int usb_stk11xx_write_registry | ( | struct usb_stk11xx * | dev, | |
__u16 | index, | |||
__u16 | value | |||
) |
Write a 16-bits value to a 16-bits register.
dev | ||
index | ||
value |
Definition at line 533 of file stk11xx-usb.c.
References STK_ERROR, and usb_stk11xx::udev.
int v4l_stk11xx_register_video_device | ( | struct usb_stk11xx * | dev | ) |
Register the video device.
dev | Device structure |
Definition at line 1545 of file stk11xx-v4l.c.
References DRIVER_DESC, STK_ERROR, STK_INFO, v4l_stk11xx_fops, usb_stk11xx::vdev, and VID_HARDWARE_STK11XX.
int v4l_stk11xx_select_video_mode | ( | struct usb_stk11xx * | dev, | |
int | width, | |||
int | height | |||
) |
Select a video mode.
dev | ||
width | Width of wished resolution | |
height | Height of wished resolution |
Definition at line 123 of file stk11xx-v4l.c.
References usb_stk11xx::frame_size, usb_stk11xx::image, usb_stk11xx::image_size, stk11xx_video::palette, usb_stk11xx::resolution, STK11XX_1024x768, STK11XX_1280x1024, STK11XX_128x96, STK11XX_160x120, STK11XX_213x160, STK11XX_320x240, STK11XX_640x480, STK11XX_800x600, STK11XX_80x60, STK11XX_NBR_SIZES, STK11XX_PALETTE_BGR24, STK11XX_PALETTE_BGR32, STK11XX_PALETTE_RGB24, STK11XX_PALETTE_RGB32, STK11XX_SXGA, STK11XX_VGA, STK_DEBUG, usb_stk11xx::view, usb_stk11xx::vsettings, usb_stk11xx::webcam_type, stk11xx_coord::x, and stk11xx_coord::y.
int v4l_stk11xx_unregister_video_device | ( | struct usb_stk11xx * | dev | ) |
Unregister the video device.
dev | Device structure |
Definition at line 1580 of file stk11xx-v4l.c.
References STK_INFO, and usb_stk11xx::vdev.
struct stk11xx_coord stk11xx_image_sizes[STK11XX_NBR_SIZES] |
List of all resolutions supported by the driver
Definition at line 55 of file stk11xx-v4l.c.