LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 08-29-2007, 10:11 AM   #1
fredzz2
LQ Newbie
 
Registered: Jun 2007
Posts: 6

Rep: Reputation: 0
Smile Snooped my webcam sensor. How to add suport now in gspca?


(I noticed i might have posted in the wrong section. So please move if you think its necessary.)

I'm trying to make gspca work with my webcam that is not supported yet.

Mine is 0xac8 307b. There is one ac8 305b that is supported. I tried to change the Prod ID to mine but the cam is all black.

So i've read some things and i decided to snoop my webcam in Windoows. I used a myformat.pl script to convert it to a readble format.. then used other script to convert it to .c

Now i have this result:

Code:
__u16 zc0302plugin[][5] = {
{ 0x80 , 0x06 , 0x0100 , 0x0000 , 0x0001 },
{ 0x80 , 0x06 , 0x0200 , 0x0000 , 0x0001 },
{ 0x80 , 0x06 , 0x0200 , 0x0000 , 0x0001 },
{ 0xc0 , 0xa1 , 0x0001 , 0x0010 , 0x0001 },
{ 0x40 , 0xa0 , 0x0001 , 0x0000 , 0x0000 },
{ 0x40 , 0xa0 , 0x0000 , 0x0010 , 0x0000 },
{ 0x40 , 0xa0 , 0x0001 , 0x0001 , 0x0000 },
{ 0x40 , 0xa0 , 0x0003 , 0x0012 , 0x0000 },
{ 0x40 , 0xa0 , 0x0001 , 0x0012 , 0x0000 },
{ 0x40 , 0xa0 , 0x0001 , 0x0092 , 0x0000 },
{ 0x40 , 0xa0 , 0x00aa , 0x0093 , 0x0000 },
{ 0x40 , 0xa0 , 0x0000 , 0x0094 , 0x0000 },
{ 0x40 , 0xa0 , 0x0001 , 0x0090 , 0x0000 },
etc
and in the ov7630c.h there is:

Code:
static __u16 ov7630c_start_data[][3] = {
{ 0xa0, 0x0001, 0x0000},
{ 0xa0, 0x0010, 0x0002},
{ 0xa0, 0x01, 0x0000 },
{ 0xa0, 0x10, 0x0002 },
{ 0xa0, 0x03, 0x0008 },
{ 0xa0, 0x01, 0x0001 },
{ 0xa0, 0x06, 0x0010 },
{ 0xa0, 0xa1, 0x008b },
{ 0xa0, 0x08, 0x008d },
{ 0xa0, 0x02, 0x0003 },
{ 0xa0, 0x80, 0x0004 },
{ 0xa0, 0x01, 0x0005 },
{ 0xa0, 0xe0, 0x0006 },
etc
So i croped my code to the same format that is in the .c file.

In
Code:
{ 0x80 , 0x06 , 0x0100 , 0x0000 , 0x0001 },
i changed to
Code:
{ 0x80, 0x06, 0x0100 },
Now i have the same format! I did this for every line

I just need to know where to put my code now.

This is the code of the .c file:

(In red i made to comments. One of them is where i tried to place my data. And the other one is a line where there is a comment called I2C

Code:
static __u16 ov7630c_start_data[][3] = {
    {0xa0, 0x0001, 0x0000},
    {0xa0, 0x0010, 0x0002},
    { 0xa0, 0x01, 0x0000 },
{ 0xa0, 0x10, 0x0002 },
{ 0xa0, 0x03, 0x0008 },
{ 0xa0, 0x01, 0x0001 },
{ 0xa0, 0x06, 0x0010 },
{ 0xa0, 0xa1, 0x008b },
{ 0xa0, 0x08, 0x008d },
{ 0xa0, 0x02, 0x0003 },
{ 0xa0, 0x80, 0x0004 },
{ 0xa0, 0x01, 0x0005 },
{ 0xa0, 0xe0, 0x0006 },
{ 0xa0, 0x01, 0x0012 },
{ 0xa0, 0x12, 0x0092 },
{ 0xa0, 0x80, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 },

 
{ 0xa1, 0x01, 0x0091 },
{ 0xa0, 0x02, 0x0083 },
{ 0xa0, 0x01, 0x0085 },
{ 0xa0, 0x90, 0x0086 },
{ 0xa0, 0x91, 0x0087 },
{ 0xa0, 0x10, 0x0088 },
{ 0xa0, 0x00, 0x0098 },
{ 0xa0, 0x00, 0x009a },
{ 0xa0, 0x00, 0x011a },
{ 0xa0, 0x00, 0x011c },
{ 0xa0, 0xd8, 0x009c },
{ 0xa0, 0x88, 0x009e },

{ 0xa0, 0x12, 0x0092 },
{ 0xa0, 0x69, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 }, 
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x04, 0x0092 },
{ 0xa0, 0x20, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 },
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x06, 0x0092 },
{ 0xa0, 0x50, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 },
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x13, 0x0092 },
{ 0xa0, 0x83, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 },
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x14, 0x0092 },
{ 0xa0, 0x00, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 }, 
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x15, 0x0092 },
{ 0xa0, 0x24, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 }, 
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x17, 0x0092 },
{ 0xa0, 0x18, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 }, 
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x18, 0x0092 },
{ 0xa0, 0xba, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 },
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x19, 0x0092 },
{ 0xa0, 0x02, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 }, 
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x1a, 0x0092 },
{ 0xa0, 0xf6, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 }, 
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x1b, 0x0092 },
{ 0xa0, 0x02, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 }, 
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x20, 0x0092 },
{ 0xa0, 0xc2, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 },
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x24, 0x0092 },
{ 0xa0, 0x60, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 }, 
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x25, 0x0092 },
{ 0xa0, 0x40, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 },
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x26, 0x0092 },
{ 0xa0, 0x30, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 }, 
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x27, 0x0092 },
{ 0xa0, 0xea, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 }, 
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x28, 0x0092 },
{ 0xa0, 0xa0, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 },
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x21, 0x0092 },
{ 0xa0, 0x00, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 },
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x2a, 0x0092 },
{ 0xa0, 0x81, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 }, 
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x2b, 0x0092 },
{ 0xa0, 0x96, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 },
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x2d, 0x0092 },
{ 0xa0, 0x94, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 }, 
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x2f, 0x0092 },
{ 0xa0, 0x3d, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 }, 
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x30, 0x0092 },
{ 0xa0, 0x24, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 }, 
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x60, 0x0092 },
{ 0xa0, 0x00, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 }, 
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x61, 0x0092 },
{ 0xa0, 0x40, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 },
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x68, 0x0092 },
{ 0xa0, 0x7c, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 }, 
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x6f, 0x0092 },
{ 0xa0, 0x15, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 }, 
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x75, 0x0092 },
{ 0xa0, 0x88, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 }, 
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x77, 0x0092 },
{ 0xa0, 0xb5, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 }, 
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x01, 0x0092 },
{ 0xa0, 0x60, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 }, 
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x02, 0x0092 },
{ 0xa0, 0x60, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 }, 
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x05, 0x0012 },
{ 0xa0, 0x77, 0x0101 },
{ 0xa0, 0x0d, 0x0100 },
{ 0xa0, 0x06, 0x0189 },
{ 0xa0, 0x04, 0x01a7 },
{ 0xa0, 0x00, 0x01ad },
{ 0xa0, 0x03, 0x01c5 },
{ 0xa0, 0x13, 0x01cb },
{ 0xa0, 0x08, 0x0250 },
{ 0xa0, 0x08, 0x0301 },
{ 0xa0, 0x60, 0x0116 },
{ 0xa0, 0x46, 0x0118 },
{ 0xa0, 0x04, 0x0113 },

