Malte schrieb:
Hi, here a small patch for the LED light:diff -ruN ../microdia/sn9c20x.c ./microdia/sn9c20x.c --- ../microdia/sn9c20x.c 2008-12-22 20:37:26.000000000 +0100 +++ ./microdia/sn9c20x.c 2008-12-22 20:40:27.000000000 +0100 @@ -237,10 +237,6 @@ led[0] = 0x40; led[1] = 0x60; break; - case MT9V111_SENSOR: - led[0] = 0xc0; - led[1] = 0xe0; - break; case MT9M111_SENSOR: led[0] = 0x00; led[1] = 0x60; It works as axpeccted, and I don't think it interacts with other cams Malte --~--~---------~--~----~------------~-------~--~----~ Lets make microdia webcams plug'n play, (currently plug'n pray) To post to this group, send email to [email protected] Visit us online https://groups.google.com/group/microdia -~----------~----~----~----~------~----~------~--~---
Here's a corrected version made with git. GWater
From 22894e609bc5b9166b0fbdf48e1530622db3ef8a Mon Sep 17 00:00:00 2001 From: GWater <[email protected]> Date: Tue, 23 Dec 2008 10:46:40 +0100 Subject: [PATCH] Add LED-control for MT9V111 based webcams Signed-off-by: GWater <[email protected]> --- sn9c20x.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/sn9c20x.c b/sn9c20x.c index d05a6fa..aa9a210 100644 --- a/sn9c20x.c +++ b/sn9c20x.c @@ -241,6 +241,10 @@ int sn9c20x_set_LEDs(struct usb_microdia *dev, int enable) led[0] = 0x00; led[1] = 0x60; break; + case MT9V111_SENSOR: + led[0] = 0xc0; + led[1] = 0xe0; + break; default: led[0] = 0x00; led[1] = 0x20; @@ -258,6 +262,10 @@ int sn9c20x_set_LEDs(struct usb_microdia *dev, int enable) led[0] = 0x20; led[1] = 0x60; break; + case MT9V111_SENSOR: + led[0] = 0x80; + led[1] = 0xe0; + break; default: led[0] = 0x20; led[1] = 0x20; -- 1.6.0.6
signature.asc
Description: OpenPGP digital signature
