diff options
author | Luca Risolia <luca.risolia@studio.unibo.it> | 2006-02-25 01:50:47 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-03-20 17:49:59 -0500 |
commit | 2ffab02fea5880da284dc5511479b25a796a8dee (patch) | |
tree | b94481244ae823598d06cd72472b9c76e9639bd1 /drivers/usb/media/sn9c102_tas5110c1b.c | |
parent | 7039f4224d4e40b06308d5c1a97427af1a142459 (diff) |
[PATCH] USB: SN9C10x driver updates
SN9C10x driver updates.
Changes: + new, - removed, * cleanup, @ bugfix
@ Fix stream_interrupt()
@ Fix vidioc_enum_input() and split vidioc_gs_input()
@ Need usb_get|put_dev() when disconnecting, if the device is open
* Use wait_event_interruptible_timeout() instead of wait_event_interruptible()
when waiting for video frames
* replace wake_up_interruptible(&wait_stream) with wake_up(&wait_stream)
* Cleanups and updates in the documentation
+ Use per-device sensor structures
+ Add support for PAS202BCA image sensors
+ Add frame_timeout module parameter
Signed-off-by: Luca Risolia <luca.risolia@studio.unibo.it>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/media/sn9c102_tas5110c1b.c')
-rw-r--r-- | drivers/usb/media/sn9c102_tas5110c1b.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/usb/media/sn9c102_tas5110c1b.c b/drivers/usb/media/sn9c102_tas5110c1b.c index 32ddf236cafe..2e08c552f40a 100644 --- a/drivers/usb/media/sn9c102_tas5110c1b.c +++ b/drivers/usb/media/sn9c102_tas5110c1b.c | |||
@@ -142,14 +142,18 @@ static struct sn9c102_sensor tas5110c1b = { | |||
142 | 142 | ||
143 | int sn9c102_probe_tas5110c1b(struct sn9c102_device* cam) | 143 | int sn9c102_probe_tas5110c1b(struct sn9c102_device* cam) |
144 | { | 144 | { |
145 | /* This sensor has no identifiers, so let's attach it anyway */ | 145 | const struct usb_device_id tas5110c1b_id_table[] = { |
146 | sn9c102_attach_sensor(cam, &tas5110c1b); | 146 | { USB_DEVICE(0x0c45, 0x6001), }, |
147 | { USB_DEVICE(0x0c45, 0x6005), }, | ||
148 | { USB_DEVICE(0x0c45, 0x60ab), }, | ||
149 | { } | ||
150 | }; | ||
147 | 151 | ||
148 | /* Sensor detection is based on USB pid/vid */ | 152 | /* Sensor detection is based on USB pid/vid */ |
149 | if (le16_to_cpu(tas5110c1b.usbdev->descriptor.idProduct) != 0x6001 && | 153 | if (!sn9c102_match_id(cam, tas5110c1b_id_table)) |
150 | le16_to_cpu(tas5110c1b.usbdev->descriptor.idProduct) != 0x6005 && | ||
151 | le16_to_cpu(tas5110c1b.usbdev->descriptor.idProduct) != 0x60ab) | ||
152 | return -ENODEV; | 154 | return -ENODEV; |
153 | 155 | ||
156 | sn9c102_attach_sensor(cam, &tas5110c1b); | ||
157 | |||
154 | return 0; | 158 | return 0; |
155 | } | 159 | } |