//0x10, 
{ 0xa1, 0x01, 0x0002 },
{ 0xa0, 0x50, 0x010a },
{ 0xa0, 0xf8, 0x010b },
{ 0xa0, 0xf8, 0x010c },
{ 0xa0, 0xf8, 0x010d },
{ 0xa0, 0x50, 0x010e },
{ 0xa0, 0xf8, 0x010f },
{ 0xa0, 0xf8, 0x0110 },
{ 0xa0, 0xf8, 0x0111 },
{ 0xa0, 0x50, 0x0112 },

//0x03, 
{ 0xa1, 0x01, 0x0008 },
{ 0xa0, 0x03, 0x0008 },
{ 0xa0, 0x08, 0x01c6 },

//0x05, 
{ 0xa1, 0x01, 0x01c8 },
//0x07, 
{ 0xa1, 0x01, 0x01c9 },

//0x0f, 
{ 0xa1, 0x01, 0x01ca },
{ 0xa0, 0x0f, 0x01cb },
{ 0xa0, 0x01, 0x0120 },
{ 0xa0, 0x0c, 0x0121 },
{ 0xa0, 0x1f, 0x0122 },
{ 0xa0, 0x3a, 0x0123 },
{ 0xa0, 0x53, 0x0124 },
{ 0xa0, 0x6d, 0x0125 },
{ 0xa0, 0x85, 0x0126 },
{ 0xa0, 0x9c, 0x0127 },
{ 0xa0, 0xb0, 0x0128 },
{ 0xa0, 0xc2, 0x0129 },
{ 0xa0, 0xd1, 0x012a },
{ 0xa0, 0xde, 0x012b },
{ 0xa0, 0xe9, 0x012c },
{ 0xa0, 0xf2, 0x012d },
{ 0xa0, 0xf9, 0x012e },
{ 0xa0, 0xff, 0x012f },
{ 0xa0, 0x05, 0x0130 },
{ 0xa0, 0x0f, 0x0131 },
{ 0xa0, 0x16, 0x0132 },
{ 0xa0, 0x1a, 0x0133 },
{ 0xa0, 0x19, 0x0134 },
{ 0xa0, 0x19, 0x0135 },
{ 0xa0, 0x17, 0x0136 },
{ 0xa0, 0x15, 0x0137 },
{ 0xa0, 0x12, 0x0138 },
{ 0xa0, 0x10, 0x0139 },
{ 0xa0, 0x0e, 0x013a },
{ 0xa0, 0x0b, 0x013b },
{ 0xa0, 0x09, 0x013c },
{ 0xa0, 0x08, 0x013d },
{ 0xa0, 0x06, 0x013e },
{ 0xa0, 0x03, 0x013f },
{ 0xa0, 0x50, 0x010a },
{ 0xa0, 0xf8, 0x010b },
{ 0xa0, 0xf8, 0x010c },
{ 0xa0, 0xf8, 0x010d },
{ 0xa0, 0x50, 0x010e },
{ 0xa0, 0xf8, 0x010f },
{ 0xa0, 0xf8, 0x0110 },
{ 0xa0, 0xf8, 0x0111 },
{ 0xa0, 0x50, 0x0112 },

