#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/kref.h>
#include <linux/device.h>
#include <linux/usb.h>
#include <media/v4l2-common.h>
#include "stk11xx.h"
Go to the source code of this file.
Functions | |
static ssize_t | show_release (struct class_device *class, char *buf) |
show_release | |
static ssize_t | show_videostatus (struct class_device *class, char *buf) |
show_videostatus | |
static ssize_t | show_informations (struct class_device *class, char *buf) |
show_informations | |
static ssize_t | show_brightness (struct class_device *class, char *buf) |
show_brightness | |
static ssize_t | store_brightness (struct class_device *class, const char *buf, size_t count) |
store_brightness | |
static ssize_t | show_contrast (struct class_device *class, char *buf) |
show_contrast | |
static ssize_t | store_contrast (struct class_device *class, const char *buf, size_t count) |
store_contrast | |
static ssize_t | show_whitebalance (struct class_device *class, char *buf) |
show_whitebalance | |
static ssize_t | store_whitebalance (struct class_device *class, const char *buf, size_t count) |
store_whitebalance | |
static ssize_t | show_hflip (struct class_device *class, char *buf) |
show_hflip | |
static ssize_t | store_hflip (struct class_device *class, const char *buf, size_t count) |
store_hflip | |
static ssize_t | show_vflip (struct class_device *class, char *buf) |
show_vflip | |
static ssize_t | store_vflip (struct class_device *class, const char *buf, size_t count) |
store_vflip | |
static ssize_t | runtest (struct class_device *class, const char *buf, size_t count) |
static | CLASS_DEVICE_ATTR (release, S_IRUGO, show_release, NULL) |
static | CLASS_DEVICE_ATTR (videostatus, S_IRUGO, show_videostatus, NULL) |
static | CLASS_DEVICE_ATTR (informations, S_IRUGO, show_informations, NULL) |
static | CLASS_DEVICE_ATTR (brightness, S_IRUGO|S_IWUGO, show_brightness, store_brightness) |
static | CLASS_DEVICE_ATTR (contrast, S_IRUGO|S_IWUGO, show_contrast, store_contrast) |
static | CLASS_DEVICE_ATTR (whitebalance, S_IRUGO|S_IWUGO, show_whitebalance, store_whitebalance) |
static | CLASS_DEVICE_ATTR (hflip, S_IRUGO|S_IWUGO, show_hflip, store_hflip) |
static | CLASS_DEVICE_ATTR (vflip, S_IRUGO|S_IWUGO, show_vflip, store_vflip) |
static | CLASS_DEVICE_ATTR (test, S_IRUGO|S_IWUGO, NULL, runtest) |
int | stk11xx_create_sysfs_files (struct video_device *vdev) |
Create the 'sys' entries. | |
void | stk11xx_remove_sysfs_files (struct video_device *vdev) |
Remove the 'sys' entries. | |
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-sysfs.c.
static CLASS_DEVICE_ATTR | ( | vflip | , | |
S_IRUGO| | S_IWUGO, | |||
show_vflip | , | |||
store_vflip | ||||
) | [static] |
Vertical filp value
static CLASS_DEVICE_ATTR | ( | hflip | , | |
S_IRUGO| | S_IWUGO, | |||
show_hflip | , | |||
store_hflip | ||||
) | [static] |
Horizontal filp value
static CLASS_DEVICE_ATTR | ( | whitebalance | , | |
S_IRUGO| | S_IWUGO, | |||
show_whitebalance | , | |||
store_whitebalance | ||||
) | [static] |
Whitebalance value
static CLASS_DEVICE_ATTR | ( | contrast | , | |
S_IRUGO| | S_IWUGO, | |||
show_contrast | , | |||
store_contrast | ||||
) | [static] |
Contrast value
static CLASS_DEVICE_ATTR | ( | brightness | , | |
S_IRUGO| | S_IWUGO, | |||
show_brightness | , | |||
store_brightness | ||||
) | [static] |
Brightness value
static CLASS_DEVICE_ATTR | ( | informations | , | |
S_IRUGO | , | |||
show_informations | , | |||
NULL | ||||
) | [static] |
Informations
static CLASS_DEVICE_ATTR | ( | videostatus | , | |
S_IRUGO | , | |||
show_videostatus | , | |||
NULL | ||||
) | [static] |
Video status
static CLASS_DEVICE_ATTR | ( | release | , | |
S_IRUGO | , | |||
show_release | , | |||
NULL | ||||
) | [static] |
Release value
static ssize_t show_brightness | ( | struct class_device * | class, | |
char * | buf | |||
) | [static] |
show_brightness
class | Class device |
buf | Adress of buffer with the 'brightness' value |
Definition at line 153 of file stk11xx-sysfs.c.
References stk11xx_video::brightness, and usb_stk11xx::vsettings.
static ssize_t show_contrast | ( | struct class_device * | class, | |
char * | buf | |||
) | [static] |
show_contrast
class | Class device |
buf | Adress of buffer with the 'contrast' value |
Definition at line 197 of file stk11xx-sysfs.c.
References stk11xx_video::contrast, and usb_stk11xx::vsettings.
static ssize_t show_hflip | ( | struct class_device * | class, | |
char * | buf | |||
) | [static] |
show_hflip
class | Class device |
buf | Adress of buffer with the 'hflip' value |
Definition at line 287 of file stk11xx-sysfs.c.
References stk11xx_video::hflip, and usb_stk11xx::vsettings.
static ssize_t show_informations | ( | struct class_device * | class, | |
char * | buf | |||
) | [static] |
show_informations
class | Class device |
buf | Adress of buffer with the 'informations' value |
Definition at line 103 of file stk11xx-sysfs.c.
References usb_stk11xx::resolution, STK11XX_1024x768, STK11XX_1280x1024, STK11XX_128x96, STK11XX_160x120, STK11XX_213x160, STK11XX_320x240, STK11XX_640x480, STK11XX_800x600, STK11XX_80x60, stk11xx_image_sizes, usb_stk11xx::view, stk11xx_coord::x, and stk11xx_coord::y.
static ssize_t show_release | ( | struct class_device * | class, | |
char * | buf | |||
) | [static] |
show_release
class | Class device |
buf | Adress of buffer with the 'release' value |
Definition at line 61 of file stk11xx-sysfs.c.
References usb_stk11xx::release.
static ssize_t show_vflip | ( | struct class_device * | class, | |
char * | buf | |||
) | [static] |
show_vflip
class | Class device |
buf | Adress of buffer with the 'vflip' value |
Definition at line 330 of file stk11xx-sysfs.c.
References stk11xx_video::vflip, and usb_stk11xx::vsettings.
static ssize_t show_videostatus | ( | struct class_device * | class, | |
char * | buf | |||
) | [static] |
show_videostatus
class | Class device |
buf | Adress of buffer with the 'videostatus' value |
Definition at line 79 of file stk11xx-sysfs.c.
References usb_stk11xx::vframes_dumped, usb_stk11xx::vframes_error, and usb_stk11xx::visoc_errors.
static ssize_t show_whitebalance | ( | struct class_device * | class, | |
char * | buf | |||
) | [static] |
show_whitebalance
class | Class device |
buf | Adress of buffer with the 'whitebalance' value |
Definition at line 242 of file stk11xx-sysfs.c.
References usb_stk11xx::vsettings, and stk11xx_video::whiteness.
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 418 of file stk11xx-sysfs.c.
Referenced by usb_stk11xx_probe().
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 445 of file stk11xx-sysfs.c.
Referenced by usb_stk11xx_disconnect().
static ssize_t store_brightness | ( | struct class_device * | class, | |
const char * | buf, | |||
size_t | count | |||
) | [static] |
store_brightness
class | Class device | |
buf | Buffer | |
count | Counter |
Definition at line 171 of file stk11xx-sysfs.c.
References stk11xx_video::brightness, dev_stk11xx_set_camera_quality(), and usb_stk11xx::vsettings.
static ssize_t store_contrast | ( | struct class_device * | class, | |
const char * | buf, | |||
size_t | count | |||
) | [static] |
store_contrast
class | Class device | |
buf | Buffer | |
count | Counter |
Definition at line 215 of file stk11xx-sysfs.c.
References stk11xx_video::contrast, dev_stk11xx_set_camera_quality(), and usb_stk11xx::vsettings.
static ssize_t store_hflip | ( | struct class_device * | class, | |
const char * | buf, | |||
size_t | count | |||
) | [static] |
store_hflip
class | Class device | |
buf | Buffer | |
count | Counter |
Definition at line 305 of file stk11xx-sysfs.c.
References stk11xx_video::hflip, and usb_stk11xx::vsettings.
static ssize_t store_vflip | ( | struct class_device * | class, | |
const char * | buf, | |||
size_t | count | |||
) | [static] |
store_vflip
class | Class device | |
buf | Buffer | |
count | Counter |
Definition at line 348 of file stk11xx-sysfs.c.
References stk11xx_video::vflip, and usb_stk11xx::vsettings.
static ssize_t store_whitebalance | ( | struct class_device * | class, | |
const char * | buf, | |||
size_t | count | |||
) | [static] |
store_whitebalance
class | Class device | |
buf | Buffer | |
count | Counter |
Definition at line 260 of file stk11xx-sysfs.c.
References dev_stk11xx_set_camera_quality(), usb_stk11xx::vsettings, and stk11xx_video::whiteness.
List of all resolutions supported by the driver
Definition at line 64 of file stk11xx-v4l.c.
Referenced by show_informations().