Hello,
The hunger function is detect start of frame, because is perform many 
comparation if received buffer is large than 64 bytes.
See the patch

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

diff --git a/sn9c20x-usb.c b/sn9c20x-usb.c
index 4e7f1c7..00f42e5 100644
--- a/sn9c20x-usb.c
+++ b/sn9c20x-usb.c
@@ -501,12 +501,14 @@ int usb_sn9c20x_detect_frame(unsigned char *buf, unsigned 
int buf_length)
                else
                        return -1;
        }
+/*
        for (index = 0; index < buf_length - 63; index++) {
                if (memcmp(buf + index, frame_header, 6) == 0) {
                        UDIA_DEBUG("Found Header at %d\n", index);
                        return index;
                }
        }
+*/
        return -1;
 }
 

Reply via email to