{ 0xa1, 0x01, 0x0180 },
{ 0xa0, 0x00, 0x0180 },

{ 0xa0, 0x10, 0x0092 },
{ 0xa0, 0x1b, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 }, 
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x76, 0x0092 },
{ 0xa0, 0x02, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 }, 
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x2a, 0x0092 },
{ 0xa0, 0x81, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 },
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x2b, 0x0092 },
{ 0xa0, 0x00, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 },
{ 0xa1, 0x01, 0x0091 },

{ 0xa0, 0x00, 0x0190 },
{ 0xa0, 0x01, 0x0191 },
{ 0xa0, 0xb8, 0x0192 },
{ 0xa0, 0x00, 0x0195 },
{ 0xa0, 0x00, 0x0196 },
{ 0xa0, 0x37, 0x0197 },
{ 0xa0, 0x10, 0x018c },
{ 0xa0, 0x20, 0x018f },
{ 0xa0, 0x10, 0x01a9 },
{ 0xa0, 0x26, 0x01aa },
{ 0xa0, 0x50, 0x011d },
{ 0xa0, 0x02, 0x0180 },
{ 0xa0, 0x40, 0x0180 },
{ 0xa0, 0x13, 0x0092 },
{ 0xa0, 0x83, 0x0093 },
{ 0xa0, 0x00, 0x0094 },
{ 0xa0, 0x01, 0x0090 },
 
{ 0xa1, 0x01, 0x0091 },
//40
{ 0xa1, 0x01, 0x0180 },
{ 0xa0, 0x42, 0x0180 }, 
          <<<--I TRIED TO PUT MY CODE HERE
    {0, 0, 0}
};

