123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226 |
- /*
- * SPCA501 chip based cameras initialization data
- *
- * V4L2 by Jean-Francois Moine <http://moinejf.free.fr>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- */
- #define MODULE_NAME "spca501"
- #include "gspca.h"
- MODULE_AUTHOR("Michel Xhaard <mxhaard@users.sourceforge.net>");
- MODULE_DESCRIPTION("GSPCA/SPCA501 USB Camera Driver");
- MODULE_LICENSE("GPL");
- /* specific webcam descriptor */
- struct sd {
- struct gspca_dev gspca_dev; /* !! must be the first item */
- unsigned short contrast;
- __u8 brightness;
- __u8 colors;
- __u8 blue_balance;
- __u8 red_balance;
- char subtype;
- #define Arowana300KCMOSCamera 0
- #define IntelCreateAndShare 1
- #define KodakDVC325 2
- #define MystFromOriUnknownCamera 3
- #define SmileIntlCamera 4
- #define ThreeComHomeConnectLite 5
- #define ViewQuestM318B 6
- };
- /* V4L2 controls supported by the driver */
- static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val);
- static int sd_getbrightness(struct gspca_dev *gspca_dev, __s32 *val);
- static int sd_setcontrast(struct gspca_dev *gspca_dev, __s32 val);
- static int sd_getcontrast(struct gspca_dev *gspca_dev, __s32 *val);
- static int sd_setcolors(struct gspca_dev *gspca_dev, __s32 val);
- static int sd_getcolors(struct gspca_dev *gspca_dev, __s32 *val);
- static int sd_setblue_balance(struct gspca_dev *gspca_dev, __s32 val);
- static int sd_getblue_balance(struct gspca_dev *gspca_dev, __s32 *val);
- static int sd_setred_balance(struct gspca_dev *gspca_dev, __s32 val);
- static int sd_getred_balance(struct gspca_dev *gspca_dev, __s32 *val);
- static struct ctrl sd_ctrls[] = {
- #define MY_BRIGHTNESS 0
- {
- {
- .id = V4L2_CID_BRIGHTNESS,
- .type = V4L2_CTRL_TYPE_INTEGER,
- .name = "Brightness",
- .minimum = 0,
- .maximum = 127,
- .step = 1,
- .default_value = 0,
- },
- .set = sd_setbrightness,
- .get = sd_getbrightness,
- },
- #define MY_CONTRAST 1
- {
- {
- .id = V4L2_CID_CONTRAST,
- .type = V4L2_CTRL_TYPE_INTEGER,
- .name = "Contrast",
- .minimum = 0,
- .maximum = 64725,
- .step = 1,
- .default_value = 64725,
- },
- .set = sd_setcontrast,
- .get = sd_getcontrast,
- },
- #define MY_COLOR 2
- {
- {
- .id = V4L2_CID_SATURATION,
- .type = V4L2_CTRL_TYPE_INTEGER,
- .name = "Color",
- .minimum = 0,
- .maximum = 63,
- .step = 1,
- .default_value = 20,
- },
- .set = sd_setcolors,
- .get = sd_getcolors,
- },
- #define MY_BLUE_BALANCE 3
- {
- {
- .id = V4L2_CID_BLUE_BALANCE,
- .type = V4L2_CTRL_TYPE_INTEGER,
- .name = "Blue Balance",
- .minimum = 0,
- .maximum = 127,
- .step = 1,
- .default_value = 0,
- },
- .set = sd_setblue_balance,
- .get = sd_getblue_balance,
- },
- #define MY_RED_BALANCE 4
- {
- {
- .id = V4L2_CID_RED_BALANCE,
- .type = V4L2_CTRL_TYPE_INTEGER,
- .name = "Red Balance",
- .minimum = 0,
- .maximum = 127,
- .step = 1,
- .default_value = 0,
- },
- .set = sd_setred_balance,
- .get = sd_getred_balance,
- },
- };
- static const struct v4l2_pix_format vga_mode[] = {
- {160, 120, V4L2_PIX_FMT_SPCA501, V4L2_FIELD_NONE,
- .bytesperline = 160,
- .sizeimage = 160 * 120 * 3 / 2,
- .colorspace = V4L2_COLORSPACE_SRGB,
- .priv = 2},
- {320, 240, V4L2_PIX_FMT_SPCA501, V4L2_FIELD_NONE,
- .bytesperline = 320,
- .sizeimage = 320 * 240 * 3 / 2,
- .colorspace = V4L2_COLORSPACE_SRGB,
- .priv = 1},
- {640, 480, V4L2_PIX_FMT_SPCA501, V4L2_FIELD_NONE,
- .bytesperline = 640,
- .sizeimage = 640 * 480 * 3 / 2,
- .colorspace = V4L2_COLORSPACE_SRGB,
- .priv = 0},
- };
- #define SPCA50X_REG_USB 0x2 /* spca505 501 */
- /*
- * Data to initialize a SPCA501. From a capture file provided by Bill Roehl
- * With SPCA501 chip description
- */
- #define CCDSP_SET /* set CCDSP parameters */
- #define TG_SET /* set time generator set */
- #undef DSPWIN_SET /* set DSP windows parameters */
- #undef ALTER_GAMA /* Set alternate set to YUV transform coeffs. */
- #define SPCA501_SNAPBIT 0x80
- #define SPCA501_SNAPCTRL 0x10
- /* Frame packet header offsets for the spca501 */
- #define SPCA501_OFFSET_GPIO 1
- #define SPCA501_OFFSET_TYPE 2
- #define SPCA501_OFFSET_TURN3A 3
- #define SPCA501_OFFSET_FRAMSEQ 4
- #define SPCA501_OFFSET_COMPRESS 5
- #define SPCA501_OFFSET_QUANT 6
- #define SPCA501_OFFSET_QUANT2 7
- #define SPCA501_OFFSET_DATA 8
- #define SPCA501_PROP_COMP_ENABLE(d) ((d) & 1)
- #define SPCA501_PROP_SNAP(d) ((d) & 0x40)
- #define SPCA501_PROP_SNAP_CTRL(d) ((d) & 0x10)
- #define SPCA501_PROP_COMP_THRESH(d) (((d) & 0x0e) >> 1)
- #define SPCA501_PROP_COMP_QUANT(d) (((d) & 0x70) >> 4)
- /* SPCA501 CCDSP control */
- #define SPCA501_REG_CCDSP 0x01
- /* SPCA501 control/status registers */
- #define SPCA501_REG_CTLRL 0x02
- /* registers for color correction and YUV transformation */
- #define SPCA501_A11 0x08
- #define SPCA501_A12 0x09
- #define SPCA501_A13 0x0A
- #define SPCA501_A21 0x0B
- #define SPCA501_A22 0x0C
- #define SPCA501_A23 0x0D
- #define SPCA501_A31 0x0E
- #define SPCA501_A32 0x0F
- #define SPCA501_A33 0x10
- /* Data for video camera initialization before capturing */
- static const __u16 spca501_open_data[][3] = {
- /* bmRequest,value,index */
- {0x2, 0x50, 0x00}, /* C/S enable soft reset */
- {0x2, 0x40, 0x00}, /* C/S disable soft reset */
- {0x2, 0x02, 0x05}, /* C/S general purpose I/O data */
- {0x2, 0x03, 0x05}, /* C/S general purpose I/O data */
- #ifdef CCDSP_SET
- {0x1, 0x38, 0x01}, /* CCDSP options */
- {0x1, 0x05, 0x02}, /* CCDSP Optical black level for user settings */
- {0x1, 0xC0, 0x03}, /* CCDSP Optical black settings */
- {0x1, 0x67, 0x07},
- {0x1, 0x63, 0x3f}, /* CCDSP CCD gamma enable */
- {0x1, 0x03, 0x56}, /* Add gamma correction */
- {0x1, 0xFF, 0x15}, /* CCDSP High luminance for white balance */
- {0x1, 0x01, 0x16}, /* CCDSP Low luminance for white balance */
- /* Color correction and RGB-to-YUV transformation coefficients changing */
- #ifdef ALTER_GAMA
- {0x0, 0x00, 0x08}, /* A11 */
- {0x0, 0x00, 0x09}, /* A12 */
- {0x0, 0x90, 0x0A}, /* A13 */
- {0x0, 0x12, 0x0B}, /* A21 */
- {0x0, 0x00, 0x0C}, /* A22 */
- {0x0, 0x00, 0x0D}, /* A23 */
- {0x0, 0x00, 0x0E}, /* A31 */
- {0x0, 0x02, 0x0F}, /* A32 */
- {0x0, 0x00, 0x10}, /* A33 */
- #else
- {0x1, 0x2a, 0x08}, /* A11 0x31 */
- {0x1, 0xf8, 0x09}, /* A12 f8 */
- {0x1, 0xf8, 0x0A}, /* A13 f8 */
- {0x1, 0xf8, 0x0B}, /* A21 f8 */
- {0x1, 0x14, 0x0C}, /* A22 0x14 */
- {0x1, 0xf8, 0x0D}, /* A23 f8 */
- {0x1, 0xf8, 0x0E}, /* A31 f8 */
- {0x1, 0xf8, 0x0F}, /* A32 f8 */
- {0x1, 0x20, 0x10}, /* A33 0x20 */
- #endif
- {0x1, 0x00, 0x11}, /* R offset */
- {0x1, 0x00, 0x12}, /* G offset */
- {0x1, 0x00, 0x13}, /* B offset */
- {0x1, 0x00, 0x14}, /* GB offset */
- #endif
- #ifdef TG_SET
- /* Time generator manipulations */
- {0x0, 0xfc, 0x0}, /* Set up high bits of shutter speed */
- {0x0, 0x01, 0x1}, /* Set up low bits of shutter speed */
- {0x0, 0xe4, 0x04}, /* DCLK*2 clock phase adjustment */
- {0x0, 0x08, 0x05}, /* ADCK phase adjustment, inv. ext. VB */
- {0x0, 0x03, 0x06}, /* FR phase adjustment */
- {0x0, 0x01, 0x07}, /* FCDS phase adjustment */
- {0x0, 0x39, 0x08}, /* FS phase adjustment */
- {0x0, 0x88, 0x0a}, /* FH1 phase and delay adjustment */
- {0x0, 0x03, 0x0f}, /* pixel identification */
- {0x0, 0x00, 0x11}, /* clock source selection (default) */
- /*VERY strange manipulations with
- * select DMCLP or OBPX to be ADCLP output (0x0C)
- * OPB always toggle or not (0x0D) but they allow
- * us to set up brightness
- */
- {0x0, 0x01, 0x0c},
- {0x0, 0xe0, 0x0d},
- /* Done */
- #endif
- #ifdef DSPWIN_SET
- {0x1, 0xa0, 0x01}, /* Setting image processing parameters */
- {0x1, 0x1c, 0x17}, /* Changing Windows positions X1 */
- {0x1, 0xe2, 0x19}, /* X2 */
- {0x1, 0x1c, 0x1b}, /* X3 */
- {0x1, 0xe2, 0x1d}, /* X4 */
- {0x1, 0x5f, 0x1f}, /* X5 */
- {0x1, 0x32, 0x20}, /* Y5 */
- {0x1, 0x01, 0x10}, /* Changing A33 */
- #endif
- {0x2, 0x204a, 0x07},/* Setting video compression & resolution 160x120 */
- {0x2, 0x94, 0x06}, /* Setting video no compression */
- {}
- };
- /*
- The SPCAxxx docs from Sunplus document these values
- in tables, one table per register number. In the data
- below, dmRequest is the register number, index is the Addr,
- and value is a combination of Bit values.
- Bit Value (hex)
- 0 01
- 1 02
- 2 04
- 3 08
- 4 10
- 5 20
- 6 40
- 7 80
- */
- /* Data for chip initialization (set default values) */
- static const __u16 spca501_init_data[][3] = {
- /* Set all the values to powerup defaults */
- /* bmRequest,value,index */
- {0x0, 0xAA, 0x00},
- {0x0, 0x02, 0x01},
- {0x0, 0x01, 0x02},
- {0x0, 0x02, 0x03},
- {0x0, 0xCE, 0x04},
- {0x0, 0x00, 0x05},
- {0x0, 0x00, 0x06},
- {0x0, 0x00, 0x07},
- {0x0, 0x00, 0x08},
- {0x0, 0x00, 0x09},
- {0x0, 0x90, 0x0A},
- {0x0, 0x12, 0x0B},
- {0x0, 0x00, 0x0C},
- {0x0, 0x00, 0x0D},
- {0x0, 0x00, 0x0E},
- {0x0, 0x02, 0x0F},
- {0x0, 0x00, 0x10},
- {0x0, 0x00, 0x11},
- {0x0, 0x00, 0x12},
- {0x0, 0x00, 0x13},
- {0x0, 0x00, 0x14},
- {0x0, 0x00, 0x15},
- {0x0, 0x00, 0x16},
- {0x0, 0x00, 0x17},
- {0x0, 0x00, 0x18},
- {0x0, 0x00, 0x19},
- {0x0, 0x00, 0x1A},
- {0x0, 0x00, 0x1B},
- {0x0, 0x00, 0x1C},
- {0x0, 0x00, 0x1D},
- {0x0, 0x00, 0x1E},
- {0x0, 0x00, 0x1F},
- {0x0, 0x00, 0x20},
- {0x0, 0x00, 0x21},
- {0x0, 0x00, 0x22},
- {0x0, 0x00, 0x23},
- {0x0, 0x00, 0x24},
- {0x0, 0x00, 0x25},
- {0x0, 0x00, 0x26},
- {0x0, 0x00, 0x27},
- {0x0, 0x00, 0x28},
- {0x0, 0x00, 0x29},
- {0x0, 0x00, 0x2A},
- {0x0, 0x00, 0x2B},
- {0x0, 0x00, 0x2C},
- {0x0, 0x00, 0x2D},
- {0x0, 0x00, 0x2E},
- {0x0, 0x00, 0x2F},
- {0x0, 0x00, 0x30},
- {0x0, 0x00, 0x31},
- {0x0, 0x00, 0x32},
- {0x0, 0x00, 0x33},
- {0x0, 0x00, 0x34},
- {0x0, 0x00, 0x35},
- {0x0, 0x00, 0x36},
- {0x0, 0x00, 0x37},
- {0x0, 0x00, 0x38},
- {0x0, 0x00, 0x39},
- {0x0, 0x00, 0x3A},
- {0x0, 0x00, 0x3B},
- {0x0, 0x00, 0x3C},
- {0x0, 0x00, 0x3D},
- {0x0, 0x00, 0x3E},
- {0x0, 0x00, 0x3F},
- {0x0, 0x00, 0x40},
- {0x0, 0x00, 0x41},
- {0x0, 0x00, 0x42},
- {0x0, 0x00, 0x43},
- {0x0, 0x00, 0x44},
- {0x0, 0x00, 0x45},
- {0x0, 0x00, 0x46},
- {0x0, 0x00, 0x47},
- {0x0, 0x00, 0x48},
- {0x0, 0x00, 0x49},
- {0x0, 0x00, 0x4A},
- {0x0, 0x00, 0x4B},
- {0x0, 0x00, 0x4C},
- {0x0, 0x00, 0x4D},
- {0x0, 0x00, 0x4E},
- {0x0, 0x00, 0x4F},
- {0x0, 0x00, 0x50},
- {0x0, 0x00, 0x51},
- {0x0, 0x00, 0x52},
- {0x0, 0x00, 0x53},
- {0x0, 0x00, 0x54},
- {0x0, 0x00, 0x55},
- {0x0, 0x00, 0x56},
- {0x0, 0x00, 0x57},
- {0x0, 0x00, 0x58},
- {0x0, 0x00, 0x59},
- {0x0, 0x00, 0x5A},
- {0x0, 0x00, 0x5B},
- {0x0, 0x00, 0x5C},
- {0x0, 0x00, 0x5D},
- {0x0, 0x00, 0x5E},
- {0x0, 0x00, 0x5F},
- {0x0, 0x00, 0x60},
- {0x0, 0x00, 0x61},
- {0x0, 0x00, 0x62},
- {0x0, 0x00, 0x63},
- {0x0, 0x00, 0x64},
- {0x0, 0x00, 0x65},
- {0x0, 0x00, 0x66},
- {0x0, 0x00, 0x67},
- {0x0, 0x00, 0x68},
- {0x0, 0x00, 0x69},
- {0x0, 0x00, 0x6A},
- {0x0, 0x00, 0x6B},
- {0x0, 0x00, 0x6C},
- {0x0, 0x00, 0x6D},
- {0x0, 0x00, 0x6E},
- {0x0, 0x00, 0x6F},
- {0x0, 0x00, 0x70},
- {0x0, 0x00, 0x71},
- {0x0, 0x00, 0x72},
- {0x0, 0x00, 0x73},
- {0x0, 0x00, 0x74},
- {0x0, 0x00, 0x75},
- {0x0, 0x00, 0x76},
- {0x0, 0x00, 0x77},
- {0x0, 0x00, 0x78},
- {0x0, 0x00, 0x79},
- {0x0, 0x00, 0x7A},
- {0x0, 0x00, 0x7B},
- {0x0, 0x00, 0x7C},
- {0x0, 0x00, 0x7D},
- {0x0, 0x00, 0x7E},
- {0x0, 0x00, 0x7F},
- {0x0, 0x00, 0x80},
- {0x0, 0x00, 0x81},
- {0x0, 0x00, 0x82},
- {0x0, 0x00, 0x83},
- {0x0, 0x00, 0x84},
- {0x0, 0x00, 0x85},
- {0x0, 0x00, 0x86},
- {0x0, 0x00, 0x87},
- {0x0, 0x00, 0x88},
- {0x0, 0x00, 0x89},
- {0x0, 0x00, 0x8A},
- {0x0, 0x00, 0x8B},
- {0x0, 0x00, 0x8C},
- {0x0, 0x00, 0x8D},
- {0x0, 0x00, 0x8E},
- {0x0, 0x00, 0x8F},
- {0x0, 0x00, 0x90},
- {0x0, 0x00, 0x91},
- {0x0, 0x00, 0x92},
- {0x0, 0x00, 0x93},
- {0x0, 0x00, 0x94},
- {0x0, 0x00, 0x95},
- {0x0, 0x00, 0x96},
- {0x0, 0x00, 0x97},
- {0x0, 0x00, 0x98},
- {0x0, 0x00, 0x99},
- {0x0, 0x00, 0x9A},
- {0x0, 0x00, 0x9B},
- {0x0, 0x00, 0x9C},
- {0x0, 0x00, 0x9D},
- {0x0, 0x00, 0x9E},
- {0x0, 0x00, 0x9F},
- {0x0, 0x00, 0xA0},
- {0x0, 0x00, 0xA1},
- {0x0, 0x00, 0xA2},
- {0x0, 0x00, 0xA3},
- {0x0, 0x00, 0xA4},
- {0x0, 0x00, 0xA5},
- {0x0, 0x00, 0xA6},
- {0x0, 0x00, 0xA7},
- {0x0, 0x00, 0xA8},
- {0x0, 0x00, 0xA9},
- {0x0, 0x00, 0xAA},
- {0x0, 0x00, 0xAB},
- {0x0, 0x00, 0xAC},
- {0x0, 0x00, 0xAD},
- {0x0, 0x00, 0xAE},
- {0x0, 0x00, 0xAF},
- {0x0, 0x00, 0xB0},
- {0x0, 0x00, 0xB1},
- {0x0, 0x00, 0xB2},
- {0x0, 0x00, 0xB3},
- {0x0, 0x00, 0xB4},
- {0x0, 0x00, 0xB5},
- {0x0, 0x00, 0xB6},
- {0x0, 0x00, 0xB7},
- {0x0, 0x00, 0xB8},
- {0x0, 0x00, 0xB9},
- {0x0, 0x00, 0xBA},
- {0x0, 0x00, 0xBB},
- {0x0, 0x00, 0xBC},
- {0x0, 0x00, 0xBD},
- {0x0, 0x00, 0xBE},
- {0x0, 0x00, 0xBF},
- {0x0, 0x00, 0xC0},
- {0x0, 0x00, 0xC1},
- {0x0, 0x00, 0xC2},
- {0x0, 0x00, 0xC3},
- {0x0, 0x00, 0xC4},
- {0x0, 0x00, 0xC5},
- {0x0, 0x00, 0xC6},
- {0x0, 0x00, 0xC7},
- {0x0, 0x00, 0xC8},
- {0x0, 0x00, 0xC9},
- {0x0, 0x00, 0xCA},
- {0x0, 0x00, 0xCB},
- {0x0, 0x00, 0xCC},
- {0x1, 0xF4, 0x00},
- {0x1, 0x38, 0x01},
- {0x1, 0x40, 0x02},
- {0x1, 0x0A, 0x03},
- {0x1, 0x40, 0x04},
- {0x1, 0x40, 0x05},
- {0x1, 0x40, 0x06},
- {0x1, 0x67, 0x07},
- {0x1, 0x31, 0x08},
- {0x1, 0x00, 0x09},
- {0x1, 0x00, 0x0A},
- {0x1, 0x00, 0x0B},
- {0x1, 0x14, 0x0C},
- {0x1, 0x00, 0x0D},
- {0x1, 0x00, 0x0E},
- {0x1, 0x00, 0x0F},
- {0x1, 0x1E, 0x10},
- {0x1, 0x00, 0x11},
- {0x1, 0x00, 0x12},
- {0x1, 0x00, 0x13},
- {0x1, 0x00, 0x14},
- {0x1, 0xFF, 0x15},
- {0x1, 0x01, 0x16},
- {0x1, 0x32, 0x17},
- {0x1, 0x23, 0x18},
- {0x1, 0xCE, 0x19},
- {0x1, 0x23, 0x1A},
- {0x1, 0x32, 0x1B},
- {0x1, 0x8D, 0x1C},
- {0x1, 0xCE, 0x1D},
- {0x1, 0x8D, 0x1E},
- {0x1, 0x00, 0x1F},
- {0x1, 0x00, 0x20},
- {0x1, 0xFF, 0x3E},
- {0x1, 0x02, 0x3F},
- {0x1, 0x00, 0x40},
- {0x1, 0x00, 0x41},
- {0x1, 0x00, 0x42},
- {0x1, 0x00, 0x43},
- {0x1, 0x00, 0x44},
- {0x1, 0x00, 0x45},
- {0x1, 0x00, 0x46},
- {0x1, 0x00, 0x47},
- {0x1, 0x00, 0x48},
- {0x1, 0x00, 0x49},
- {0x1, 0x00, 0x4A},
- {0x1, 0x00, 0x4B},
- {0x1, 0x00, 0x4C},
- {0x1, 0x00, 0x4D},
- {0x1, 0x00, 0x4E},
- {0x1, 0x00, 0x4F},
- {0x1, 0x00, 0x50},
- {0x1, 0x00, 0x51},
- {0x1, 0x00, 0x52},
- {0x1, 0x00, 0x53},
- {0x1, 0x00, 0x54},
- {0x1, 0x00, 0x55},
- {0x1, 0x00, 0x56},
- {0x1, 0x00, 0x57},
- {0x1, 0x00, 0x58},
- {0x1, 0x00, 0x59},
- {0x1, 0x00, 0x5A},
- {0x2, 0x03, 0x00},
- {0x2, 0x00, 0x01},
- {0x2, 0x00, 0x05},
- {0x2, 0x00, 0x06},
- {0x2, 0x00, 0x07},
- {0x2, 0x00, 0x10},
- {0x2, 0x00, 0x11},
- /* Strange - looks like the 501 driver doesn't do anything
- * at insert time except read the EEPROM
- */
- {}
- };
- /* Data for video camera init before capture.
- * Capture and decoding by Colin Peart.
- * This is is for the 3com HomeConnect Lite which is spca501a based.
- */
- static const __u16 spca501_3com_open_data[][3] = {
- /* bmRequest,value,index */
- {0x2, 0x0050, 0x0000}, /* C/S Enable TG soft reset, timing mode=010 */
- {0x2, 0x0043, 0x0000}, /* C/S Disable TG soft reset, timing mode=010 */
- {0x2, 0x0002, 0x0005}, /* C/S GPIO */
- {0x2, 0x0003, 0x0005}, /* C/S GPIO */
- #ifdef CCDSP_SET
- {0x1, 0x0020, 0x0001}, /* CCDSP Options */
- {0x1, 0x0020, 0x0002}, /* CCDSP Black Level */
- {0x1, 0x006e, 0x0007}, /* CCDSP Gamma options */
- {0x1, 0x0090, 0x0015}, /* CCDSP Luminance Low */
- {0x1, 0x00ff, 0x0016}, /* CCDSP Luminance High */
- {0x1, 0x0003, 0x003F}, /* CCDSP Gamma correction toggle */
- #ifdef ALTER_GAMMA
- {0x1, 0x0010, 0x0008}, /* CCDSP YUV A11 */
- {0x1, 0x0000, 0x0009}, /* CCDSP YUV A12 */
- {0x1, 0x0000, 0x000a}, /* CCDSP YUV A13 */
- {0x1, 0x0000, 0x000b}, /* CCDSP YUV A21 */
- {0x1, 0x0010, 0x000c}, /* CCDSP YUV A22 */
- {0x1, 0x0000, 0x000d}, /* CCDSP YUV A23 */
- {0x1, 0x0000, 0x000e}, /* CCDSP YUV A31 */
- {0x1, 0x0000, 0x000f}, /* CCDSP YUV A32 */
- {0x1, 0x0010, 0x0010}, /* CCDSP YUV A33 */
- {0x1, 0x0000, 0x0011}, /* CCDSP R Offset */
- {0x1, 0x0000, 0x0012}, /* CCDSP G Offset */
- {0x1, 0x0001, 0x0013}, /* CCDSP B Offset */
- {0x1, 0x0001, 0x0014}, /* CCDSP BG Offset */
- {0x1, 0x003f, 0x00C1}, /* CCDSP Gamma Correction Enable */
- #endif
- #endif
- #ifdef TG_SET
- {0x0, 0x00fc, 0x0000}, /* TG Shutter Speed High Bits */
- {0x0, 0x0000, 0x0001}, /* TG Shutter Speed Low Bits */
- {0x0, 0x00e4, 0x0004}, /* TG DCLK*2 Adjust */
- {0x0, 0x0008, 0x0005}, /* TG ADCK Adjust */
- {0x0, 0x0003, 0x0006}, /* TG FR Phase Adjust */
- {0x0, 0x0001, 0x0007}, /* TG FCDS Phase Adjust */
- {0x0, 0x0039, 0x0008}, /* TG FS Phase Adjust */
- {0x0, 0x0088, 0x000a}, /* TG MH1 */
- {0x0, 0x0003, 0x000f}, /* TG Pixel ID */
- /* Like below, unexplained toglleing */
- {0x0, 0x0080, 0x000c},
- {0x0, 0x0000, 0x000d},
- {0x0, 0x0080, 0x000c},
- {0x0, 0x0004, 0x000d},
- {0x0, 0x0000, 0x000c},
- {0x0, 0x0000, 0x000d},
- {0x0, 0x0040, 0x000c},
- {0x0, 0x0017, 0x000d},
- {0x0, 0x00c0, 0x000c},
- {0x0, 0x0000, 0x000d},
- {0x0, 0x0080, 0x000c},
- {0x0, 0x0006, 0x000d},
- {0x0, 0x0080, 0x000c},
- {0x0, 0x0004, 0x000d},
- {0x0, 0x0002, 0x0003},
- #endif
- #ifdef DSPWIN_SET
- {0x1, 0x001c, 0x0017}, /* CCDSP W1 Start X */
- {0x1, 0x00e2, 0x0019}, /* CCDSP W2 Start X */
- {0x1, 0x001c, 0x001b}, /* CCDSP W3 Start X */
- {0x1, 0x00e2, 0x001d}, /* CCDSP W4 Start X */
- {0x1, 0x00aa, 0x001f}, /* CCDSP W5 Start X */
- {0x1, 0x0070, 0x0020}, /* CCDSP W5 Start Y */
- #endif
- {0x0, 0x0001, 0x0010}, /* TG Start Clock */
- /* {0x2, 0x006a, 0x0001}, * C/S Enable ISOSYNCH Packet Engine */
- {0x2, 0x0068, 0x0001}, /* C/S Diable ISOSYNCH Packet Engine */
- {0x2, 0x0000, 0x0005},
- {0x2, 0x0043, 0x0000}, /* C/S Set Timing Mode, Disable TG soft reset */
- {0x2, 0x0043, 0x0000}, /* C/S Set Timing Mode, Disable TG soft reset */
- {0x2, 0x0002, 0x0005}, /* C/S GPIO */
- {0x2, 0x0003, 0x0005}, /* C/S GPIO */
- {0x2, 0x006a, 0x0001}, /* C/S Enable ISOSYNCH Packet Engine */
- {}
- };
- /*
- * Data used to initialize a SPCA501C with HV7131B sensor.
- * From a capture file taken with USBSnoop v 1.5
- * I have a "SPCA501C pc camera chipset" manual by sunplus, but some
- * of the value meanings are obscure or simply "reserved".
- * to do list:
- * 1) Understand what every value means
- * 2) Understand why some values seem to appear more than once
- * 3) Write a small comment for each line of the following arrays.
- */
- static const __u16 spca501c_arowana_open_data[][3] = {
- /* bmRequest,value,index */
- {0x02, 0x0007, 0x0005},
- {0x02, 0xa048, 0x0000},
- {0x05, 0x0022, 0x0004},
- {0x01, 0x0006, 0x0011},
- {0x01, 0x00ff, 0x0012},
- {0x01, 0x0014, 0x0013},
- {0x01, 0x0000, 0x0014},
- {0x01, 0x0042, 0x0051},
- {0x01, 0x0040, 0x0052},
- {0x01, 0x0051, 0x0053},
- {0x01, 0x0040, 0x0054},
- {0x01, 0x0000, 0x0055},
- {0x00, 0x0025, 0x0000},
- {0x00, 0x0026, 0x0000},
- {0x00, 0x0001, 0x0000},
- {0x00, 0x0027, 0x0000},
- {0x00, 0x008a, 0x0000},
- {}
- };
- static const __u16 spca501c_arowana_init_data[][3] = {
- /* bmRequest,value,index */
- {0x02, 0x0007, 0x0005},
- {0x02, 0xa048, 0x0000},
- {0x05, 0x0022, 0x0004},
- {0x01, 0x0006, 0x0011},
- {0x01, 0x00ff, 0x0012},
- {0x01, 0x0014, 0x0013},
- {0x01, 0x0000, 0x0014},
- {0x01, 0x0042, 0x0051},
- {0x01, 0x0040, 0x0052},
- {0x01, 0x0051, 0x0053},
- {0x01, 0x0040, 0x0054},
- {0x01, 0x0000, 0x0055},
- {0x00, 0x0025, 0x0000},
- {0x00, 0x0026, 0x0000},
- {0x00, 0x0001, 0x0000},
- {0x00, 0x0027, 0x0000},
- {0x00, 0x008a, 0x0000},
- {0x02, 0x0000, 0x0005},
- {0x02, 0x0007, 0x0005},
- {0x02, 0x2000, 0x0000},
- {0x05, 0x0022, 0x0004},
- {0x05, 0x0015, 0x0001},
- {0x05, 0x00ea, 0x0000},
- {0x05, 0x0021, 0x0001},
- {0x05, 0x00d2, 0x0000},
- {0x05, 0x0023, 0x0001},
- {0x05, 0x0003, 0x0000},
- {0x05, 0x0030, 0x0001},
- {0x05, 0x002b, 0x0000},
- {0x05, 0x0031, 0x0001},
- {0x05, 0x0023, 0x0000},
- {0x05, 0x0032, 0x0001},
- {0x05, 0x0023, 0x0000},
- {0x05, 0x0033, 0x0001},
- {0x05, 0x0023, 0x0000},
- {0x05, 0x0034, 0x0001},
- {0x05, 0x0002, 0x0000},
- {0x05, 0x0050, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0051, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0052, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0054, 0x0001},
- {0x05, 0x0001, 0x0000},
- {0x00, 0x0000, 0x0001},
- {0x00, 0x0000, 0x0002},
- {0x00, 0x000c, 0x0003},
- {0x00, 0x0000, 0x0004},
- {0x00, 0x0090, 0x0005},
- {0x00, 0x0000, 0x0006},
- {0x00, 0x0040, 0x0007},
- {0x00, 0x00c0, 0x0008},
- {0x00, 0x004a, 0x0009},
- {0x00, 0x0000, 0x000a},
- {0x00, 0x0000, 0x000b},
- {0x00, 0x0001, 0x000c},
- {0x00, 0x0001, 0x000d},
- {0x00, 0x0000, 0x000e},
- {0x00, 0x0002, 0x000f},
- {0x00, 0x0001, 0x0010},
- {0x00, 0x0000, 0x0011},
- {0x00, 0x0000, 0x0012},
- {0x00, 0x0002, 0x0020},
- {0x00, 0x0080, 0x0021},
- {0x00, 0x0001, 0x0022},
- {0x00, 0x00e0, 0x0023},
- {0x00, 0x0000, 0x0024},
- {0x00, 0x00d5, 0x0025},
- {0x00, 0x0000, 0x0026},
- {0x00, 0x000b, 0x0027},
- {0x00, 0x0000, 0x0046},
- {0x00, 0x0000, 0x0047},
- {0x00, 0x0000, 0x0048},
- {0x00, 0x0000, 0x0049},
- {0x00, 0x0008, 0x004a},
- {0xff, 0x0000, 0x00d0},
- {0xff, 0x00d8, 0x00d1},
- {0xff, 0x0000, 0x00d4},
- {0xff, 0x0000, 0x00d5},
- {0x01, 0x00a6, 0x0000},
- {0x01, 0x0028, 0x0001},
- {0x01, 0x0000, 0x0002},
- {0x01, 0x000a, 0x0003},
- {0x01, 0x0040, 0x0004},
- {0x01, 0x0066, 0x0007},
- {0x01, 0x0011, 0x0008},
- {0x01, 0x0032, 0x0009},
- {0x01, 0x00fd, 0x000a},
- {0x01, 0x0038, 0x000b},
- {0x01, 0x00d1, 0x000c},
- {0x01, 0x00f7, 0x000d},
- {0x01, 0x00ed, 0x000e},
- {0x01, 0x00d8, 0x000f},
- {0x01, 0x0038, 0x0010},
- {0x01, 0x00ff, 0x0015},
- {0x01, 0x0001, 0x0016},
- {0x01, 0x0032, 0x0017},
- {0x01, 0x0023, 0x0018},
- {0x01, 0x00ce, 0x0019},
- {0x01, 0x0023, 0x001a},
- {0x01, 0x0032, 0x001b},
- {0x01, 0x008d, 0x001c},
- {0x01, 0x00ce, 0x001d},
- {0x01, 0x008d, 0x001e},
- {0x01, 0x0000, 0x001f},
- {0x01, 0x0000, 0x0020},
- {0x01, 0x00ff, 0x003e},
- {0x01, 0x0003, 0x003f},
- {0x01, 0x0000, 0x0040},
- {0x01, 0x0035, 0x0041},
- {0x01, 0x0053, 0x0042},
- {0x01, 0x0069, 0x0043},
- {0x01, 0x007c, 0x0044},
- {0x01, 0x008c, 0x0045},
- {0x01, 0x009a, 0x0046},
- {0x01, 0x00a8, 0x0047},
- {0x01, 0x00b4, 0x0048},
- {0x01, 0x00bf, 0x0049},
- {0x01, 0x00ca, 0x004a},
- {0x01, 0x00d4, 0x004b},
- {0x01, 0x00dd, 0x004c},
- {0x01, 0x00e7, 0x004d},
- {0x01, 0x00ef, 0x004e},
- {0x01, 0x00f8, 0x004f},
- {0x01, 0x00ff, 0x0050},
- {0x01, 0x0001, 0x0056},
- {0x01, 0x0060, 0x0057},
- {0x01, 0x0040, 0x0058},
- {0x01, 0x0011, 0x0059},
- {0x01, 0x0001, 0x005a},
- {0x02, 0x0007, 0x0005},
- {0x02, 0xa048, 0x0000},
- {0x02, 0x0007, 0x0005},
- {0x02, 0x0015, 0x0006},
- {0x02, 0x100a, 0x0007},
- {0x02, 0xa048, 0x0000},
- {0x02, 0xc002, 0x0001},
- {0x02, 0x000f, 0x0005},
- {0x02, 0xa048, 0x0000},
- {0x05, 0x0022, 0x0004},
- {0x05, 0x0025, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0026, 0x0001},
- {0x05, 0x0001, 0x0000},
- {0x05, 0x0027, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0001, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0021, 0x0001},
- {0x05, 0x00d2, 0x0000},
- {0x05, 0x0020, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x00, 0x0090, 0x0005},
- {0x01, 0x00a6, 0x0000},
- {0x02, 0x0007, 0x0005},
- {0x02, 0x2000, 0x0000},
- {0x05, 0x0022, 0x0004},
- {0x05, 0x0015, 0x0001},
- {0x05, 0x00ea, 0x0000},
- {0x05, 0x0021, 0x0001},
- {0x05, 0x00d2, 0x0000},
- {0x05, 0x0023, 0x0001},
- {0x05, 0x0003, 0x0000},
- {0x05, 0x0030, 0x0001},
- {0x05, 0x002b, 0x0000},
- {0x05, 0x0031, 0x0001},
- {0x05, 0x0023, 0x0000},
- {0x05, 0x0032, 0x0001},
- {0x05, 0x0023, 0x0000},
- {0x05, 0x0033, 0x0001},
- {0x05, 0x0023, 0x0000},
- {0x05, 0x0034, 0x0001},
- {0x05, 0x0002, 0x0000},
- {0x05, 0x0050, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0051, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0052, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0054, 0x0001},
- {0x05, 0x0001, 0x0000},
- {0x00, 0x0000, 0x0001},
- {0x00, 0x0000, 0x0002},
- {0x00, 0x000c, 0x0003},
- {0x00, 0x0000, 0x0004},
- {0x00, 0x0090, 0x0005},
- {0x00, 0x0000, 0x0006},
- {0x00, 0x0040, 0x0007},
- {0x00, 0x00c0, 0x0008},
- {0x00, 0x004a, 0x0009},
- {0x00, 0x0000, 0x000a},
- {0x00, 0x0000, 0x000b},
- {0x00, 0x0001, 0x000c},
- {0x00, 0x0001, 0x000d},
- {0x00, 0x0000, 0x000e},
- {0x00, 0x0002, 0x000f},
- {0x00, 0x0001, 0x0010},
- {0x00, 0x0000, 0x0011},
- {0x00, 0x0000, 0x0012},
- {0x00, 0x0002, 0x0020},
- {0x00, 0x0080, 0x0021},
- {0x00, 0x0001, 0x0022},
- {0x00, 0x00e0, 0x0023},
- {0x00, 0x0000, 0x0024},
- {0x00, 0x00d5, 0x0025},
- {0x00, 0x0000, 0x0026},
- {0x00, 0x000b, 0x0027},
- {0x00, 0x0000, 0x0046},
- {0x00, 0x0000, 0x0047},
- {0x00, 0x0000, 0x0048},
- {0x00, 0x0000, 0x0049},
- {0x00, 0x0008, 0x004a},
- {0xff, 0x0000, 0x00d0},
- {0xff, 0x00d8, 0x00d1},
- {0xff, 0x0000, 0x00d4},
- {0xff, 0x0000, 0x00d5},
- {0x01, 0x00a6, 0x0000},
- {0x01, 0x0028, 0x0001},
- {0x01, 0x0000, 0x0002},
- {0x01, 0x000a, 0x0003},
- {0x01, 0x0040, 0x0004},
- {0x01, 0x0066, 0x0007},
- {0x01, 0x0011, 0x0008},
- {0x01, 0x0032, 0x0009},
- {0x01, 0x00fd, 0x000a},
- {0x01, 0x0038, 0x000b},
- {0x01, 0x00d1, 0x000c},
- {0x01, 0x00f7, 0x000d},
- {0x01, 0x00ed, 0x000e},
- {0x01, 0x00d8, 0x000f},
- {0x01, 0x0038, 0x0010},
- {0x01, 0x00ff, 0x0015},
- {0x01, 0x0001, 0x0016},
- {0x01, 0x0032, 0x0017},
- {0x01, 0x0023, 0x0018},
- {0x01, 0x00ce, 0x0019},
- {0x01, 0x0023, 0x001a},
- {0x01, 0x0032, 0x001b},
- {0x01, 0x008d, 0x001c},
- {0x01, 0x00ce, 0x001d},
- {0x01, 0x008d, 0x001e},
- {0x01, 0x0000, 0x001f},
- {0x01, 0x0000, 0x0020},
- {0x01, 0x00ff, 0x003e},
- {0x01, 0x0003, 0x003f},
- {0x01, 0x0000, 0x0040},
- {0x01, 0x0035, 0x0041},
- {0x01, 0x0053, 0x0042},
- {0x01, 0x0069, 0x0043},
- {0x01, 0x007c, 0x0044},
- {0x01, 0x008c, 0x0045},
- {0x01, 0x009a, 0x0046},
- {0x01, 0x00a8, 0x0047},
- {0x01, 0x00b4, 0x0048},
- {0x01, 0x00bf, 0x0049},
- {0x01, 0x00ca, 0x004a},
- {0x01, 0x00d4, 0x004b},
- {0x01, 0x00dd, 0x004c},
- {0x01, 0x00e7, 0x004d},
- {0x01, 0x00ef, 0x004e},
- {0x01, 0x00f8, 0x004f},
- {0x01, 0x00ff, 0x0050},
- {0x01, 0x0001, 0x0056},
- {0x01, 0x0060, 0x0057},
- {0x01, 0x0040, 0x0058},
- {0x01, 0x0011, 0x0059},
- {0x01, 0x0001, 0x005a},
- {0x02, 0x0007, 0x0005},
- {0x02, 0xa048, 0x0000},
- {0x02, 0x0007, 0x0005},
- {0x02, 0x0015, 0x0006},
- {0x02, 0x100a, 0x0007},
- {0x02, 0xa048, 0x0000},
- {0x02, 0xc002, 0x0001},
- {0x02, 0x000f, 0x0005},
- {0x02, 0xa048, 0x0000},
- {0x05, 0x0022, 0x0004},
- {0x05, 0x0025, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0026, 0x0001},
- {0x05, 0x0001, 0x0000},
- {0x05, 0x0027, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0001, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0021, 0x0001},
- {0x05, 0x00d2, 0x0000},
- {0x05, 0x0020, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x00, 0x0090, 0x0005},
- {0x01, 0x00a6, 0x0000},
- {0x01, 0x0003, 0x003f},
- {0x01, 0x0001, 0x0056},
- {0x01, 0x0011, 0x0008},
- {0x01, 0x0032, 0x0009},
- {0x01, 0xfffd, 0x000a},
- {0x01, 0x0023, 0x000b},
- {0x01, 0xffea, 0x000c},
- {0x01, 0xfff4, 0x000d},
- {0x01, 0xfffc, 0x000e},
- {0x01, 0xffe3, 0x000f},
- {0x01, 0x001f, 0x0010},
- {0x01, 0x00a8, 0x0001},
- {0x01, 0x0067, 0x0007},
- {0x01, 0x0032, 0x0017},
- {0x01, 0x0023, 0x0018},
- {0x01, 0x00ce, 0x0019},
- {0x01, 0x0023, 0x001a},
- {0x01, 0x0032, 0x001b},
- {0x01, 0x008d, 0x001c},
- {0x01, 0x00ce, 0x001d},
- {0x01, 0x008d, 0x001e},
- {0x01, 0x00c8, 0x0015},
- {0x01, 0x0032, 0x0016},
- {0x01, 0x0000, 0x0011},
- {0x01, 0x0000, 0x0012},
- {0x01, 0x0000, 0x0013},
- {0x01, 0x000a, 0x0003},
- {0x02, 0xc002, 0x0001},
- {0x02, 0x0007, 0x0005},
- {0x02, 0xc000, 0x0001},
- {0x02, 0x0000, 0x0005},
- {0x02, 0x0007, 0x0005},
- {0x02, 0x2000, 0x0000},
- {0x05, 0x0022, 0x0004},
- {0x05, 0x0015, 0x0001},
- {0x05, 0x00ea, 0x0000},
- {0x05, 0x0021, 0x0001},
- {0x05, 0x00d2, 0x0000},
- {0x05, 0x0023, 0x0001},
- {0x05, 0x0003, 0x0000},
- {0x05, 0x0030, 0x0001},
- {0x05, 0x002b, 0x0000},
- {0x05, 0x0031, 0x0001},
- {0x05, 0x0023, 0x0000},
- {0x05, 0x0032, 0x0001},
- {0x05, 0x0023, 0x0000},
- {0x05, 0x0033, 0x0001},
- {0x05, 0x0023, 0x0000},
- {0x05, 0x0034, 0x0001},
- {0x05, 0x0002, 0x0000},
- {0x05, 0x0050, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0051, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0052, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0054, 0x0001},
- {0x05, 0x0001, 0x0000},
- {0x00, 0x0000, 0x0001},
- {0x00, 0x0000, 0x0002},
- {0x00, 0x000c, 0x0003},
- {0x00, 0x0000, 0x0004},
- {0x00, 0x0090, 0x0005},
- {0x00, 0x0000, 0x0006},
- {0x00, 0x0040, 0x0007},
- {0x00, 0x00c0, 0x0008},
- {0x00, 0x004a, 0x0009},
- {0x00, 0x0000, 0x000a},
- {0x00, 0x0000, 0x000b},
- {0x00, 0x0001, 0x000c},
- {0x00, 0x0001, 0x000d},
- {0x00, 0x0000, 0x000e},
- {0x00, 0x0002, 0x000f},
- {0x00, 0x0001, 0x0010},
- {0x00, 0x0000, 0x0011},
- {0x00, 0x0000, 0x0012},
- {0x00, 0x0002, 0x0020},
- {0x00, 0x0080, 0x0021},
- {0x00, 0x0001, 0x0022},
- {0x00, 0x00e0, 0x0023},
- {0x00, 0x0000, 0x0024},
- {0x00, 0x00d5, 0x0025},
- {0x00, 0x0000, 0x0026},
- {0x00, 0x000b, 0x0027},
- {0x00, 0x0000, 0x0046},
- {0x00, 0x0000, 0x0047},
- {0x00, 0x0000, 0x0048},
- {0x00, 0x0000, 0x0049},
- {0x00, 0x0008, 0x004a},
- {0xff, 0x0000, 0x00d0},
- {0xff, 0x00d8, 0x00d1},
- {0xff, 0x0000, 0x00d4},
- {0xff, 0x0000, 0x00d5},
- {0x01, 0x00a6, 0x0000},
- {0x01, 0x0028, 0x0001},
- {0x01, 0x0000, 0x0002},
- {0x01, 0x000a, 0x0003},
- {0x01, 0x0040, 0x0004},
- {0x01, 0x0066, 0x0007},
- {0x01, 0x0011, 0x0008},
- {0x01, 0x0032, 0x0009},
- {0x01, 0x00fd, 0x000a},
- {0x01, 0x0038, 0x000b},
- {0x01, 0x00d1, 0x000c},
- {0x01, 0x00f7, 0x000d},
- {0x01, 0x00ed, 0x000e},
- {0x01, 0x00d8, 0x000f},
- {0x01, 0x0038, 0x0010},
- {0x01, 0x00ff, 0x0015},
- {0x01, 0x0001, 0x0016},
- {0x01, 0x0032, 0x0017},
- {0x01, 0x0023, 0x0018},
- {0x01, 0x00ce, 0x0019},
- {0x01, 0x0023, 0x001a},
- {0x01, 0x0032, 0x001b},
- {0x01, 0x008d, 0x001c},
- {0x01, 0x00ce, 0x001d},
- {0x01, 0x008d, 0x001e},
- {0x01, 0x0000, 0x001f},
- {0x01, 0x0000, 0x0020},
- {0x01, 0x00ff, 0x003e},
- {0x01, 0x0003, 0x003f},
- {0x01, 0x0000, 0x0040},
- {0x01, 0x0035, 0x0041},
- {0x01, 0x0053, 0x0042},
- {0x01, 0x0069, 0x0043},
- {0x01, 0x007c, 0x0044},
- {0x01, 0x008c, 0x0045},
- {0x01, 0x009a, 0x0046},
- {0x01, 0x00a8, 0x0047},
- {0x01, 0x00b4, 0x0048},
- {0x01, 0x00bf, 0x0049},
- {0x01, 0x00ca, 0x004a},
- {0x01, 0x00d4, 0x004b},
- {0x01, 0x00dd, 0x004c},
- {0x01, 0x00e7, 0x004d},
- {0x01, 0x00ef, 0x004e},
- {0x01, 0x00f8, 0x004f},
- {0x01, 0x00ff, 0x0050},
- {0x01, 0x0001, 0x0056},
- {0x01, 0x0060, 0x0057},
- {0x01, 0x0040, 0x0058},
- {0x01, 0x0011, 0x0059},
- {0x01, 0x0001, 0x005a},
- {0x02, 0x0007, 0x0005},
- {0x02, 0xa048, 0x0000},
- {0x02, 0x0007, 0x0005},
- {0x02, 0x0015, 0x0006},
- {0x02, 0x100a, 0x0007},
- {0x02, 0xa048, 0x0000},
- {0x02, 0xc002, 0x0001},
- {0x02, 0x000f, 0x0005},
- {0x02, 0xa048, 0x0000},
- {0x05, 0x0022, 0x0004},
- {0x05, 0x0025, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0026, 0x0001},
- {0x05, 0x0001, 0x0000},
- {0x05, 0x0027, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0001, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0021, 0x0001},
- {0x05, 0x00d2, 0x0000},
- {0x05, 0x0020, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x00, 0x0090, 0x0005},
- {0x01, 0x00a6, 0x0000},
- {0x02, 0x0007, 0x0005},
- {0x02, 0x2000, 0x0000},
- {0x05, 0x0022, 0x0004},
- {0x05, 0x0015, 0x0001},
- {0x05, 0x00ea, 0x0000},
- {0x05, 0x0021, 0x0001},
- {0x05, 0x00d2, 0x0000},
- {0x05, 0x0023, 0x0001},
- {0x05, 0x0003, 0x0000},
- {0x05, 0x0030, 0x0001},
- {0x05, 0x002b, 0x0000},
- {0x05, 0x0031, 0x0001},
- {0x05, 0x0023, 0x0000},
- {0x05, 0x0032, 0x0001},
- {0x05, 0x0023, 0x0000},
- {0x05, 0x0033, 0x0001},
- {0x05, 0x0023, 0x0000},
- {0x05, 0x0034, 0x0001},
- {0x05, 0x0002, 0x0000},
- {0x05, 0x0050, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0051, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0052, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0054, 0x0001},
- {0x05, 0x0001, 0x0000},
- {0x00, 0x0000, 0x0001},
- {0x00, 0x0000, 0x0002},
- {0x00, 0x000c, 0x0003},
- {0x00, 0x0000, 0x0004},
- {0x00, 0x0090, 0x0005},
- {0x00, 0x0000, 0x0006},
- {0x00, 0x0040, 0x0007},
- {0x00, 0x00c0, 0x0008},
- {0x00, 0x004a, 0x0009},
- {0x00, 0x0000, 0x000a},
- {0x00, 0x0000, 0x000b},
- {0x00, 0x0001, 0x000c},
- {0x00, 0x0001, 0x000d},
- {0x00, 0x0000, 0x000e},
- {0x00, 0x0002, 0x000f},
- {0x00, 0x0001, 0x0010},
- {0x00, 0x0000, 0x0011},
- {0x00, 0x0000, 0x0012},
- {0x00, 0x0002, 0x0020},
- {0x00, 0x0080, 0x0021},
- {0x00, 0x0001, 0x0022},
- {0x00, 0x00e0, 0x0023},
- {0x00, 0x0000, 0x0024},
- {0x00, 0x00d5, 0x0025},
- {0x00, 0x0000, 0x0026},
- {0x00, 0x000b, 0x0027},
- {0x00, 0x0000, 0x0046},
- {0x00, 0x0000, 0x0047},
- {0x00, 0x0000, 0x0048},
- {0x00, 0x0000, 0x0049},
- {0x00, 0x0008, 0x004a},
- {0xff, 0x0000, 0x00d0},
- {0xff, 0x00d8, 0x00d1},
- {0xff, 0x0000, 0x00d4},
- {0xff, 0x0000, 0x00d5},
- {0x01, 0x00a6, 0x0000},
- {0x01, 0x0028, 0x0001},
- {0x01, 0x0000, 0x0002},
- {0x01, 0x000a, 0x0003},
- {0x01, 0x0040, 0x0004},
- {0x01, 0x0066, 0x0007},
- {0x01, 0x0011, 0x0008},
- {0x01, 0x0032, 0x0009},
- {0x01, 0x00fd, 0x000a},
- {0x01, 0x0038, 0x000b},
- {0x01, 0x00d1, 0x000c},
- {0x01, 0x00f7, 0x000d},
- {0x01, 0x00ed, 0x000e},
- {0x01, 0x00d8, 0x000f},
- {0x01, 0x0038, 0x0010},
- {0x01, 0x00ff, 0x0015},
- {0x01, 0x0001, 0x0016},
- {0x01, 0x0032, 0x0017},
- {0x01, 0x0023, 0x0018},
- {0x01, 0x00ce, 0x0019},
- {0x01, 0x0023, 0x001a},
- {0x01, 0x0032, 0x001b},
- {0x01, 0x008d, 0x001c},
- {0x01, 0x00ce, 0x001d},
- {0x01, 0x008d, 0x001e},
- {0x01, 0x0000, 0x001f},
- {0x01, 0x0000, 0x0020},
- {0x01, 0x00ff, 0x003e},
- {0x01, 0x0003, 0x003f},
- {0x01, 0x0000, 0x0040},
- {0x01, 0x0035, 0x0041},
- {0x01, 0x0053, 0x0042},
- {0x01, 0x0069, 0x0043},
- {0x01, 0x007c, 0x0044},
- {0x01, 0x008c, 0x0045},
- {0x01, 0x009a, 0x0046},
- {0x01, 0x00a8, 0x0047},
- {0x01, 0x00b4, 0x0048},
- {0x01, 0x00bf, 0x0049},
- {0x01, 0x00ca, 0x004a},
- {0x01, 0x00d4, 0x004b},
- {0x01, 0x00dd, 0x004c},
- {0x01, 0x00e7, 0x004d},
- {0x01, 0x00ef, 0x004e},
- {0x01, 0x00f8, 0x004f},
- {0x01, 0x00ff, 0x0050},
- {0x01, 0x0001, 0x0056},
- {0x01, 0x0060, 0x0057},
- {0x01, 0x0040, 0x0058},
- {0x01, 0x0011, 0x0059},
- {0x01, 0x0001, 0x005a},
- {0x02, 0x0007, 0x0005},
- {0x02, 0xa048, 0x0000},
- {0x02, 0x0007, 0x0005},
- {0x02, 0x0015, 0x0006},
- {0x02, 0x100a, 0x0007},
- {0x02, 0xa048, 0x0000},
- {0x02, 0xc002, 0x0001},
- {0x02, 0x000f, 0x0005},
- {0x02, 0xa048, 0x0000},
- {0x05, 0x0022, 0x0004},
- {0x05, 0x0025, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0026, 0x0001},
- {0x05, 0x0001, 0x0000},
- {0x05, 0x0027, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0001, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0021, 0x0001},
- {0x05, 0x00d2, 0x0000},
- {0x05, 0x0020, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x00, 0x0090, 0x0005},
- {0x01, 0x00a6, 0x0000},
- {0x05, 0x0026, 0x0001},
- {0x05, 0x0001, 0x0000},
- {0x05, 0x0027, 0x0001},
- {0x05, 0x000f, 0x0000},
- {0x01, 0x0003, 0x003f},
- {0x01, 0x0001, 0x0056},
- {0x01, 0x0011, 0x0008},
- {0x01, 0x0032, 0x0009},
- {0x01, 0xfffd, 0x000a},
- {0x01, 0x0023, 0x000b},
- {0x01, 0xffea, 0x000c},
- {0x01, 0xfff4, 0x000d},
- {0x01, 0xfffc, 0x000e},
- {0x01, 0xffe3, 0x000f},
- {0x01, 0x001f, 0x0010},
- {0x01, 0x00a8, 0x0001},
- {0x01, 0x0067, 0x0007},
- {0x01, 0x0042, 0x0051},
- {0x01, 0x0051, 0x0053},
- {0x01, 0x000a, 0x0003},
- {0x02, 0xc002, 0x0001},
- {0x02, 0x0007, 0x0005},
- {0x02, 0xc000, 0x0001},
- {0x02, 0x0000, 0x0005},
- {0x02, 0x0007, 0x0005},
- {0x02, 0x2000, 0x0000},
- {0x05, 0x0022, 0x0004},
- {0x05, 0x0015, 0x0001},
- {0x05, 0x00ea, 0x0000},
- {0x05, 0x0021, 0x0001},
- {0x05, 0x00d2, 0x0000},
- {0x05, 0x0023, 0x0001},
- {0x05, 0x0003, 0x0000},
- {0x05, 0x0030, 0x0001},
- {0x05, 0x002b, 0x0000},
- {0x05, 0x0031, 0x0001},
- {0x05, 0x0023, 0x0000},
- {0x05, 0x0032, 0x0001},
- {0x05, 0x0023, 0x0000},
- {0x05, 0x0033, 0x0001},
- {0x05, 0x0023, 0x0000},
- {0x05, 0x0034, 0x0001},
- {0x05, 0x0002, 0x0000},
- {0x05, 0x0050, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0051, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0052, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0054, 0x0001},
- {0x05, 0x0001, 0x0000},
- {0x00, 0x0000, 0x0001},
- {0x00, 0x0000, 0x0002},
- {0x00, 0x000c, 0x0003},
- {0x00, 0x0000, 0x0004},
- {0x00, 0x0090, 0x0005},
- {0x00, 0x0000, 0x0006},
- {0x00, 0x0040, 0x0007},
- {0x00, 0x00c0, 0x0008},
- {0x00, 0x004a, 0x0009},
- {0x00, 0x0000, 0x000a},
- {0x00, 0x0000, 0x000b},
- {0x00, 0x0001, 0x000c},
- {0x00, 0x0001, 0x000d},
- {0x00, 0x0000, 0x000e},
- {0x00, 0x0002, 0x000f},
- {0x00, 0x0001, 0x0010},
- {0x00, 0x0000, 0x0011},
- {0x00, 0x0000, 0x0012},
- {0x00, 0x0002, 0x0020},
- {0x00, 0x0080, 0x0021},
- {0x00, 0x0001, 0x0022},
- {0x00, 0x00e0, 0x0023},
- {0x00, 0x0000, 0x0024},
- {0x00, 0x00d5, 0x0025},
- {0x00, 0x0000, 0x0026},
- {0x00, 0x000b, 0x0027},
- {0x00, 0x0000, 0x0046},
- {0x00, 0x0000, 0x0047},
- {0x00, 0x0000, 0x0048},
- {0x00, 0x0000, 0x0049},
- {0x00, 0x0008, 0x004a},
- {0xff, 0x0000, 0x00d0},
- {0xff, 0x00d8, 0x00d1},
- {0xff, 0x0000, 0x00d4},
- {0xff, 0x0000, 0x00d5},
- {0x01, 0x00a6, 0x0000},
- {0x01, 0x0028, 0x0001},
- {0x01, 0x0000, 0x0002},
- {0x01, 0x000a, 0x0003},
- {0x01, 0x0040, 0x0004},
- {0x01, 0x0066, 0x0007},
- {0x01, 0x0011, 0x0008},
- {0x01, 0x0032, 0x0009},
- {0x01, 0x00fd, 0x000a},
- {0x01, 0x0038, 0x000b},
- {0x01, 0x00d1, 0x000c},
- {0x01, 0x00f7, 0x000d},
- {0x01, 0x00ed, 0x000e},
- {0x01, 0x00d8, 0x000f},
- {0x01, 0x0038, 0x0010},
- {0x01, 0x00ff, 0x0015},
- {0x01, 0x0001, 0x0016},
- {0x01, 0x0032, 0x0017},
- {0x01, 0x0023, 0x0018},
- {0x01, 0x00ce, 0x0019},
- {0x01, 0x0023, 0x001a},
- {0x01, 0x0032, 0x001b},
- {0x01, 0x008d, 0x001c},
- {0x01, 0x00ce, 0x001d},
- {0x01, 0x008d, 0x001e},
- {0x01, 0x0000, 0x001f},
- {0x01, 0x0000, 0x0020},
- {0x01, 0x00ff, 0x003e},
- {0x01, 0x0003, 0x003f},
- {0x01, 0x0000, 0x0040},
- {0x01, 0x0035, 0x0041},
- {0x01, 0x0053, 0x0042},
- {0x01, 0x0069, 0x0043},
- {0x01, 0x007c, 0x0044},
- {0x01, 0x008c, 0x0045},
- {0x01, 0x009a, 0x0046},
- {0x01, 0x00a8, 0x0047},
- {0x01, 0x00b4, 0x0048},
- {0x01, 0x00bf, 0x0049},
- {0x01, 0x00ca, 0x004a},
- {0x01, 0x00d4, 0x004b},
- {0x01, 0x00dd, 0x004c},
- {0x01, 0x00e7, 0x004d},
- {0x01, 0x00ef, 0x004e},
- {0x01, 0x00f8, 0x004f},
- {0x01, 0x00ff, 0x0050},
- {0x01, 0x0001, 0x0056},
- {0x01, 0x0060, 0x0057},
- {0x01, 0x0040, 0x0058},
- {0x01, 0x0011, 0x0059},
- {0x01, 0x0001, 0x005a},
- {0x02, 0x0007, 0x0005},
- {0x02, 0xa048, 0x0000},
- {0x02, 0x0007, 0x0005},
- {0x02, 0x0015, 0x0006},
- {0x02, 0x100a, 0x0007},
- {0x02, 0xa048, 0x0000},
- {0x02, 0xc002, 0x0001},
- {0x02, 0x000f, 0x0005},
- {0x02, 0xa048, 0x0000},
- {0x05, 0x0022, 0x0004},
- {0x05, 0x0025, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0026, 0x0001},
- {0x05, 0x0001, 0x0000},
- {0x05, 0x0027, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0001, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0021, 0x0001},
- {0x05, 0x00d2, 0x0000},
- {0x05, 0x0020, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x00, 0x0090, 0x0005},
- {0x01, 0x00a6, 0x0000},
- {0x02, 0x0007, 0x0005},
- {0x02, 0x2000, 0x0000},
- {0x05, 0x0022, 0x0004},
- {0x05, 0x0015, 0x0001},
- {0x05, 0x00ea, 0x0000},
- {0x05, 0x0021, 0x0001},
- {0x05, 0x00d2, 0x0000},
- {0x05, 0x0023, 0x0001},
- {0x05, 0x0003, 0x0000},
- {0x05, 0x0030, 0x0001},
- {0x05, 0x002b, 0x0000},
- {0x05, 0x0031, 0x0001},
- {0x05, 0x0023, 0x0000},
- {0x05, 0x0032, 0x0001},
- {0x05, 0x0023, 0x0000},
- {0x05, 0x0033, 0x0001},
- {0x05, 0x0023, 0x0000},
- {0x05, 0x0034, 0x0001},
- {0x05, 0x0002, 0x0000},
- {0x05, 0x0050, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0051, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0052, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0054, 0x0001},
- {0x05, 0x0001, 0x0000},
- {0x00, 0x0000, 0x0001},
- {0x00, 0x0000, 0x0002},
- {0x00, 0x000c, 0x0003},
- {0x00, 0x0000, 0x0004},
- {0x00, 0x0090, 0x0005},
- {0x00, 0x0000, 0x0006},
- {0x00, 0x0040, 0x0007},
- {0x00, 0x00c0, 0x0008},
- {0x00, 0x004a, 0x0009},
- {0x00, 0x0000, 0x000a},
- {0x00, 0x0000, 0x000b},
- {0x00, 0x0001, 0x000c},
- {0x00, 0x0001, 0x000d},
- {0x00, 0x0000, 0x000e},
- {0x00, 0x0002, 0x000f},
- {0x00, 0x0001, 0x0010},
- {0x00, 0x0000, 0x0011},
- {0x00, 0x0000, 0x0012},
- {0x00, 0x0002, 0x0020},
- {0x00, 0x0080, 0x0021},
- {0x00, 0x0001, 0x0022},
- {0x00, 0x00e0, 0x0023},
- {0x00, 0x0000, 0x0024},
- {0x00, 0x00d5, 0x0025},
- {0x00, 0x0000, 0x0026},
- {0x00, 0x000b, 0x0027},
- {0x00, 0x0000, 0x0046},
- {0x00, 0x0000, 0x0047},
- {0x00, 0x0000, 0x0048},
- {0x00, 0x0000, 0x0049},
- {0x00, 0x0008, 0x004a},
- {0xff, 0x0000, 0x00d0},
- {0xff, 0x00d8, 0x00d1},
- {0xff, 0x0000, 0x00d4},
- {0xff, 0x0000, 0x00d5},
- {0x01, 0x00a6, 0x0000},
- {0x01, 0x0028, 0x0001},
- {0x01, 0x0000, 0x0002},
- {0x01, 0x000a, 0x0003},
- {0x01, 0x0040, 0x0004},
- {0x01, 0x0066, 0x0007},
- {0x01, 0x0011, 0x0008},
- {0x01, 0x0032, 0x0009},
- {0x01, 0x00fd, 0x000a},
- {0x01, 0x0038, 0x000b},
- {0x01, 0x00d1, 0x000c},
- {0x01, 0x00f7, 0x000d},
- {0x01, 0x00ed, 0x000e},
- {0x01, 0x00d8, 0x000f},
- {0x01, 0x0038, 0x0010},
- {0x01, 0x00ff, 0x0015},
- {0x01, 0x0001, 0x0016},
- {0x01, 0x0032, 0x0017},
- {0x01, 0x0023, 0x0018},
- {0x01, 0x00ce, 0x0019},
- {0x01, 0x0023, 0x001a},
- {0x01, 0x0032, 0x001b},
- {0x01, 0x008d, 0x001c},
- {0x01, 0x00ce, 0x001d},
- {0x01, 0x008d, 0x001e},
- {0x01, 0x0000, 0x001f},
- {0x01, 0x0000, 0x0020},
- {0x01, 0x00ff, 0x003e},
- {0x01, 0x0003, 0x003f},
- {0x01, 0x0000, 0x0040},
- {0x01, 0x0035, 0x0041},
- {0x01, 0x0053, 0x0042},
- {0x01, 0x0069, 0x0043},
- {0x01, 0x007c, 0x0044},
- {0x01, 0x008c, 0x0045},
- {0x01, 0x009a, 0x0046},
- {0x01, 0x00a8, 0x0047},
- {0x01, 0x00b4, 0x0048},
- {0x01, 0x00bf, 0x0049},
- {0x01, 0x00ca, 0x004a},
- {0x01, 0x00d4, 0x004b},
- {0x01, 0x00dd, 0x004c},
- {0x01, 0x00e7, 0x004d},
- {0x01, 0x00ef, 0x004e},
- {0x01, 0x00f8, 0x004f},
- {0x01, 0x00ff, 0x0050},
- {0x01, 0x0001, 0x0056},
- {0x01, 0x0060, 0x0057},
- {0x01, 0x0040, 0x0058},
- {0x01, 0x0011, 0x0059},
- {0x01, 0x0001, 0x005a},
- {0x02, 0x0007, 0x0005},
- {0x02, 0xa048, 0x0000},
- {0x02, 0x0007, 0x0005},
- {0x02, 0x0015, 0x0006},
- {0x02, 0x100a, 0x0007},
- {0x02, 0xa048, 0x0000},
- {0x02, 0xc002, 0x0001},
- {0x02, 0x000f, 0x0005},
- {0x02, 0xa048, 0x0000},
- {0x05, 0x0022, 0x0004},
- {0x05, 0x0025, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0026, 0x0001},
- {0x05, 0x0001, 0x0000},
- {0x05, 0x0027, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0001, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0021, 0x0001},
- {0x05, 0x00d2, 0x0000},
- {0x05, 0x0020, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x00, 0x0090, 0x0005},
- {0x01, 0x00a6, 0x0000},
- {0x05, 0x0026, 0x0001},
- {0x05, 0x0001, 0x0000},
- {0x05, 0x0027, 0x0001},
- {0x05, 0x001e, 0x0000},
- {0x01, 0x0003, 0x003f},
- {0x01, 0x0001, 0x0056},
- {0x01, 0x0011, 0x0008},
- {0x01, 0x0032, 0x0009},
- {0x01, 0xfffd, 0x000a},
- {0x01, 0x0023, 0x000b},
- {0x01, 0xffea, 0x000c},
- {0x01, 0xfff4, 0x000d},
- {0x01, 0xfffc, 0x000e},
- {0x01, 0xffe3, 0x000f},
- {0x01, 0x001f, 0x0010},
- {0x01, 0x00a8, 0x0001},
- {0x01, 0x0067, 0x0007},
- {0x01, 0x0042, 0x0051},
- {0x01, 0x0051, 0x0053},
- {0x01, 0x000a, 0x0003},
- {0x02, 0xc002, 0x0001},
- {0x02, 0x0007, 0x0005},
- {0x01, 0x0042, 0x0051},
- {0x01, 0x0051, 0x0053},
- {0x05, 0x0026, 0x0001},
- {0x05, 0x0001, 0x0000},
- {0x05, 0x0027, 0x0001},
- {0x05, 0x002d, 0x0000},
- {0x01, 0x0003, 0x003f},
- {0x01, 0x0001, 0x0056},
- {0x02, 0xc000, 0x0001},
- {0x02, 0x0000, 0x0005},
- {}
- };
- /* Unknow camera from Ori Usbid 0x0000:0x0000 */
- /* Based on snoops from Ori Cohen */
- static const __u16 spca501c_mysterious_open_data[][3] = {
- {0x02, 0x000f, 0x0005},
- {0x02, 0xa048, 0x0000},
- {0x05, 0x0022, 0x0004},
- /* DSP Registers */
- {0x01, 0x0016, 0x0011}, /* RGB offset */
- {0x01, 0x0000, 0x0012},
- {0x01, 0x0006, 0x0013},
- {0x01, 0x0078, 0x0051},
- {0x01, 0x0040, 0x0052},
- {0x01, 0x0046, 0x0053},
- {0x01, 0x0040, 0x0054},
- {0x00, 0x0025, 0x0000},
- /* {0x00, 0x0000, 0x0000 }, */
- /* Part 2 */
- /* TG Registers */
- {0x00, 0x0026, 0x0000},
- {0x00, 0x0001, 0x0000},
- {0x00, 0x0027, 0x0000},
- {0x00, 0x008a, 0x0000},
- {0x02, 0x0007, 0x0005},
- {0x02, 0x2000, 0x0000},
- {0x05, 0x0022, 0x0004},
- {0x05, 0x0015, 0x0001},
- {0x05, 0x00ea, 0x0000},
- {0x05, 0x0021, 0x0001},
- {0x05, 0x00d2, 0x0000},
- {0x05, 0x0023, 0x0001},
- {0x05, 0x0003, 0x0000},
- {0x05, 0x0030, 0x0001},
- {0x05, 0x002b, 0x0000},
- {0x05, 0x0031, 0x0001},
- {0x05, 0x0023, 0x0000},
- {0x05, 0x0032, 0x0001},
- {0x05, 0x0023, 0x0000},
- {0x05, 0x0033, 0x0001},
- {0x05, 0x0023, 0x0000},
- {0x05, 0x0034, 0x0001},
- {0x05, 0x0002, 0x0000},
- {0x05, 0x0050, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0051, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0052, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0054, 0x0001},
- {0x05, 0x0001, 0x0000},
- {}
- };
- /* Based on snoops from Ori Cohen */
- static const __u16 spca501c_mysterious_init_data[][3] = {
- /* Part 3 */
- /* TG registers */
- /* {0x00, 0x0000, 0x0000}, */
- {0x00, 0x0000, 0x0001},
- {0x00, 0x0000, 0x0002},
- {0x00, 0x0006, 0x0003},
- {0x00, 0x0000, 0x0004},
- {0x00, 0x0090, 0x0005},
- {0x00, 0x0000, 0x0006},
- {0x00, 0x0040, 0x0007},
- {0x00, 0x00c0, 0x0008},
- {0x00, 0x004a, 0x0009},
- {0x00, 0x0000, 0x000a},
- {0x00, 0x0000, 0x000b},
- {0x00, 0x0001, 0x000c},
- {0x00, 0x0001, 0x000d},
- {0x00, 0x0000, 0x000e},
- {0x00, 0x0002, 0x000f},
- {0x00, 0x0001, 0x0010},
- {0x00, 0x0000, 0x0011},
- {0x00, 0x0001, 0x0012},
- {0x00, 0x0002, 0x0020},
- {0x00, 0x0080, 0x0021}, /* 640 */
- {0x00, 0x0001, 0x0022},
- {0x00, 0x00e0, 0x0023}, /* 480 */
- {0x00, 0x0000, 0x0024}, /* Offset H hight */
- {0x00, 0x00d3, 0x0025}, /* low */
- {0x00, 0x0000, 0x0026}, /* Offset V */
- {0x00, 0x000d, 0x0027}, /* low */
- {0x00, 0x0000, 0x0046},
- {0x00, 0x0000, 0x0047},
- {0x00, 0x0000, 0x0048},
- {0x00, 0x0000, 0x0049},
- {0x00, 0x0008, 0x004a},
- /* DSP Registers */
- {0x01, 0x00a6, 0x0000},
- {0x01, 0x0028, 0x0001},
- {0x01, 0x0000, 0x0002},
- {0x01, 0x000a, 0x0003}, /* Level Calc bit7 ->1 Auto */
- {0x01, 0x0040, 0x0004},
- {0x01, 0x0066, 0x0007},
- {0x01, 0x000f, 0x0008}, /* A11 Color correction coeff */
- {0x01, 0x002d, 0x0009}, /* A12 */
- {0x01, 0x0005, 0x000a}, /* A13 */
- {0x01, 0x0023, 0x000b}, /* A21 */
- {0x01, 0x00e0, 0x000c}, /* A22 */
- {0x01, 0x00fd, 0x000d}, /* A23 */
- {0x01, 0x00f4, 0x000e}, /* A31 */
- {0x01, 0x00e4, 0x000f}, /* A32 */
- {0x01, 0x0028, 0x0010}, /* A33 */
- {0x01, 0x00ff, 0x0015}, /* Reserved */
- {0x01, 0x0001, 0x0016}, /* Reserved */
- {0x01, 0x0032, 0x0017}, /* Win1 Start begin */
- {0x01, 0x0023, 0x0018},
- {0x01, 0x00ce, 0x0019},
- {0x01, 0x0023, 0x001a},
- {0x01, 0x0032, 0x001b},
- {0x01, 0x008d, 0x001c},
- {0x01, 0x00ce, 0x001d},
- {0x01, 0x008d, 0x001e},
- {0x01, 0x0000, 0x001f},
- {0x01, 0x0000, 0x0020}, /* Win1 Start end */
- {0x01, 0x00ff, 0x003e}, /* Reserved begin */
- {0x01, 0x0002, 0x003f},
- {0x01, 0x0000, 0x0040},
- {0x01, 0x0035, 0x0041},
- {0x01, 0x0053, 0x0042},
- {0x01, 0x0069, 0x0043},
- {0x01, 0x007c, 0x0044},
- {0x01, 0x008c, 0x0045},
- {0x01, 0x009a, 0x0046},
- {0x01, 0x00a8, 0x0047},
- {0x01, 0x00b4, 0x0048},
- {0x01, 0x00bf, 0x0049},
- {0x01, 0x00ca, 0x004a},
- {0x01, 0x00d4, 0x004b},
- {0x01, 0x00dd, 0x004c},
- {0x01, 0x00e7, 0x004d},
- {0x01, 0x00ef, 0x004e},
- {0x01, 0x00f8, 0x004f},
- {0x01, 0x00ff, 0x0050},
- {0x01, 0x0003, 0x0056}, /* Reserved end */
- {0x01, 0x0060, 0x0057}, /* Edge Gain */
- {0x01, 0x0040, 0x0058},
- {0x01, 0x0011, 0x0059}, /* Edge Bandwidth */
- {0x01, 0x0001, 0x005a},
- {0x02, 0x0007, 0x0005},
- {0x02, 0xa048, 0x0000},
- {0x02, 0x0007, 0x0005},
- {0x02, 0x0015, 0x0006},
- {0x02, 0x200a, 0x0007},
- {0x02, 0xa048, 0x0000},
- {0x02, 0xc000, 0x0001},
- {0x02, 0x000f, 0x0005},
- {0x02, 0xa048, 0x0000},
- {0x05, 0x0022, 0x0004},
- {0x05, 0x0025, 0x0001},
- {0x05, 0x0000, 0x0000},
- /* Part 4 */
- {0x05, 0x0026, 0x0001},
- {0x05, 0x0001, 0x0000},
- {0x05, 0x0027, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0001, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x05, 0x0021, 0x0001},
- {0x05, 0x00d2, 0x0000},
- {0x05, 0x0020, 0x0001},
- {0x05, 0x0000, 0x0000},
- {0x00, 0x0090, 0x0005},
- {0x01, 0x00a6, 0x0000},
- {0x02, 0x0000, 0x0005},
- {0x05, 0x0026, 0x0001},
- {0x05, 0x0001, 0x0000},
- {0x05, 0x0027, 0x0001},
- {0x05, 0x004e, 0x0000},
- /* Part 5 */
- {0x01, 0x0003, 0x003f},
- {0x01, 0x0001, 0x0056},
- {0x01, 0x000f, 0x0008},
- {0x01, 0x002d, 0x0009},
- {0x01, 0x0005, 0x000a},
- {0x01, 0x0023, 0x000b},
- {0x01, 0xffe0, 0x000c},
- {0x01, 0xfffd, 0x000d},
- {0x01, 0xfff4, 0x000e},
- {0x01, 0xffe4, 0x000f},
- {0x01, 0x0028, 0x0010},
- {0x01, 0x00a8, 0x0001},
- {0x01, 0x0066, 0x0007},
- {0x01, 0x0032, 0x0017},
- {0x01, 0x0023, 0x0018},
- {0x01, 0x00ce, 0x0019},
- {0x01, 0x0023, 0x001a},
- {0x01, 0x0032, 0x001b},
- {0x01, 0x008d, 0x001c},
- {0x01, 0x00ce, 0x001d},
- {0x01, 0x008d, 0x001e},
- {0x01, 0x00c8, 0x0015}, /* c8 Poids fort Luma */
- {0x01, 0x0032, 0x0016}, /* 32 */
- {0x01, 0x0016, 0x0011}, /* R 00 */
- {0x01, 0x0016, 0x0012}, /* G 00 */
- {0x01, 0x0016, 0x0013}, /* B 00 */
- {0x01, 0x000a, 0x0003},
- {0x02, 0xc002, 0x0001},
- {0x02, 0x0007, 0x0005},
- {}
- };
- static int reg_write(struct usb_device *dev,
- __u16 req, __u16 index, __u16 value)
- {
- int ret;
- ret = usb_control_msg(dev,
- usb_sndctrlpipe(dev, 0),
- req,
- USB_TYPE_VENDOR | USB_RECIP_DEVICE,
- value, index, NULL, 0, 500);
- PDEBUG(D_USBO, "reg write: 0x%02x 0x%02x 0x%02x",
- req, index, value);
- if (ret < 0)
- PDEBUG(D_ERR, "reg write: error %d", ret);
- return ret;
- }
- static int write_vector(struct gspca_dev *gspca_dev,
- const __u16 data[][3])
- {
- struct usb_device *dev = gspca_dev->dev;
- int ret, i = 0;
- while (data[i][0] != 0 || data[i][1] != 0 || data[i][2] != 0) {
- ret = reg_write(dev, data[i][0], data[i][2], data[i][1]);
- if (ret < 0) {
- PDEBUG(D_ERR,
- "Reg write failed for 0x%02x,0x%02x,0x%02x",
- data[i][0], data[i][1], data[i][2]);
- return ret;
- }
- i++;
- }
- return 0;
- }
- static void setbrightness(struct gspca_dev *gspca_dev)
- {
- struct sd *sd = (struct sd *) gspca_dev;
- reg_write(gspca_dev->dev, SPCA501_REG_CCDSP, 0x12, sd->brightness);
- }
- static void getbrightness(struct gspca_dev *gspca_dev)
- {
- }
- static void setcontrast(struct gspca_dev *gspca_dev)
- {
- struct sd *sd = (struct sd *) gspca_dev;
- reg_write(gspca_dev->dev, 0x00, 0x00,
- (sd->contrast >> 8) & 0xff);
- reg_write(gspca_dev->dev, 0x00, 0x01,
- sd->contrast & 0xff);
- }
- static void getcontrast(struct gspca_dev *gspca_dev)
- {
- }
- static void setcolors(struct gspca_dev *gspca_dev)
- {
- struct sd *sd = (struct sd *) gspca_dev;
- reg_write(gspca_dev->dev, SPCA501_REG_CCDSP, 0x0c, sd->colors);
- }
- static void getcolors(struct gspca_dev *gspca_dev)
- {
- }
- static void setblue_balance(struct gspca_dev *gspca_dev)
- {
- struct sd *sd = (struct sd *) gspca_dev;
- reg_write(gspca_dev->dev, SPCA501_REG_CCDSP, 0x11, sd->blue_balance);
- }
- static void setred_balance(struct gspca_dev *gspca_dev)
- {
- struct sd *sd = (struct sd *) gspca_dev;
- reg_write(gspca_dev->dev, SPCA501_REG_CCDSP, 0x13, sd->red_balance);
- }
- /* this function is called at probe time */
- static int sd_config(struct gspca_dev *gspca_dev,
- const struct usb_device_id *id)
- {
- struct sd *sd = (struct sd *) gspca_dev;
- struct cam *cam;
- cam = &gspca_dev->cam;
- cam->epaddr = 0x01;
- cam->cam_mode = vga_mode;
- cam->nmodes = sizeof vga_mode / sizeof vga_mode[0];
- sd->subtype = id->driver_info;
- sd->brightness = sd_ctrls[MY_BRIGHTNESS].qctrl.default_value;
- sd->contrast = sd_ctrls[MY_CONTRAST].qctrl.default_value;
- sd->colors = sd_ctrls[MY_COLOR].qctrl.default_value;
- return 0;
- }
- /* this function is called at probe and resume time */
- static int sd_init(struct gspca_dev *gspca_dev)
- {
- struct sd *sd = (struct sd *) gspca_dev;
- switch (sd->subtype) {
- case Arowana300KCMOSCamera:
- case SmileIntlCamera:
- /* Arowana 300k CMOS Camera data */
- if (write_vector(gspca_dev, spca501c_arowana_init_data))
- goto error;
- break;
- case MystFromOriUnknownCamera:
- /* UnKnow Ori CMOS Camera data */
- if (write_vector(gspca_dev, spca501c_mysterious_open_data))
- goto error;
- break;
- default:
- /* generic spca501 init data */
- if (write_vector(gspca_dev, spca501_init_data))
- goto error;
- break;
- }
- PDEBUG(D_STREAM, "Initializing SPCA501 finished");
- return 0;
- error:
- return -EINVAL;
- }
- static int sd_start(struct gspca_dev *gspca_dev)
- {
- struct sd *sd = (struct sd *) gspca_dev;
- struct usb_device *dev = gspca_dev->dev;
- int mode;
- switch (sd->subtype) {
- case ThreeComHomeConnectLite:
- /* Special handling for 3com data */
- write_vector(gspca_dev, spca501_3com_open_data);
- break;
- case Arowana300KCMOSCamera:
- case SmileIntlCamera:
- /* Arowana 300k CMOS Camera data */
- write_vector(gspca_dev, spca501c_arowana_open_data);
- break;
- case MystFromOriUnknownCamera:
- /* UnKnow CMOS Camera data */
- write_vector(gspca_dev, spca501c_mysterious_init_data);
- break;
- default:
- /* Generic 501 open data */
- write_vector(gspca_dev, spca501_open_data);
- }
- /* memorize the wanted pixel format */
- mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv;
- /* Enable ISO packet machine CTRL reg=2,
- * index=1 bitmask=0x2 (bit ordinal 1) */
- reg_write(dev, SPCA50X_REG_USB, 0x6, 0x94);
- switch (mode) {
- case 0: /* 640x480 */
- reg_write(dev, SPCA50X_REG_USB, 0x07, 0x004a);
- break;
- case 1: /* 320x240 */
- reg_write(dev, SPCA50X_REG_USB, 0x07, 0x104a);
- break;
- default:
- /* case 2: * 160x120 */
- reg_write(dev, SPCA50X_REG_USB, 0x07, 0x204a);
- break;
- }
- reg_write(dev, SPCA501_REG_CTLRL, 0x01, 0x02);
- /* HDG atleast the Intel CreateAndShare needs to have one of its
- * brightness / contrast / color set otherwise it assumes what seems
- * max contrast. Note that strange enough setting any of these is
- * enough to fix the max contrast problem, to be sure we set all 3 */
- setbrightness(gspca_dev);
- setcontrast(gspca_dev);
- setcolors(gspca_dev);
- return 0;
- }
- static void sd_stopN(struct gspca_dev *gspca_dev)
- {
- /* Disable ISO packet
- * machine CTRL reg=2, index=1 bitmask=0x0 (bit ordinal 1) */
- reg_write(gspca_dev->dev, SPCA501_REG_CTLRL, 0x01, 0x00);
- }
- /* called on streamoff with alt 0 and on disconnect */
- static void sd_stop0(struct gspca_dev *gspca_dev)
- {
- if (!gspca_dev->present)
- return;
- reg_write(gspca_dev->dev, SPCA501_REG_CTLRL, 0x05, 0x00);
- }
- static void sd_pkt_scan(struct gspca_dev *gspca_dev,
- struct gspca_frame *frame, /* target */
- __u8 *data, /* isoc packet */
- int len) /* iso packet length */
- {
- switch (data[0]) {
- case 0: /* start of frame */
- frame = gspca_frame_add(gspca_dev,
- LAST_PACKET,
- frame,
- data, 0);
- data += SPCA501_OFFSET_DATA;
- len -= SPCA501_OFFSET_DATA;
- gspca_frame_add(gspca_dev, FIRST_PACKET, frame,
- data, len);
- return;
- case 0xff: /* drop */
- /* gspca_dev->last_packet_type = DISCARD_PACKET; */
- return;
- }
- data++;
- len--;
- gspca_frame_add(gspca_dev, INTER_PACKET, frame,
- data, len);
- }
- static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val)
- {
- struct sd *sd = (struct sd *) gspca_dev;
- sd->brightness = val;
- if (gspca_dev->streaming)
- setbrightness(gspca_dev);
- return 0;
- }
- static int sd_getbrightness(struct gspca_dev *gspca_dev, __s32 *val)
- {
- struct sd *sd = (struct sd *) gspca_dev;
- getbrightness(gspca_dev);
- *val = sd->brightness;
- return 0;
- }
- static int sd_setcontrast(struct gspca_dev *gspca_dev, __s32 val)
- {
- struct sd *sd = (struct sd *) gspca_dev;
- sd->contrast = val;
- if (gspca_dev->streaming)
- setcontrast(gspca_dev);
- return 0;
- }
- static int sd_getcontrast(struct gspca_dev *gspca_dev, __s32 *val)
- {
- struct sd *sd = (struct sd *) gspca_dev;
- getcontrast(gspca_dev);
- *val = sd->contrast;
- return 0;
- }
- static int sd_setcolors(struct gspca_dev *gspca_dev, __s32 val)
- {
- struct sd *sd = (struct sd *) gspca_dev;
- sd->colors = val;
- if (gspca_dev->streaming)
- setcolors(gspca_dev);
- return 0;
- }
- static int sd_getcolors(struct gspca_dev *gspca_dev, __s32 *val)
- {
- struct sd *sd = (struct sd *) gspca_dev;
- getcolors(gspca_dev);
- *val = sd->colors;
- return 0;
- }
- static int sd_setblue_balance(struct gspca_dev *gspca_dev, __s32 val)
- {
- struct sd *sd = (struct sd *) gspca_dev;
- sd->blue_balance = val;
- if (gspca_dev->streaming)
- setblue_balance(gspca_dev);
- return 0;
- }
- static int sd_getblue_balance(struct gspca_dev *gspca_dev, __s32 *val)
- {
- struct sd *sd = (struct sd *) gspca_dev;
- *val = sd->blue_balance;
- return 0;
- }
- static int sd_setred_balance(struct gspca_dev *gspca_dev, __s32 val)
- {
- struct sd *sd = (struct sd *) gspca_dev;
- sd->red_balance = val;
- if (gspca_dev->streaming)
- setred_balance(gspca_dev);
- return 0;
- }
- static int sd_getred_balance(struct gspca_dev *gspca_dev, __s32 *val)
- {
- struct sd *sd = (struct sd *) gspca_dev;
- *val = sd->red_balance;
- return 0;
- }
- /* sub-driver description */
- static const struct sd_desc sd_desc = {
- .name = MODULE_NAME,
- .ctrls = sd_ctrls,
- .nctrls = ARRAY_SIZE(sd_ctrls),
- .config = sd_config,
- .init = sd_init,
- .start = sd_start,
- .stopN = sd_stopN,
- .stop0 = sd_stop0,
- .pkt_scan = sd_pkt_scan,
- };
- /* -- module initialisation -- */
- static const __devinitdata struct usb_device_id device_table[] = {
- {USB_DEVICE(0x040a, 0x0002), .driver_info = KodakDVC325},
- {USB_DEVICE(0x0497, 0xc001), .driver_info = SmileIntlCamera},
- {USB_DEVICE(0x0506, 0x00df), .driver_info = ThreeComHomeConnectLite},
- {USB_DEVICE(0x0733, 0x0401), .driver_info = IntelCreateAndShare},
- {USB_DEVICE(0x0733, 0x0402), .driver_info = ViewQuestM318B},
- {USB_DEVICE(0x1776, 0x501c), .driver_info = Arowana300KCMOSCamera},
- {USB_DEVICE(0x0000, 0x0000), .driver_info = MystFromOriUnknownCamera},
- {}
- };
- MODULE_DEVICE_TABLE(usb, device_table);
- /* -- device connect -- */
- static int sd_probe(struct usb_interface *intf,
- const struct usb_device_id *id)
- {
- return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd),
- THIS_MODULE);
- }
- static struct usb_driver sd_driver = {
- .name = MODULE_NAME,
- .id_table = device_table,
- .probe = sd_probe,
- .disconnect = gspca_disconnect,
- #ifdef CONFIG_PM
- .suspend = gspca_suspend,
- .resume = gspca_resume,
- #endif
- };
- /* -- module insert / remove -- */
- static int __init sd_mod_init(void)
- {
- if (usb_register(&sd_driver) < 0)
- return -1;
- PDEBUG(D_PROBE, "registered");
- return 0;
- }
- static void __exit sd_mod_exit(void)
- {
- usb_deregister(&sd_driver);
- PDEBUG(D_PROBE, "deregistered");
- }
- module_init(sd_mod_init);
- module_exit(sd_mod_exit);
|