diff options
author | Luca Risolia <luca.risolia@studio.unibo.it> | 2007-01-08 08:43:56 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-02-21 10:34:19 -0500 |
commit | f327ebbd004fb2f08291ca4c6637f5f27319683c (patch) | |
tree | 9f8ea1a6ae5554a7137e9c8e1c92adda8d06eab4 /drivers/media/video/sn9c102/sn9c102_tas5110c1b.c | |
parent | 19790db00bb7ff4d6621b82933afb3423586644e (diff) |
V4L/DVB (5062): SN9C102 driver updates
- Add support for SN9C105 and SN9C120
- Add some more USB device identifiers
- Add support for OV7660
- Implement audio ioctl's and VIDIOC_ENUM_FRAMESIZES
- Add preliminary support for 0x0c45/0x6007
- Documentation updates
- Generic improvements
Signed-off-by: Luca Risolia <luca.risolia@studio.unibo.it>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/sn9c102/sn9c102_tas5110c1b.c')
-rw-r--r-- | drivers/media/video/sn9c102/sn9c102_tas5110c1b.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/media/video/sn9c102/sn9c102_tas5110c1b.c b/drivers/media/video/sn9c102/sn9c102_tas5110c1b.c index 294eb02fbd88..90023ad63adc 100644 --- a/drivers/media/video/sn9c102/sn9c102_tas5110c1b.c +++ b/drivers/media/video/sn9c102/sn9c102_tas5110c1b.c | |||
@@ -1,8 +1,8 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | * Plug-in for TAS5110C1B image sensor connected to the SN9C10x PC Camera * | 2 | * Plug-in for TAS5110C1B image sensor connected to the SN9C1xx PC Camera * |
3 | * Controllers * | 3 | * Controllers * |
4 | * * | 4 | * * |
5 | * Copyright (C) 2004-2006 by Luca Risolia <luca.risolia@studio.unibo.it> * | 5 | * Copyright (C) 2004-2007 by Luca Risolia <luca.risolia@studio.unibo.it> * |
6 | * * | 6 | * * |
7 | * This program is free software; you can redistribute it and/or modify * | 7 | * This program is free software; you can redistribute it and/or modify * |
8 | * it under the terms of the GNU General Public License as published by * | 8 | * it under the terms of the GNU General Public License as published by * |
@@ -64,7 +64,7 @@ static int tas5110c1b_set_ctrl(struct sn9c102_device* cam, | |||
64 | static int tas5110c1b_set_crop(struct sn9c102_device* cam, | 64 | static int tas5110c1b_set_crop(struct sn9c102_device* cam, |
65 | const struct v4l2_rect* rect) | 65 | const struct v4l2_rect* rect) |
66 | { | 66 | { |
67 | struct sn9c102_sensor* s = &tas5110c1b; | 67 | struct sn9c102_sensor* s = sn9c102_get_sensor(cam); |
68 | int err = 0; | 68 | int err = 0; |
69 | u8 h_start = (u8)(rect->left - s->cropcap.bounds.left) + 69, | 69 | u8 h_start = (u8)(rect->left - s->cropcap.bounds.left) + 69, |
70 | v_start = (u8)(rect->top - s->cropcap.bounds.top) + 9; | 70 | v_start = (u8)(rect->top - s->cropcap.bounds.top) + 9; |
@@ -98,6 +98,7 @@ static int tas5110c1b_set_pix_format(struct sn9c102_device* cam, | |||
98 | static struct sn9c102_sensor tas5110c1b = { | 98 | static struct sn9c102_sensor tas5110c1b = { |
99 | .name = "TAS5110C1B", | 99 | .name = "TAS5110C1B", |
100 | .maintainer = "Luca Risolia <luca.risolia@studio.unibo.it>", | 100 | .maintainer = "Luca Risolia <luca.risolia@studio.unibo.it>", |
101 | .supported_bridge = BRIDGE_SN9C101 | BRIDGE_SN9C102 | BRIDGE_SN9C103, | ||
101 | .sysfs_ops = SN9C102_I2C_WRITE, | 102 | .sysfs_ops = SN9C102_I2C_WRITE, |
102 | .frequency = SN9C102_I2C_100KHZ, | 103 | .frequency = SN9C102_I2C_100KHZ, |
103 | .interface = SN9C102_I2C_3WIRES, | 104 | .interface = SN9C102_I2C_3WIRES, |
@@ -145,6 +146,7 @@ int sn9c102_probe_tas5110c1b(struct sn9c102_device* cam) | |||
145 | const struct usb_device_id tas5110c1b_id_table[] = { | 146 | const struct usb_device_id tas5110c1b_id_table[] = { |
146 | { USB_DEVICE(0x0c45, 0x6001), }, | 147 | { USB_DEVICE(0x0c45, 0x6001), }, |
147 | { USB_DEVICE(0x0c45, 0x6005), }, | 148 | { USB_DEVICE(0x0c45, 0x6005), }, |
149 | { USB_DEVICE(0x0c45, 0x6007), }, | ||
148 | { USB_DEVICE(0x0c45, 0x60ab), }, | 150 | { USB_DEVICE(0x0c45, 0x60ab), }, |
149 | { } | 151 | { } |
150 | }; | 152 | }; |