static __u16 ov7630c_scale_data[][3] = {

 {0xa0, 0x0001, 0x0000},
    {0xa0, 0x0000, 0x0002},
    {0xa0, 0x0003, 0x0008},
    {0xa0, 0x0001, 0x0001},
    {0xa0, 0x0006, 0x0010},
    {0xa0, 0x00a1, 0x008b},
    {0xa0, 0x0008, 0x008d},
    {0xa0, 0x0002, 0x0003},
    {0xa0, 0x0080, 0x0004},
    {0xa0, 0x0001, 0x0005},
    {0xa0, 0x00e0, 0x0006},
    {0xa0, 0x0001, 0x0012},

    {0xa0, 0x0012, 0x0092},
    {0xa0, 0x0080, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0002, 0x0083},
    {0xa0, 0x0001, 0x0085},
    {0xa0, 0x0090, 0x0086},
    {0xa0, 0x0091, 0x0087},
    {0xa0, 0x0010, 0x0088},
    {0xa0, 0x0000, 0x0098},
    {0xa0, 0x0000, 0x009a},
    {0xa0, 0x0000, 0x011a},
    {0xa0, 0x0000, 0x011c},
    {0xa0, 0x00e6, 0x009c},
    {0xa0, 0x0086, 0x009e},
/* i2c */                  <<--I wonder what this is
    {0xa0, 0x0012, 0x0092},
    {0xa0, 0x0069, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0004, 0x0092},
    {0xa0, 0x0020, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0006, 0x0092},
    {0xa0, 0x0050, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0013, 0x0092},
    {0xa0, 0x00c3, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0014, 0x0092},
    {0xa0, 0x0000, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0015, 0x0092},
    {0xa0, 0x0024, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0019, 0x0092},
    {0xa0, 0x0003, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x001a, 0x0092},
    {0xa0, 0x00f6, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x001b, 0x0092},
    {0xa0, 0x0002, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0020, 0x0092},
    {0xa0, 0x00c2, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0024, 0x0092},
    {0xa0, 0x0060, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0025, 0x0092},
    {0xa0, 0x0040, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0026, 0x0092},
    {0xa0, 0x0030, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0027, 0x0092},
    {0xa0, 0x00ea, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0028, 0x0092},
    {0xa0, 0x00a0, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0021, 0x0092},
    {0xa0, 0x0000, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x002a, 0x0092},
    {0xa0, 0x0081, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x002b, 0x0092},
    {0xa0, 0x0096, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x002d, 0x0092},
    {0xa0, 0x0084, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x002f, 0x0092},
    {0xa0, 0x003d, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0030, 0x0092},
    {0xa0, 0x0024, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0060, 0x0092},
    {0xa0, 0x0000, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0061, 0x0092},
    {0xa0, 0x0040, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0068, 0x0092},
    {0xa0, 0x007c, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x006f, 0x0092},
    {0xa0, 0x0015, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0075, 0x0092},
    {0xa0, 0x0088, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0077, 0x0092},
    {0xa0, 0x00b5, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0001, 0x0092},
    {0xa0, 0x0060, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0002, 0x0092},
    {0xa0, 0x0060, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0017, 0x0092},
    {0xa0, 0x0018, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0018, 0x0092},
    {0xa0, 0x00ba, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0005, 0x0012},
    {0xa0, 0x0077, 0x0101},
    {0xa0, 0x000d, 0x0100},
    {0xa0, 0x0006, 0x0189},
    {0xa0, 0x0004, 0x01a7},
    {0xa0, 0x0000, 0x01ad},
    {0xa0, 0x0003, 0x01c5},
    {0xa0, 0x0013, 0x01cb},
    {0xa0, 0x0008, 0x0250},
    {0xa0, 0x0008, 0x0301},
    {0xa0, 0x0060, 0x0116},
    {0xa0, 0x0046, 0x0118},
    {0xa0, 0x0004, 0x0113},


    {0xa1, 0x0001, 0x0002},
    {0xa0, 0x004e, 0x010a},
    {0xa0, 0x00fe, 0x010b},
    {0xa0, 0x00f4, 0x010c},
    {0xa0, 0x00f7, 0x010d},
    {0xa0, 0x004d, 0x010e},
    {0xa0, 0x00fc, 0x010f},
    {0xa0, 0x0000, 0x0110},
    {0xa0, 0x00f6, 0x0111},
    {0xa0, 0x004a, 0x0112},

    {0xa1, 0x0001, 0x0008},
    {0xa0, 0x0003, 0x0008},
    {0xa0, 0x0008, 0x01c6},

    {0xa1, 0x0001, 0x01c8},


    {0xa1, 0x0001, 0x01c9},

    {0xa1, 0x0001, 0x01ca},
    {0xa0, 0x000f, 0x01cb},
    {0xa0, 0x0016, 0x0120},
    {0xa0, 0x003a, 0x0121},
    {0xa0, 0x005b, 0x0122},
    {0xa0, 0x007c, 0x0123},
    {0xa0, 0x0094, 0x0124},
    {0xa0, 0x00a9, 0x0125},
    {0xa0, 0x00bb, 0x0126},
    {0xa0, 0x00ca, 0x0127},
    {0xa0, 0x00d7, 0x0128},
    {0xa0, 0x00e1, 0x0129},
    {0xa0, 0x00ea, 0x012a},
    {0xa0, 0x00f1, 0x012b},
    {0xa0, 0x00f7, 0x012c},
    {0xa0, 0x00fc, 0x012d},
    {0xa0, 0x00ff, 0x012e},
    {0xa0, 0x00ff, 0x012f},
    {0xa0, 0x0020, 0x0130},
    {0xa0, 0x0022, 0x0131},
    {0xa0, 0x0020, 0x0132},
    {0xa0, 0x001c, 0x0133},
    {0xa0, 0x0016, 0x0134},
    {0xa0, 0x0013, 0x0135},
    {0xa0, 0x0010, 0x0136},
    {0xa0, 0x000d, 0x0137},
    {0xa0, 0x000b, 0x0138},
    {0xa0, 0x0009, 0x0139},
    {0xa0, 0x0007, 0x013a},
    {0xa0, 0x0006, 0x013b},
    {0xa0, 0x0005, 0x013c},
    {0xa0, 0x0004, 0x013d},
    {0xa0, 0x0000, 0x013e},
    {0xa0, 0x0001, 0x013f},
    {0xa0, 0x004e, 0x010a},
    {0xa0, 0x00fe, 0x010b},
    {0xa0, 0x00f4, 0x010c},
    {0xa0, 0x00f7, 0x010d},
    {0xa0, 0x004d, 0x010e},
    {0xa0, 0x00fc, 0x010f},
    {0xa0, 0x0000, 0x0110},
    {0xa0, 0x00f6, 0x0111},
    {0xa0, 0x004a, 0x0112},


    {0xa1, 0x0001, 0x0180},
    {0xa0, 0x0000, 0x0180},
    {0xa0, 0x0010, 0x0092},
    {0xa0, 0x000d, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},

    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0076, 0x0092},
    {0xa0, 0x0002, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x002a, 0x0092},
    {0xa0, 0x0081, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x002b, 0x0092},
    {0xa0, 0x0000, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},


    {0xa1, 0x0001, 0x0091},
    {0xa0, 0x0000, 0x0190},
    {0xa0, 0x0000, 0x0191},
    {0xa0, 0x00d8, 0x0192},
    {0xa0, 0x0000, 0x0195},
    {0xa0, 0x0000, 0x0196},
    {0xa0, 0x001b, 0x0197},
    {0xa0, 0x0010, 0x018c},
    {0xa0, 0x0020, 0x018f},
    {0xa0, 0x0010, 0x01a9},
    {0xa0, 0x0026, 0x01aa},
    {0xa0, 0x0050, 0x011d},
    {0xa0, 0x0002, 0x0180},
    {0xa0, 0x0040, 0x0180},
    {0xa0, 0x0013, 0x0092},
    {0xa0, 0x00c3, 0x0093},
    {0xa0, 0x0000, 0x0094},
    {0xa0, 0x0001, 0x0090},
    {0xa1, 0x0001, 0x0091},

    {0xa1, 0x0001, 0x0180},
    {0xa0, 0x0042, 0x0180},

    {0, 0, 0}
};
Could anyone help me where can i put my code to make it work?

