victorhr
unread,Aug 15, 2008, 7:50:27 AM8/15/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to microdia
Hi,
I own an integrated 045c:627f camera. Support for this camera was
added previous to v4l2-branch merge with trunk. I recently pulled the
microdia sources from git repo and support for my camera was removed.
I checked the source and the functions that initialized the cam are
still in the source. I am not a C coder but what I understood is that
the device detection code changed and now, instead of a switch
structure, a table (array) is used with pointers to the functions for
each device. In this new table, my device was not listed although all
the functions are still in the code. Therefore, I added an entry to
this table (I attach the diff at the end) and now the camera work as
before.
I hope you can include this patch in trunk.
Greetings,
Víctor
-------------------------- DIFF START -----------------------------
diff --git a/microdia-usb.c b/microdia-usb.c
index df2d89c..65226c7 100644
--- a/microdia-usb.c
+++ b/microdia-usb.c
@@ -290,6 +290,17 @@ struct microdia_camera cameras[] = {
.flip_detect = microdia_624f_flip_detect,
.set_exposure = microdia_624f_set_exposure,
},
+ { .model = CAMERA_MODEL(USB_0C45_VID, USB_627F_PID),
+ .type = MICRODIA_SXGA,
+ .sensor_slave_address = 0x30,
+ .sensor_flags = SN9C20X_I2C_2WIRE,
+ .supported_fmts = 0x03,
+ .initialize = microdia_627f_initialize,
+ .start_stream = microdia_624f_start_stream,
+ .stop_stream = microdia_624f_stop_stream,
+ .set_exposure = microdia_624f_set_exposure,
+ //flip_detect_f = microdia_624f_flip_detect;
+ },
{
.model = CAMERA_MODEL(USB_0C45_VID, USB_6260_PID),
.type = MICRODIA_VGA,
-------------------------- DIFF END -----------------------------