diff options
author | Luca Risolia <luca.risolia@studio.unibo.it> | 2006-02-25 01:54:18 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-03-20 17:49:59 -0500 |
commit | ccad7789d5e557644d1c866b018394872af0ec5b (patch) | |
tree | c3894cc5b75fe11b4db85229927591387aa332a8 /drivers/usb/media/et61x251_tas5130d1b.c | |
parent | 2ffab02fea5880da284dc5511479b25a796a8dee (diff) |
[PATCH] USB: ET61X[12]51 driver updates
USB: ET61X[12]51 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 mutexes instead of semaphores
+ 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/et61x251_tas5130d1b.c')
-rw-r--r-- | drivers/usb/media/et61x251_tas5130d1b.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/usb/media/et61x251_tas5130d1b.c b/drivers/usb/media/et61x251_tas5130d1b.c index 65f1ae9cf2b3..3998d76a307a 100644 --- a/drivers/usb/media/et61x251_tas5130d1b.c +++ b/drivers/usb/media/et61x251_tas5130d1b.c | |||
@@ -126,12 +126,16 @@ static struct et61x251_sensor tas5130d1b = { | |||
126 | 126 | ||
127 | int et61x251_probe_tas5130d1b(struct et61x251_device* cam) | 127 | int et61x251_probe_tas5130d1b(struct et61x251_device* cam) |
128 | { | 128 | { |
129 | /* This sensor has no identifiers, so let's attach it anyway */ | 129 | const struct usb_device_id tas5130d1b_id_table[] = { |
130 | et61x251_attach_sensor(cam, &tas5130d1b); | 130 | { USB_DEVICE(0x102c, 0x6251), }, |
131 | { } | ||
132 | }; | ||
131 | 133 | ||
132 | /* Sensor detection is based on USB pid/vid */ | 134 | /* Sensor detection is based on USB pid/vid */ |
133 | if (le16_to_cpu(tas5130d1b.usbdev->descriptor.idProduct) != 0x6251) | 135 | if (!et61x251_match_id(cam, tas5130d1b_id_table)) |
134 | return -ENODEV; | 136 | return -ENODEV; |
135 | 137 | ||
138 | et61x251_attach_sensor(cam, &tas5130d1b); | ||
139 | |||
136 | return 0; | 140 | return 0; |
137 | } | 141 | } |