My webcam sensor code is:

Code:
{ 0x80, 0x06, 0x0100 },
{ 0x80, 0x06, 0x0200 },
{ 0x80, 0x06, 0x0200 },
{ 0xc0, 0xa1, 0x0001 },
{ 0x40, 0xa0, 0x0001 },
{ 0x40, 0xa0, 0x0000 },
{ 0x40, 0xa0, 0x0001 },
{ 0x40, 0xa0, 0x0003 },
{ 0x40, 0xa0, 0x0001 },
{ 0x40, 0xa0, 0x0001 },
{ 0x40, 0xa0, 0x00aa },
{ 0x40, 0xa0, 0x0000 },
{ 0x40, 0xa0, 0x0001 },
{ 0xc0, 0xa1, 0x0001 },
{ 0x40, 0xa0, 0x0001 },
{ 0x40, 0xa0, 0x0002 },
{ 0xc0, 0xa1, 0x0001 },
{ 0xc0, 0xa1, 0x0001 },
{ 0xc0, 0xa1, 0x0001 },
{ 0x40, 0xa0, 0x0001 },
{ 0x40, 0xa0, 0x0004 },
{ 0x40, 0xa0, 0x0001 },
{ 0x40, 0xa0, 0x0003 },
{ 0x40, 0xa0, 0x0001 },
{ 0x40, 0xa0, 0x0001 },
{ 0x40, 0xa0, 0x00aa },
{ 0x40, 0xa0, 0x0000 },
{ 0x40, 0xa0, 0x0001 },
{ 0xc0, 0xa1, 0x0001 },
{ 0x40, 0xa0, 0x0001 },
{ 0x40, 0xa0, 0x0002 },
{ 0xc0, 0xa1, 0x0001 },
{ 0xc0, 0xa1, 0x0001 },
{ 0xc0, 0xa1, 0x0001 },
{ 0x40, 0xa0, 0x0001 },
{ 0x40, 0xa0, 0x0006 },
{ 0x40, 0xa0, 0x0000 },
{ 0x40, 0xa0, 0x0003 },
{ 0x40, 0xa0, 0x0001 },
{ 0x40, 0xa0, 0x0008 },
{ 0x40, 0xa0, 0x0011 },
{ 0x40, 0xa0, 0x00aa },
{ 0x40, 0xa0, 0x0000 },
{ 0x40, 0xa0, 0x0001 },
{ 0xc0, 0xa1, 0x0001 },
{ 0x40, 0xa0, 0x0011 },
{ 0x40, 0xa0, 0x0002 },
{ 0xc0, 0xa1, 0x0001 },
{ 0xc0, 0xa1, 0x0001 },
{ 0xc0, 0xa1, 0x0001 },
{ 0xc0, 0xa1, 0x0001 },
{ 0xc0, 0xa1, 0x0001 },
{ 0x40, 0xa0, 0x0001 },
{ 0x40, 0xa0, 0x0001 },
{ 0x40, 0xa0, 0x0006 },
{ 0x40, 0xa0, 0x00a1 },
{ 0x40, 0xa0, 0x0008 },
{ 0, 0, 0, 0, 0 }
}
Can anyone help me incorporate my sensor or replace with the one in that file?

Thanks in advance to anyone who might help me.
I tried to contact the developer but i got no answer..

Last edited by fredzz2; 08-30-2007 at 10:32 AM. Reason: change title
 
Old 08-30-2007, 12:08 AM   #2
J.W.
Guru
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 67
Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 08-30-2007, 10:30 AM   #3
fredzz2
LQ Newbie
 
Registered: Jun 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Ok thanks for moving!
 
Old 09-04-2007, 07:41 AM   #4
fredzz2
LQ Newbie
 
Registered: Jun 2007
Posts: 6

Original Poster
Rep: Reputation: 0
I feel so professional on making a question that noone can answer
 
  


Reply

Tags
drivers, gspca, linux, sniff, webcam


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange results when I do a df mlh Linux - General 11 05-31-2007 10:49 AM
quickcam gspca driver compile problem anirudhvij Linux - Hardware 0 05-03-2007 02:19 AM
How To Install A Usb Webcam [Genius WebCam on Suse 9.1 Personal] ofvergara Suse/Novell 4 11-29-2006 12:09 PM
I want to veiw my friends webcam, im using Lycoris, how do i c his webcam? CaffeinatedGamer Linux - Newbie 10 06-07-2005 07:23 PM
suse8 Results ! ! sapilas Linux - Distributions 11 05-14-2002 02:38 PM


All times are GMT -5. The time now is 10:56 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration