![]() Static void usbvision_remove_sysfs ( struct video_device * vdev )Ĭlass_device_remove_file (& vdev -> class_dev , Res = class_device_create_file (& vdev -> class_dev ,Įrr ( "%s error: %d\n", _FUNCTION_, res ) Static void usbvision_create_sysfs ( struct video_device * vdev ) Static CLASS_DEVICE_ATTR ( bridge, S_IRUGO, show_device_bridge, NULL ) Return sprintf ( buf, "%d\n", usbvision -> bridgeType ) Static ssize_t show_device_bridge ( struct class_device * cd, char * buf ) Static CLASS_DEVICE_ATTR ( compression, S_IRUGO, show_compression, NULL ) Return sprintf ( buf, "%s\n", YES_NO ( usbvision -> isocMode = ISOC_MODE_COMPRESS )) Static ssize_t show_compression ( struct class_device * cd, char * buf ) Static CLASS_DEVICE_ATTR ( streaming, S_IRUGO, show_streaming, NULL ) Return sprintf ( buf, "%s\n", YES_NO ( usbvision -> streaming = Stream_On ? 1 : 0 )) Static ssize_t show_streaming ( struct class_device * cd, char * buf ) Static CLASS_DEVICE_ATTR ( saturation, S_IRUGO, show_saturation, NULL ) Static ssize_t show_saturation ( struct class_device * cd, char * buf ) Static CLASS_DEVICE_ATTR ( brightness, S_IRUGO, show_brightness, NULL ) Static ssize_t show_brightness ( struct class_device * cd, char * buf ) Static CLASS_DEVICE_ATTR ( contrast, S_IRUGO, show_contrast, NULL ) Static ssize_t show_contrast ( struct class_device * cd, char * buf ) Static CLASS_DEVICE_ATTR ( hue, S_IRUGO, show_hue, NULL ) Struct usb_usbvision * usbvision = video_get_drvdata ( vdev ) Ĭall_i2c_clients ( usbvision, VIDIOC_G_CTRL, & ctrl ) Struct video_device * vdev = container_of ( cd, struct video_device, class_dev ) Static ssize_t show_hue ( struct class_device * cd, char * buf ) Static CLASS_DEVICE_ATTR ( model, S_IRUGO, show_model, NULL ) If ( video_debug & ( level )) info ( " " fmt, _PRETTY_FUNCTION_, _LINE_, # args) #define ENABLE_HEXDUMP 0 /* Enable if you need it */ #define USBVISION_VERSION_STRING _stringify ( USBVISION_DRIVER_VERSION_MAJOR ) "." _stringify ( USBVISION_DRIVER_VERSION_MINOR ) "." _stringify ( USBVISION_DRIVER_VERSION_PATCHLEVEL ) #define USBVISION_DRIVER_VERSION KERNEL_VERSION ( USBVISION_DRIVER_VERSION_MAJOR, USBVISION_DRIVER_VERSION_MINOR, USBVISION_DRIVER_VERSION_PATCHLEVEL ) #define USBVISION_DRIVER_VERSION_PATCHLEVEL 9 #define DRIVER_DESC "USBVision USB Video Device Driver for Linux" #define DRIVER_AUTHOR "Joerg Heckenbach, Dwaine Garden " Seems impossible, needs a codec interface. * - Add audio on endpoint 3 for nt1004 chip. * Updates to driver completed by Dwaine P. * Gerd Knorr and zoran 36120/36125 driver by Pauline Middelink * Ideas are taken from bttv driver by Ralph Metzler, Marcus Metzler & * It was based on USB CPiA driver written by Peter Pregler, * This driver is written by Jose Ignacio Gijon and Joerg Heckenbach. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * along with this program if not, write to the Free Software * You should have received a copy of the GNU General Public License * GNU General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * but WITHOUT ANY WARRANTY without even the implied warranty of * This program is distributed in the hope that it will be useful, * the Free Software Foundation either version 2 of the License, or * it under the terms of the GNU General Public License as published by * This program is free software you can redistribute it and/or modify * This module is part of usbvision driver project. * Copyright (c) 1999-2005 Joerg Heckenbach ![]() * USB USBVISION Video device driver 0.9.9
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |