topro.c 190 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979
  1. /*
  2. * Topro TP6800/6810 webcam driver.
  3. *
  4. * Copyright (C) 2011 Jean-François Moine (http://moinejf.free.fr)
  5. * Copyright (C) 2009 Anders Blomdell (anders.blomdell@control.lth.se)
  6. * Copyright (C) 2008 Thomas Champagne (lafeuil@gmail.com)
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; If not, see <http://www.gnu.org/licenses/>.
  20. */
  21. #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
  22. #include "gspca.h"
  23. MODULE_DESCRIPTION("Topro TP6800/6810 gspca webcam driver");
  24. MODULE_AUTHOR("Jean-Francois Moine <http://moinejf.free.fr>, "
  25. "Anders Blomdell <anders.blomdell@control.lth.se>");
  26. MODULE_LICENSE("GPL");
  27. static int force_sensor = -1;
  28. /* JPEG header */
  29. static const u8 jpeg_head[] = {
  30. 0xff, 0xd8, /* jpeg */
  31. /* quantization table quality 50% */
  32. 0xff, 0xdb, 0x00, 0x84, /* DQT */
  33. 0,
  34. #define JPEG_QT0_OFFSET 7
  35. 0x10, 0x0b, 0x0c, 0x0e, 0x0c, 0x0a, 0x10, 0x0e,
  36. 0x0d, 0x0e, 0x12, 0x11, 0x10, 0x13, 0x18, 0x28,
  37. 0x1a, 0x18, 0x16, 0x16, 0x18, 0x31, 0x23, 0x25,
  38. 0x1d, 0x28, 0x3a, 0x33, 0x3d, 0x3c, 0x39, 0x33,
  39. 0x38, 0x37, 0x40, 0x48, 0x5c, 0x4e, 0x40, 0x44,
  40. 0x57, 0x45, 0x37, 0x38, 0x50, 0x6d, 0x51, 0x57,
  41. 0x5f, 0x62, 0x67, 0x68, 0x67, 0x3e, 0x4d, 0x71,
  42. 0x79, 0x70, 0x64, 0x78, 0x5c, 0x65, 0x67, 0x63,
  43. 1,
  44. #define JPEG_QT1_OFFSET 72
  45. 0x11, 0x12, 0x12, 0x18, 0x15, 0x18, 0x2f, 0x1a,
  46. 0x1a, 0x2f, 0x63, 0x42, 0x38, 0x42, 0x63, 0x63,
  47. 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63,
  48. 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63,
  49. 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63,
  50. 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63,
  51. 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63,
  52. 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63,
  53. /* Define Huffman table (thanks to Thomas Kaiser) */
  54. 0xff, 0xc4, 0x01, 0x5e,
  55. 0x00, 0x00, 0x02, 0x03,
  56. 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00,
  57. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02,
  58. 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10,
  59. 0x00, 0x02, 0x01, 0x02, 0x04, 0x04, 0x03, 0x04,
  60. 0x07, 0x05, 0x04, 0x06, 0x01, 0x00, 0x00, 0x57,
  61. 0x01, 0x02, 0x03, 0x00, 0x11, 0x04, 0x12, 0x21,
  62. 0x31, 0x13, 0x41, 0x51, 0x61, 0x05, 0x22, 0x32,
  63. 0x14, 0x71, 0x81, 0x91, 0x15, 0x23, 0x42, 0x52,
  64. 0x62, 0xa1, 0xb1, 0x06, 0x33, 0x72, 0xc1, 0xd1,
  65. 0x24, 0x43, 0x53, 0x82, 0x16, 0x34, 0x92, 0xa2,
  66. 0xe1, 0xf1, 0xf0, 0x07, 0x08, 0x17, 0x18, 0x25,
  67. 0x26, 0x27, 0x28, 0x35, 0x36, 0x37, 0x38, 0x44,
  68. 0x45, 0x46, 0x47, 0x48, 0x54, 0x55, 0x56, 0x57,
  69. 0x58, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x73,
  70. 0x74, 0x75, 0x76, 0x77, 0x78, 0x83, 0x84, 0x85,
  71. 0x86, 0x87, 0x88, 0x93, 0x94, 0x95, 0x96, 0x97,
  72. 0x98, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xb2,
  73. 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, 0xb8, 0xc2, 0xc3,
  74. 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xd2, 0xd3, 0xd4,
  75. 0xd5, 0xd6, 0xd7, 0xd8, 0xe2, 0xe3, 0xe4, 0xe5,
  76. 0xe6, 0xe7, 0xe8, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6,
  77. 0xf7, 0xf8, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
  78. 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00,
  79. 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03, 0x04,
  80. 0x05, 0x06, 0x07, 0x08, 0x09, 0x11, 0x00, 0x02,
  81. 0x01, 0x02, 0x04, 0x04, 0x03, 0x04, 0x07, 0x05,
  82. 0x04, 0x06, 0x01, 0x00, 0x00, 0x57, 0x00, 0x01,
  83. 0x11, 0x02, 0x21, 0x03, 0x12, 0x31, 0x41, 0x13,
  84. 0x22, 0x51, 0x61, 0x04, 0x32, 0x71, 0x05, 0x14,
  85. 0x23, 0x42, 0x33, 0x52, 0x81, 0x91, 0xa1, 0xb1,
  86. 0xf0, 0x06, 0x15, 0xc1, 0xd1, 0xe1, 0x24, 0x43,
  87. 0x62, 0xf1, 0x16, 0x25, 0x34, 0x53, 0x72, 0x82,
  88. 0x92, 0x07, 0x08, 0x17, 0x18, 0x26, 0x27, 0x28,
  89. 0x35, 0x36, 0x37, 0x38, 0x44, 0x45, 0x46, 0x47,
  90. 0x48, 0x54, 0x55, 0x56, 0x57, 0x58, 0x63, 0x64,
  91. 0x65, 0x66, 0x67, 0x68, 0x73, 0x74, 0x75, 0x76,
  92. 0x77, 0x78, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88,
  93. 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0xa2, 0xa3,
  94. 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xb2, 0xb3, 0xb4,
  95. 0xb5, 0xb6, 0xb7, 0xb8, 0xc2, 0xc3, 0xc4, 0xc5,
  96. 0xc6, 0xc7, 0xc8, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6,
  97. 0xd7, 0xd8, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
  98. 0xe8, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8,
  99. 0xff, 0xc0, 0x00, 0x11, /* SOF0 (start of frame 0 */
  100. 0x08, /* data precision */
  101. #define JPEG_HEIGHT_OFFSET 493
  102. 0x01, 0xe0, /* height */
  103. 0x02, 0x80, /* width */
  104. 0x03, /* component number */
  105. 0x01,
  106. 0x21, /* samples Y = jpeg 422 */
  107. 0x00, /* quant Y */
  108. 0x02, 0x11, 0x01, /* samples CbCr - quant CbCr */
  109. 0x03, 0x11, 0x01,
  110. 0xff, 0xda, 0x00, 0x0c, /* SOS (start of scan) */
  111. 0x03, 0x01, 0x00, 0x02, 0x11, 0x03, 0x11, 0x00, 0x3f, 0x00
  112. #define JPEG_HDR_SZ 521
  113. };
  114. enum e_ctrl {
  115. EXPOSURE,
  116. QUALITY,
  117. SHARPNESS,
  118. RGAIN,
  119. GAIN,
  120. BGAIN,
  121. GAMMA,
  122. AUTOGAIN,
  123. NCTRLS /* number of controls */
  124. };
  125. #define AUTOGAIN_DEF 1
  126. struct sd {
  127. struct gspca_dev gspca_dev; /* !! must be the first item */
  128. struct gspca_ctrl ctrls[NCTRLS];
  129. u8 framerate;
  130. u8 quality; /* webcam current JPEG quality (0..16) */
  131. s8 ag_cnt; /* autogain / start counter for tp6810 */
  132. #define AG_CNT_START 13 /* check gain every N frames */
  133. u8 bridge;
  134. u8 sensor;
  135. u8 jpeg_hdr[JPEG_HDR_SZ];
  136. };
  137. enum bridges {
  138. BRIDGE_TP6800,
  139. BRIDGE_TP6810,
  140. };
  141. enum sensors {
  142. SENSOR_CX0342,
  143. SENSOR_SOI763A, /* ~= ov7630 / ov7648 */
  144. NSENSORS
  145. };
  146. static const struct v4l2_pix_format vga_mode[] = {
  147. {320, 240, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE,
  148. .bytesperline = 320,
  149. .sizeimage = 320 * 240 * 4 / 8 + 590,
  150. .colorspace = V4L2_COLORSPACE_JPEG},
  151. {640, 480, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE,
  152. .bytesperline = 640,
  153. .sizeimage = 640 * 480 * 3 / 8 + 590,
  154. .colorspace = V4L2_COLORSPACE_JPEG}
  155. };
  156. /*
  157. * JPEG quality
  158. * index: webcam compression
  159. * value: JPEG quality in %
  160. */
  161. static const u8 jpeg_q[17] = {
  162. 88, 77, 67, 57, 55, 55, 45, 45, 36, 36, 30, 30, 26, 26, 22, 22, 94
  163. };
  164. #define BULK_OUT_SIZE 0x20
  165. #if BULK_OUT_SIZE > USB_BUF_SZ
  166. #error "USB buffer too small"
  167. #endif
  168. static const u8 rates[] = {30, 20, 15, 10, 7, 5};
  169. static const struct framerates framerates[] = {
  170. {
  171. .rates = rates,
  172. .nrates = ARRAY_SIZE(rates)
  173. },
  174. {
  175. .rates = rates,
  176. .nrates = ARRAY_SIZE(rates)
  177. }
  178. };
  179. static const u8 rates_6810[] = {30, 15, 10, 7, 5};
  180. static const struct framerates framerates_6810[] = {
  181. {
  182. .rates = rates_6810,
  183. .nrates = ARRAY_SIZE(rates_6810)
  184. },
  185. {
  186. .rates = rates_6810,
  187. .nrates = ARRAY_SIZE(rates_6810)
  188. }
  189. };
  190. /*
  191. * webcam quality in %
  192. * the last value is the ultra fine quality
  193. */
  194. /* TP6800 register offsets */
  195. #define TP6800_R10_SIF_TYPE 0x10
  196. #define TP6800_R11_SIF_CONTROL 0x11
  197. #define TP6800_R12_SIF_ADDR_S 0x12
  198. #define TP6800_R13_SIF_TX_DATA 0x13
  199. #define TP6800_R14_SIF_RX_DATA 0x14
  200. #define TP6800_R15_GPIO_PU 0x15
  201. #define TP6800_R16_GPIO_PD 0x16
  202. #define TP6800_R17_GPIO_IO 0x17
  203. #define TP6800_R18_GPIO_DATA 0x18
  204. #define TP6800_R19_SIF_ADDR_S2 0x19
  205. #define TP6800_R1A_SIF_TX_DATA2 0x1a
  206. #define TP6800_R1B_SIF_RX_DATA2 0x1b
  207. #define TP6800_R21_ENDP_1_CTL 0x21
  208. #define TP6800_R2F_TIMING_CFG 0x2f
  209. #define TP6800_R30_SENSOR_CFG 0x30
  210. #define TP6800_R31_PIXEL_START 0x31
  211. #define TP6800_R32_PIXEL_END_L 0x32
  212. #define TP6800_R33_PIXEL_END_H 0x33
  213. #define TP6800_R34_LINE_START 0x34
  214. #define TP6800_R35_LINE_END_L 0x35
  215. #define TP6800_R36_LINE_END_H 0x36
  216. #define TP6800_R37_FRONT_DARK_ST 0x37
  217. #define TP6800_R38_FRONT_DARK_END 0x38
  218. #define TP6800_R39_REAR_DARK_ST_L 0x39
  219. #define TP6800_R3A_REAR_DARK_ST_H 0x3a
  220. #define TP6800_R3B_REAR_DARK_END_L 0x3b
  221. #define TP6800_R3C_REAR_DARK_END_H 0x3c
  222. #define TP6800_R3D_HORIZ_DARK_LINE_L 0x3d
  223. #define TP6800_R3E_HORIZ_DARK_LINE_H 0x3e
  224. #define TP6800_R3F_FRAME_RATE 0x3f
  225. #define TP6800_R50 0x50
  226. #define TP6800_R51 0x51
  227. #define TP6800_R52 0x52
  228. #define TP6800_R53 0x53
  229. #define TP6800_R54_DARK_CFG 0x54
  230. #define TP6800_R55_GAMMA_R 0x55
  231. #define TP6800_R56_GAMMA_G 0x56
  232. #define TP6800_R57_GAMMA_B 0x57
  233. #define TP6800_R5C_EDGE_THRLD 0x5c
  234. #define TP6800_R5D_DEMOSAIC_CFG 0x5d
  235. #define TP6800_R78_FORMAT 0x78
  236. #define TP6800_R79_QUALITY 0x79
  237. #define TP6800_R7A_BLK_THRLD 0x7a
  238. /* CX0342 register offsets */
  239. #define CX0342_SENSOR_ID 0x00
  240. #define CX0342_VERSION_NO 0x01
  241. #define CX0342_ORG_X_L 0x02
  242. #define CX0342_ORG_X_H 0x03
  243. #define CX0342_ORG_Y_L 0x04
  244. #define CX0342_ORG_Y_H 0x05
  245. #define CX0342_STOP_X_L 0x06
  246. #define CX0342_STOP_X_H 0x07
  247. #define CX0342_STOP_Y_L 0x08
  248. #define CX0342_STOP_Y_H 0x09
  249. #define CX0342_FRAME_WIDTH_L 0x0a
  250. #define CX0342_FRAME_WIDTH_H 0x0b
  251. #define CX0342_FRAME_HEIGH_L 0x0c
  252. #define CX0342_FRAME_HEIGH_H 0x0d
  253. #define CX0342_EXPO_LINE_L 0x10
  254. #define CX0342_EXPO_LINE_H 0x11
  255. #define CX0342_EXPO_CLK_L 0x12
  256. #define CX0342_EXPO_CLK_H 0x13
  257. #define CX0342_RAW_GRGAIN_L 0x14
  258. #define CX0342_RAW_GRGAIN_H 0x15
  259. #define CX0342_RAW_GBGAIN_L 0x16
  260. #define CX0342_RAW_GBGAIN_H 0x17
  261. #define CX0342_RAW_RGAIN_L 0x18
  262. #define CX0342_RAW_RGAIN_H 0x19
  263. #define CX0342_RAW_BGAIN_L 0x1a
  264. #define CX0342_RAW_BGAIN_H 0x1b
  265. #define CX0342_GLOBAL_GAIN 0x1c
  266. #define CX0342_SYS_CTRL_0 0x20
  267. #define CX0342_SYS_CTRL_1 0x21
  268. #define CX0342_SYS_CTRL_2 0x22
  269. #define CX0342_BYPASS_MODE 0x23
  270. #define CX0342_SYS_CTRL_3 0x24
  271. #define CX0342_TIMING_EN 0x25
  272. #define CX0342_OUTPUT_CTRL 0x26
  273. #define CX0342_AUTO_ADC_CALIB 0x27
  274. #define CX0342_SYS_CTRL_4 0x28
  275. #define CX0342_ADCGN 0x30
  276. #define CX0342_SLPCR 0x31
  277. #define CX0342_SLPFN_LO 0x32
  278. #define CX0342_ADC_CTL 0x33
  279. #define CX0342_LVRST_BLBIAS 0x34
  280. #define CX0342_VTHSEL 0x35
  281. #define CX0342_RAMP_RIV 0x36
  282. #define CX0342_LDOSEL 0x37
  283. #define CX0342_CLOCK_GEN 0x40
  284. #define CX0342_SOFT_RESET 0x41
  285. #define CX0342_PLL 0x42
  286. #define CX0342_DR_ENH_PULSE_OFFSET_L 0x43
  287. #define CX0342_DR_ENH_PULSE_OFFSET_H 0x44
  288. #define CX0342_DR_ENH_PULSE_POS_L 0x45
  289. #define CX0342_DR_ENH_PULSE_POS_H 0x46
  290. #define CX0342_DR_ENH_PULSE_WIDTH 0x47
  291. #define CX0342_AS_CURRENT_CNT_L 0x48
  292. #define CX0342_AS_CURRENT_CNT_H 0x49
  293. #define CX0342_AS_PREVIOUS_CNT_L 0x4a
  294. #define CX0342_AS_PREVIOUS_CNT_H 0x4b
  295. #define CX0342_SPV_VALUE_L 0x4c
  296. #define CX0342_SPV_VALUE_H 0x4d
  297. #define CX0342_GPXLTHD_L 0x50
  298. #define CX0342_GPXLTHD_H 0x51
  299. #define CX0342_RBPXLTHD_L 0x52
  300. #define CX0342_RBPXLTHD_H 0x53
  301. #define CX0342_PLANETHD_L 0x54
  302. #define CX0342_PLANETHD_H 0x55
  303. #define CX0342_ROWDARK_TH 0x56
  304. #define CX0342_ROWDARK_TOL 0x57
  305. #define CX0342_RB_GAP_L 0x58
  306. #define CX0342_RB_GAP_H 0x59
  307. #define CX0342_G_GAP_L 0x5a
  308. #define CX0342_G_GAP_H 0x5b
  309. #define CX0342_AUTO_ROW_DARK 0x60
  310. #define CX0342_MANUAL_DARK_VALUE 0x61
  311. #define CX0342_GB_DARK_OFFSET 0x62
  312. #define CX0342_GR_DARK_OFFSET 0x63
  313. #define CX0342_RED_DARK_OFFSET 0x64
  314. #define CX0342_BLUE_DARK_OFFSET 0x65
  315. #define CX0342_DATA_SCALING_MULTI 0x66
  316. #define CX0342_AUTOD_Q_FRAME 0x67
  317. #define CX0342_AUTOD_ALLOW_VARI 0x68
  318. #define CX0342_AUTO_DARK_VALUE_L 0x69
  319. #define CX0342_AUTO_DARK_VALUE_H 0x6a
  320. #define CX0342_IO_CTRL_0 0x70
  321. #define CX0342_IO_CTRL_1 0x71
  322. #define CX0342_IO_CTRL_2 0x72
  323. #define CX0342_IDLE_CTRL 0x73
  324. #define CX0342_TEST_MODE 0x74
  325. #define CX0342_FRAME_FIX_DATA_TEST 0x75
  326. #define CX0342_FRAME_CNT_TEST 0x76
  327. #define CX0342_RST_OVERFLOW_L 0x80
  328. #define CX0342_RST_OVERFLOW_H 0x81
  329. #define CX0342_RST_UNDERFLOW_L 0x82
  330. #define CX0342_RST_UNDERFLOW_H 0x83
  331. #define CX0342_DATA_OVERFLOW_L 0x84
  332. #define CX0342_DATA_OVERFLOW_H 0x85
  333. #define CX0342_DATA_UNDERFLOW_L 0x86
  334. #define CX0342_DATA_UNDERFLOW_H 0x87
  335. #define CX0342_CHANNEL_0_0_L_irst 0x90
  336. #define CX0342_CHANNEL_0_0_H_irst 0x91
  337. #define CX0342_CHANNEL_0_1_L_irst 0x92
  338. #define CX0342_CHANNEL_0_1_H_irst 0x93
  339. #define CX0342_CHANNEL_0_2_L_irst 0x94
  340. #define CX0342_CHANNEL_0_2_H_irst 0x95
  341. #define CX0342_CHANNEL_0_3_L_irst 0x96
  342. #define CX0342_CHANNEL_0_3_H_irst 0x97
  343. #define CX0342_CHANNEL_0_4_L_irst 0x98
  344. #define CX0342_CHANNEL_0_4_H_irst 0x99
  345. #define CX0342_CHANNEL_0_5_L_irst 0x9a
  346. #define CX0342_CHANNEL_0_5_H_irst 0x9b
  347. #define CX0342_CHANNEL_0_6_L_irst 0x9c
  348. #define CX0342_CHANNEL_0_6_H_irst 0x9d
  349. #define CX0342_CHANNEL_0_7_L_irst 0x9e
  350. #define CX0342_CHANNEL_0_7_H_irst 0x9f
  351. #define CX0342_CHANNEL_1_0_L_itx 0xa0
  352. #define CX0342_CHANNEL_1_0_H_itx 0xa1
  353. #define CX0342_CHANNEL_1_1_L_itx 0xa2
  354. #define CX0342_CHANNEL_1_1_H_itx 0xa3
  355. #define CX0342_CHANNEL_1_2_L_itx 0xa4
  356. #define CX0342_CHANNEL_1_2_H_itx 0xa5
  357. #define CX0342_CHANNEL_1_3_L_itx 0xa6
  358. #define CX0342_CHANNEL_1_3_H_itx 0xa7
  359. #define CX0342_CHANNEL_1_4_L_itx 0xa8
  360. #define CX0342_CHANNEL_1_4_H_itx 0xa9
  361. #define CX0342_CHANNEL_1_5_L_itx 0xaa
  362. #define CX0342_CHANNEL_1_5_H_itx 0xab
  363. #define CX0342_CHANNEL_1_6_L_itx 0xac
  364. #define CX0342_CHANNEL_1_6_H_itx 0xad
  365. #define CX0342_CHANNEL_1_7_L_itx 0xae
  366. #define CX0342_CHANNEL_1_7_H_itx 0xaf
  367. #define CX0342_CHANNEL_2_0_L_iwl 0xb0
  368. #define CX0342_CHANNEL_2_0_H_iwl 0xb1
  369. #define CX0342_CHANNEL_2_1_L_iwl 0xb2
  370. #define CX0342_CHANNEL_2_1_H_iwl 0xb3
  371. #define CX0342_CHANNEL_2_2_L_iwl 0xb4
  372. #define CX0342_CHANNEL_2_2_H_iwl 0xb5
  373. #define CX0342_CHANNEL_2_3_L_iwl 0xb6
  374. #define CX0342_CHANNEL_2_3_H_iwl 0xb7
  375. #define CX0342_CHANNEL_2_4_L_iwl 0xb8
  376. #define CX0342_CHANNEL_2_4_H_iwl 0xb9
  377. #define CX0342_CHANNEL_2_5_L_iwl 0xba
  378. #define CX0342_CHANNEL_2_5_H_iwl 0xbb
  379. #define CX0342_CHANNEL_2_6_L_iwl 0xbc
  380. #define CX0342_CHANNEL_2_6_H_iwl 0xbd
  381. #define CX0342_CHANNEL_2_7_L_iwl 0xbe
  382. #define CX0342_CHANNEL_2_7_H_iwl 0xbf
  383. #define CX0342_CHANNEL_3_0_L_ensp 0xc0
  384. #define CX0342_CHANNEL_3_0_H_ensp 0xc1
  385. #define CX0342_CHANNEL_3_1_L_ensp 0xc2
  386. #define CX0342_CHANNEL_3_1_H_ensp 0xc3
  387. #define CX0342_CHANNEL_3_2_L_ensp 0xc4
  388. #define CX0342_CHANNEL_3_2_H_ensp 0xc5
  389. #define CX0342_CHANNEL_3_3_L_ensp 0xc6
  390. #define CX0342_CHANNEL_3_3_H_ensp 0xc7
  391. #define CX0342_CHANNEL_3_4_L_ensp 0xc8
  392. #define CX0342_CHANNEL_3_4_H_ensp 0xc9
  393. #define CX0342_CHANNEL_3_5_L_ensp 0xca
  394. #define CX0342_CHANNEL_3_5_H_ensp 0xcb
  395. #define CX0342_CHANNEL_3_6_L_ensp 0xcc
  396. #define CX0342_CHANNEL_3_6_H_ensp 0xcd
  397. #define CX0342_CHANNEL_3_7_L_ensp 0xce
  398. #define CX0342_CHANNEL_3_7_H_ensp 0xcf
  399. #define CX0342_CHANNEL_4_0_L_sela 0xd0
  400. #define CX0342_CHANNEL_4_0_H_sela 0xd1
  401. #define CX0342_CHANNEL_4_1_L_sela 0xd2
  402. #define CX0342_CHANNEL_4_1_H_sela 0xd3
  403. #define CX0342_CHANNEL_5_0_L_intla 0xe0
  404. #define CX0342_CHANNEL_5_0_H_intla 0xe1
  405. #define CX0342_CHANNEL_5_1_L_intla 0xe2
  406. #define CX0342_CHANNEL_5_1_H_intla 0xe3
  407. #define CX0342_CHANNEL_5_2_L_intla 0xe4
  408. #define CX0342_CHANNEL_5_2_H_intla 0xe5
  409. #define CX0342_CHANNEL_5_3_L_intla 0xe6
  410. #define CX0342_CHANNEL_5_3_H_intla 0xe7
  411. #define CX0342_CHANNEL_6_0_L_xa_sel_pos 0xf0
  412. #define CX0342_CHANNEL_6_0_H_xa_sel_pos 0xf1
  413. #define CX0342_CHANNEL_7_1_L_cds_pos 0xf2
  414. #define CX0342_CHANNEL_7_1_H_cds_pos 0xf3
  415. #define CX0342_SENSOR_HEIGHT_L 0xfb
  416. #define CX0342_SENSOR_HEIGHT_H 0xfc
  417. #define CX0342_SENSOR_WIDTH_L 0xfd
  418. #define CX0342_SENSOR_WIDTH_H 0xfe
  419. #define CX0342_VSYNC_HSYNC_READ 0xff
  420. struct cmd {
  421. u8 reg;
  422. u8 val;
  423. };
  424. static const u8 DQT[17][130] = {
  425. /* Define quantization table (thanks to Thomas Kaiser) */
  426. { /* Quality 0 */
  427. 0x00,
  428. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  429. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  430. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  431. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  432. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  433. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  434. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  435. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  436. 0x01,
  437. 0x04, 0x04, 0x04, 0x06, 0x05, 0x06, 0x0b, 0x06,
  438. 0x06, 0x0b, 0x18, 0x10, 0x0e, 0x10, 0x18, 0x18,
  439. 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
  440. 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
  441. 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
  442. 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
  443. 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
  444. 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
  445. },
  446. { /* Quality 1 */
  447. 0x00,
  448. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  449. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  450. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  451. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  452. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  453. 0x04, 0x04, 0x04, 0x09, 0x09, 0x09, 0x09, 0x09,
  454. 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09,
  455. 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09,
  456. 0x01,
  457. 0x08, 0x09, 0x09, 0x0c, 0x0a, 0x0c, 0x17, 0x0d,
  458. 0x0d, 0x17, 0x31, 0x21, 0x1c, 0x21, 0x31, 0x31,
  459. 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31,
  460. 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31,
  461. 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31,
  462. 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31,
  463. 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31,
  464. 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31,
  465. },
  466. { /* Quality 2 */
  467. 0x00,
  468. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  469. 0x04, 0x04, 0x06, 0x06, 0x06, 0x04, 0x04, 0x04,
  470. 0x04, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,
  471. 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,
  472. 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,
  473. 0x06, 0x06, 0x06, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e,
  474. 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e,
  475. 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e,
  476. 0x01,
  477. 0x0c, 0x0d, 0x0d, 0x12, 0x0f, 0x12, 0x23, 0x13,
  478. 0x13, 0x23, 0x4a, 0x31, 0x2a, 0x31, 0x4a, 0x4a,
  479. 0x4a, 0x4a, 0x4a, 0x4a, 0x4a, 0x4a, 0x4a, 0x4a,
  480. 0x4a, 0x4a, 0x4a, 0x4a, 0x4a, 0x4a, 0x4a, 0x4a,
  481. 0x4a, 0x4a, 0x4a, 0x4a, 0x4a, 0x4a, 0x4a, 0x4a,
  482. 0x4a, 0x4a, 0x4a, 0x4a, 0x4a, 0x4a, 0x4a, 0x4a,
  483. 0x4a, 0x4a, 0x4a, 0x4a, 0x4a, 0x4a, 0x4a, 0x4a,
  484. 0x4a, 0x4a, 0x4a, 0x4a, 0x4a, 0x4a, 0x4a, 0x4a,
  485. },
  486. { /* Quality 3 */
  487. 0x00,
  488. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  489. 0x04, 0x04, 0x08, 0x08, 0x08, 0x04, 0x04, 0x04,
  490. 0x04, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08,
  491. 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08,
  492. 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08,
  493. 0x08, 0x08, 0x08, 0x13, 0x13, 0x13, 0x13, 0x13,
  494. 0x13, 0x13, 0x13, 0x13, 0x13, 0x13, 0x13, 0x13,
  495. 0x13, 0x13, 0x13, 0x13, 0x13, 0x13, 0x13, 0x13,
  496. 0x01,
  497. 0x11, 0x12, 0x12, 0x18, 0x15, 0x18, 0x2f, 0x1a,
  498. 0x1a, 0x2f, 0x63, 0x42, 0x38, 0x42, 0x63, 0x63,
  499. 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63,
  500. 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63,
  501. 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63,
  502. 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63,
  503. 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63,
  504. 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63,
  505. },
  506. { /* Quality 4 */
  507. 0x00,
  508. 0x04, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,
  509. 0x05, 0x05, 0x0a, 0x0a, 0x0a, 0x05, 0x05, 0x05,
  510. 0x05, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a,
  511. 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a,
  512. 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a,
  513. 0x0a, 0x0a, 0x0a, 0x17, 0x17, 0x17, 0x17, 0x17,
  514. 0x17, 0x17, 0x17, 0x17, 0x17, 0x17, 0x17, 0x17,
  515. 0x17, 0x17, 0x17, 0x17, 0x17, 0x17, 0x17, 0x17,
  516. 0x01,
  517. 0x11, 0x16, 0x16, 0x1e, 0x1a, 0x1e, 0x3a, 0x20,
  518. 0x20, 0x3a, 0x7b, 0x52, 0x46, 0x52, 0x7b, 0x7b,
  519. 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b,
  520. 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b,
  521. 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b,
  522. 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b,
  523. 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b,
  524. 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b, 0x7b,
  525. },
  526. { /* Quality 5 */
  527. 0x00,
  528. 0x04, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,
  529. 0x06, 0x06, 0x0c, 0x0c, 0x0c, 0x06, 0x06, 0x06,
  530. 0x06, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c,
  531. 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c,
  532. 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c,
  533. 0x0c, 0x0c, 0x0c, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c,
  534. 0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c,
  535. 0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c,
  536. 0x01,
  537. 0x11, 0x1b, 0x1b, 0x24, 0x1f, 0x24, 0x46, 0x27,
  538. 0x27, 0x46, 0x94, 0x63, 0x54, 0x63, 0x94, 0x94,
  539. 0x94, 0x94, 0x94, 0x94, 0x94, 0x94, 0x94, 0x94,
  540. 0x94, 0x94, 0x94, 0x94, 0x94, 0x94, 0x94, 0x94,
  541. 0x94, 0x94, 0x94, 0x94, 0x94, 0x94, 0x94, 0x94,
  542. 0x94, 0x94, 0x94, 0x94, 0x94, 0x94, 0x94, 0x94,
  543. 0x94, 0x94, 0x94, 0x94, 0x94, 0x94, 0x94, 0x94,
  544. 0x94, 0x94, 0x94, 0x94, 0x94, 0x94, 0x94, 0x94,
  545. },
  546. { /* Quality 6 */
  547. 0x00,
  548. 0x05, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07,
  549. 0x07, 0x07, 0x0e, 0x0e, 0x0e, 0x07, 0x07, 0x07,
  550. 0x07, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e,
  551. 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e,
  552. 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e,
  553. 0x0e, 0x0e, 0x0e, 0x21, 0x21, 0x21, 0x21, 0x21,
  554. 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21,
  555. 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21,
  556. 0x01,
  557. 0x15, 0x1f, 0x1f, 0x2a, 0x24, 0x2a, 0x52, 0x2d,
  558. 0x2d, 0x52, 0xad, 0x73, 0x62, 0x73, 0xad, 0xad,
  559. 0xad, 0xad, 0xad, 0xad, 0xad, 0xad, 0xad, 0xad,
  560. 0xad, 0xad, 0xad, 0xad, 0xad, 0xad, 0xad, 0xad,
  561. 0xad, 0xad, 0xad, 0xad, 0xad, 0xad, 0xad, 0xad,
  562. 0xad, 0xad, 0xad, 0xad, 0xad, 0xad, 0xad, 0xad,
  563. 0xad, 0xad, 0xad, 0xad, 0xad, 0xad, 0xad, 0xad,
  564. 0xad, 0xad, 0xad, 0xad, 0xad, 0xad, 0xad, 0xad,
  565. },
  566. { /* Quality 7 */
  567. 0x00,
  568. 0x05, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08,
  569. 0x08, 0x08, 0x10, 0x10, 0x10, 0x08, 0x08, 0x08,
  570. 0x08, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10,
  571. 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10,
  572. 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10,
  573. 0x10, 0x10, 0x10, 0x26, 0x26, 0x26, 0x26, 0x26,
  574. 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26,
  575. 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26, 0x26,
  576. 0x01,
  577. 0x15, 0x24, 0x24, 0x30, 0x2a, 0x30, 0x5e, 0x34,
  578. 0x34, 0x5e, 0xc6, 0x84, 0x70, 0x84, 0xc6, 0xc6,
  579. 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6,
  580. 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6,
  581. 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6,
  582. 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6,
  583. 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6,
  584. 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6,
  585. },
  586. { /* Quality 8 */
  587. 0x00,
  588. 0x06, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a,
  589. 0x0a, 0x0a, 0x14, 0x14, 0x14, 0x0a, 0x0a, 0x0a,
  590. 0x0a, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14,
  591. 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14,
  592. 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14,
  593. 0x14, 0x14, 0x14, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f,
  594. 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f,
  595. 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f,
  596. 0x01,
  597. 0x19, 0x2d, 0x2d, 0x3c, 0x34, 0x3c, 0x75, 0x41,
  598. 0x41, 0x75, 0xf7, 0xa5, 0x8c, 0xa5, 0xf7, 0xf7,
  599. 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7,
  600. 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7,
  601. 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7,
  602. 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7,
  603. 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7,
  604. 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7,
  605. },
  606. { /* Quality 9 */
  607. 0x00,
  608. 0x06, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c,
  609. 0x0c, 0x0c, 0x18, 0x18, 0x18, 0x0c, 0x0c, 0x0c,
  610. 0x0c, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
  611. 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
  612. 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
  613. 0x18, 0x18, 0x18, 0x39, 0x39, 0x39, 0x39, 0x39,
  614. 0x39, 0x39, 0x39, 0x39, 0x39, 0x39, 0x39, 0x39,
  615. 0x39, 0x39, 0x39, 0x39, 0x39, 0x39, 0x39, 0x39,
  616. 0x01,
  617. 0x19, 0x36, 0x36, 0x48, 0x3f, 0x48, 0x8d, 0x4e,
  618. 0x4e, 0x8d, 0xff, 0xc6, 0xa8, 0xc6, 0xff, 0xff,
  619. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  620. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  621. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  622. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  623. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  624. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  625. },
  626. { /* Quality 10 */
  627. 0x00,
  628. 0x07, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e,
  629. 0x0e, 0x0e, 0x1c, 0x1c, 0x1c, 0x0e, 0x0e, 0x0e,
  630. 0x0e, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c,
  631. 0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c,
  632. 0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c,
  633. 0x1c, 0x1c, 0x1c, 0x42, 0x42, 0x42, 0x42, 0x42,
  634. 0x42, 0x42, 0x42, 0x42, 0x42, 0x42, 0x42, 0x42,
  635. 0x42, 0x42, 0x42, 0x42, 0x42, 0x42, 0x42, 0x42,
  636. 0x01,
  637. 0x1d, 0x3f, 0x3f, 0x54, 0x49, 0x54, 0xa4, 0x5b,
  638. 0x5b, 0xa4, 0xff, 0xe7, 0xc4, 0xe7, 0xff, 0xff,
  639. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  640. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  641. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  642. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  643. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  644. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  645. },
  646. { /* Quality 11 */
  647. 0x00,
  648. 0x07, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10,
  649. 0x10, 0x10, 0x20, 0x20, 0x20, 0x10, 0x10, 0x10,
  650. 0x10, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
  651. 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
  652. 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
  653. 0x20, 0x20, 0x20, 0x4c, 0x4c, 0x4c, 0x4c, 0x4c,
  654. 0x4c, 0x4c, 0x4c, 0x4c, 0x4c, 0x4c, 0x4c, 0x4c,
  655. 0x4c, 0x4c, 0x4c, 0x4c, 0x4c, 0x4c, 0x4c, 0x4c,
  656. 0x01,
  657. 0x1d, 0x48, 0x48, 0x60, 0x54, 0x60, 0xbc, 0x68,
  658. 0x68, 0xbc, 0xff, 0xff, 0xe0, 0xff, 0xff, 0xff,
  659. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  660. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  661. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  662. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  663. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  664. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  665. },
  666. { /* Quality 12 */
  667. 0x00,
  668. 0x08, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14,
  669. 0x14, 0x14, 0x28, 0x28, 0x28, 0x14, 0x14, 0x14,
  670. 0x14, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28,
  671. 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28,
  672. 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28,
  673. 0x28, 0x28, 0x28, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f,
  674. 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f,
  675. 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f,
  676. 0x01,
  677. 0x22, 0x5a, 0x5a, 0x78, 0x69, 0x78, 0xeb, 0x82,
  678. 0x82, 0xeb, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  679. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  680. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  681. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  682. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  683. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  684. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  685. },
  686. { /* Quality 13 */
  687. 0x00,
  688. 0x08, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
  689. 0x18, 0x18, 0x30, 0x30, 0x30, 0x18, 0x18, 0x18,
  690. 0x18, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30,
  691. 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30,
  692. 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30,
  693. 0x30, 0x30, 0x30, 0x72, 0x72, 0x72, 0x72, 0x72,
  694. 0x72, 0x72, 0x72, 0x72, 0x72, 0x72, 0x72, 0x72,
  695. 0x72, 0x72, 0x72, 0x72, 0x72, 0x72, 0x72, 0x72,
  696. 0x01,
  697. 0x22, 0x6c, 0x6c, 0x90, 0x7e, 0x90, 0xff, 0x9c,
  698. 0x9c, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  699. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  700. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  701. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  702. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  703. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  704. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  705. },
  706. { /* Quality 14 */
  707. 0x00,
  708. 0x0a, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c,
  709. 0x1c, 0x1c, 0x38, 0x38, 0x38, 0x1c, 0x1c, 0x1c,
  710. 0x1c, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38,
  711. 0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38,
  712. 0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38,
  713. 0x38, 0x38, 0x38, 0x85, 0x85, 0x85, 0x85, 0x85,
  714. 0x85, 0x85, 0x85, 0x85, 0x85, 0x85, 0x85, 0x85,
  715. 0x85, 0x85, 0x85, 0x85, 0x85, 0x85, 0x85, 0x85,
  716. 0x01,
  717. 0x2a, 0x7e, 0x7e, 0xa8, 0x93, 0xa8, 0xff, 0xb6,
  718. 0xb6, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  719. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  720. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  721. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  722. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  723. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  724. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  725. },
  726. { /* Quality 15 */
  727. 0x00,
  728. 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
  729. 0x20, 0x20, 0x40, 0x40, 0x40, 0x20, 0x20, 0x20,
  730. 0x20, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40,
  731. 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40,
  732. 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40,
  733. 0x40, 0x40, 0x40, 0x98, 0x98, 0x98, 0x98, 0x98,
  734. 0x98, 0x98, 0x98, 0x98, 0x98, 0x98, 0x98, 0x98,
  735. 0x98, 0x98, 0x98, 0x98, 0x98, 0x98, 0x98, 0x98,
  736. 0x01,
  737. 0x2a, 0x90, 0x90, 0xc0, 0xa8, 0xc0, 0xff, 0xd0,
  738. 0xd0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  739. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  740. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  741. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  742. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  743. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  744. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  745. },
  746. { /* Quality 16-31 */
  747. 0x00,
  748. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  749. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  750. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  751. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  752. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  753. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  754. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  755. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  756. 0x01,
  757. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  758. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  759. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  760. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  761. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  762. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  763. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  764. 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
  765. }
  766. };
  767. static const struct cmd tp6810_cx_init_common[] = {
  768. {0x1c, 0x00},
  769. {TP6800_R10_SIF_TYPE, 0x00},
  770. {0x4e, 0x00},
  771. {0x4f, 0x00},
  772. {TP6800_R50, 0xff},
  773. {TP6800_R51, 0x03},
  774. {0x00, 0x07},
  775. {TP6800_R79_QUALITY, 0x03},
  776. {TP6800_R2F_TIMING_CFG, 0x37},
  777. {TP6800_R30_SENSOR_CFG, 0x10},
  778. {TP6800_R21_ENDP_1_CTL, 0x00},
  779. {TP6800_R52, 0x40},
  780. {TP6800_R53, 0x40},
  781. {TP6800_R54_DARK_CFG, 0x40},
  782. {TP6800_R30_SENSOR_CFG, 0x18},
  783. {0x4b, 0x00},
  784. {TP6800_R3F_FRAME_RATE, 0x83},
  785. {TP6800_R79_QUALITY, 0x05},
  786. {TP6800_R21_ENDP_1_CTL, 0x00},
  787. {0x7c, 0x04},
  788. {0x25, 0x14},
  789. {0x26, 0x0f},
  790. {0x7b, 0x10},
  791. };
  792. static const struct cmd tp6810_ov_init_common[] = {
  793. {0x1c, 0x00},
  794. {TP6800_R10_SIF_TYPE, 0x00},
  795. {0x4e, 0x00},
  796. {0x4f, 0x00},
  797. {TP6800_R50, 0xff},
  798. {TP6800_R51, 0x03},
  799. {0x00, 0x07},
  800. {TP6800_R52, 0x40},
  801. {TP6800_R53, 0x40},
  802. {TP6800_R54_DARK_CFG, 0x40},
  803. {TP6800_R79_QUALITY, 0x03},
  804. {TP6800_R2F_TIMING_CFG, 0x17},
  805. {TP6800_R30_SENSOR_CFG, 0x18},
  806. {TP6800_R21_ENDP_1_CTL, 0x00},
  807. {TP6800_R3F_FRAME_RATE, 0x86},
  808. {0x25, 0x18},
  809. {0x26, 0x0f},
  810. {0x7b, 0x90},
  811. };
  812. static const struct cmd tp6810_bridge_start[] = {
  813. {0x59, 0x88},
  814. {0x5a, 0x0f},
  815. {0x5b, 0x4e},
  816. {TP6800_R5C_EDGE_THRLD, 0x63},
  817. {TP6800_R5D_DEMOSAIC_CFG, 0x00},
  818. {0x03, 0x7f},
  819. {0x04, 0x80},
  820. {0x06, 0x00},
  821. {0x00, 0x00},
  822. };
  823. static const struct cmd tp6810_late_start[] = {
  824. {0x7d, 0x01},
  825. {0xb0, 0x04},
  826. {0xb1, 0x04},
  827. {0xb2, 0x04},
  828. {0xb3, 0x04},
  829. {0xb4, 0x04},
  830. {0xb5, 0x04},
  831. {0xb6, 0x08},
  832. {0xb7, 0x08},
  833. {0xb8, 0x04},
  834. {0xb9, 0x04},
  835. {0xba, 0x04},
  836. {0xbb, 0x04},
  837. {0xbc, 0x04},
  838. {0xbd, 0x08},
  839. {0xbe, 0x08},
  840. {0xbf, 0x08},
  841. {0xc0, 0x04},
  842. {0xc1, 0x04},
  843. {0xc2, 0x08},
  844. {0xc3, 0x08},
  845. {0xc4, 0x08},
  846. {0xc5, 0x08},
  847. {0xc6, 0x08},
  848. {0xc7, 0x13},
  849. {0xc8, 0x04},
  850. {0xc9, 0x08},
  851. {0xca, 0x08},
  852. {0xcb, 0x08},
  853. {0xcc, 0x08},
  854. {0xcd, 0x08},
  855. {0xce, 0x13},
  856. {0xcf, 0x13},
  857. {0xd0, 0x08},
  858. {0xd1, 0x08},
  859. {0xd2, 0x08},
  860. {0xd3, 0x08},
  861. {0xd4, 0x08},
  862. {0xd5, 0x13},
  863. {0xd6, 0x13},
  864. {0xd7, 0x13},
  865. {0xd8, 0x08},
  866. {0xd9, 0x08},
  867. {0xda, 0x08},
  868. {0xdb, 0x08},
  869. {0xdc, 0x13},
  870. {0xdd, 0x13},
  871. {0xde, 0x13},
  872. {0xdf, 0x13},
  873. {0xe0, 0x08},
  874. {0xe1, 0x08},
  875. {0xe2, 0x08},
  876. {0xe3, 0x13},
  877. {0xe4, 0x13},
  878. {0xe5, 0x13},
  879. {0xe6, 0x13},
  880. {0xe7, 0x13},
  881. {0xe8, 0x08},
  882. {0xe9, 0x08},
  883. {0xea, 0x13},
  884. {0xeb, 0x13},
  885. {0xec, 0x13},
  886. {0xed, 0x13},
  887. {0xee, 0x13},
  888. {0xef, 0x13},
  889. {0x7d, 0x02},
  890. /* later after isoc start */
  891. {0x7d, 0x08},
  892. {0x7d, 0x00},
  893. };
  894. static const struct cmd cx0342_timing_seq[] = {
  895. {CX0342_CHANNEL_0_1_L_irst, 0x20},
  896. {CX0342_CHANNEL_0_2_L_irst, 0x24},
  897. {CX0342_CHANNEL_0_2_H_irst, 0x00},
  898. {CX0342_CHANNEL_0_3_L_irst, 0x2f},
  899. {CX0342_CHANNEL_0_3_H_irst, 0x00},
  900. {CX0342_CHANNEL_1_0_L_itx, 0x02},
  901. {CX0342_CHANNEL_1_0_H_itx, 0x00},
  902. {CX0342_CHANNEL_1_1_L_itx, 0x20},
  903. {CX0342_CHANNEL_1_1_H_itx, 0x00},
  904. {CX0342_CHANNEL_1_2_L_itx, 0xe4},
  905. {CX0342_CHANNEL_1_2_H_itx, 0x00},
  906. {CX0342_CHANNEL_1_3_L_itx, 0xee},
  907. {CX0342_CHANNEL_1_3_H_itx, 0x00},
  908. {CX0342_CHANNEL_2_0_L_iwl, 0x30},
  909. {CX0342_CHANNEL_2_0_H_iwl, 0x00},
  910. {CX0342_CHANNEL_3_0_L_ensp, 0x34},
  911. {CX0342_CHANNEL_3_1_L_ensp, 0xe2},
  912. {CX0342_CHANNEL_3_1_H_ensp, 0x00},
  913. {CX0342_CHANNEL_3_2_L_ensp, 0xf6},
  914. {CX0342_CHANNEL_3_2_H_ensp, 0x00},
  915. {CX0342_CHANNEL_3_3_L_ensp, 0xf4},
  916. {CX0342_CHANNEL_3_3_H_ensp, 0x02},
  917. {CX0342_CHANNEL_4_0_L_sela, 0x26},
  918. {CX0342_CHANNEL_4_0_H_sela, 0x00},
  919. {CX0342_CHANNEL_4_1_L_sela, 0xe2},
  920. {CX0342_CHANNEL_4_1_H_sela, 0x00},
  921. {CX0342_CHANNEL_5_0_L_intla, 0x26},
  922. {CX0342_CHANNEL_5_1_L_intla, 0x29},
  923. {CX0342_CHANNEL_5_2_L_intla, 0xf0},
  924. {CX0342_CHANNEL_5_2_H_intla, 0x00},
  925. {CX0342_CHANNEL_5_3_L_intla, 0xf3},
  926. {CX0342_CHANNEL_5_3_H_intla, 0x00},
  927. {CX0342_CHANNEL_6_0_L_xa_sel_pos, 0x24},
  928. {CX0342_CHANNEL_7_1_L_cds_pos, 0x02},
  929. {CX0342_TIMING_EN, 0x01},
  930. };
  931. /* define the JPEG header */
  932. static void jpeg_define(u8 *jpeg_hdr,
  933. int height,
  934. int width)
  935. {
  936. memcpy(jpeg_hdr, jpeg_head, sizeof jpeg_head);
  937. jpeg_hdr[JPEG_HEIGHT_OFFSET + 0] = height >> 8;
  938. jpeg_hdr[JPEG_HEIGHT_OFFSET + 1] = height;
  939. jpeg_hdr[JPEG_HEIGHT_OFFSET + 2] = width >> 8;
  940. jpeg_hdr[JPEG_HEIGHT_OFFSET + 3] = width;
  941. }
  942. /* set the JPEG quality for sensor soi763a */
  943. static void jpeg_set_qual(u8 *jpeg_hdr,
  944. int quality)
  945. {
  946. int i, sc;
  947. if (quality < 50)
  948. sc = 5000 / quality;
  949. else
  950. sc = 200 - quality * 2;
  951. for (i = 0; i < 64; i++) {
  952. jpeg_hdr[JPEG_QT0_OFFSET + i] =
  953. (jpeg_head[JPEG_QT0_OFFSET + i] * sc + 50) / 100;
  954. jpeg_hdr[JPEG_QT1_OFFSET + i] =
  955. (jpeg_head[JPEG_QT1_OFFSET + i] * sc + 50) / 100;
  956. }
  957. }
  958. static void reg_w(struct gspca_dev *gspca_dev, u8 index, u8 value)
  959. {
  960. struct usb_device *dev = gspca_dev->dev;
  961. int ret;
  962. if (gspca_dev->usb_err < 0)
  963. return;
  964. ret = usb_control_msg(dev, usb_sndctrlpipe(dev, 0),
  965. 0x0e,
  966. USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
  967. value, index, NULL, 0, 500);
  968. if (ret < 0) {
  969. pr_err("reg_w err %d\n", ret);
  970. gspca_dev->usb_err = ret;
  971. }
  972. }
  973. /* the returned value is in gspca_dev->usb_buf */
  974. static void reg_r(struct gspca_dev *gspca_dev, u8 index)
  975. {
  976. struct usb_device *dev = gspca_dev->dev;
  977. int ret;
  978. if (gspca_dev->usb_err < 0)
  979. return;
  980. ret = usb_control_msg(dev, usb_rcvctrlpipe(dev, 0),
  981. 0x0d,
  982. USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
  983. 0, index, gspca_dev->usb_buf, 1, 500);
  984. if (ret < 0) {
  985. pr_err("reg_r err %d\n", ret);
  986. gspca_dev->usb_err = ret;
  987. }
  988. }
  989. static void reg_w_buf(struct gspca_dev *gspca_dev,
  990. const struct cmd *p, int l)
  991. {
  992. do {
  993. reg_w(gspca_dev, p->reg, p->val);
  994. p++;
  995. } while (--l > 0);
  996. }
  997. static int i2c_w(struct gspca_dev *gspca_dev, u8 index, u8 value)
  998. {
  999. struct sd *sd = (struct sd *) gspca_dev;
  1000. reg_w(gspca_dev, TP6800_R11_SIF_CONTROL, 0x00);
  1001. reg_w(gspca_dev, TP6800_R19_SIF_ADDR_S2, index);
  1002. reg_w(gspca_dev, TP6800_R13_SIF_TX_DATA, value);
  1003. reg_w(gspca_dev, TP6800_R11_SIF_CONTROL, 0x01);
  1004. if (sd->bridge == BRIDGE_TP6800)
  1005. return 0;
  1006. msleep(5);
  1007. reg_r(gspca_dev, TP6800_R11_SIF_CONTROL);
  1008. if (gspca_dev->usb_buf[0] == 0)
  1009. return 0;
  1010. reg_w(gspca_dev, TP6800_R11_SIF_CONTROL, 0x00);
  1011. return -1; /* error */
  1012. }
  1013. static void i2c_w_buf(struct gspca_dev *gspca_dev,
  1014. const struct cmd *p, int l)
  1015. {
  1016. do {
  1017. i2c_w(gspca_dev, p->reg, p->val);
  1018. p++;
  1019. } while (--l > 0);
  1020. }
  1021. static int i2c_r(struct gspca_dev *gspca_dev, u8 index, int len)
  1022. {
  1023. struct sd *sd = (struct sd *) gspca_dev;
  1024. int v;
  1025. reg_w(gspca_dev, TP6800_R19_SIF_ADDR_S2, index);
  1026. reg_w(gspca_dev, TP6800_R11_SIF_CONTROL, 0x02);
  1027. msleep(5);
  1028. reg_r(gspca_dev, TP6800_R14_SIF_RX_DATA);
  1029. v = gspca_dev->usb_buf[0];
  1030. if (sd->bridge == BRIDGE_TP6800)
  1031. return v;
  1032. if (len > 1) {
  1033. reg_r(gspca_dev, TP6800_R1B_SIF_RX_DATA2);
  1034. v |= (gspca_dev->usb_buf[0] << 8);
  1035. }
  1036. reg_r(gspca_dev, TP6800_R11_SIF_CONTROL);
  1037. if (gspca_dev->usb_buf[0] == 0)
  1038. return v;
  1039. reg_w(gspca_dev, TP6800_R11_SIF_CONTROL, 0x00);
  1040. return -1;
  1041. }
  1042. static void bulk_w(struct gspca_dev *gspca_dev,
  1043. u8 tag,
  1044. const u8 *data,
  1045. int length)
  1046. {
  1047. struct usb_device *dev = gspca_dev->dev;
  1048. int count, actual_count, ret;
  1049. if (gspca_dev->usb_err < 0)
  1050. return;
  1051. for (;;) {
  1052. count = length > BULK_OUT_SIZE - 1
  1053. ? BULK_OUT_SIZE - 1 : length;
  1054. gspca_dev->usb_buf[0] = tag;
  1055. memcpy(&gspca_dev->usb_buf[1], data, count);
  1056. ret = usb_bulk_msg(dev,
  1057. usb_sndbulkpipe(dev, 3),
  1058. gspca_dev->usb_buf, count + 1,
  1059. &actual_count, 500);
  1060. if (ret < 0) {
  1061. pr_err("bulk write error %d tag=%02x\n",
  1062. ret, tag);
  1063. gspca_dev->usb_err = ret;
  1064. return;
  1065. }
  1066. length -= count;
  1067. if (length <= 0)
  1068. break;
  1069. data += count;
  1070. }
  1071. }
  1072. static int probe_6810(struct gspca_dev *gspca_dev)
  1073. {
  1074. u8 gpio;
  1075. int ret;
  1076. reg_r(gspca_dev, TP6800_R18_GPIO_DATA);
  1077. gpio = gspca_dev->usb_buf[0];
  1078. reg_w(gspca_dev, TP6800_R18_GPIO_DATA, gpio);
  1079. reg_w(gspca_dev, TP6800_R18_GPIO_DATA, gpio | 0x20);
  1080. reg_w(gspca_dev, TP6800_R18_GPIO_DATA, gpio);
  1081. reg_w(gspca_dev, TP6800_R10_SIF_TYPE, 0x04); /* i2c 16 bits */
  1082. reg_w(gspca_dev, TP6800_R12_SIF_ADDR_S, 0x21); /* ov??? */
  1083. reg_w(gspca_dev, TP6800_R1A_SIF_TX_DATA2, 0x00);
  1084. if (i2c_w(gspca_dev, 0x00, 0x00) >= 0)
  1085. return SENSOR_SOI763A;
  1086. reg_w(gspca_dev, TP6800_R18_GPIO_DATA, gpio | 0x20);
  1087. reg_w(gspca_dev, TP6800_R10_SIF_TYPE, 0x00); /* i2c 8 bits */
  1088. reg_w(gspca_dev, TP6800_R12_SIF_ADDR_S, 0x7f); /* (unknown i2c) */
  1089. if (i2c_w(gspca_dev, 0x00, 0x00) >= 0)
  1090. return -2;
  1091. reg_w(gspca_dev, TP6800_R18_GPIO_DATA, gpio | 0x20);
  1092. reg_w(gspca_dev, TP6800_R18_GPIO_DATA, gpio);
  1093. reg_w(gspca_dev, TP6800_R18_GPIO_DATA, gpio | 0x20);
  1094. reg_w(gspca_dev, TP6800_R10_SIF_TYPE, 0x00); /* i2c 8 bits */
  1095. reg_w(gspca_dev, TP6800_R12_SIF_ADDR_S, 0x11); /* tas??? / hv??? */
  1096. ret = i2c_r(gspca_dev, 0x00, 1);
  1097. if (ret > 0)
  1098. return -3;
  1099. reg_w(gspca_dev, TP6800_R18_GPIO_DATA, gpio | 0x20);
  1100. reg_w(gspca_dev, TP6800_R18_GPIO_DATA, gpio);
  1101. reg_w(gspca_dev, TP6800_R18_GPIO_DATA, gpio | 0x20);
  1102. reg_w(gspca_dev, TP6800_R12_SIF_ADDR_S, 0x6e); /* po??? */
  1103. ret = i2c_r(gspca_dev, 0x00, 1);
  1104. if (ret > 0)
  1105. return -4;
  1106. ret = i2c_r(gspca_dev, 0x01, 1);
  1107. if (ret > 0)
  1108. return -5;
  1109. reg_w(gspca_dev, TP6800_R18_GPIO_DATA, gpio | 0x20);
  1110. reg_w(gspca_dev, TP6800_R18_GPIO_DATA, gpio);
  1111. reg_w(gspca_dev, TP6800_R18_GPIO_DATA, gpio | 0x20);
  1112. reg_w(gspca_dev, TP6800_R10_SIF_TYPE, 0x04); /* i2c 16 bits */
  1113. reg_w(gspca_dev, TP6800_R12_SIF_ADDR_S, 0x5d); /* mi/mt??? */
  1114. ret = i2c_r(gspca_dev, 0x00, 2);
  1115. if (ret > 0)
  1116. return -6;
  1117. reg_w(gspca_dev, TP6800_R18_GPIO_DATA, gpio | 0x20);
  1118. reg_w(gspca_dev, TP6800_R18_GPIO_DATA, gpio);
  1119. reg_w(gspca_dev, TP6800_R18_GPIO_DATA, gpio | 0x20);
  1120. reg_w(gspca_dev, TP6800_R12_SIF_ADDR_S, 0x5c); /* mi/mt??? */
  1121. ret = i2c_r(gspca_dev, 0x36, 2);
  1122. if (ret > 0)
  1123. return -7;
  1124. reg_w(gspca_dev, TP6800_R18_GPIO_DATA, gpio);
  1125. reg_w(gspca_dev, TP6800_R18_GPIO_DATA, gpio | 0x20);
  1126. reg_w(gspca_dev, TP6800_R18_GPIO_DATA, gpio);
  1127. reg_w(gspca_dev, TP6800_R12_SIF_ADDR_S, 0x61); /* (unknown i2c) */
  1128. reg_w(gspca_dev, TP6800_R1A_SIF_TX_DATA2, 0x10);
  1129. if (i2c_w(gspca_dev, 0xff, 0x00) >= 0)
  1130. return -8;
  1131. reg_w(gspca_dev, TP6800_R18_GPIO_DATA, gpio | 0x20);
  1132. reg_w(gspca_dev, TP6800_R18_GPIO_DATA, gpio);
  1133. reg_w(gspca_dev, TP6800_R18_GPIO_DATA, gpio | 0x20);
  1134. reg_w(gspca_dev, TP6800_R10_SIF_TYPE, 0x00); /* i2c 8 bits */
  1135. reg_w(gspca_dev, TP6800_R12_SIF_ADDR_S, 0x20); /* cx0342 */
  1136. ret = i2c_r(gspca_dev, 0x00, 1);
  1137. if (ret > 0)
  1138. return SENSOR_CX0342;
  1139. return -9;
  1140. }
  1141. static void cx0342_6810_init(struct gspca_dev *gspca_dev)
  1142. {
  1143. static const struct cmd reg_init_1[] = {
  1144. {TP6800_R2F_TIMING_CFG, 0x2f},
  1145. {0x25, 0x02},
  1146. {TP6800_R21_ENDP_1_CTL, 0x00},
  1147. {TP6800_R3F_FRAME_RATE, 0x80},
  1148. {TP6800_R2F_TIMING_CFG, 0x2f},
  1149. {TP6800_R18_GPIO_DATA, 0xe1},
  1150. {TP6800_R18_GPIO_DATA, 0xc1},
  1151. {TP6800_R18_GPIO_DATA, 0xe1},
  1152. {TP6800_R11_SIF_CONTROL, 0x00},
  1153. };
  1154. static const struct cmd reg_init_2[] = {
  1155. {TP6800_R78_FORMAT, 0x48},
  1156. {TP6800_R11_SIF_CONTROL, 0x00},
  1157. };
  1158. static const struct cmd sensor_init[] = {
  1159. {CX0342_OUTPUT_CTRL, 0x07},
  1160. {CX0342_BYPASS_MODE, 0x58},
  1161. {CX0342_GPXLTHD_L, 0x28},
  1162. {CX0342_RBPXLTHD_L, 0x28},
  1163. {CX0342_PLANETHD_L, 0x50},
  1164. {CX0342_PLANETHD_H, 0x03},
  1165. {CX0342_RB_GAP_L, 0xff},
  1166. {CX0342_RB_GAP_H, 0x07},
  1167. {CX0342_G_GAP_L, 0xff},
  1168. {CX0342_G_GAP_H, 0x07},
  1169. {CX0342_RST_OVERFLOW_L, 0x5c},
  1170. {CX0342_RST_OVERFLOW_H, 0x01},
  1171. {CX0342_DATA_OVERFLOW_L, 0xfc},
  1172. {CX0342_DATA_OVERFLOW_H, 0x03},
  1173. {CX0342_DATA_UNDERFLOW_L, 0x00},
  1174. {CX0342_DATA_UNDERFLOW_H, 0x00},
  1175. {CX0342_SYS_CTRL_0, 0x40},
  1176. {CX0342_GLOBAL_GAIN, 0x01},
  1177. {CX0342_CLOCK_GEN, 0x00},
  1178. {CX0342_SYS_CTRL_0, 0x02},
  1179. {CX0342_IDLE_CTRL, 0x05},
  1180. {CX0342_ADCGN, 0x00},
  1181. {CX0342_ADC_CTL, 0x00},
  1182. {CX0342_LVRST_BLBIAS, 0x01},
  1183. {CX0342_VTHSEL, 0x0b},
  1184. {CX0342_RAMP_RIV, 0x0b},
  1185. {CX0342_LDOSEL, 0x07},
  1186. {CX0342_SPV_VALUE_L, 0x40},
  1187. {CX0342_SPV_VALUE_H, 0x02},
  1188. {CX0342_AUTO_ADC_CALIB, 0x81},
  1189. {CX0342_TIMING_EN, 0x01},
  1190. };
  1191. reg_w_buf(gspca_dev, reg_init_1, ARRAY_SIZE(reg_init_1));
  1192. reg_w_buf(gspca_dev, tp6810_cx_init_common,
  1193. ARRAY_SIZE(tp6810_cx_init_common));
  1194. reg_w_buf(gspca_dev, reg_init_2, ARRAY_SIZE(reg_init_2));
  1195. reg_w(gspca_dev, TP6800_R12_SIF_ADDR_S, 0x20); /* cx0342 I2C addr */
  1196. i2c_w_buf(gspca_dev, sensor_init, ARRAY_SIZE(sensor_init));
  1197. i2c_w_buf(gspca_dev, cx0342_timing_seq, ARRAY_SIZE(cx0342_timing_seq));
  1198. }
  1199. static void soi763a_6810_init(struct gspca_dev *gspca_dev)
  1200. {
  1201. static const struct cmd reg_init_1[] = {
  1202. {TP6800_R2F_TIMING_CFG, 0x2f},
  1203. {TP6800_R18_GPIO_DATA, 0xe1},
  1204. {0x25, 0x02},
  1205. {TP6800_R21_ENDP_1_CTL, 0x00},
  1206. {TP6800_R3F_FRAME_RATE, 0x80},
  1207. {TP6800_R2F_TIMING_CFG, 0x2f},
  1208. {TP6800_R18_GPIO_DATA, 0xc1},
  1209. };
  1210. static const struct cmd reg_init_2[] = {
  1211. {TP6800_R78_FORMAT, 0x54},
  1212. };
  1213. static const struct cmd sensor_init[] = {
  1214. {0x00, 0x00},
  1215. {0x01, 0x80},
  1216. {0x02, 0x80},
  1217. {0x03, 0x90},
  1218. {0x04, 0x20},
  1219. {0x05, 0x20},
  1220. {0x06, 0x80},
  1221. {0x07, 0x00},
  1222. {0x08, 0xff},
  1223. {0x09, 0xff},
  1224. {0x0a, 0x76}, /* 7630 = soi673a */
  1225. {0x0b, 0x30},
  1226. {0x0c, 0x20},
  1227. {0x0d, 0x20},
  1228. {0x0e, 0xff},
  1229. {0x0f, 0xff},
  1230. {0x10, 0x41},
  1231. {0x15, 0x14},
  1232. {0x11, 0x40},
  1233. {0x12, 0x48},
  1234. {0x13, 0x80},
  1235. {0x14, 0x80},
  1236. {0x16, 0x03},
  1237. {0x28, 0xb0},
  1238. {0x71, 0x20},
  1239. {0x75, 0x8e},
  1240. {0x17, 0x1b},
  1241. {0x18, 0xbd},
  1242. {0x19, 0x05},
  1243. {0x1a, 0xf6},
  1244. {0x1b, 0x04},
  1245. {0x1c, 0x7f}, /* omnivision */
  1246. {0x1d, 0xa2},
  1247. {0x1e, 0x00},
  1248. {0x1f, 0x00},
  1249. {0x20, 0x45},
  1250. {0x21, 0x80},
  1251. {0x22, 0x80},
  1252. {0x23, 0xee},
  1253. {0x24, 0x50},
  1254. {0x25, 0x7a},
  1255. {0x26, 0xa0},
  1256. {0x27, 0x9a},
  1257. {0x29, 0x30},
  1258. {0x2a, 0x80},
  1259. {0x2b, 0x00},
  1260. {0x2c, 0xac},
  1261. {0x2d, 0x05},
  1262. {0x2e, 0x80},
  1263. {0x2f, 0x3c},
  1264. {0x30, 0x22},
  1265. {0x31, 0x00},
  1266. {0x32, 0x86},
  1267. {0x33, 0x08},
  1268. {0x34, 0xff},
  1269. {0x35, 0xff},
  1270. {0x36, 0xff},
  1271. {0x37, 0xff},
  1272. {0x38, 0xff},
  1273. {0x39, 0xff},
  1274. {0x3a, 0xfe},
  1275. {0x3b, 0xfe},
  1276. {0x3c, 0xfe},
  1277. {0x3d, 0xfe},
  1278. {0x3e, 0xfe},
  1279. {0x3f, 0x71},
  1280. {0x40, 0xff},
  1281. {0x41, 0xff},
  1282. {0x42, 0xff},
  1283. {0x43, 0xff},
  1284. {0x44, 0xff},
  1285. {0x45, 0xff},
  1286. {0x46, 0xff},
  1287. {0x47, 0xff},
  1288. {0x48, 0xff},
  1289. {0x49, 0xff},
  1290. {0x4a, 0xfe},
  1291. {0x4b, 0xff},
  1292. {0x4c, 0x00},
  1293. {0x4d, 0x00},
  1294. {0x4e, 0xff},
  1295. {0x4f, 0xff},
  1296. {0x50, 0xff},
  1297. {0x51, 0xff},
  1298. {0x52, 0xff},
  1299. {0x53, 0xff},
  1300. {0x54, 0xff},
  1301. {0x55, 0xff},
  1302. {0x56, 0xff},
  1303. {0x57, 0xff},
  1304. {0x58, 0xff},
  1305. {0x59, 0xff},
  1306. {0x5a, 0xff},
  1307. {0x5b, 0xfe},
  1308. {0x5c, 0xff},
  1309. {0x5d, 0x8f},
  1310. {0x5e, 0xff},
  1311. {0x5f, 0x8f},
  1312. {0x60, 0xa2},
  1313. {0x61, 0x4a},
  1314. {0x62, 0xf3},
  1315. {0x63, 0x75},
  1316. {0x64, 0xf0},
  1317. {0x65, 0x00},
  1318. {0x66, 0x55},
  1319. {0x67, 0x92},
  1320. {0x68, 0xa0},
  1321. {0x69, 0x4a},
  1322. {0x6a, 0x22},
  1323. {0x6b, 0x00},
  1324. {0x6c, 0x33},
  1325. {0x6d, 0x44},
  1326. {0x6e, 0x22},
  1327. {0x6f, 0x84},
  1328. {0x70, 0x0b},
  1329. {0x72, 0x10},
  1330. {0x73, 0x50},
  1331. {0x74, 0x21},
  1332. {0x76, 0x00},
  1333. {0x77, 0xa5},
  1334. {0x78, 0x80},
  1335. {0x79, 0x80},
  1336. {0x7a, 0x80},
  1337. {0x7b, 0xe2},
  1338. {0x7c, 0x00},
  1339. {0x7d, 0xf7},
  1340. {0x7e, 0x00},
  1341. {0x7f, 0x00},
  1342. };
  1343. reg_w_buf(gspca_dev, reg_init_1, ARRAY_SIZE(reg_init_1));
  1344. reg_w_buf(gspca_dev, tp6810_ov_init_common,
  1345. ARRAY_SIZE(tp6810_ov_init_common));
  1346. reg_w_buf(gspca_dev, reg_init_2, ARRAY_SIZE(reg_init_2));
  1347. i2c_w(gspca_dev, 0x12, 0x80); /* sensor reset */
  1348. msleep(10);
  1349. i2c_w_buf(gspca_dev, sensor_init, ARRAY_SIZE(sensor_init));
  1350. }
  1351. /* set the gain and exposure */
  1352. static void setexposure(struct gspca_dev *gspca_dev)
  1353. {
  1354. struct sd *sd = (struct sd *) gspca_dev;
  1355. if (sd->sensor == SENSOR_CX0342) {
  1356. int expo;
  1357. expo = (sd->ctrls[EXPOSURE].val << 2) - 1;
  1358. i2c_w(gspca_dev, CX0342_EXPO_LINE_L, expo);
  1359. i2c_w(gspca_dev, CX0342_EXPO_LINE_H, expo >> 8);
  1360. if (sd->bridge == BRIDGE_TP6800)
  1361. i2c_w(gspca_dev, CX0342_RAW_GBGAIN_H,
  1362. sd->ctrls[GAIN].val >> 8);
  1363. i2c_w(gspca_dev, CX0342_RAW_GBGAIN_L, sd->ctrls[GAIN].val);
  1364. if (sd->bridge == BRIDGE_TP6800)
  1365. i2c_w(gspca_dev, CX0342_RAW_GRGAIN_H,
  1366. sd->ctrls[GAIN].val >> 8);
  1367. i2c_w(gspca_dev, CX0342_RAW_GRGAIN_L, sd->ctrls[GAIN].val);
  1368. if (sd->bridge == BRIDGE_TP6800)
  1369. i2c_w(gspca_dev, CX0342_RAW_BGAIN_H,
  1370. sd->ctrls[BGAIN].val >> 8);
  1371. i2c_w(gspca_dev, CX0342_RAW_BGAIN_L, sd->ctrls[BGAIN].val);
  1372. if (sd->bridge == BRIDGE_TP6800)
  1373. i2c_w(gspca_dev, CX0342_RAW_RGAIN_H,
  1374. sd->ctrls[RGAIN].val >> 8);
  1375. i2c_w(gspca_dev, CX0342_RAW_RGAIN_L, sd->ctrls[RGAIN].val);
  1376. i2c_w(gspca_dev, CX0342_SYS_CTRL_0,
  1377. sd->bridge == BRIDGE_TP6800 ? 0x80 : 0x81);
  1378. return;
  1379. }
  1380. /* soi763a */
  1381. i2c_w(gspca_dev, 0x10, /* AEC_H (exposure time) */
  1382. sd->ctrls[EXPOSURE].val);
  1383. /* i2c_w(gspca_dev, 0x76, 0x02); * AEC_L ([1:0] */
  1384. i2c_w(gspca_dev, 0x00, /* gain */
  1385. sd->ctrls[GAIN].val);
  1386. }
  1387. /* set the JPEG quantization tables */
  1388. static void set_dqt(struct gspca_dev *gspca_dev, u8 q)
  1389. {
  1390. struct sd *sd = (struct sd *) gspca_dev;
  1391. /* update the jpeg quantization tables */
  1392. PDEBUG(D_STREAM, "q %d -> %d", sd->quality, q);
  1393. sd->quality = q;
  1394. if (q > 16)
  1395. q = 16;
  1396. if (sd->sensor == SENSOR_SOI763A)
  1397. jpeg_set_qual(sd->jpeg_hdr, jpeg_q[q]);
  1398. else
  1399. memcpy(&sd->jpeg_hdr[JPEG_QT0_OFFSET - 1],
  1400. DQT[q], sizeof DQT[0]);
  1401. }
  1402. /* set the JPEG compression quality factor */
  1403. static void setquality(struct gspca_dev *gspca_dev)
  1404. {
  1405. struct sd *sd = (struct sd *) gspca_dev;
  1406. u16 q;
  1407. q = sd->ctrls[QUALITY].val;
  1408. if (q != 16)
  1409. q = 15 - q;
  1410. reg_w(gspca_dev, TP6800_R7A_BLK_THRLD, 0x00);
  1411. reg_w(gspca_dev, TP6800_R79_QUALITY, 0x04);
  1412. reg_w(gspca_dev, TP6800_R79_QUALITY, q);
  1413. /* auto quality */
  1414. if (q == 15 && sd->bridge == BRIDGE_TP6810) {
  1415. msleep(4);
  1416. reg_w(gspca_dev, TP6800_R7A_BLK_THRLD, 0x19);
  1417. }
  1418. }
  1419. static const u8 color_null[18] = {
  1420. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1421. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1422. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  1423. };
  1424. static const u8 color_gain[NSENSORS][18] = {
  1425. [SENSOR_CX0342] =
  1426. {0x4c, 0x00, 0xa9, 0x00, 0x31, 0x00, /* Y R/G/B (LE values) */
  1427. 0xb6, 0x03, 0x6c, 0x03, 0xe0, 0x00, /* U R/G/B */
  1428. 0xdf, 0x00, 0x46, 0x03, 0xdc, 0x03}, /* V R/G/B */
  1429. [SENSOR_SOI763A] =
  1430. {0x4c, 0x00, 0x95, 0x00, 0x1d, 0x00, /* Y R/G/B (LE values) */
  1431. 0xb6, 0x03, 0x6c, 0x03, 0xd7, 0x00, /* U R/G/B */
  1432. 0xd5, 0x00, 0x46, 0x03, 0xdc, 0x03}, /* V R/G/B */
  1433. };
  1434. static void setgamma(struct gspca_dev *gspca_dev)
  1435. {
  1436. struct sd *sd = (struct sd *) gspca_dev;
  1437. int gamma;
  1438. #define NGAMMA 6
  1439. static const u8 gamma_tb[NGAMMA][3][1024] = {
  1440. { /* gamma 0 - from tp6800 + soi763a */
  1441. {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1442. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1443. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1444. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
  1445. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1446. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1447. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1448. 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x02,
  1449. 0x02, 0x03, 0x05, 0x07, 0x07, 0x08, 0x09, 0x09,
  1450. 0x0a, 0x0c, 0x0c, 0x0d, 0x0e, 0x0e, 0x10, 0x11,
  1451. 0x11, 0x12, 0x14, 0x14, 0x15, 0x16, 0x16, 0x17,
  1452. 0x17, 0x18, 0x1a, 0x1a, 0x1b, 0x1b, 0x1c, 0x1e,
  1453. 0x1e, 0x1f, 0x1f, 0x20, 0x20, 0x22, 0x23, 0x23,
  1454. 0x25, 0x25, 0x26, 0x26, 0x27, 0x27, 0x28, 0x28,
  1455. 0x29, 0x29, 0x2b, 0x2c, 0x2c, 0x2d, 0x2d, 0x2f,
  1456. 0x2f, 0x30, 0x30, 0x31, 0x31, 0x33, 0x33, 0x34,
  1457. 0x34, 0x34, 0x35, 0x35, 0x37, 0x37, 0x38, 0x38,
  1458. 0x39, 0x39, 0x3a, 0x3a, 0x3b, 0x3b, 0x3b, 0x3c,
  1459. 0x3c, 0x3d, 0x3d, 0x3f, 0x3f, 0x40, 0x40, 0x40,
  1460. 0x42, 0x42, 0x43, 0x43, 0x44, 0x44, 0x44, 0x45,
  1461. 0x45, 0x47, 0x47, 0x47, 0x48, 0x48, 0x49, 0x49,
  1462. 0x4a, 0x4a, 0x4a, 0x4b, 0x4b, 0x4b, 0x4c, 0x4c,
  1463. 0x4d, 0x4d, 0x4d, 0x4f, 0x4f, 0x50, 0x50, 0x50,
  1464. 0x52, 0x52, 0x52, 0x53, 0x53, 0x54, 0x54, 0x54,
  1465. 0x55, 0x55, 0x55, 0x56, 0x56, 0x58, 0x58, 0x58,
  1466. 0x59, 0x59, 0x59, 0x5a, 0x5a, 0x5a, 0x5b, 0x5b,
  1467. 0x5b, 0x5c, 0x5c, 0x5c, 0x5e, 0x5e, 0x5e, 0x5f,
  1468. 0x5f, 0x5f, 0x60, 0x60, 0x60, 0x61, 0x61, 0x61,
  1469. 0x62, 0x62, 0x62, 0x63, 0x63, 0x63, 0x65, 0x65,
  1470. 0x65, 0x66, 0x66, 0x66, 0x67, 0x67, 0x67, 0x68,
  1471. 0x68, 0x68, 0x69, 0x69, 0x69, 0x69, 0x6a, 0x6a,
  1472. 0x6a, 0x6c, 0x6c, 0x6c, 0x6d, 0x6d, 0x6d, 0x6e,
  1473. 0x6e, 0x6e, 0x6e, 0x6f, 0x6f, 0x6f, 0x70, 0x70,
  1474. 0x70, 0x71, 0x71, 0x71, 0x71, 0x73, 0x73, 0x73,
  1475. 0x74, 0x74, 0x74, 0x74, 0x75, 0x75, 0x75, 0x77,
  1476. 0x77, 0x77, 0x77, 0x78, 0x78, 0x78, 0x79, 0x79,
  1477. 0x79, 0x79, 0x7a, 0x7a, 0x7a, 0x7a, 0x7b, 0x7b,
  1478. 0x7b, 0x7c, 0x7c, 0x7c, 0x7c, 0x7d, 0x7d, 0x7d,
  1479. 0x7d, 0x7f, 0x7f, 0x7f, 0x80, 0x80, 0x80, 0x80,
  1480. 0x81, 0x81, 0x81, 0x81, 0x82, 0x82, 0x82, 0x82,
  1481. 0x84, 0x84, 0x84, 0x85, 0x85, 0x85, 0x85, 0x86,
  1482. 0x86, 0x86, 0x86, 0x88, 0x88, 0x88, 0x88, 0x89,
  1483. 0x89, 0x89, 0x89, 0x8a, 0x8a, 0x8a, 0x8a, 0x8b,
  1484. 0x8b, 0x8b, 0x8b, 0x8d, 0x8d, 0x8d, 0x8d, 0x8e,
  1485. 0x8e, 0x8e, 0x8e, 0x8f, 0x8f, 0x8f, 0x8f, 0x90,
  1486. 0x90, 0x90, 0x90, 0x90, 0x91, 0x91, 0x91, 0x91,
  1487. 0x92, 0x92, 0x92, 0x92, 0x93, 0x93, 0x93, 0x93,
  1488. 0x94, 0x94, 0x94, 0x94, 0x96, 0x96, 0x96, 0x96,
  1489. 0x96, 0x97, 0x97, 0x97, 0x97, 0x98, 0x98, 0x98,
  1490. 0x98, 0x99, 0x99, 0x99, 0x99, 0x99, 0x9a, 0x9a,
  1491. 0x9a, 0x9a, 0x9b, 0x9b, 0x9b, 0x9b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x00, 0x00, 0x00, 0x00, 0x00,
  1571. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1572. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
  1573. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1574. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1575. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1576. 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x02,
  1577. 0x02, 0x03, 0x05, 0x07, 0x07, 0x08, 0x09, 0x09,
  1578. 0x0a, 0x0c, 0x0c, 0x0d, 0x0e, 0x0e, 0x10, 0x11,
  1579. 0x11, 0x12, 0x14, 0x14, 0x15, 0x16, 0x16, 0x17,
  1580. 0x17, 0x18, 0x1a, 0x1a, 0x1b, 0x1b, 0x1c, 0x1e,
  1581. 0x1e, 0x1f, 0x1f, 0x20, 0x20, 0x22, 0x23, 0x23,
  1582. 0x25, 0x25, 0x26, 0x26, 0x27, 0x27, 0x28, 0x28,
  1583. 0x29, 0x29, 0x2b, 0x2c, 0x2c, 0x2d, 0x2d, 0x2f,
  1584. 0x2f, 0x30, 0x30, 0x31, 0x31, 0x33, 0x33, 0x34,
  1585. 0x34, 0x34, 0x35, 0x35, 0x37, 0x37, 0x38, 0x38,
  1586. 0x39, 0x39, 0x3a, 0x3a, 0x3b, 0x3b, 0x3b, 0x3c,
  1587. 0x3c, 0x3d, 0x3d, 0x3f, 0x3f, 0x40, 0x40, 0x40,
  1588. 0x42, 0x42, 0x43, 0x43, 0x44, 0x44, 0x44, 0x45,
  1589. 0x45, 0x47, 0x47, 0x47, 0x48, 0x48, 0x49, 0x49,
  1590. 0x4a, 0x4a, 0x4a, 0x4b, 0x4b, 0x4b, 0x4c, 0x4c,
  1591. 0x4d, 0x4d, 0x4d, 0x4f, 0x4f, 0x50, 0x50, 0x50,
  1592. 0x52, 0x52, 0x52, 0x53, 0x53, 0x54, 0x54, 0x54,
  1593. 0x55, 0x55, 0x55, 0x56, 0x56, 0x58, 0x58, 0x58,
  1594. 0x59, 0x59, 0x59, 0x5a, 0x5a, 0x5a, 0x5b, 0x5b,
  1595. 0x5b, 0x5c, 0x5c, 0x5c, 0x5e, 0x5e, 0x5e, 0x5f,
  1596. 0x5f, 0x5f, 0x60, 0x60, 0x60, 0x61, 0x61, 0x61,
  1597. 0x62, 0x62, 0x62, 0x63, 0x63, 0x63, 0x65, 0x65,
  1598. 0x65, 0x66, 0x66, 0x66, 0x67, 0x67, 0x67, 0x68,
  1599. 0x68, 0x68, 0x69, 0x69, 0x69, 0x69, 0x6a, 0x6a,
  1600. 0x6a, 0x6c, 0x6c, 0x6c, 0x6d, 0x6d, 0x6d, 0x6e,
  1601. 0x6e, 0x6e, 0x6e, 0x6f, 0x6f, 0x6f, 0x70, 0x70,
  1602. 0x70, 0x71, 0x71, 0x71, 0x71, 0x73, 0x73, 0x73,
  1603. 0x74, 0x74, 0x74, 0x74, 0x75, 0x75, 0x75, 0x77,
  1604. 0x77, 0x77, 0x77, 0x78, 0x78, 0x78, 0x79, 0x79,
  1605. 0x79, 0x79, 0x7a, 0x7a, 0x7a, 0x7a, 0x7b, 0x7b,
  1606. 0x7b, 0x7c, 0x7c, 0x7c, 0x7c, 0x7d, 0x7d, 0x7d,
  1607. 0x7d, 0x7f, 0x7f, 0x7f, 0x80, 0x80, 0x80, 0x80,
  1608. 0x81, 0x81, 0x81, 0x81, 0x82, 0x82, 0x82, 0x82,
  1609. 0x84, 0x84, 0x84, 0x85, 0x85, 0x85, 0x85, 0x86,
  1610. 0x86, 0x86, 0x86, 0x88, 0x88, 0x88, 0x88, 0x89,
  1611. 0x89, 0x89, 0x89, 0x8a, 0x8a, 0x8a, 0x8a, 0x8b,
  1612. 0x8b, 0x8b, 0x8b, 0x8d, 0x8d, 0x8d, 0x8d, 0x8e,
  1613. 0x8e, 0x8e, 0x8e, 0x8f, 0x8f, 0x8f, 0x8f, 0x90,
  1614. 0x90, 0x90, 0x90, 0x90, 0x91, 0x91, 0x91, 0x91,
  1615. 0x92, 0x92, 0x92, 0x92, 0x93, 0x93, 0x93, 0x93,
  1616. 0x94, 0x94, 0x94, 0x94, 0x96, 0x96, 0x96, 0x96,
  1617. 0x96, 0x97, 0x97, 0x97, 0x97, 0x98, 0x98, 0x98,
  1618. 0x98, 0x99, 0x99, 0x99, 0x99, 0x99, 0x9a, 0x9a,
  1619. 0x9a, 0x9a, 0x9b, 0x9b, 0x9b, 0x9b, 0x9c, 0x9c,
  1620. 0x9c, 0x9c, 0x9c, 0x9d, 0x9d, 0x9d, 0x9d, 0x9e,
  1621. 0x9e, 0x9e, 0x9e, 0x9e, 0xa0, 0xa0, 0xa0, 0xa0,
  1622. 0xa1, 0xa1, 0xa1, 0xa1, 0xa1, 0xa2, 0xa2, 0xa2,
  1623. 0xa2, 0xa3, 0xa3, 0xa3, 0xa3, 0xa3, 0xa4, 0xa4,
  1624. 0xa4, 0xa4, 0xa4, 0xa5, 0xa5, 0xa5, 0xa5, 0xa6,
  1625. 0xa6, 0xa6, 0xa6, 0xa6, 0xa8, 0xa8, 0xa8, 0xa8,
  1626. 0xa8, 0xa9, 0xa9, 0xa9, 0xa9, 0xab, 0xab, 0xab,
  1627. 0xab, 0xab, 0xac, 0xac, 0xac, 0xac, 0xac, 0xad,
  1628. 0xad, 0xad, 0xad, 0xae, 0xae, 0xae, 0xae, 0xae,
  1629. 0xaf, 0xaf, 0xaf, 0xaf, 0xaf, 0xb0, 0xb0, 0xb0,
  1630. 0xb0, 0xb0, 0xb1, 0xb1, 0xb1, 0xb1, 0xb1, 0xb2,
  1631. 0xb2, 0xb2, 0xb2, 0xb2, 0xb3, 0xb3, 0xb3, 0xb3,
  1632. 0xb4, 0xb4, 0xb4, 0xb4, 0xb4, 0xb6, 0xb6, 0xb6,
  1633. 0xb6, 0xb6, 0xb7, 0xb7, 0xb7, 0xb7, 0xb7, 0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, 0xfb, 0xfb,
  1693. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  1694. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  1695. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  1696. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb},
  1697. {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1698. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1699. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1700. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
  1701. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1702. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1703. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1704. 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x02,
  1705. 0x02, 0x03, 0x05, 0x07, 0x07, 0x08, 0x09, 0x09,
  1706. 0x0a, 0x0c, 0x0c, 0x0d, 0x0e, 0x0e, 0x10, 0x11,
  1707. 0x11, 0x12, 0x14, 0x14, 0x15, 0x16, 0x16, 0x17,
  1708. 0x17, 0x18, 0x1a, 0x1a, 0x1b, 0x1b, 0x1c, 0x1e,
  1709. 0x1e, 0x1f, 0x1f, 0x20, 0x20, 0x22, 0x23, 0x23,
  1710. 0x25, 0x25, 0x26, 0x26, 0x27, 0x27, 0x28, 0x28,
  1711. 0x29, 0x29, 0x2b, 0x2c, 0x2c, 0x2d, 0x2d, 0x2f,
  1712. 0x2f, 0x30, 0x30, 0x31, 0x31, 0x33, 0x33, 0x34,
  1713. 0x34, 0x34, 0x35, 0x35, 0x37, 0x37, 0x38, 0x38,
  1714. 0x39, 0x39, 0x3a, 0x3a, 0x3b, 0x3b, 0x3b, 0x3c,
  1715. 0x3c, 0x3d, 0x3d, 0x3f, 0x3f, 0x40, 0x40, 0x40,
  1716. 0x42, 0x42, 0x43, 0x43, 0x44, 0x44, 0x44, 0x45,
  1717. 0x45, 0x47, 0x47, 0x47, 0x48, 0x48, 0x49, 0x49,
  1718. 0x4a, 0x4a, 0x4a, 0x4b, 0x4b, 0x4b, 0x4c, 0x4c,
  1719. 0x4d, 0x4d, 0x4d, 0x4f, 0x4f, 0x50, 0x50, 0x50,
  1720. 0x52, 0x52, 0x52, 0x53, 0x53, 0x54, 0x54, 0x54,
  1721. 0x55, 0x55, 0x55, 0x56, 0x56, 0x58, 0x58, 0x58,
  1722. 0x59, 0x59, 0x59, 0x5a, 0x5a, 0x5a, 0x5b, 0x5b,
  1723. 0x5b, 0x5c, 0x5c, 0x5c, 0x5e, 0x5e, 0x5e, 0x5f,
  1724. 0x5f, 0x5f, 0x60, 0x60, 0x60, 0x61, 0x61, 0x61,
  1725. 0x62, 0x62, 0x62, 0x63, 0x63, 0x63, 0x65, 0x65,
  1726. 0x65, 0x66, 0x66, 0x66, 0x67, 0x67, 0x67, 0x68,
  1727. 0x68, 0x68, 0x69, 0x69, 0x69, 0x69, 0x6a, 0x6a,
  1728. 0x6a, 0x6c, 0x6c, 0x6c, 0x6d, 0x6d, 0x6d, 0x6e,
  1729. 0x6e, 0x6e, 0x6e, 0x6f, 0x6f, 0x6f, 0x70, 0x70,
  1730. 0x70, 0x71, 0x71, 0x71, 0x71, 0x73, 0x73, 0x73,
  1731. 0x74, 0x74, 0x74, 0x74, 0x75, 0x75, 0x75, 0x76,
  1732. 0x77, 0x77, 0x77, 0x78, 0x78, 0x78, 0x79, 0x79,
  1733. 0x79, 0x79, 0x7a, 0x7a, 0x7a, 0x7a, 0x7b, 0x7b,
  1734. 0x7b, 0x7c, 0x7c, 0x7c, 0x7c, 0x7d, 0x7d, 0x7d,
  1735. 0x7d, 0x7f, 0x7f, 0x7f, 0x80, 0x80, 0x80, 0x80,
  1736. 0x81, 0x81, 0x81, 0x81, 0x82, 0x82, 0x82, 0x82,
  1737. 0x84, 0x84, 0x84, 0x85, 0x85, 0x85, 0x85, 0x86,
  1738. 0x86, 0x86, 0x86, 0x88, 0x88, 0x88, 0x88, 0x89,
  1739. 0x89, 0x89, 0x89, 0x8a, 0x8a, 0x8a, 0x8a, 0x8b,
  1740. 0x8b, 0x8b, 0x8b, 0x8d, 0x8d, 0x8d, 0x8d, 0x8e,
  1741. 0x8e, 0x8e, 0x8e, 0x8f, 0x8f, 0x8f, 0x8f, 0x90,
  1742. 0x90, 0x90, 0x90, 0x90, 0x91, 0x91, 0x91, 0x91,
  1743. 0x92, 0x92, 0x92, 0x92, 0x93, 0x93, 0x93, 0x93,
  1744. 0x94, 0x94, 0x94, 0x94, 0x96, 0x96, 0x96, 0x96,
  1745. 0x96, 0x97, 0x97, 0x97, 0x97, 0x98, 0x98, 0x98,
  1746. 0x98, 0x99, 0x99, 0x99, 0x99, 0x99, 0x9a, 0x9a,
  1747. 0x9a, 0x9a, 0x9b, 0x9b, 0x9b, 0x9b, 0x9c, 0x9c,
  1748. 0x9c, 0x9c, 0x9c, 0x9d, 0x9d, 0x9d, 0x9d, 0x9e,
  1749. 0x9e, 0x9e, 0x9e, 0x9e, 0xa0, 0xa0, 0xa0, 0xa0,
  1750. 0xa1, 0xa1, 0xa1, 0xa1, 0xa1, 0xa2, 0xa2, 0xa2,
  1751. 0xa2, 0xa3, 0xa3, 0xa3, 0xa3, 0xa3, 0xa4, 0xa4,
  1752. 0xa4, 0xa4, 0xa4, 0xa5, 0xa5, 0xa5, 0xa5, 0xa6,
  1753. 0xa6, 0xa6, 0xa6, 0xa6, 0xa8, 0xa8, 0xa8, 0xa8,
  1754. 0xa8, 0xa9, 0xa9, 0xa9, 0xa9, 0xab, 0xab, 0xab,
  1755. 0xab, 0xab, 0xac, 0xac, 0xac, 0xac, 0xac, 0xad,
  1756. 0xad, 0xad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xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  1816. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  1817. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  1818. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  1819. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  1820. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  1821. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  1822. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  1823. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  1824. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb}
  1825. },
  1826. { /* gamma 1 - from tp6810 + soi763a */
  1827. {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1828. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1829. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1830. 0x01, 0x02, 0x03, 0x05, 0x07, 0x08, 0x09, 0x0a,
  1831. 0x0c, 0x0d, 0x0e, 0x10, 0x11, 0x12, 0x14, 0x15,
  1832. 0x16, 0x17, 0x18, 0x1a, 0x1a, 0x1b, 0x1c, 0x1e,
  1833. 0x1f, 0x20, 0x22, 0x22, 0x23, 0x25, 0x26, 0x27,
  1834. 0x27, 0x28, 0x29, 0x2b, 0x2b, 0x2c, 0x2d, 0x2f,
  1835. 0x2f, 0x30, 0x31, 0x33, 0x33, 0x34, 0x35, 0x35,
  1836. 0x37, 0x38, 0x38, 0x39, 0x3a, 0x3a, 0x3b, 0x3c,
  1837. 0x3c, 0x3d, 0x3f, 0x3f, 0x40, 0x42, 0x42, 0x43,
  1838. 0x43, 0x44, 0x45, 0x45, 0x47, 0x47, 0x48, 0x49,
  1839. 0x49, 0x4a, 0x4a, 0x4b, 0x4b, 0x4c, 0x4d, 0x4d,
  1840. 0x4f, 0x4f, 0x50, 0x50, 0x52, 0x52, 0x53, 0x53,
  1841. 0x54, 0x54, 0x55, 0x56, 0x56, 0x58, 0x58, 0x59,
  1842. 0x59, 0x5a, 0x5a, 0x5b, 0x5b, 0x5c, 0x5c, 0x5e,
  1843. 0x5e, 0x5e, 0x5f, 0x5f, 0x60, 0x60, 0x61, 0x61,
  1844. 0x62, 0x62, 0x63, 0x63, 0x65, 0x65, 0x65, 0x66,
  1845. 0x66, 0x67, 0x67, 0x68, 0x68, 0x69, 0x69, 0x69,
  1846. 0x6a, 0x6a, 0x6c, 0x6c, 0x6d, 0x6d, 0x6d, 0x6e,
  1847. 0x6e, 0x6f, 0x6f, 0x6f, 0x70, 0x70, 0x71, 0x71,
  1848. 0x73, 0x73, 0x73, 0x74, 0x74, 0x74, 0x75, 0x75,
  1849. 0x77, 0x77, 0x77, 0x78, 0x78, 0x79, 0x79, 0x79,
  1850. 0x7a, 0x7a, 0x7a, 0x7b, 0x7b, 0x7c, 0x7c, 0x7c,
  1851. 0x7d, 0x7d, 0x7d, 0x7f, 0x7f, 0x80, 0x80, 0x80,
  1852. 0x81, 0x81, 0x81, 0x82, 0x82, 0x82, 0x84, 0x84,
  1853. 0x84, 0x85, 0x85, 0x85, 0x86, 0x86, 0x86, 0x88,
  1854. 0x88, 0x88, 0x89, 0x89, 0x89, 0x8a, 0x8a, 0x8a,
  1855. 0x8b, 0x8b, 0x8b, 0x8d, 0x8d, 0x8d, 0x8e, 0x8e,
  1856. 0x8e, 0x8f, 0x8f, 0x8f, 0x90, 0x90, 0x90, 0x91,
  1857. 0x91, 0x91, 0x92, 0x92, 0x92, 0x92, 0x93, 0x93,
  1858. 0x93, 0x94, 0x94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1898. 0xe9, 0xeb, 0xeb, 0xeb, 0xeb, 0xeb, 0xec, 0xec,
  1899. 0xec, 0xec, 0xec, 0xed, 0xed, 0xed, 0xed, 0xed,
  1900. 0xee, 0xee, 0xee, 0xee, 0xee, 0xef, 0xef, 0xef,
  1901. 0xef, 0xef, 0xef, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0,
  1902. 0xf1, 0xf1, 0xf1, 0xf1, 0xf1, 0xf3, 0xf3, 0xf3,
  1903. 0xf3, 0xf3, 0xf4, 0xf4, 0xf4, 0xf4, 0xf4, 0xf5,
  1904. 0xf5, 0xf5, 0xf5, 0xf5, 0xf6, 0xf6, 0xf6, 0xf6,
  1905. 0xf6, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf8, 0xf8,
  1906. 0xf8, 0xf8, 0xf8, 0xf8, 0xf9, 0xf9, 0xf9, 0xf9,
  1907. 0xf9, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa,
  1908. 0xfa, 0xfa, 0xfa, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  1909. 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc,
  1910. 0xfc, 0xfc, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfe,
  1911. 0xfe, 0xfe, 0xfe, 0xfe, 0xff, 0xff, 0xff, 0xff,
  1912. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1913. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1914. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1915. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1916. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1917. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1918. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1919. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1920. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1921. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1922. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1923. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1924. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1925. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1926. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1927. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1928. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1929. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1930. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1931. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1932. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1933. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1934. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1935. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1936. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1937. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1938. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1939. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1940. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1941. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1942. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1943. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1944. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1945. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1946. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1947. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1948. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1949. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1950. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1951. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1952. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1953. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1954. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff},
  1955. {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1956. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1957. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1958. 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03,
  1959. 0x05, 0x07, 0x07, 0x08, 0x09, 0x0a, 0x0c, 0x0d,
  1960. 0x0e, 0x10, 0x10, 0x11, 0x12, 0x14, 0x15, 0x15,
  1961. 0x16, 0x17, 0x18, 0x1a, 0x1a, 0x1b, 0x1c, 0x1e,
  1962. 0x1e, 0x1f, 0x20, 0x20, 0x22, 0x23, 0x25, 0x25,
  1963. 0x26, 0x27, 0x27, 0x28, 0x29, 0x29, 0x2b, 0x2c,
  1964. 0x2c, 0x2d, 0x2d, 0x2f, 0x30, 0x30, 0x31, 0x31,
  1965. 0x33, 0x34, 0x34, 0x35, 0x35, 0x37, 0x38, 0x38,
  1966. 0x39, 0x39, 0x3a, 0x3a, 0x3b, 0x3b, 0x3c, 0x3d,
  1967. 0x3d, 0x3f, 0x3f, 0x40, 0x40, 0x42, 0x42, 0x43,
  1968. 0x43, 0x44, 0x44, 0x45, 0x45, 0x47, 0x47, 0x48,
  1969. 0x48, 0x49, 0x49, 0x4a, 0x4a, 0x4b, 0x4b, 0x4c,
  1970. 0x4c, 0x4d, 0x4d, 0x4d, 0x4f, 0x4f, 0x50, 0x50,
  1971. 0x52, 0x52, 0x53, 0x53, 0x53, 0x54, 0x54, 0x55,
  1972. 0x55, 0x56, 0x56, 0x56, 0x58, 0x58, 0x59, 0x59,
  1973. 0x5a, 0x5a, 0x5a, 0x5b, 0x5b, 0x5c, 0x5c, 0x5c,
  1974. 0x5e, 0x5e, 0x5f, 0x5f, 0x5f, 0x60, 0x60, 0x60,
  1975. 0x61, 0x61, 0x62, 0x62, 0x62, 0x63, 0x63, 0x65,
  1976. 0x65, 0x65, 0x66, 0x66, 0x66, 0x67, 0x67, 0x67,
  1977. 0x68, 0x68, 0x69, 0x69, 0x69, 0x6a, 0x6a, 0x6a,
  1978. 0x6c, 0x6c, 0x6c, 0x6d, 0x6d, 0x6d, 0x6e, 0x6e,
  1979. 0x6e, 0x6f, 0x6f, 0x6f, 0x70, 0x70, 0x70, 0x71,
  1980. 0x71, 0x71, 0x73, 0x73, 0x73, 0x74, 0x74, 0x74,
  1981. 0x75, 0x75, 0x75, 0x77, 0x77, 0x77, 0x78, 0x78,
  1982. 0x78, 0x79, 0x79, 0x79, 0x79, 0x7a, 0x7a, 0x7a,
  1983. 0x7b, 0x7b, 0x7b, 0x7c, 0x7c, 0x7c, 0x7c, 0x7d,
  1984. 0x7d, 0x7d, 0x7f, 0x7f, 0x7f, 0x80, 0x80, 0x80,
  1985. 0x80, 0x81, 0x81, 0x81, 0x82, 0x82, 0x82, 0x82,
  1986. 0x84, 0x84, 0x84, 0x85, 0x85, 0x85, 0x85, 0x86,
  1987. 0x86, 0x86, 0x88, 0x88, 0x88, 0x88, 0x89, 0x89,
  1988. 0x89, 0x89, 0x8a, 0x8a, 0x8a, 0x8b, 0x8b, 0x8b,
  1989. 0x8b, 0x8d, 0x8d, 0x8d, 0x8d, 0x8e, 0x8e, 0x8e,
  1990. 0x8e, 0x8f, 0x8f, 0x8f, 0x90, 0x90, 0x90, 0x90,
  1991. 0x91, 0x91, 0x91, 0x91, 0x92, 0x92, 0x92, 0x92,
  1992. 0x93, 0x93, 0x93, 0x93, 0x94, 0x94, 0x94, 0x94,
  1993. 0x96, 0x96, 0x96, 0x96, 0x97, 0x97, 0x97, 0x97,
  1994. 0x98, 0x98, 0x98, 0x98, 0x99, 0x99, 0x99, 0x99,
  1995. 0x9a, 0x9a, 0x9a, 0x9a, 0x9a, 0x9b, 0x9b, 0x9b,
  1996. 0x9b, 0x9c, 0x9c, 0x9c, 0x9c, 0x9d, 0x9d, 0x9d,
  1997. 0x9d, 0x9e, 0x9e, 0x9e, 0x9e, 0x9e, 0xa0, 0xa0,
  1998. 0xa0, 0xa0, 0xa1, 0xa1, 0xa1, 0xa1, 0xa2, 0xa2,
  1999. 0xa2, 0xa2, 0xa2, 0xa3, 0xa3, 0xa3, 0xa3, 0xa4,
  2000. 0xa4, 0xa4, 0xa4, 0xa4, 0xa5, 0xa5, 0xa5, 0xa5,
  2001. 0xa6, 0xa6, 0xa6, 0xa6, 0xa6, 0xa8, 0xa8, 0xa8,
  2002. 0xa8, 0xa9, 0xa9, 0xa9, 0xa9, 0xa9, 0xab, 0xab,
  2003. 0xab, 0xab, 0xac, 0xac, 0xac, 0xac, 0xac, 0xad,
  2004. 0xad, 0xad, 0xad, 0xad, 0xae, 0xae, 0xae, 0xae,
  2005. 0xaf, 0xaf, 0xaf, 0xaf, 0xaf, 0xb0, 0xb0, 0xb0,
  2006. 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 0xf5, 0xf5, 0xf5,
  2046. 0xf5, 0xf5, 0xf6, 0xf6, 0xf6, 0xf6, 0xf6, 0xf7,
  2047. 0xf7, 0xf7, 0xf7, 0xf7, 0xf8, 0xf8, 0xf8, 0xf8,
  2048. 0xf8, 0xf8, 0xf9, 0xf9, 0xf9, 0xf9, 0xf9, 0xfa,
  2049. 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa,
  2050. 0xfa, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfc, 0xfc,
  2051. 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc,
  2052. 0xfc, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfe, 0xfe,
  2053. 0xfe, 0xfe, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff,
  2054. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2055. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2056. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2057. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2058. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2059. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2060. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2061. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2062. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2063. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2064. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2065. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2066. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2067. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2068. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2069. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2070. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2071. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2072. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2073. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2074. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2075. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2076. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2077. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2078. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2079. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2080. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2081. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2082. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff},
  2083. {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  2084. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  2085. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  2086. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  2087. 0x00, 0x00, 0x01, 0x02, 0x03, 0x05, 0x05, 0x07,
  2088. 0x08, 0x09, 0x0a, 0x0a, 0x0c, 0x0d, 0x0e, 0x0e,
  2089. 0x10, 0x11, 0x12, 0x12, 0x14, 0x15, 0x16, 0x16,
  2090. 0x17, 0x18, 0x18, 0x1a, 0x1b, 0x1b, 0x1c, 0x1e,
  2091. 0x1e, 0x1f, 0x1f, 0x20, 0x22, 0x22, 0x23, 0x23,
  2092. 0x25, 0x26, 0x26, 0x27, 0x27, 0x28, 0x29, 0x29,
  2093. 0x2b, 0x2b, 0x2c, 0x2c, 0x2d, 0x2d, 0x2f, 0x30,
  2094. 0x30, 0x31, 0x31, 0x33, 0x33, 0x34, 0x34, 0x35,
  2095. 0x35, 0x37, 0x37, 0x38, 0x38, 0x39, 0x39, 0x3a,
  2096. 0x3a, 0x3b, 0x3b, 0x3b, 0x3c, 0x3c, 0x3d, 0x3d,
  2097. 0x3f, 0x3f, 0x40, 0x40, 0x42, 0x42, 0x42, 0x43,
  2098. 0x43, 0x44, 0x44, 0x45, 0x45, 0x47, 0x47, 0x47,
  2099. 0x48, 0x48, 0x49, 0x49, 0x49, 0x4a, 0x4a, 0x4b,
  2100. 0x4b, 0x4b, 0x4c, 0x4c, 0x4d, 0x4d, 0x4d, 0x4f,
  2101. 0x4f, 0x50, 0x50, 0x50, 0x52, 0x52, 0x52, 0x53,
  2102. 0x53, 0x54, 0x54, 0x54, 0x55, 0x55, 0x55, 0x56,
  2103. 0x56, 0x58, 0x58, 0x58, 0x59, 0x59, 0x59, 0x5a,
  2104. 0x5a, 0x5a, 0x5b, 0x5b, 0x5b, 0x5c, 0x5c, 0x5c,
  2105. 0x5e, 0x5e, 0x5e, 0x5f, 0x5f, 0x5f, 0x60, 0x60,
  2106. 0x60, 0x61, 0x61, 0x61, 0x62, 0x62, 0x62, 0x63,
  2107. 0x63, 0x63, 0x65, 0x65, 0x65, 0x66, 0x66, 0x66,
  2108. 0x66, 0x67, 0x67, 0x67, 0x68, 0x68, 0x68, 0x69,
  2109. 0x69, 0x69, 0x6a, 0x6a, 0x6a, 0x6a, 0x6c, 0x6c,
  2110. 0x6c, 0x6d, 0x6d, 0x6d, 0x6d, 0x6e, 0x6e, 0x6e,
  2111. 0x6f, 0x6f, 0x6f, 0x6f, 0x70, 0x70, 0x70, 0x71,
  2112. 0x71, 0x71, 0x71, 0x73, 0x73, 0x73, 0x74, 0x74,
  2113. 0x74, 0x74, 0x75, 0x75, 0x75, 0x75, 0x77, 0x77,
  2114. 0x77, 0x78, 0x78, 0x78, 0x78, 0x79, 0x79, 0x79,
  2115. 0x79, 0x7a, 0x7a, 0x7a, 0x7a, 0x7b, 0x7b, 0x7b,
  2116. 0x7b, 0x7c, 0x7c, 0x7c, 0x7c, 0x7d, 0x7d, 0x7d,
  2117. 0x7d, 0x7f, 0x7f, 0x7f, 0x7f, 0x80, 0x80, 0x80,
  2118. 0x80, 0x81, 0x81, 0x81, 0x81, 0x82, 0x82, 0x82,
  2119. 0x82, 0x84, 0x84, 0x84, 0x84, 0x85, 0x85, 0x85,
  2120. 0x85, 0x86, 0x86, 0x86, 0x86, 0x88, 0x88, 0x88,
  2121. 0x88, 0x88, 0x89, 0x89, 0x89, 0x89, 0x8a, 0x8a,
  2122. 0x8a, 0x8a, 0x8b, 0x8b, 0x8b, 0x8b, 0x8b, 0x8d,
  2123. 0x8d, 0x8d, 0x8d, 0x8e, 0x8e, 0x8e, 0x8e, 0x8e,
  2124. 0x8f, 0x8f, 0x8f, 0x8f, 0x90, 0x90, 0x90, 0x90,
  2125. 0x90, 0x91, 0x91, 0x91, 0x91, 0x92, 0x92, 0x92,
  2126. 0x92, 0x92, 0x93, 0x93, 0x93, 0x93, 0x94, 0x94,
  2127. 0x94, 0x94, 0x94, 0x96, 0x96, 0x96, 0x96, 0x96,
  2128. 0x97, 0x97, 0x97, 0x97, 0x97, 0x98, 0x98, 0x98,
  2129. 0x98, 0x99, 0x99, 0x99, 0x99, 0x99, 0x9a, 0x9a,
  2130. 0x9a, 0x9a, 0x9a, 0x9b, 0x9b, 0x9b, 0x9b, 0x9b,
  2131. 0x9c, 0x9c, 0x9c, 0x9c, 0x9c, 0x9d, 0x9d, 0x9d,
  2132. 0x9d, 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 0xfe, 0xfe, 0xfe, 0xfe,
  2192. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2193. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2194. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2195. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2196. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2197. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2198. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2199. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2200. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2201. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2202. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2203. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2204. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2205. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2206. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2207. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2208. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2209. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2210. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}
  2211. },
  2212. { /* gamma 2 */
  2213. {0x00, 0x01, 0x02, 0x05, 0x07, 0x08, 0x0a, 0x0c,
  2214. 0x0d, 0x0e, 0x10, 0x12, 0x14, 0x15, 0x16, 0x17,
  2215. 0x18, 0x1a, 0x1b, 0x1c, 0x1e, 0x1f, 0x20, 0x22,
  2216. 0x23, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2b, 0x2c,
  2217. 0x2d, 0x2d, 0x2f, 0x30, 0x31, 0x33, 0x34, 0x34,
  2218. 0x35, 0x37, 0x38, 0x38, 0x39, 0x3a, 0x3b, 0x3b,
  2219. 0x3c, 0x3d, 0x3f, 0x3f, 0x40, 0x42, 0x42, 0x43,
  2220. 0x44, 0x44, 0x45, 0x47, 0x47, 0x48, 0x49, 0x49,
  2221. 0x4a, 0x4b, 0x4b, 0x4c, 0x4c, 0x4d, 0x4f, 0x4f,
  2222. 0x50, 0x50, 0x52, 0x53, 0x53, 0x54, 0x54, 0x55,
  2223. 0x55, 0x56, 0x56, 0x58, 0x58, 0x59, 0x5a, 0x5a,
  2224. 0x5b, 0x5b, 0x5c, 0x5c, 0x5e, 0x5e, 0x5f, 0x5f,
  2225. 0x60, 0x60, 0x61, 0x61, 0x62, 0x62, 0x63, 0x63,
  2226. 0x65, 0x65, 0x65, 0x66, 0x66, 0x67, 0x67, 0x68,
  2227. 0x68, 0x69, 0x69, 0x6a, 0x6a, 0x6a, 0x6c, 0x6c,
  2228. 0x6d, 0x6d, 0x6e, 0x6e, 0x6e, 0x6f, 0x6f, 0x70,
  2229. 0x70, 0x70, 0x71, 0x71, 0x73, 0x73, 0x73, 0x74,
  2230. 0x74, 0x75, 0x75, 0x75, 0x77, 0x77, 0x78, 0x78,
  2231. 0x78, 0x79, 0x79, 0x79, 0x7a, 0x7a, 0x7b, 0x7b,
  2232. 0x7b, 0x7c, 0x7c, 0x7c, 0x7d, 0x7d, 0x7f, 0x7f,
  2233. 0x7f, 0x80, 0x80, 0x80, 0x81, 0x81, 0x81, 0x82,
  2234. 0x82, 0x82, 0x84, 0x84, 0x84, 0x85, 0x85, 0x85,
  2235. 0x86, 0x86, 0x86, 0x88, 0x88, 0x88, 0x89, 0x89,
  2236. 0x89, 0x8a, 0x8a, 0x8a, 0x8b, 0x8b, 0x8b, 0x8d,
  2237. 0x8d, 0x8d, 0x8d, 0x8e, 0x8e, 0x8e, 0x8f, 0x8f,
  2238. 0x8f, 0x90, 0x90, 0x90, 0x91, 0x91, 0x91, 0x91,
  2239. 0x92, 0x92, 0x92, 0x93, 0x93, 0x93, 0x93, 0x94,
  2240. 0x94, 0x94, 0x96, 0x96, 0x96, 0x97, 0x97, 0x97,
  2241. 0x97, 0x98, 0x98, 0x98, 0x98, 0x99, 0x99, 0x99,
  2242. 0x9a, 0x9a, 0x9a, 0x9a, 0x9b, 0x9b, 0x9b, 0x9b,
  2243. 0x9c, 0x9c, 0x9c, 0x9d, 0x9d, 0x9d, 0x9d, 0x9e,
  2244. 0x9e, 0x9e, 0x9e, 0xa0, 0xa0, 0xa0, 0xa0, 0xa1,
  2245. 0xa1, 0xa1, 0xa1, 0xa2, 0xa2, 0xa2, 0xa2, 0xa3,
  2246. 0xa3, 0xa3, 0xa4, 0xa4, 0xa4, 0xa4, 0xa5, 0xa5,
  2247. 0xa5, 0xa5, 0xa5, 0xa6, 0xa6, 0xa6, 0xa6, 0xa8,
  2248. 0xa8, 0xa8, 0xa8, 0xa9, 0xa9, 0xa9, 0xa9, 0xab,
  2249. 0xab, 0xab, 0xab, 0xac, 0xac, 0xac, 0xac, 0xad,
  2250. 0xad, 0xad, 0xad, 0xad, 0xae, 0xae, 0xae, 0xae,
  2251. 0xaf, 0xaf, 0xaf, 0xaf, 0xb0, 0xb0, 0xb0, 0xb0,
  2252. 0xb0, 0xb1, 0xb1, 0xb1, 0xb1, 0xb2, 0xb2, 0xb2,
  2253. 0xb2, 0xb2, 0xb3, 0xb3, 0xb3, 0xb3, 0xb4, 0xb4,
  2254. 0xb4, 0xb4, 0xb4, 0xb6, 0xb6, 0xb6, 0xb6, 0xb7,
  2255. 0xb7, 0xb7, 0xb7, 0xb7, 0xb8, 0xb8, 0xb8, 0xb8,
  2256. 0xb8, 0xb9, 0xb9, 0xb9, 0xb9, 0xba, 0xba, 0xba,
  2257. 0xba, 0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, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  2336. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  2337. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  2338. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  2339. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  2340. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb},
  2341. {0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03, 0x05,
  2342. 0x07, 0x08, 0x09, 0x0a, 0x0d, 0x0e, 0x10, 0x11,
  2343. 0x12, 0x14, 0x15, 0x16, 0x16, 0x17, 0x18, 0x1a,
  2344. 0x1b, 0x1c, 0x1e, 0x1f, 0x20, 0x20, 0x22, 0x23,
  2345. 0x25, 0x26, 0x26, 0x27, 0x28, 0x29, 0x29, 0x2b,
  2346. 0x2c, 0x2d, 0x2d, 0x2f, 0x30, 0x30, 0x31, 0x33,
  2347. 0x33, 0x34, 0x35, 0x35, 0x37, 0x38, 0x38, 0x39,
  2348. 0x3a, 0x3a, 0x3b, 0x3b, 0x3c, 0x3d, 0x3d, 0x3f,
  2349. 0x3f, 0x40, 0x42, 0x42, 0x43, 0x43, 0x44, 0x44,
  2350. 0x45, 0x45, 0x47, 0x47, 0x48, 0x48, 0x49, 0x4a,
  2351. 0x4a, 0x4b, 0x4b, 0x4c, 0x4c, 0x4d, 0x4d, 0x4d,
  2352. 0x4f, 0x4f, 0x50, 0x50, 0x52, 0x52, 0x53, 0x53,
  2353. 0x54, 0x54, 0x55, 0x55, 0x56, 0x56, 0x56, 0x58,
  2354. 0x58, 0x59, 0x59, 0x5a, 0x5a, 0x5a, 0x5b, 0x5b,
  2355. 0x5c, 0x5c, 0x5c, 0x5e, 0x5e, 0x5f, 0x5f, 0x5f,
  2356. 0x60, 0x60, 0x61, 0x61, 0x61, 0x62, 0x62, 0x63,
  2357. 0x63, 0x63, 0x65, 0x65, 0x65, 0x66, 0x66, 0x67,
  2358. 0x67, 0x67, 0x68, 0x68, 0x68, 0x69, 0x69, 0x69,
  2359. 0x6a, 0x6a, 0x6c, 0x6c, 0x6c, 0x6d, 0x6d, 0x6d,
  2360. 0x6e, 0x6e, 0x6e, 0x6f, 0x6f, 0x6f, 0x70, 0x70,
  2361. 0x70, 0x71, 0x71, 0x71, 0x73, 0x73, 0x73, 0x73,
  2362. 0x74, 0x74, 0x74, 0x75, 0x75, 0x75, 0x77, 0x77,
  2363. 0x77, 0x78, 0x78, 0x78, 0x79, 0x79, 0x79, 0x79,
  2364. 0x7a, 0x7a, 0x7a, 0x7b, 0x7b, 0x7b, 0x7b, 0x7c,
  2365. 0x7c, 0x7c, 0x7d, 0x7d, 0x7d, 0x7d, 0x7f, 0x7f,
  2366. 0x7f, 0x80, 0x80, 0x80, 0x80, 0x81, 0x81, 0x81,
  2367. 0x82, 0x82, 0x82, 0x82, 0x84, 0x84, 0x84, 0x84,
  2368. 0x85, 0x85, 0x85, 0x85, 0x86, 0x86, 0x86, 0x88,
  2369. 0x88, 0x88, 0x88, 0x89, 0x89, 0x89, 0x89, 0x8a,
  2370. 0x8a, 0x8a, 0x8a, 0x8b, 0x8b, 0x8b, 0x8b, 0x8d,
  2371. 0x8d, 0x8d, 0x8d, 0x8e, 0x8e, 0x8e, 0x8e, 0x8f,
  2372. 0x8f, 0x8f, 0x8f, 0x90, 0x90, 0x90, 0x90, 0x91,
  2373. 0x91, 0x91, 0x91, 0x91, 0x92, 0x92, 0x92, 0x92,
  2374. 0x93, 0x93, 0x93, 0x93, 0x94, 0x94, 0x94, 0x94,
  2375. 0x94, 0x96, 0x96, 0x96, 0x96, 0x97, 0x97, 0x97,
  2376. 0x97, 0x98, 0x98, 0x98, 0x98, 0x98, 0x99, 0x99,
  2377. 0x99, 0x99, 0x99, 0x9a, 0x9a, 0x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40, 0x40, 0x42, 0x43, 0x43,
  2477. 0x44, 0x44, 0x45, 0x47, 0x47, 0x48, 0x48, 0x49,
  2478. 0x4a, 0x4a, 0x4b, 0x4b, 0x4c, 0x4c, 0x4d, 0x4d,
  2479. 0x4f, 0x4f, 0x50, 0x50, 0x52, 0x52, 0x53, 0x53,
  2480. 0x54, 0x54, 0x55, 0x55, 0x56, 0x56, 0x58, 0x58,
  2481. 0x59, 0x59, 0x5a, 0x5a, 0x5b, 0x5b, 0x5c, 0x5c,
  2482. 0x5c, 0x5e, 0x5e, 0x5f, 0x5f, 0x60, 0x60, 0x61,
  2483. 0x61, 0x61, 0x62, 0x62, 0x63, 0x63, 0x65, 0x65,
  2484. 0x65, 0x66, 0x66, 0x67, 0x67, 0x67, 0x68, 0x68,
  2485. 0x69, 0x69, 0x69, 0x6a, 0x6a, 0x6a, 0x6c, 0x6c,
  2486. 0x6d, 0x6d, 0x6d, 0x6e, 0x6e, 0x6e, 0x6f, 0x6f,
  2487. 0x70, 0x70, 0x70, 0x71, 0x71, 0x71, 0x73, 0x73,
  2488. 0x73, 0x74, 0x74, 0x74, 0x75, 0x75, 0x75, 0x77,
  2489. 0x77, 0x78, 0x78, 0x78, 0x79, 0x79, 0x79, 0x7a,
  2490. 0x7a, 0x7a, 0x7a, 0x7b, 0x7b, 0x7b, 0x7c, 0x7c,
  2491. 0x7c, 0x7d, 0x7d, 0x7d, 0x7f, 0x7f, 0x7f, 0x80,
  2492. 0x80, 0x80, 0x81, 0x81, 0x81, 0x81, 0x82, 0x82,
  2493. 0x82, 0x84, 0x84, 0x84, 0x85, 0x85, 0x85, 0x85,
  2494. 0x86, 0x86, 0x86, 0x88, 0x88, 0x88, 0x88, 0x89,
  2495. 0x89, 0x89, 0x8a, 0x8a, 0x8a, 0x8a, 0x8b, 0x8b,
  2496. 0x8b, 0x8b, 0x8d, 0x8d, 0x8d, 0x8e, 0x8e, 0x8e,
  2497. 0x8e, 0x8f, 0x8f, 0x8f, 0x8f, 0x90, 0x90, 0x90,
  2498. 0x91, 0x91, 0x91, 0x91, 0x92, 0x92, 0x92, 0x92,
  2499. 0x93, 0x93, 0x93, 0x93, 0x94, 0x94, 0x94, 0x94,
  2500. 0x96, 0x96, 0x96, 0x96, 0x97, 0x97, 0x97, 0x97,
  2501. 0x98, 0x98, 0x98, 0x98, 0x99, 0x99, 0x99, 0x99,
  2502. 0x9a, 0x9a, 0x9a, 0x9a, 0x9b, 0x9b, 0x9b, 0x9b,
  2503. 0x9b, 0x9c, 0x9c, 0x9c, 0x9c, 0x9d, 0x9d, 0x9d,
  2504. 0x9d, 0x9e, 0x9e, 0x9e, 0x9e, 0x9e, 0xa0, 0xa0,
  2505. 0xa0, 0xa0, 0xa1, 0xa1, 0xa1, 0xa1, 0xa2, 0xa2,
  2506. 0xa2, 0xa2, 0xa2, 0xa3, 0xa3, 0xa3, 0xa3, 0xa4,
  2507. 0xa4, 0xa4, 0xa4, 0xa4, 0xa5, 0xa5, 0xa5, 0xa5,
  2508. 0xa5, 0xa6, 0xa6, 0xa6, 0xa6, 0xa8, 0xa8, 0xa8,
  2509. 0xa8, 0xa8, 0xa9, 0xa9, 0xa9, 0xa9, 0xa9, 0xab,
  2510. 0xab, 0xab, 0xab, 0xab, 0xac, 0xac, 0xac, 0xac,
  2511. 0xad, 0xad, 0xad, 0xad, 0xad, 0xae, 0xae, 0xae,
  2512. 0xae, 0xae, 0xaf, 0xaf, 0xaf, 0xaf, 0xaf, 0xb0,
  2513. 0xb0, 0xb0, 0xb0, 0xb0, 0xb1, 0xb1, 0xb1, 0xb1,
  2514. 0xb1, 0xb2, 0xb2, 0xb2, 0xb2, 0xb2, 0xb3, 0xb3,
  2515. 0xb3, 0xb3, 0xb3, 0xb4, 0xb3, 0xb4, 0xb4, 0xb4,
  2516. 0xb6, 0xb6, 0xb6, 0xb6, 0xb6, 0xb6, 0xb7, 0xb7,
  2517. 0xb7, 0xb7, 0xb7, 0xb8, 0xb8, 0xb8, 0xb8, 0xb8,
  2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fb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb}
  2597. },
  2598. { /* gamma 3 - from tp6810 + cx0342 */
  2599. {0x08, 0x09, 0x0c, 0x0d, 0x10, 0x11, 0x14, 0x15,
  2600. 0x17, 0x18, 0x1a, 0x1c, 0x1e, 0x1f, 0x20, 0x23,
  2601. 0x25, 0x26, 0x27, 0x28, 0x2b, 0x2c, 0x2d, 0x2f,
  2602. 0x30, 0x31, 0x33, 0x34, 0x35, 0x37, 0x38, 0x39,
  2603. 0x3a, 0x3b, 0x3c, 0x3d, 0x3f, 0x40, 0x42, 0x43,
  2604. 0x44, 0x45, 0x47, 0x48, 0x48, 0x49, 0x4a, 0x4b,
  2605. 0x4c, 0x4d, 0x4d, 0x4f, 0x50, 0x52, 0x53, 0x53,
  2606. 0x54, 0x55, 0x56, 0x56, 0x58, 0x59, 0x5a, 0x5a,
  2607. 0x5b, 0x5c, 0x5c, 0x5e, 0x5f, 0x5f, 0x60, 0x61,
  2608. 0x61, 0x62, 0x63, 0x63, 0x65, 0x66, 0x66, 0x67,
  2609. 0x68, 0x68, 0x69, 0x69, 0x6a, 0x6c, 0x6c, 0x6d,
  2610. 0x6d, 0x6e, 0x6f, 0x6f, 0x70, 0x70, 0x71, 0x73,
  2611. 0x73, 0x74, 0x74, 0x75, 0x75, 0x77, 0x77, 0x78,
  2612. 0x78, 0x79, 0x7a, 0x7a, 0x7b, 0x7b, 0x7c, 0x7c,
  2613. 0x7d, 0x7d, 0x7f, 0x7f, 0x80, 0x80, 0x81, 0x81,
  2614. 0x82, 0x82, 0x84, 0x84, 0x85, 0x85, 0x86, 0x86,
  2615. 0x86, 0x88, 0x88, 0x89, 0x89, 0x8a, 0x8a, 0x8b,
  2616. 0x8b, 0x8d, 0x8d, 0x8d, 0x8e, 0x8e, 0x8f, 0x8f,
  2617. 0x90, 0x90, 0x91, 0x91, 0x91, 0x92, 0x92, 0x93,
  2618. 0x93, 0x93, 0x94, 0x94, 0x96, 0x96, 0x97, 0x97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0xf9, 0xf9, 0xf9,
  2659. 0xf9, 0xf9, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa,
  2660. 0xfa, 0xfa, 0xfa, 0xfa, 0xfb, 0xfb, 0xfb, 0xfb,
  2661. 0xfb, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc,
  2662. 0xfc, 0xfc, 0xfc, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd,
  2663. 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xff, 0xff, 0xff,
  2664. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2665. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2666. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2667. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2668. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2669. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2670. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2671. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2672. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2673. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2674. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2675. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2676. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2677. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2678. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2679. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2680. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2681. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2682. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2683. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2684. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2685. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2686. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2687. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2688. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2689. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2690. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2691. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2692. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2693. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2694. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2695. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2696. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2697. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2698. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2699. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2700. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2701. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2702. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2703. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2704. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2705. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2706. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2707. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2708. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2709. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2710. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2711. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2712. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2713. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2714. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2715. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2716. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2717. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2718. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2719. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2720. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2721. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2722. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2723. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2724. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2725. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2726. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff},
  2727. {0x03, 0x05, 0x07, 0x09, 0x0a, 0x0c, 0x0d, 0x10,
  2728. 0x11, 0x12, 0x14, 0x15, 0x17, 0x18, 0x1a, 0x1b,
  2729. 0x1c, 0x1e, 0x1f, 0x20, 0x22, 0x23, 0x25, 0x26,
  2730. 0x27, 0x28, 0x29, 0x2b, 0x2c, 0x2c, 0x2d, 0x2f,
  2731. 0x30, 0x31, 0x33, 0x33, 0x34, 0x35, 0x37, 0x38,
  2732. 0x38, 0x39, 0x3a, 0x3b, 0x3b, 0x3c, 0x3d, 0x3f,
  2733. 0x3f, 0x40, 0x42, 0x42, 0x43, 0x44, 0x45, 0x45,
  2734. 0x47, 0x47, 0x48, 0x49, 0x49, 0x4a, 0x4b, 0x4b,
  2735. 0x4c, 0x4d, 0x4d, 0x4f, 0x4f, 0x50, 0x52, 0x52,
  2736. 0x53, 0x53, 0x54, 0x54, 0x55, 0x55, 0x56, 0x58,
  2737. 0x58, 0x59, 0x59, 0x5a, 0x5a, 0x5b, 0x5b, 0x5c,
  2738. 0x5c, 0x5e, 0x5e, 0x5f, 0x5f, 0x60, 0x60, 0x61,
  2739. 0x61, 0x62, 0x62, 0x63, 0x63, 0x65, 0x65, 0x66,
  2740. 0x66, 0x67, 0x67, 0x67, 0x68, 0x68, 0x69, 0x69,
  2741. 0x6a, 0x6a, 0x6c, 0x6c, 0x6c, 0x6d, 0x6d, 0x6e,
  2742. 0x6e, 0x6f, 0x6f, 0x6f, 0x70, 0x70, 0x71, 0x71,
  2743. 0x71, 0x73, 0x73, 0x74, 0x74, 0x74, 0x75, 0x75,
  2744. 0x77, 0x77, 0x77, 0x78, 0x78, 0x79, 0x79, 0x79,
  2745. 0x7a, 0x7a, 0x7a, 0x7b, 0x7b, 0x7b, 0x7c, 0x7c,
  2746. 0x7d, 0x7d, 0x7d, 0x7f, 0x7f, 0x7f, 0x80, 0x80,
  2747. 0x80, 0x81, 0x81, 0x81, 0x82, 0x82, 0x82, 0x84,
  2748. 0x84, 0x84, 0x85, 0x85, 0x85, 0x86, 0x86, 0x86,
  2749. 0x88, 0x88, 0x88, 0x89, 0x89, 0x89, 0x8a, 0x8a,
  2750. 0x8a, 0x8b, 0x8b, 0x8b, 0x8d, 0x8d, 0x8d, 0x8e,
  2751. 0x8e, 0x8e, 0x8e, 0x8f, 0x8f, 0x8f, 0x90, 0x90,
  2752. 0x90, 0x91, 0x91, 0x91, 0x91, 0x92, 0x92, 0x92,
  2753. 0x93, 0x93, 0x93, 0x93, 0x94, 0x94, 0x94, 0x96,
  2754. 0x96, 0x96, 0x96, 0x97, 0x97, 0x97, 0x98, 0x98,
  2755. 0x98, 0x98, 0x99, 0x99, 0x99, 0x9a, 0x9a, 0x9a,
  2756. 0x9a, 0x9b, 0x9b, 0x9b, 0x9b, 0x9c, 0x9c, 0x9c,
  2757. 0x9c, 0x9d, 0x9d, 0x9d, 0x9e, 0x9e, 0x9e, 0x9e,
  2758. 0xa0, 0xa0, 0xa0, 0xa0, 0xa1, 0xa1, 0xa1, 0xa1,
  2759. 0xa2, 0xa2, 0xa2, 0xa2, 0xa3, 0xa3, 0xa3, 0xa3,
  2760. 0xa4, 0xa4, 0xa4, 0xa4, 0xa5, 0xa5, 0xa5, 0xa5,
  2761. 0xa6, 0xa6, 0xa6, 0xa6, 0xa8, 0xa8, 0xa8, 0xa8,
  2762. 0xa9, 0xa9, 0xa9, 0xa9, 0xa9, 0xab, 0xab, 0xab,
  2763. 0xab, 0xac, 0xac, 0xac, 0xac, 0xad, 0xad, 0xad,
  2764. 0xad, 0xad, 0xae, 0xae, 0xae, 0xae, 0xaf, 0xaf,
  2765. 0xaf, 0xaf, 0xb0, 0xb0, 0xb0, 0xb0, 0xb0, 0xb1,
  2766. 0xb1, 0xb1, 0xb1, 0xb2, 0xb2, 0xb2, 0xb2, 0xb2,
  2767. 0xb3, 0xb3, 0xb3, 0xb3, 0xb3, 0xb4, 0xb4, 0xb4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0xf6, 0xf6, 0xf6, 0xf6,
  2808. 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf8, 0xf8,
  2809. 0xf8, 0xf8, 0xf8, 0xf8, 0xf9, 0xf9, 0xf9, 0xf9,
  2810. 0xf9, 0xf9, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa,
  2811. 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfb, 0xfb,
  2812. 0xfb, 0xfb, 0xfb, 0xfb, 0xfc, 0xfc, 0xfc, 0xfc,
  2813. 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc,
  2814. 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfe, 0xfe,
  2815. 0xfe, 0xfe, 0xfe, 0xfe, 0xff, 0xff, 0xff, 0xff,
  2816. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2817. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2818. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2819. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2820. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2821. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2822. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2823. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2824. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2825. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2826. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2827. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2828. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2829. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2830. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2831. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2832. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2833. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2834. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2835. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2836. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2837. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2838. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2839. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2840. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2841. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2842. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2843. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2844. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2845. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2846. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2847. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2848. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2849. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2850. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2851. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2852. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2853. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2854. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff},
  2855. {0x07, 0x08, 0x0a, 0x0c, 0x0e, 0x10, 0x12, 0x14,
  2856. 0x16, 0x17, 0x18, 0x1b, 0x1c, 0x1e, 0x1f, 0x20,
  2857. 0x23, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2b, 0x2d,
  2858. 0x2f, 0x30, 0x31, 0x33, 0x34, 0x35, 0x37, 0x38,
  2859. 0x39, 0x3a, 0x3b, 0x3b, 0x3c, 0x3d, 0x3f, 0x40,
  2860. 0x42, 0x43, 0x44, 0x44, 0x45, 0x47, 0x48, 0x49,
  2861. 0x4a, 0x4a, 0x4b, 0x4c, 0x4d, 0x4d, 0x4f, 0x50,
  2862. 0x52, 0x52, 0x53, 0x54, 0x55, 0x55, 0x56, 0x58,
  2863. 0x58, 0x59, 0x5a, 0x5b, 0x5b, 0x5c, 0x5e, 0x5e,
  2864. 0x5f, 0x5f, 0x60, 0x61, 0x61, 0x62, 0x63, 0x63,
  2865. 0x65, 0x65, 0x66, 0x67, 0x67, 0x68, 0x68, 0x69,
  2866. 0x6a, 0x6a, 0x6c, 0x6c, 0x6d, 0x6d, 0x6e, 0x6e,
  2867. 0x6f, 0x70, 0x70, 0x71, 0x71, 0x73, 0x73, 0x74,
  2868. 0x74, 0x75, 0x75, 0x77, 0x77, 0x78, 0x78, 0x79,
  2869. 0x79, 0x7a, 0x7a, 0x7b, 0x7b, 0x7c, 0x7c, 0x7d,
  2870. 0x7d, 0x7f, 0x7f, 0x80, 0x80, 0x81, 0x81, 0x81,
  2871. 0x82, 0x82, 0x84, 0x84, 0x85, 0x85, 0x86, 0x86,
  2872. 0x88, 0x88, 0x88, 0x89, 0x89, 0x8a, 0x8a, 0x8b,
  2873. 0x8b,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 0xef, 0xef, 0xef, 0xef, 0xf0, 0xf0, 0xf0,
  2914. 0xf0, 0xf0, 0xf1, 0xf1, 0xf1, 0xf1, 0xf1, 0xf3,
  2915. 0xf3, 0xf3, 0xf3, 0xf3, 0xf4, 0xf4, 0xf4, 0xf4,
  2916. 0xf4, 0xf5, 0xf5, 0xf5, 0xf5, 0xf5, 0xf6, 0xf6,
  2917. 0xf6, 0xf6, 0xf6, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7,
  2918. 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf9, 0xf9, 0xf9,
  2919. 0xf9, 0xf9, 0xf9, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa,
  2920. 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfb, 0xfb, 0xfb,
  2921. 0xfb, 0xfb, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc,
  2922. 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfd, 0xfd, 0xfd,
  2923. 0xfd, 0xfd, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xff,
  2924. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2925. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2926. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2927. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2928. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2929. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2930. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2931. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2932. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2933. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2934. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2935. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2936. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2937. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2938. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2939. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2940. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2941. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2942. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2943. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2944. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2945. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2946. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2947. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2948. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2949. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2950. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2951. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2952. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2953. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2954. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2955. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2956. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2957. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2958. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2959. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2960. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2961. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2962. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2963. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2964. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2965. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2966. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2967. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2968. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2969. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2970. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2971. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2972. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2973. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2974. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2975. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2976. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2977. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2978. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2979. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2980. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2981. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2982. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}
  2983. },
  2984. { /* gamma 4 - from tp6800 + soi763a */
  2985. {0x11, 0x14, 0x15, 0x17, 0x1a, 0x1b, 0x1e, 0x1f,
  2986. 0x22, 0x23, 0x25, 0x27, 0x28, 0x2b, 0x2c, 0x2d,
  2987. 0x2f, 0x31, 0x33, 0x34, 0x35, 0x38, 0x39, 0x3a,
  2988. 0x3b, 0x3c, 0x3d, 0x40, 0x42, 0x43, 0x44, 0x45,
  2989. 0x47, 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4f,
  2990. 0x50, 0x52, 0x53, 0x53, 0x54, 0x55, 0x56, 0x58,
  2991. 0x59, 0x5a, 0x5b, 0x5b, 0x5c, 0x5e, 0x5f, 0x60,
  2992. 0x61, 0x61, 0x62, 0x63, 0x65, 0x65, 0x66, 0x67,
  2993. 0x68, 0x68, 0x69, 0x6a, 0x6c, 0x6c, 0x6d, 0x6e,
  2994. 0x6f, 0x6f, 0x70, 0x71, 0x71, 0x73, 0x74, 0x74,
  2995. 0x75, 0x77, 0x77, 0x78, 0x79, 0x79, 0x7a, 0x7a,
  2996. 0x7b, 0x7c, 0x7c, 0x7d, 0x7f, 0x7f, 0x80, 0x80,
  2997. 0x81, 0x81, 0x82, 0x84, 0x84, 0x85, 0x85, 0x86,
  2998. 0x86, 0x88, 0x89, 0x89, 0x8a, 0x8a, 0x8b, 0x8b,
  2999. 0x8d, 0x8d, 0x8e, 0x8e, 0x8f, 0x90, 0x90, 0x91,
  3000. 0x91, 0x92, 0x92, 0x93, 0x93, 0x94, 0x94, 0x96,
  3001. 0x96, 0x97, 0x97, 0x98, 0x98, 0x98, 0x99, 0x99,
  3002. 0x9a, 0x9a, 0x9b, 0x9b,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0x4c,
  3120. 0x4d, 0x4f, 0x4f, 0x50, 0x52, 0x52, 0x53, 0x54,
  3121. 0x54, 0x55, 0x55, 0x56, 0x58, 0x58, 0x59, 0x5a,
  3122. 0x5a, 0x5b, 0x5b, 0x5c, 0x5e, 0x5e, 0x5f, 0x5f,
  3123. 0x60, 0x60, 0x61, 0x61, 0x62, 0x63, 0x63, 0x65,
  3124. 0x65, 0x66, 0x66, 0x67, 0x67, 0x68, 0x68, 0x69,
  3125. 0x69, 0x6a, 0x6a, 0x6c, 0x6c, 0x6d, 0x6d, 0x6e,
  3126. 0x6e, 0x6f, 0x6f, 0x70, 0x70, 0x71, 0x71, 0x73,
  3127. 0x73, 0x74, 0x74, 0x74, 0x75, 0x75, 0x77, 0x77,
  3128. 0x78, 0x78, 0x79, 0x79, 0x79, 0x7a, 0x7a, 0x7b,
  3129. 0x7b, 0x7c, 0x7c, 0x7c, 0x7d, 0x7d, 0x7f, 0x7f,
  3130. 0x7f, 0x80, 0x80, 0x81, 0x81, 0x81, 0x82, 0x82,
  3131. 0x84, 0x84, 0x84, 0x85, 0x85, 0x86, 0x86, 0x86,
  3132. 0x88, 0x88, 0x88, 0x89, 0x89, 0x8a, 0x8a, 0x8a,
  3133. 0x8b, 0x8b, 0x8b, 0x8d, 0x8d, 0x8d, 0x8e, 0x8e,
  3134. 0x8e, 0x8f, 0x8f, 0x90, 0x90, 0x90, 0x91, 0x91,
  3135. 0x91, 0x92, 0x92, 0x92, 0x93, 0x93, 0x93, 0x94,
  3136. 0x94, 0x94, 0x96, 0x96, 0x96, 0x97, 0x97, 0x97,
  3137. 0x98, 0x98, 0x98, 0x98, 0x99, 0x99, 0x99, 0x9a,
  3138. 0x9a, 0x9a, 0x9b, 0x9b, 0x9b, 0x9c, 0x9c, 0x9c,
  3139. 0x9c, 0x9d, 0x9d, 0x9d, 0x9e, 0x9e, 0x9e, 0xa0,
  3140. 0xa0, 0xa0, 0xa0, 0xa1, 0xa1, 0xa1, 0xa2, 0xa2,
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0xfb, 0xfb,
  3239. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  3240. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb},
  3241. {0x0d, 0x10, 0x11, 0x14, 0x15, 0x17, 0x18, 0x1b,
  3242. 0x1c, 0x1e, 0x20, 0x22, 0x23, 0x26, 0x27, 0x28,
  3243. 0x29, 0x2b, 0x2d, 0x2f, 0x30, 0x31, 0x33, 0x34,
  3244. 0x35, 0x37, 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d,
  3245. 0x3f, 0x40, 0x42, 0x43, 0x44, 0x45, 0x47, 0x48,
  3246. 0x49, 0x4a, 0x4b, 0x4b, 0x4c, 0x4d, 0x4f, 0x50,
  3247. 0x52, 0x52, 0x53, 0x54, 0x55, 0x56, 0x56, 0x58,
  3248. 0x59, 0x5a, 0x5a, 0x5b, 0x5c, 0x5e, 0x5e, 0x5f,
  3249. 0x60, 0x60, 0x61, 0x62, 0x62, 0x63, 0x65, 0x65,
  3250. 0x66, 0x67, 0x67, 0x68, 0x69, 0x69, 0x6a, 0x6c,
  3251. 0x6c, 0x6d, 0x6d, 0x6e, 0x6f, 0x6f, 0x70, 0x70,
  3252. 0x71, 0x73, 0x73, 0x74, 0x74, 0x75, 0x75, 0x77,
  3253. 0x78, 0x78, 0x79, 0x79, 0x7a, 0x7a, 0x7b, 0x7b,
  3254. 0x7c, 0x7c, 0x7d, 0x7d, 0x7f, 0x7f, 0x80, 0x80,
  3255. 0x81, 0x81, 0x82, 0x82, 0x84, 0x84, 0x85, 0x85,
  3256. 0x86, 0x86, 0x88, 0x88, 0x89, 0x89, 0x8a, 0x8a,
  3257. 0x8b, 0x8b, 0x8d, 0x8d, 0x8d, 0x8e, 0x8e, 0x8f,
  3258. 0x8f, 0x90, 0x90, 0x91, 0x91, 0x91, 0x92, 0x92,
  3259. 0x93, 0x93, 0x94, 0x94, 0x94, 0x96, 0x96, 0x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, 0xfb, 0xfb, 0xfb,
  3358. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  3359. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  3360. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  3361. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  3362. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  3363. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  3364. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  3365. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  3366. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  3367. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb,
  3368. 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb}
  3369. },
  3370. { /* gamma 5 */
  3371. {0x16, 0x18, 0x19, 0x1b, 0x1d, 0x1e, 0x20, 0x21,
  3372. 0x23, 0x24, 0x25, 0x27, 0x28, 0x2a, 0x2b, 0x2c,
  3373. 0x2d, 0x2f, 0x30, 0x31, 0x32, 0x34, 0x35, 0x36,
  3374. 0x37, 0x38, 0x39, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
  3375. 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47,
  3376. 0x48, 0x49, 0x4a, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e,
  3377. 0x4f, 0x50, 0x51, 0x51, 0x52, 0x53, 0x54, 0x55,
  3378. 0x56, 0x56, 0x57, 0x58, 0x59, 0x59, 0x5a, 0x5b,
  3379. 0x5c, 0x5c, 0x5d, 0x5e, 0x5f, 0x5f, 0x60, 0x61,
  3380. 0x62, 0x62, 0x63, 0x64, 0x64, 0x65, 0x66, 0x66,
  3381. 0x67, 0x68, 0x68, 0x69, 0x6a, 0x6a, 0x6b, 0x6b,
  3382. 0x6c, 0x6d, 0x6d, 0x6e, 0x6f, 0x6f, 0x70, 0x70,
  3383. 0x71, 0x71, 0x72, 0x73, 0x73, 0x74, 0x74, 0x75,
  3384. 0x75, 0x76, 0x77, 0x77, 0x78, 0x78, 0x79, 0x79,
  3385. 0x7a, 0x7a, 0x7b, 0x7b, 0x7c, 0x7d, 0x7d, 0x7e,
  3386. 0x7e, 0x7f, 0x7f, 0x80, 0x80, 0x81, 0x81, 0x82,
  3387. 0x82, 0x83, 0x83, 0x84, 0x84, 0x84, 0x85, 0x85,
  3388. 0x86, 0x86, 0x87, 0x87, 0x88, 0x88, 0x89, 0x89,
  3389. 0x8a, 0x8a, 0x8b, 0x8b, 0x8b, 0x8c, 0x8c, 0x8d,
  3390. 0x8d, 0x8e, 0x8e, 0x8e, 0x8f, 0x8f, 0x90, 0x90,
  3391. 0x91, 0x91, 0x91, 0x92, 0x92, 0x93, 0x93, 0x94,
  3392. 0x94, 0x94, 0x95, 0x95, 0x96, 0x96, 0x96, 0x97,
  3393. 0x97, 0x98, 0x98, 0x98, 0x99, 0x99, 0x9a, 0x9a,
  3394. 0x9a, 0x9b, 0x9b, 0x9b, 0x9c, 0x9c, 0x9d, 0x9d,
  3395. 0x9d, 0x9e, 0x9e, 0x9e, 0x9f, 0x9f, 0xa0, 0xa0,
  3396. 0xa0, 0xa1, 0xa1, 0xa1, 0xa2, 0xa2, 0xa2, 0xa3,
  3397. 0xa3, 0xa4, 0xa4, 0xa4, 0xa5, 0xa5, 0xa5, 0xa6,
  3398. 0xa6, 0xa6, 0xa7, 0xa7, 0xa7, 0xa8, 0xa8, 0xa8,
  3399. 0xa9, 0xa9, 0xa9, 0xaa, 0xaa, 0xaa, 0xab, 0xab,
  3400. 0xab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9, 0xfa,
  3440. 0xfa, 0xfa, 0xfa, 0xfa, 0xfb, 0xfb, 0xfb, 0xfb,
  3441. 0xfb, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfd, 0xfd,
  3442. 0xfd, 0xfd, 0xfd, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe,
  3443. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3444. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3445. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3446. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3447. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3448. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3449. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3450. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3451. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3452. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3453. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3454. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3455. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3456. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3457. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3458. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3459. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3460. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3461. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3462. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3463. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3464. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3465. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3466. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3467. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3468. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3469. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3470. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3471. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3472. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3473. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3474. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3475. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3476. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3477. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3478. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3479. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3480. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3481. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3482. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3483. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3484. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3485. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3486. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3487. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3488. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3489. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3490. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3491. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3492. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3493. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3494. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3495. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3496. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3497. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3498. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff},
  3499. {0x0f, 0x11, 0x12, 0x14, 0x15, 0x16, 0x18, 0x19,
  3500. 0x1a, 0x1b, 0x1d, 0x1e, 0x1f, 0x20, 0x21, 0x22,
  3501. 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a, 0x2b,
  3502. 0x2c, 0x2d, 0x2e, 0x2f, 0x30, 0x31, 0x31, 0x32,
  3503. 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x38, 0x39,
  3504. 0x3a, 0x3b, 0x3c, 0x3c, 0x3d, 0x3e, 0x3f, 0x3f,
  3505. 0x40, 0x41, 0x42, 0x42, 0x43, 0x44, 0x44, 0x45,
  3506. 0x46, 0x47, 0x47, 0x48, 0x49, 0x49, 0x4a, 0x4b,
  3507. 0x4b, 0x4c, 0x4c, 0x4d, 0x4e, 0x4e, 0x4f, 0x50,
  3508. 0x50, 0x51, 0x51, 0x52, 0x53, 0x53, 0x54, 0x54,
  3509. 0x55, 0x55, 0x56, 0x56, 0x57, 0x58, 0x58, 0x59,
  3510. 0x59, 0x5a, 0x5a, 0x5b, 0x5b, 0x5c, 0x5c, 0x5d,
  3511. 0x5d, 0x5e, 0x5e, 0x5f, 0x5f, 0x60, 0x60, 0x61,
  3512. 0x61, 0x62, 0x62, 0x63, 0x63, 0x64, 0x64, 0x65,
  3513. 0x65, 0x66, 0x66, 0x66, 0x67, 0x67, 0x68, 0x68,
  3514. 0x69, 0x69, 0x6a, 0x6a, 0x6a, 0x6b, 0x6b, 0x6c,
  3515. 0x6c, 0x6d, 0x6d, 0x6d, 0x6e, 0x6e, 0x6f, 0x6f,
  3516. 0x6f, 0x70, 0x70, 0x71, 0x71, 0x71, 0x72, 0x72,
  3517. 0x73, 0x73, 0x73, 0x74, 0x74, 0x75, 0x75, 0x75,
  3518. 0x76, 0x76, 0x76, 0x77, 0x77, 0x78, 0x78, 0x78,
  3519. 0x79, 0x79, 0x79, 0x7a, 0x7a, 0x7a, 0x7b, 0x7b,
  3520. 0x7b, 0x7c, 0x7c, 0x7d, 0x7d, 0x7d, 0x7e, 0x7e,
  3521. 0x7e, 0x7f, 0x7f, 0x7f, 0x80, 0x80, 0x80, 0x81,
  3522. 0x81, 0x81, 0x82, 0x82, 0x82, 0x83, 0x83, 0x83,
  3523. 0x84, 0x84, 0x84, 0x84, 0x85, 0x85, 0x85, 0x86,
  3524. 0x86, 0x86, 0x87, 0x87, 0x87, 0x88, 0x88, 0x88,
  3525. 0x88, 0x89, 0x89, 0x89, 0x8a, 0x8a, 0x8a, 0x8b,
  3526. 0x8b, 0x8b, 0x8b, 0x8c, 0x8c, 0x8c, 0x8d, 0x8d,
  3527. 0x8d, 0x8e, 0x8e, 0x8e, 0x8e, 0x8f, 0x8f, 0x8f,
  3528. 0x90, 0x90, 0x90, 0x90, 0x91, 0x91, 0x91, 0x91,
  3529. 0x92, 0x92, 0x92, 0x93, 0x93, 0x93, 0x93, 0x94,
  3530. 0x94, 0x94, 0x94, 0x95, 0x95, 0x95, 0x96, 0x96,
  3531. 0x96, 0x96, 0x97, 0x97, 0x97, 0x97, 0x98, 0x98,
  3532. 0x98, 0x98, 0x99, 0x99, 0x99, 0x99, 0x9a, 0x9a,
  3533. 0x9a, 0x9a, 0x9b, 0x9b, 0x9b, 0x9b, 0x9c, 0x9c,
  3534. 0x9c, 0x9c, 0x9d, 0x9d, 0x9d, 0x9d, 0x9e, 0x9e,
  3535. 0x9e, 0x9e, 0x9f, 0x9f, 0x9f, 0x9f, 0xa0, 0xa0,
  3536. 0xa0, 0xa0, 0xa1, 0xa1, 0xa1, 0xa1, 0xa2, 0xa2,
  3537. 0xa2, 0xa2, 0xa2, 0xa3, 0xa3, 0xa3, 0xa3, 0xa4,
  3538. 0xa4, 0xa4, 0xa4, 0xa5, 0xa5, 0xa5, 0xa5, 0xa5,
  3539. 0xa6, 0xa6, 0xa6, 0xa6, 0xa7, 0xa7, 0xa7, 0xa7,
  3540. 0xa8, 0xa8, 0xa8, 0xa8, 0xa8, 0xa9, 0xa9, 0xa9,
  3541. 0xa9, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xab, 0xab,
  3542. 0xab, 0xab, 0xac, 0xac, 0xac, 0xac, 0xac, 0xad,
  3543. 0xad, 0xad, 0xad, 0xad, 0xae, 0xae, 0xae, 0xae,
  3544. 0xaf, 0xaf, 0xaf, 0xaf, 0xaf, 0xb0, 0xb0, 0xb0,
  3545. 0xb0, 0xb0, 0xb1, 0xb1, 0xb1, 0xb1, 0xb1, 0xb2,
  3546. 0xb2, 0xb2, 0xb2, 0xb2, 0xb3, 0xb3, 0xb3, 0xb3,
  3547. 0xb4, 0xb4, 0xb4, 0xb4, 0xb4, 0xb5, 0xb5, 0xb5,
  3548. 0xb5, 0xb5, 0xb6, 0xb6, 0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, 0xef, 0xef, 0xef, 0xef, 0xef, 0xef, 0xf0,
  3589. 0xf0, 0xf0, 0xf0, 0xf0, 0xf1, 0xf1, 0xf1, 0xf1,
  3590. 0xf1, 0xf1, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2,
  3591. 0xf3, 0xf3, 0xf3, 0xf3, 0xf3, 0xf4, 0xf4, 0xf4,
  3592. 0xf4, 0xf4, 0xf4, 0xf5, 0xf5, 0xf5, 0xf5, 0xf5,
  3593. 0xf6, 0xf6, 0xf6, 0xf6, 0xf6, 0xf6, 0xf7, 0xf7,
  3594. 0xf7, 0xf7, 0xf7, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8,
  3595. 0xf8, 0xf9, 0xf9, 0xf9, 0xf9, 0xf9, 0xfa, 0xfa,
  3596. 0xfa, 0xfa, 0xfa, 0xfa, 0xfb, 0xfb, 0xfb, 0xfb,
  3597. 0xfb, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfd, 0xfd,
  3598. 0xfd, 0xfd, 0xfd, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe,
  3599. 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3600. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3601. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3602. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3603. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3604. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3605. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3606. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3607. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3608. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3609. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3610. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3611. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3612. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3613. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3614. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3615. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3616. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3617. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3618. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3619. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3620. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3621. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3622. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3623. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3624. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3625. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3626. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff},
  3627. {0x13, 0x15, 0x16, 0x18, 0x19, 0x1b, 0x1c, 0x1e,
  3628. 0x1f, 0x20, 0x22, 0x23, 0x24, 0x26, 0x27, 0x28,
  3629. 0x29, 0x2a, 0x2c, 0x2d, 0x2e, 0x2f, 0x30, 0x31,
  3630. 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39,
  3631. 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, 0x40, 0x41,
  3632. 0x42, 0x43, 0x44, 0x44, 0x45, 0x46, 0x47, 0x48,
  3633. 0x49, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4d, 0x4e,
  3634. 0x4f, 0x50, 0x50, 0x51, 0x52, 0x53, 0x53, 0x54,
  3635. 0x55, 0x55, 0x56, 0x57, 0x57, 0x58, 0x59, 0x59,
  3636. 0x5a, 0x5b, 0x5b, 0x5c, 0x5d, 0x5d, 0x5e, 0x5f,
  3637. 0x5f, 0x60, 0x60, 0x61, 0x62, 0x62, 0x63, 0x63,
  3638. 0x64, 0x65, 0x65, 0x66, 0x66, 0x67, 0x67, 0x68,
  3639. 0x69, 0x69, 0x6a, 0x6a, 0x6b, 0x6b, 0x6c, 0x6c,
  3640. 0x6d, 0x6d, 0x6e, 0x6e, 0x6f, 0x6f, 0x70, 0x70,
  3641. 0x71, 0x71, 0x72, 0x72, 0x73, 0x73, 0x74, 0x74,
  3642. 0x75, 0x75, 0x76, 0x76, 0x77, 0x77, 0x78, 0x78,
  3643. 0x79, 0x79, 0x7a, 0x7a, 0x7a, 0x7b, 0x7b, 0x7c,
  3644. 0x7c, 0x7d, 0x7d, 0x7e, 0x7e, 0x7e, 0x7f, 0x7f,
  3645. 0x80, 0x80, 0x81, 0x81, 0x81, 0x82, 0x82, 0x83,
  3646. 0x83, 0x84, 0x84, 0x84, 0x85, 0x85, 0x86, 0x86,
  3647. 0x86, 0x87, 0x87, 0x88, 0x88, 0x88, 0x89, 0x89,
  3648. 0x89, 0x8a, 0x8a, 0x8b, 0x8b, 0x8b, 0x8c, 0x8c,
  3649. 0x8c, 0x8d, 0x8d, 0x8e, 0x8e, 0x8e, 0x8f, 0x8f,
  3650. 0x8f, 0x90, 0x90, 0x90, 0x91, 0x91, 0x92, 0x92,
  3651. 0x92, 0x93, 0x93, 0x93, 0x94, 0x94, 0x94, 0x95,
  3652. 0x95, 0x95, 0x96, 0x96, 0x96, 0x97, 0x97, 0x97,
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e4, 0xe4, 0xe4, 0xe4, 0xe4,
  3693. 0xe4, 0xe5, 0xe5, 0xe5, 0xe5, 0xe5, 0xe6, 0xe6,
  3694. 0xe6, 0xe6, 0xe6, 0xe7, 0xe7, 0xe7, 0xe7, 0xe7,
  3695. 0xe8, 0xe8, 0xe8, 0xe8, 0xe8, 0xe9, 0xe9, 0xe9,
  3696. 0xe9, 0xe9, 0xe9, 0xea, 0xea, 0xea, 0xea, 0xea,
  3697. 0xeb, 0xeb, 0xeb, 0xeb, 0xeb, 0xec, 0xec, 0xec,
  3698. 0xec, 0xec, 0xed, 0xed, 0xed, 0xed, 0xed, 0xed,
  3699. 0xee, 0xee, 0xee, 0xee, 0xee, 0xef, 0xef, 0xef,
  3700. 0xef, 0xef, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0,
  3701. 0xf1, 0xf1, 0xf1, 0xf1, 0xf1, 0xf2, 0xf2, 0xf2,
  3702. 0xf2, 0xf2, 0xf3, 0xf3, 0xf3, 0xf3, 0xf3, 0xf3,
  3703. 0xf4, 0xf4, 0xf4, 0xf4, 0xf4, 0xf5, 0xf5, 0xf5,
  3704. 0xf5, 0xf5, 0xf6, 0xf6, 0xf6, 0xf6, 0xf6, 0xf6,
  3705. 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf8, 0xf8, 0xf8,
  3706. 0xf8, 0xf8, 0xf9, 0xf9, 0xf9, 0xf9, 0xf9, 0xf9,
  3707. 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfb, 0xfb, 0xfb,
  3708. 0xfb, 0xfb, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc,
  3709. 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfe, 0xfe, 0xfe,
  3710. 0xfe, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3711. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3712. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3713. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3714. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3715. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3716. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3717. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3718. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3719. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3720. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3721. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3722. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3723. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3724. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3725. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3726. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3727. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3728. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3729. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3730. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3731. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3732. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3733. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3734. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3735. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3736. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3737. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3738. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3739. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3740. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3741. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3742. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3743. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3744. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3745. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3746. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3747. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3748. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3749. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3750. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3751. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3752. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3753. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  3754. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff},
  3755. },
  3756. };
  3757. reg_w(gspca_dev, TP6800_R21_ENDP_1_CTL, 0x00);
  3758. if (sd->bridge == BRIDGE_TP6810)
  3759. reg_w(gspca_dev, 0x02, 0x28);
  3760. /* msleep(50); */
  3761. gamma = sd->ctrls[GAMMA].val;
  3762. bulk_w(gspca_dev, 0x00, gamma_tb[gamma][0], 1024);
  3763. bulk_w(gspca_dev, 0x01, gamma_tb[gamma][1], 1024);
  3764. bulk_w(gspca_dev, 0x02, gamma_tb[gamma][2], 1024);
  3765. if (sd->bridge == BRIDGE_TP6810) {
  3766. int i;
  3767. reg_w(gspca_dev, 0x02, 0x2b);
  3768. reg_w(gspca_dev, 0x02, 0x28);
  3769. for (i = 0; i < 6; i++)
  3770. reg_w(gspca_dev, TP6800_R55_GAMMA_R,
  3771. gamma_tb[gamma][0][i]);
  3772. reg_w(gspca_dev, 0x02, 0x2b);
  3773. reg_w(gspca_dev, 0x02, 0x28);
  3774. for (i = 0; i < 6; i++)
  3775. reg_w(gspca_dev, TP6800_R56_GAMMA_G,
  3776. gamma_tb[gamma][1][i]);
  3777. reg_w(gspca_dev, 0x02, 0x2b);
  3778. reg_w(gspca_dev, 0x02, 0x28);
  3779. for (i = 0; i < 6; i++)
  3780. reg_w(gspca_dev, TP6800_R57_GAMMA_B,
  3781. gamma_tb[gamma][2][i]);
  3782. reg_w(gspca_dev, 0x02, 0x28);
  3783. }
  3784. reg_w(gspca_dev, TP6800_R21_ENDP_1_CTL, 0x03);
  3785. /* msleep(50); */
  3786. }
  3787. static void setsharpness(struct gspca_dev *gspca_dev)
  3788. {
  3789. struct sd *sd = (struct sd *) gspca_dev;
  3790. u8 val;
  3791. if (sd->bridge == BRIDGE_TP6800) {
  3792. val = sd->ctrls[SHARPNESS].val
  3793. | 0x08; /* grid compensation enable */
  3794. if (gspca_dev->width == 640)
  3795. reg_w(gspca_dev, TP6800_R78_FORMAT, 0x00); /* vga */
  3796. else
  3797. val |= 0x04; /* scaling down enable */
  3798. reg_w(gspca_dev, TP6800_R5D_DEMOSAIC_CFG, val);
  3799. } else {
  3800. val = (sd->ctrls[SHARPNESS].val << 5) | 0x08;
  3801. reg_w(gspca_dev, 0x59, val);
  3802. }
  3803. }
  3804. static void setautogain(struct gspca_dev *gspca_dev)
  3805. {
  3806. struct sd *sd = (struct sd *) gspca_dev;
  3807. if (gspca_dev->ctrl_dis & (1 << AUTOGAIN))
  3808. return;
  3809. if (sd->ctrls[AUTOGAIN].val) {
  3810. sd->ag_cnt = AG_CNT_START;
  3811. gspca_dev->ctrl_inac |= (1 << EXPOSURE) | (1 << GAIN);
  3812. } else {
  3813. sd->ag_cnt = -1;
  3814. gspca_dev->ctrl_inac &= ~((1 << EXPOSURE) | (1 << GAIN));
  3815. }
  3816. }
  3817. /* set the resolution for sensor cx0342 */
  3818. static void set_resolution(struct gspca_dev *gspca_dev)
  3819. {
  3820. reg_w(gspca_dev, TP6800_R21_ENDP_1_CTL, 0x00);
  3821. if (gspca_dev->width == 320) {
  3822. reg_w(gspca_dev, TP6800_R3F_FRAME_RATE, 0x06);
  3823. msleep(100);
  3824. i2c_w(gspca_dev, CX0342_AUTO_ADC_CALIB, 0x01);
  3825. msleep(100);
  3826. reg_w(gspca_dev, TP6800_R21_ENDP_1_CTL, 0x03);
  3827. reg_w(gspca_dev, TP6800_R78_FORMAT, 0x01); /* qvga */
  3828. reg_w(gspca_dev, TP6800_R5D_DEMOSAIC_CFG, 0x0d);
  3829. i2c_w(gspca_dev, CX0342_EXPO_LINE_L, 0x37);
  3830. i2c_w(gspca_dev, CX0342_EXPO_LINE_H, 0x01);
  3831. } else {
  3832. reg_w(gspca_dev, TP6800_R3F_FRAME_RATE, 0x05);
  3833. msleep(100);
  3834. i2c_w(gspca_dev, CX0342_AUTO_ADC_CALIB, 0x01);
  3835. msleep(100);
  3836. reg_w(gspca_dev, TP6800_R21_ENDP_1_CTL, 0x03);
  3837. reg_w(gspca_dev, TP6800_R78_FORMAT, 0x00); /* vga */
  3838. reg_w(gspca_dev, TP6800_R5D_DEMOSAIC_CFG, 0x09);
  3839. i2c_w(gspca_dev, CX0342_EXPO_LINE_L, 0xcf);
  3840. i2c_w(gspca_dev, CX0342_EXPO_LINE_H, 0x00);
  3841. }
  3842. i2c_w(gspca_dev, CX0342_SYS_CTRL_0, 0x01);
  3843. bulk_w(gspca_dev, 0x03, color_gain[SENSOR_CX0342],
  3844. ARRAY_SIZE(color_gain[0]));
  3845. setgamma(gspca_dev);
  3846. setquality(gspca_dev);
  3847. }
  3848. /* convert the frame rate to a tp68x0 value */
  3849. static int get_fr_idx(struct gspca_dev *gspca_dev)
  3850. {
  3851. struct sd *sd = (struct sd *) gspca_dev;
  3852. int i;
  3853. if (sd->bridge == BRIDGE_TP6800) {
  3854. for (i = 0; i < ARRAY_SIZE(rates) - 1; i++) {
  3855. if (sd->framerate >= rates[i])
  3856. break;
  3857. }
  3858. i = 6 - i; /* 1 = 5fps .. 6 = 30fps */
  3859. /* 640x480 * 30 fps does not work */
  3860. if (i == 6 /* if 30 fps */
  3861. && gspca_dev->width == 640)
  3862. i = 0x05; /* 15 fps */
  3863. } else {
  3864. for (i = 0; i < ARRAY_SIZE(rates_6810) - 1; i++) {
  3865. if (sd->framerate >= rates_6810[i])
  3866. break;
  3867. }
  3868. i = 7 - i; /* 3 = 5fps .. 7 = 30fps */
  3869. /* 640x480 * 30 fps does not work */
  3870. if (i == 7 /* if 30 fps */
  3871. && gspca_dev->width == 640)
  3872. i = 6; /* 15 fps */
  3873. i |= 0x80; /* clock * 1 */
  3874. }
  3875. return i;
  3876. }
  3877. static void setframerate(struct gspca_dev *gspca_dev)
  3878. {
  3879. struct sd *sd = (struct sd *) gspca_dev;
  3880. u8 fr_idx;
  3881. fr_idx = get_fr_idx(gspca_dev);
  3882. if (sd->bridge == BRIDGE_TP6810) {
  3883. reg_r(gspca_dev, 0x7b);
  3884. reg_w(gspca_dev, 0x7b,
  3885. sd->sensor == SENSOR_CX0342 ? 0x10 : 0x90);
  3886. if (sd->ctrls[EXPOSURE].val >= 128)
  3887. fr_idx = 0xf0; /* lower frame rate */
  3888. }
  3889. reg_w(gspca_dev, TP6800_R3F_FRAME_RATE, fr_idx);
  3890. if (sd->sensor == SENSOR_CX0342)
  3891. i2c_w(gspca_dev, CX0342_AUTO_ADC_CALIB, 0x01);
  3892. }
  3893. static void setrgain(struct gspca_dev *gspca_dev)
  3894. {
  3895. struct sd *sd = (struct sd *) gspca_dev;
  3896. int rgain;
  3897. rgain = sd->ctrls[RGAIN].val;
  3898. i2c_w(gspca_dev, CX0342_RAW_RGAIN_H, rgain >> 8);
  3899. i2c_w(gspca_dev, CX0342_RAW_RGAIN_L, rgain);
  3900. i2c_w(gspca_dev, CX0342_SYS_CTRL_0, 0x80);
  3901. }
  3902. static int sd_setgain(struct gspca_dev *gspca_dev, __s32 val)
  3903. {
  3904. struct sd *sd = (struct sd *) gspca_dev;
  3905. if (sd->sensor == SENSOR_CX0342) {
  3906. sd->ctrls[BGAIN].val = sd->ctrls[BGAIN].val
  3907. * val / sd->ctrls[GAIN].val;
  3908. if (sd->ctrls[BGAIN].val > 4095)
  3909. sd->ctrls[BGAIN].val = 4095;
  3910. sd->ctrls[RGAIN].val = sd->ctrls[RGAIN].val
  3911. * val / sd->ctrls[GAIN].val;
  3912. if (sd->ctrls[RGAIN].val > 4095)
  3913. sd->ctrls[RGAIN].val = 4095;
  3914. }
  3915. sd->ctrls[GAIN].val = val;
  3916. if (gspca_dev->streaming)
  3917. setexposure(gspca_dev);
  3918. return gspca_dev->usb_err;
  3919. }
  3920. static void setbgain(struct gspca_dev *gspca_dev)
  3921. {
  3922. struct sd *sd = (struct sd *) gspca_dev;
  3923. int bgain;
  3924. bgain = sd->ctrls[BGAIN].val;
  3925. i2c_w(gspca_dev, CX0342_RAW_BGAIN_H, bgain >> 8);
  3926. i2c_w(gspca_dev, CX0342_RAW_BGAIN_L, bgain);
  3927. i2c_w(gspca_dev, CX0342_SYS_CTRL_0, 0x80);
  3928. }
  3929. /* this function is called at probe time */
  3930. static int sd_config(struct gspca_dev *gspca_dev,
  3931. const struct usb_device_id *id)
  3932. {
  3933. struct sd *sd = (struct sd *) gspca_dev;
  3934. sd->bridge = id->driver_info;
  3935. gspca_dev->cam.cam_mode = vga_mode;
  3936. gspca_dev->cam.nmodes = ARRAY_SIZE(vga_mode);
  3937. gspca_dev->cam.mode_framerates = sd->bridge == BRIDGE_TP6800 ?
  3938. framerates : framerates_6810;
  3939. sd->framerate = 30; /* default: 30 fps */
  3940. gspca_dev->cam.ctrls = sd->ctrls;
  3941. return 0;
  3942. }
  3943. /* this function is called at probe and resume time */
  3944. static int sd_init(struct gspca_dev *gspca_dev)
  3945. {
  3946. struct sd *sd = (struct sd *) gspca_dev;
  3947. static const struct cmd tp6800_preinit[] = {
  3948. {TP6800_R10_SIF_TYPE, 0x01}, /* sif */
  3949. {TP6800_R11_SIF_CONTROL, 0x01},
  3950. {TP6800_R15_GPIO_PU, 0x9f},
  3951. {TP6800_R16_GPIO_PD, 0x9f},
  3952. {TP6800_R17_GPIO_IO, 0x80},
  3953. {TP6800_R18_GPIO_DATA, 0x40}, /* LED off */
  3954. };
  3955. static const struct cmd tp6810_preinit[] = {
  3956. {TP6800_R2F_TIMING_CFG, 0x2f},
  3957. {TP6800_R15_GPIO_PU, 0x6f},
  3958. {TP6800_R16_GPIO_PD, 0x40},
  3959. {TP6800_R17_GPIO_IO, 0x9f},
  3960. {TP6800_R18_GPIO_DATA, 0xc1}, /* LED off */
  3961. };
  3962. if (sd->bridge == BRIDGE_TP6800)
  3963. reg_w_buf(gspca_dev, tp6800_preinit,
  3964. ARRAY_SIZE(tp6800_preinit));
  3965. else
  3966. reg_w_buf(gspca_dev, tp6810_preinit,
  3967. ARRAY_SIZE(tp6810_preinit));
  3968. msleep(15);
  3969. reg_r(gspca_dev, TP6800_R18_GPIO_DATA);
  3970. PDEBUG(D_PROBE, "gpio: %02x", gspca_dev->usb_buf[0]);
  3971. /* values:
  3972. * 0x80: snapshot button
  3973. * 0x40: LED
  3974. * 0x20: (bridge / sensor) reset for tp6810 ?
  3975. * 0x07: sensor type ?
  3976. */
  3977. /* guess the sensor type */
  3978. if (force_sensor >= 0) {
  3979. sd->sensor = force_sensor;
  3980. } else {
  3981. if (sd->bridge == BRIDGE_TP6800) {
  3982. /*fixme: not sure this is working*/
  3983. switch (gspca_dev->usb_buf[0] & 0x07) {
  3984. case 0:
  3985. sd->sensor = SENSOR_SOI763A;
  3986. break;
  3987. case 1:
  3988. sd->sensor = SENSOR_CX0342;
  3989. break;
  3990. }
  3991. } else {
  3992. int sensor;
  3993. sensor = probe_6810(gspca_dev);
  3994. if (sensor < 0) {
  3995. pr_warn("Unknown sensor %d - forced to soi763a\n",
  3996. -sensor);
  3997. sensor = SENSOR_SOI763A;
  3998. }
  3999. sd->sensor = sensor;
  4000. }
  4001. }
  4002. if (sd->sensor == SENSOR_SOI763A) {
  4003. pr_info("Sensor soi763a\n");
  4004. sd->ctrls[GAMMA].def = sd->bridge == BRIDGE_TP6800 ? 0 : 1;
  4005. sd->ctrls[GAIN].max = 15;
  4006. sd->ctrls[GAIN].def = 3;
  4007. gspca_dev->ctrl_dis = (1 << RGAIN) | (1 << BGAIN);
  4008. if (sd->bridge == BRIDGE_TP6810) {
  4009. soi763a_6810_init(gspca_dev);
  4010. #if AUTOGAIN_DEF
  4011. gspca_dev->ctrl_inac |= (1 << EXPOSURE) | (1 << GAIN);
  4012. #endif
  4013. } else {
  4014. gspca_dev->ctrl_dis |= (1 << AUTOGAIN);
  4015. }
  4016. } else {
  4017. pr_info("Sensor cx0342\n");
  4018. if (sd->bridge == BRIDGE_TP6810) {
  4019. cx0342_6810_init(gspca_dev);
  4020. #if AUTOGAIN_DEF
  4021. gspca_dev->ctrl_inac |= (1 << EXPOSURE) | (1 << GAIN);
  4022. #endif
  4023. } else {
  4024. gspca_dev->ctrl_dis |= (1 << AUTOGAIN);
  4025. }
  4026. }
  4027. if (sd->bridge == BRIDGE_TP6810)
  4028. sd->ctrls[QUALITY].def = 0; /* auto quality */
  4029. set_dqt(gspca_dev, 0);
  4030. return 0;
  4031. }
  4032. /* This function is called before choosing the alt setting */
  4033. static int sd_isoc_init(struct gspca_dev *gspca_dev)
  4034. {
  4035. struct sd *sd = (struct sd *) gspca_dev;
  4036. static const struct cmd cx_sensor_init[] = {
  4037. {CX0342_AUTO_ADC_CALIB, 0x81},
  4038. {CX0342_EXPO_LINE_L, 0x37},
  4039. {CX0342_EXPO_LINE_H, 0x01},
  4040. {CX0342_RAW_GRGAIN_L, 0x00},
  4041. {CX0342_RAW_GBGAIN_L, 0x00},
  4042. {CX0342_RAW_RGAIN_L, 0x00},
  4043. {CX0342_RAW_BGAIN_L, 0x00},
  4044. {CX0342_SYS_CTRL_0, 0x81},
  4045. };
  4046. static const struct cmd cx_bridge_init[] = {
  4047. {0x4d, 0x00},
  4048. {0x4c, 0xff},
  4049. {0x4e, 0xff},
  4050. {0x4f, 0x00},
  4051. };
  4052. static const struct cmd ov_sensor_init[] = {
  4053. {0x10, 0x75}, /* exposure */
  4054. {0x76, 0x03},
  4055. {0x00, 0x00}, /* gain */
  4056. };
  4057. static const struct cmd ov_bridge_init[] = {
  4058. {0x7b, 0x90},
  4059. {TP6800_R3F_FRAME_RATE, 0x87},
  4060. };
  4061. if (sd->bridge == BRIDGE_TP6800)
  4062. return 0;
  4063. if (sd->sensor == SENSOR_CX0342) {
  4064. reg_w(gspca_dev, TP6800_R12_SIF_ADDR_S, 0x20);
  4065. reg_w(gspca_dev, TP6800_R3F_FRAME_RATE, 0x87);
  4066. i2c_w_buf(gspca_dev, cx_sensor_init,
  4067. ARRAY_SIZE(cx_sensor_init));
  4068. reg_w_buf(gspca_dev, cx_bridge_init,
  4069. ARRAY_SIZE(cx_bridge_init));
  4070. bulk_w(gspca_dev, 0x03, color_null, sizeof color_null);
  4071. reg_w(gspca_dev, 0x59, 0x40);
  4072. } else {
  4073. reg_w(gspca_dev, TP6800_R12_SIF_ADDR_S, 0x21);
  4074. i2c_w_buf(gspca_dev, ov_sensor_init,
  4075. ARRAY_SIZE(ov_sensor_init));
  4076. reg_r(gspca_dev, 0x7b);
  4077. reg_w_buf(gspca_dev, ov_bridge_init,
  4078. ARRAY_SIZE(ov_bridge_init));
  4079. }
  4080. reg_w(gspca_dev, TP6800_R78_FORMAT,
  4081. gspca_dev->curr_mode ? 0x00 : 0x01);
  4082. return gspca_dev->usb_err;
  4083. }
  4084. static void set_led(struct gspca_dev *gspca_dev, int on)
  4085. {
  4086. u8 data;
  4087. reg_r(gspca_dev, TP6800_R18_GPIO_DATA);
  4088. data = gspca_dev->usb_buf[0];
  4089. if (on)
  4090. data &= ~0x40;
  4091. else
  4092. data |= 0x40;
  4093. reg_w(gspca_dev, TP6800_R18_GPIO_DATA, data);
  4094. }
  4095. static void cx0342_6800_start(struct gspca_dev *gspca_dev)
  4096. {
  4097. static const struct cmd reg_init[] = {
  4098. /*fixme: is this usefull?*/
  4099. {TP6800_R17_GPIO_IO, 0x9f},
  4100. {TP6800_R16_GPIO_PD, 0x40},
  4101. {TP6800_R10_SIF_TYPE, 0x00}, /* i2c 8 bits */
  4102. {TP6800_R50, 0x00},
  4103. {TP6800_R51, 0x00},
  4104. {TP6800_R52, 0xff},
  4105. {TP6800_R53, 0x03},
  4106. {TP6800_R54_DARK_CFG, 0x07},
  4107. {TP6800_R5C_EDGE_THRLD, 0x40},
  4108. {TP6800_R7A_BLK_THRLD, 0x40},
  4109. {TP6800_R2F_TIMING_CFG, 0x17},
  4110. {TP6800_R30_SENSOR_CFG, 0x18}, /* G1B..RG0 */
  4111. {TP6800_R37_FRONT_DARK_ST, 0x00},
  4112. {TP6800_R38_FRONT_DARK_END, 0x00},
  4113. {TP6800_R39_REAR_DARK_ST_L, 0x00},
  4114. {TP6800_R3A_REAR_DARK_ST_H, 0x00},
  4115. {TP6800_R3B_REAR_DARK_END_L, 0x00},
  4116. {TP6800_R3C_REAR_DARK_END_H, 0x00},
  4117. {TP6800_R3D_HORIZ_DARK_LINE_L, 0x00},
  4118. {TP6800_R3E_HORIZ_DARK_LINE_H, 0x00},
  4119. {TP6800_R21_ENDP_1_CTL, 0x03},
  4120. {TP6800_R31_PIXEL_START, 0x0b},
  4121. {TP6800_R32_PIXEL_END_L, 0x8a},
  4122. {TP6800_R33_PIXEL_END_H, 0x02},
  4123. {TP6800_R34_LINE_START, 0x0e},
  4124. {TP6800_R35_LINE_END_L, 0xf4},
  4125. {TP6800_R36_LINE_END_H, 0x01},
  4126. {TP6800_R78_FORMAT, 0x00},
  4127. {TP6800_R12_SIF_ADDR_S, 0x20}, /* cx0342 i2c addr */
  4128. };
  4129. static const struct cmd sensor_init[] = {
  4130. {CX0342_OUTPUT_CTRL, 0x07},
  4131. {CX0342_BYPASS_MODE, 0x58},
  4132. {CX0342_GPXLTHD_L, 0x16},
  4133. {CX0342_RBPXLTHD_L, 0x16},
  4134. {CX0342_PLANETHD_L, 0xc0},
  4135. {CX0342_PLANETHD_H, 0x03},
  4136. {CX0342_RB_GAP_L, 0xff},
  4137. {CX0342_RB_GAP_H, 0x07},
  4138. {CX0342_G_GAP_L, 0xff},
  4139. {CX0342_G_GAP_H, 0x07},
  4140. {CX0342_RST_OVERFLOW_L, 0x5c},
  4141. {CX0342_RST_OVERFLOW_H, 0x01},
  4142. {CX0342_DATA_OVERFLOW_L, 0xfc},
  4143. {CX0342_DATA_OVERFLOW_H, 0x03},
  4144. {CX0342_DATA_UNDERFLOW_L, 0x00},
  4145. {CX0342_DATA_UNDERFLOW_H, 0x00},
  4146. {CX0342_SYS_CTRL_0, 0x40},
  4147. {CX0342_GLOBAL_GAIN, 0x01},
  4148. {CX0342_CLOCK_GEN, 0x00},
  4149. {CX0342_SYS_CTRL_0, 0x02},
  4150. {CX0342_IDLE_CTRL, 0x05},
  4151. {CX0342_ADCGN, 0x00},
  4152. {CX0342_ADC_CTL, 0x00},
  4153. {CX0342_LVRST_BLBIAS, 0x01},
  4154. {CX0342_VTHSEL, 0x0b},
  4155. {CX0342_RAMP_RIV, 0x0b},
  4156. {CX0342_LDOSEL, 0x07},
  4157. {CX0342_SPV_VALUE_L, 0x40},
  4158. {CX0342_SPV_VALUE_H, 0x02},
  4159. };
  4160. reg_w_buf(gspca_dev, reg_init, ARRAY_SIZE(reg_init));
  4161. i2c_w_buf(gspca_dev, sensor_init, ARRAY_SIZE(sensor_init));
  4162. i2c_w_buf(gspca_dev, cx0342_timing_seq, ARRAY_SIZE(cx0342_timing_seq));
  4163. reg_w(gspca_dev, TP6800_R5C_EDGE_THRLD, 0x10);
  4164. reg_w(gspca_dev, TP6800_R54_DARK_CFG, 0x00);
  4165. i2c_w(gspca_dev, CX0342_EXPO_LINE_H, 0x00);
  4166. i2c_w(gspca_dev, CX0342_SYS_CTRL_0, 0x01);
  4167. setexposure(gspca_dev);
  4168. set_led(gspca_dev, 1);
  4169. set_resolution(gspca_dev);
  4170. }
  4171. static void cx0342_6810_start(struct gspca_dev *gspca_dev)
  4172. {
  4173. static const struct cmd sensor_init_2[] = {
  4174. {CX0342_EXPO_LINE_L, 0x6f},
  4175. {CX0342_EXPO_LINE_H, 0x02},
  4176. {CX0342_RAW_GRGAIN_L, 0x00},
  4177. {CX0342_RAW_GBGAIN_L, 0x00},
  4178. {CX0342_RAW_RGAIN_L, 0x00},
  4179. {CX0342_RAW_BGAIN_L, 0x00},
  4180. {CX0342_SYS_CTRL_0, 0x81},
  4181. };
  4182. static const struct cmd bridge_init_2[] = {
  4183. {0x4d, 0x00},
  4184. {0x4c, 0xff},
  4185. {0x4e, 0xff},
  4186. {0x4f, 0x00},
  4187. {TP6800_R7A_BLK_THRLD, 0x00},
  4188. {TP6800_R79_QUALITY, 0x04},
  4189. {TP6800_R79_QUALITY, 0x01},
  4190. };
  4191. static const struct cmd bridge_init_3[] = {
  4192. {TP6800_R31_PIXEL_START, 0x08},
  4193. {TP6800_R32_PIXEL_END_L, 0x87},
  4194. {TP6800_R33_PIXEL_END_H, 0x02},
  4195. {TP6800_R34_LINE_START, 0x0e},
  4196. {TP6800_R35_LINE_END_L, 0xf4},
  4197. {TP6800_R36_LINE_END_H, 0x01},
  4198. };
  4199. static const struct cmd sensor_init_3[] = {
  4200. {CX0342_AUTO_ADC_CALIB, 0x81},
  4201. {CX0342_EXPO_LINE_L, 0x6f},
  4202. {CX0342_EXPO_LINE_H, 0x02},
  4203. {CX0342_RAW_GRGAIN_L, 0x00},
  4204. {CX0342_RAW_GBGAIN_L, 0x00},
  4205. {CX0342_RAW_RGAIN_L, 0x00},
  4206. {CX0342_RAW_BGAIN_L, 0x00},
  4207. {CX0342_SYS_CTRL_0, 0x81},
  4208. };
  4209. static const struct cmd bridge_init_5[] = {
  4210. {0x4d, 0x00},
  4211. {0x4c, 0xff},
  4212. {0x4e, 0xff},
  4213. {0x4f, 0x00},
  4214. };
  4215. static const struct cmd sensor_init_4[] = {
  4216. {CX0342_EXPO_LINE_L, 0xd3},
  4217. {CX0342_EXPO_LINE_H, 0x01},
  4218. /*fixme: gains, but 00..80 only*/
  4219. {CX0342_RAW_GRGAIN_L, 0x40},
  4220. {CX0342_RAW_GBGAIN_L, 0x40},
  4221. {CX0342_RAW_RGAIN_L, 0x40},
  4222. {CX0342_RAW_BGAIN_L, 0x40},
  4223. {CX0342_SYS_CTRL_0, 0x81},
  4224. };
  4225. static const struct cmd sensor_init_5[] = {
  4226. {CX0342_IDLE_CTRL, 0x05},
  4227. {CX0342_ADCGN, 0x00},
  4228. {CX0342_ADC_CTL, 0x00},
  4229. {CX0342_LVRST_BLBIAS, 0x01},
  4230. {CX0342_VTHSEL, 0x0b},
  4231. {CX0342_RAMP_RIV, 0x0b},
  4232. {CX0342_LDOSEL, 0x07},
  4233. {CX0342_SPV_VALUE_L, 0x40},
  4234. {CX0342_SPV_VALUE_H, 0x02},
  4235. {CX0342_AUTO_ADC_CALIB, 0x81},
  4236. };
  4237. reg_w(gspca_dev, 0x22, gspca_dev->alt);
  4238. i2c_w_buf(gspca_dev, sensor_init_2, ARRAY_SIZE(sensor_init_2));
  4239. reg_w_buf(gspca_dev, bridge_init_2, ARRAY_SIZE(bridge_init_2));
  4240. reg_w_buf(gspca_dev, tp6810_cx_init_common,
  4241. ARRAY_SIZE(tp6810_cx_init_common));
  4242. reg_w_buf(gspca_dev, bridge_init_3, ARRAY_SIZE(bridge_init_3));
  4243. if (gspca_dev->curr_mode) {
  4244. reg_w(gspca_dev, 0x4a, 0x7f);
  4245. reg_w(gspca_dev, 0x07, 0x05);
  4246. reg_w(gspca_dev, TP6800_R78_FORMAT, 0x00); /* vga */
  4247. } else {
  4248. reg_w(gspca_dev, 0x4a, 0xff);
  4249. reg_w(gspca_dev, 0x07, 0x85);
  4250. reg_w(gspca_dev, TP6800_R78_FORMAT, 0x01); /* qvga */
  4251. }
  4252. setgamma(gspca_dev);
  4253. reg_w_buf(gspca_dev, tp6810_bridge_start,
  4254. ARRAY_SIZE(tp6810_bridge_start));
  4255. setsharpness(gspca_dev);
  4256. bulk_w(gspca_dev, 0x03, color_gain[SENSOR_CX0342],
  4257. ARRAY_SIZE(color_gain[0]));
  4258. reg_w(gspca_dev, TP6800_R3F_FRAME_RATE, 0x87);
  4259. i2c_w_buf(gspca_dev, sensor_init_3, ARRAY_SIZE(sensor_init_3));
  4260. reg_w_buf(gspca_dev, bridge_init_5, ARRAY_SIZE(bridge_init_5));
  4261. i2c_w_buf(gspca_dev, sensor_init_4, ARRAY_SIZE(sensor_init_4));
  4262. reg_w_buf(gspca_dev, bridge_init_5, ARRAY_SIZE(bridge_init_5));
  4263. i2c_w_buf(gspca_dev, sensor_init_5, ARRAY_SIZE(sensor_init_5));
  4264. set_led(gspca_dev, 1);
  4265. /* setquality(gspca_dev); */
  4266. }
  4267. static void soi763a_6800_start(struct gspca_dev *gspca_dev)
  4268. {
  4269. static const struct cmd reg_init[] = {
  4270. {TP6800_R79_QUALITY, 0x04},
  4271. {TP6800_R79_QUALITY, 0x01},
  4272. {TP6800_R10_SIF_TYPE, 0x00}, /* i2c 8 bits */
  4273. {TP6800_R50, 0x00},
  4274. {TP6800_R51, 0x00},
  4275. {TP6800_R52, 0xff},
  4276. {TP6800_R53, 0x03},
  4277. {TP6800_R54_DARK_CFG, 0x07},
  4278. {TP6800_R5C_EDGE_THRLD, 0x40},
  4279. {TP6800_R79_QUALITY, 0x03},
  4280. {TP6800_R7A_BLK_THRLD, 0x40},
  4281. {TP6800_R2F_TIMING_CFG, 0x46},
  4282. {TP6800_R30_SENSOR_CFG, 0x10}, /* BG1..G0R */
  4283. {TP6800_R37_FRONT_DARK_ST, 0x00},
  4284. {TP6800_R38_FRONT_DARK_END, 0x00},
  4285. {TP6800_R39_REAR_DARK_ST_L, 0x00},
  4286. {TP6800_R3A_REAR_DARK_ST_H, 0x00},
  4287. {TP6800_R3B_REAR_DARK_END_L, 0x00},
  4288. {TP6800_R3C_REAR_DARK_END_H, 0x00},
  4289. {TP6800_R3D_HORIZ_DARK_LINE_L, 0x00},
  4290. {TP6800_R3E_HORIZ_DARK_LINE_H, 0x00},
  4291. {TP6800_R21_ENDP_1_CTL, 0x03},
  4292. {TP6800_R3F_FRAME_RATE, 0x04}, /* 15 fps */
  4293. {TP6800_R5D_DEMOSAIC_CFG, 0x0e}, /* scale down - medium edge */
  4294. {TP6800_R31_PIXEL_START, 0x1b},
  4295. {TP6800_R32_PIXEL_END_L, 0x9a},
  4296. {TP6800_R33_PIXEL_END_H, 0x02},
  4297. {TP6800_R34_LINE_START, 0x0f},
  4298. {TP6800_R35_LINE_END_L, 0xf4},
  4299. {TP6800_R36_LINE_END_H, 0x01},
  4300. {TP6800_R78_FORMAT, 0x01}, /* qvga */
  4301. {TP6800_R12_SIF_ADDR_S, 0x21}, /* soi763a i2c addr */
  4302. {TP6800_R1A_SIF_TX_DATA2, 0x00},
  4303. };
  4304. static const struct cmd sensor_init[] = {
  4305. {0x12, 0x48}, /* mirror - RGB */
  4306. {0x13, 0xa0}, /* clock - no AGC nor AEC */
  4307. {0x03, 0xa4}, /* saturation */
  4308. {0x04, 0x30}, /* hue */
  4309. {0x05, 0x88}, /* contrast */
  4310. {0x06, 0x60}, /* brightness */
  4311. {0x10, 0x41}, /* AEC */
  4312. {0x11, 0x40}, /* clock rate */
  4313. {0x13, 0xa0},
  4314. {0x14, 0x00}, /* 640x480 */
  4315. {0x15, 0x14},
  4316. {0x1f, 0x41},
  4317. {0x20, 0x80},
  4318. {0x23, 0xee},
  4319. {0x24, 0x50},
  4320. {0x25, 0x7a},
  4321. {0x26, 0x00},
  4322. {0x27, 0xe2},
  4323. {0x28, 0xb0},
  4324. {0x2a, 0x00},
  4325. {0x2b, 0x00},
  4326. {0x2d, 0x81},
  4327. {0x2f, 0x9d},
  4328. {0x60, 0x80},
  4329. {0x61, 0x00},
  4330. {0x62, 0x88},
  4331. {0x63, 0x11},
  4332. {0x64, 0x89},
  4333. {0x65, 0x00},
  4334. {0x67, 0x94},
  4335. {0x68, 0x7a},
  4336. {0x69, 0x0f},
  4337. {0x6c, 0x80},
  4338. {0x6d, 0x80},
  4339. {0x6e, 0x80},
  4340. {0x6f, 0xff},
  4341. {0x71, 0x20},
  4342. {0x74, 0x20},
  4343. {0x75, 0x86},
  4344. {0x77, 0xb5},
  4345. {0x17, 0x18}, /* H href start */
  4346. {0x18, 0xbf}, /* H href end */
  4347. {0x19, 0x03}, /* V start */
  4348. {0x1a, 0xf8}, /* V end */
  4349. {0x01, 0x80}, /* blue gain */
  4350. {0x02, 0x80}, /* red gain */
  4351. };
  4352. reg_w_buf(gspca_dev, reg_init, ARRAY_SIZE(reg_init));
  4353. i2c_w(gspca_dev, 0x12, 0x80); /* sensor reset */
  4354. msleep(10);
  4355. i2c_w_buf(gspca_dev, sensor_init, ARRAY_SIZE(sensor_init));
  4356. reg_w(gspca_dev, TP6800_R5C_EDGE_THRLD, 0x10);
  4357. reg_w(gspca_dev, TP6800_R54_DARK_CFG, 0x00);
  4358. setsharpness(gspca_dev);
  4359. bulk_w(gspca_dev, 0x03, color_gain[SENSOR_SOI763A],
  4360. ARRAY_SIZE(color_gain[0]));
  4361. set_led(gspca_dev, 1);
  4362. setexposure(gspca_dev);
  4363. setquality(gspca_dev);
  4364. setgamma(gspca_dev);
  4365. }
  4366. static void soi763a_6810_start(struct gspca_dev *gspca_dev)
  4367. {
  4368. static const struct cmd bridge_init_2[] = {
  4369. {TP6800_R7A_BLK_THRLD, 0x00},
  4370. {TP6800_R79_QUALITY, 0x04},
  4371. {TP6800_R79_QUALITY, 0x01},
  4372. };
  4373. static const struct cmd bridge_init_3[] = {
  4374. {TP6800_R31_PIXEL_START, 0x20},
  4375. {TP6800_R32_PIXEL_END_L, 0x9f},
  4376. {TP6800_R33_PIXEL_END_H, 0x02},
  4377. {TP6800_R34_LINE_START, 0x13},
  4378. {TP6800_R35_LINE_END_L, 0xf8},
  4379. {TP6800_R36_LINE_END_H, 0x01},
  4380. };
  4381. static const struct cmd bridge_init_6[] = {
  4382. {0x08, 0xff},
  4383. {0x09, 0xff},
  4384. {0x0a, 0x5f},
  4385. {0x0b, 0x80},
  4386. };
  4387. reg_w(gspca_dev, 0x22, gspca_dev->alt);
  4388. bulk_w(gspca_dev, 0x03, color_null, sizeof color_null);
  4389. reg_w(gspca_dev, 0x59, 0x40);
  4390. setexposure(gspca_dev);
  4391. reg_w_buf(gspca_dev, bridge_init_2, ARRAY_SIZE(bridge_init_2));
  4392. reg_w_buf(gspca_dev, tp6810_ov_init_common,
  4393. ARRAY_SIZE(tp6810_ov_init_common));
  4394. reg_w_buf(gspca_dev, bridge_init_3, ARRAY_SIZE(bridge_init_3));
  4395. if (gspca_dev->curr_mode) {
  4396. reg_w(gspca_dev, 0x4a, 0x7f);
  4397. reg_w(gspca_dev, 0x07, 0x05);
  4398. reg_w(gspca_dev, TP6800_R78_FORMAT, 0x00); /* vga */
  4399. } else {
  4400. reg_w(gspca_dev, 0x4a, 0xff);
  4401. reg_w(gspca_dev, 0x07, 0x85);
  4402. reg_w(gspca_dev, TP6800_R78_FORMAT, 0x01); /* qvga */
  4403. }
  4404. setgamma(gspca_dev);
  4405. reg_w_buf(gspca_dev, tp6810_bridge_start,
  4406. ARRAY_SIZE(tp6810_bridge_start));
  4407. if (gspca_dev->curr_mode) {
  4408. reg_w(gspca_dev, 0x4f, 0x00);
  4409. reg_w(gspca_dev, 0x4e, 0x7c);
  4410. }
  4411. reg_w(gspca_dev, 0x00, 0x00);
  4412. setsharpness(gspca_dev);
  4413. bulk_w(gspca_dev, 0x03, color_gain[SENSOR_SOI763A],
  4414. ARRAY_SIZE(color_gain[0]));
  4415. set_led(gspca_dev, 1);
  4416. reg_w(gspca_dev, TP6800_R3F_FRAME_RATE, 0xf0);
  4417. setexposure(gspca_dev);
  4418. reg_w_buf(gspca_dev, bridge_init_6, ARRAY_SIZE(bridge_init_6));
  4419. }
  4420. /* -- start the camera -- */
  4421. static int sd_start(struct gspca_dev *gspca_dev)
  4422. {
  4423. struct sd *sd = (struct sd *) gspca_dev;
  4424. jpeg_define(sd->jpeg_hdr, gspca_dev->height, gspca_dev->width);
  4425. set_dqt(gspca_dev, sd->quality);
  4426. if (sd->bridge == BRIDGE_TP6800) {
  4427. if (sd->sensor == SENSOR_CX0342)
  4428. cx0342_6800_start(gspca_dev);
  4429. else
  4430. soi763a_6800_start(gspca_dev);
  4431. } else {
  4432. if (sd->sensor == SENSOR_CX0342)
  4433. cx0342_6810_start(gspca_dev);
  4434. else
  4435. soi763a_6810_start(gspca_dev);
  4436. reg_w_buf(gspca_dev, tp6810_late_start,
  4437. ARRAY_SIZE(tp6810_late_start));
  4438. reg_w(gspca_dev, 0x80, 0x03);
  4439. reg_w(gspca_dev, 0x82, gspca_dev->curr_mode ? 0x0a : 0x0e);
  4440. setexposure(gspca_dev);
  4441. setquality(gspca_dev);
  4442. setautogain(gspca_dev);
  4443. }
  4444. setframerate(gspca_dev);
  4445. return gspca_dev->usb_err;
  4446. }
  4447. static void sd_stopN(struct gspca_dev *gspca_dev)
  4448. {
  4449. struct sd *sd = (struct sd *) gspca_dev;
  4450. if (sd->bridge == BRIDGE_TP6800)
  4451. reg_w(gspca_dev, TP6800_R2F_TIMING_CFG, 0x03);
  4452. set_led(gspca_dev, 0);
  4453. reg_w(gspca_dev, TP6800_R21_ENDP_1_CTL, 0x00);
  4454. }
  4455. static void sd_pkt_scan(struct gspca_dev *gspca_dev,
  4456. u8 *data,
  4457. int len)
  4458. {
  4459. struct sd *sd = (struct sd *) gspca_dev;
  4460. /* the start of frame contains:
  4461. * ff d8
  4462. * ff fe
  4463. * width / 16
  4464. * height / 8
  4465. * quality
  4466. */
  4467. if (sd->bridge == BRIDGE_TP6810) {
  4468. if (*data != 0x5a) {
  4469. /*fixme: don't discard the whole frame..*/
  4470. if (*data == 0xaa || *data == 0x00)
  4471. return;
  4472. if (*data > 0xc0) {
  4473. PDEBUG(D_FRAM, "bad frame");
  4474. gspca_dev->last_packet_type = DISCARD_PACKET;
  4475. return;
  4476. }
  4477. }
  4478. data++;
  4479. len--;
  4480. if (*data == 0xff && data[1] == 0xd8) {
  4481. /*fixme: there may be information in the 4 high bits*/
  4482. if ((data[6] & 0x0f) != sd->quality)
  4483. set_dqt(gspca_dev, data[6] & 0x0f);
  4484. gspca_frame_add(gspca_dev, FIRST_PACKET,
  4485. sd->jpeg_hdr, JPEG_HDR_SZ);
  4486. gspca_frame_add(gspca_dev, INTER_PACKET,
  4487. data + 7, len - 7);
  4488. } else if (data[len - 2] == 0xff && data[len - 1] == 0xd9) {
  4489. gspca_frame_add(gspca_dev, LAST_PACKET,
  4490. data, len);
  4491. } else {
  4492. gspca_frame_add(gspca_dev, INTER_PACKET,
  4493. data, len);
  4494. }
  4495. return;
  4496. }
  4497. switch (*data) {
  4498. case 0x55:
  4499. gspca_frame_add(gspca_dev, LAST_PACKET, data, 0);
  4500. if (len < 8
  4501. || data[1] != 0xff || data[2] != 0xd8
  4502. || data[3] != 0xff || data[4] != 0xfe) {
  4503. /* Have only seen this with corrupt frames */
  4504. gspca_dev->last_packet_type = DISCARD_PACKET;
  4505. return;
  4506. }
  4507. if (data[7] != sd->quality)
  4508. set_dqt(gspca_dev, data[7]);
  4509. gspca_frame_add(gspca_dev, FIRST_PACKET,
  4510. sd->jpeg_hdr, JPEG_HDR_SZ);
  4511. gspca_frame_add(gspca_dev, INTER_PACKET,
  4512. data + 8, len - 8);
  4513. break;
  4514. case 0xaa:
  4515. gspca_dev->last_packet_type = DISCARD_PACKET;
  4516. break;
  4517. case 0xcc:
  4518. if (data[1] != 0xff || data[2] != 0xd8)
  4519. gspca_frame_add(gspca_dev, INTER_PACKET,
  4520. data + 1, len - 1);
  4521. else
  4522. gspca_dev->last_packet_type = DISCARD_PACKET;
  4523. break;
  4524. }
  4525. }
  4526. /* -- do autogain -- */
  4527. /* gain setting is done in setexposure() for tp6810 */
  4528. static void setgain(struct gspca_dev *gspca_dev) {}
  4529. /* !! coarse_grained_expo_autogain is not used !! */
  4530. #define exp_too_low_cnt bridge
  4531. #define exp_too_high_cnt sensor
  4532. #include "autogain_functions.h"
  4533. static void sd_dq_callback(struct gspca_dev *gspca_dev)
  4534. {
  4535. struct sd *sd = (struct sd *) gspca_dev;
  4536. int ret, alen;
  4537. int luma, expo;
  4538. if (sd->ag_cnt < 0)
  4539. return;
  4540. if (--sd->ag_cnt > 5)
  4541. return;
  4542. switch (sd->ag_cnt) {
  4543. /* case 5: */
  4544. default:
  4545. reg_w(gspca_dev, 0x7d, 0x00);
  4546. break;
  4547. case 4:
  4548. reg_w(gspca_dev, 0x27, 0xb0);
  4549. break;
  4550. case 3:
  4551. reg_w(gspca_dev, 0x0c, 0x01);
  4552. break;
  4553. case 2:
  4554. ret = usb_bulk_msg(gspca_dev->dev,
  4555. usb_rcvbulkpipe(gspca_dev->dev, 0x02),
  4556. gspca_dev->usb_buf,
  4557. 32,
  4558. &alen,
  4559. 500);
  4560. if (ret < 0) {
  4561. pr_err("bulk err %d\n", ret);
  4562. break;
  4563. }
  4564. /* values not used (unknown) */
  4565. break;
  4566. case 1:
  4567. reg_w(gspca_dev, 0x27, 0xd0);
  4568. break;
  4569. case 0:
  4570. ret = usb_bulk_msg(gspca_dev->dev,
  4571. usb_rcvbulkpipe(gspca_dev->dev, 0x02),
  4572. gspca_dev->usb_buf,
  4573. 32,
  4574. &alen,
  4575. 500);
  4576. if (ret < 0) {
  4577. pr_err("bulk err %d\n", ret);
  4578. break;
  4579. }
  4580. luma = ((gspca_dev->usb_buf[8] << 8) + gspca_dev->usb_buf[7] +
  4581. (gspca_dev->usb_buf[11] << 8) + gspca_dev->usb_buf[10] +
  4582. (gspca_dev->usb_buf[14] << 8) + gspca_dev->usb_buf[13] +
  4583. (gspca_dev->usb_buf[17] << 8) + gspca_dev->usb_buf[16] +
  4584. (gspca_dev->usb_buf[20] << 8) + gspca_dev->usb_buf[19] +
  4585. (gspca_dev->usb_buf[23] << 8) + gspca_dev->usb_buf[22] +
  4586. (gspca_dev->usb_buf[26] << 8) + gspca_dev->usb_buf[25] +
  4587. (gspca_dev->usb_buf[29] << 8) + gspca_dev->usb_buf[28])
  4588. / 8;
  4589. if (gspca_dev->width == 640)
  4590. luma /= 4;
  4591. reg_w(gspca_dev, 0x7d, 0x00);
  4592. expo = sd->ctrls[EXPOSURE].val;
  4593. ret = auto_gain_n_exposure(gspca_dev, luma,
  4594. 60, /* desired luma */
  4595. 6, /* dead zone */
  4596. 2, /* gain knee */
  4597. 70); /* expo knee */
  4598. sd->ag_cnt = AG_CNT_START;
  4599. if (sd->bridge == BRIDGE_TP6810) {
  4600. if ((expo >= 128 && sd->ctrls[EXPOSURE].val < 128)
  4601. || (expo < 128 && sd->ctrls[EXPOSURE].val >= 128))
  4602. setframerate(gspca_dev);
  4603. }
  4604. break;
  4605. }
  4606. }
  4607. /* get stream parameters (framerate) */
  4608. static void sd_get_streamparm(struct gspca_dev *gspca_dev,
  4609. struct v4l2_streamparm *parm)
  4610. {
  4611. struct sd *sd = (struct sd *) gspca_dev;
  4612. struct v4l2_captureparm *cp = &parm->parm.capture;
  4613. struct v4l2_fract *tpf = &cp->timeperframe;
  4614. int fr, i;
  4615. cp->capability |= V4L2_CAP_TIMEPERFRAME;
  4616. tpf->numerator = 1;
  4617. i = get_fr_idx(gspca_dev);
  4618. if (i & 0x80) {
  4619. if (sd->bridge == BRIDGE_TP6800)
  4620. fr = rates[6 - (i & 0x07)];
  4621. else
  4622. fr = rates_6810[7 - (i & 0x07)];
  4623. } else {
  4624. fr = rates[6 - i];
  4625. }
  4626. tpf->denominator = fr;
  4627. }
  4628. /* set stream parameters (framerate) */
  4629. static void sd_set_streamparm(struct gspca_dev *gspca_dev,
  4630. struct v4l2_streamparm *parm)
  4631. {
  4632. struct sd *sd = (struct sd *) gspca_dev;
  4633. struct v4l2_captureparm *cp = &parm->parm.capture;
  4634. struct v4l2_fract *tpf = &cp->timeperframe;
  4635. int fr, i;
  4636. sd->framerate = tpf->denominator / tpf->numerator;
  4637. if (gspca_dev->streaming)
  4638. setframerate(gspca_dev);
  4639. /* Return the actual framerate */
  4640. i = get_fr_idx(gspca_dev);
  4641. if (i & 0x80)
  4642. fr = rates_6810[7 - (i & 0x07)];
  4643. else
  4644. fr = rates[6 - i];
  4645. tpf->numerator = 1;
  4646. tpf->denominator = fr;
  4647. }
  4648. static int sd_set_jcomp(struct gspca_dev *gspca_dev,
  4649. struct v4l2_jpegcompression *jcomp)
  4650. {
  4651. struct sd *sd = (struct sd *) gspca_dev;
  4652. if (sd->sensor == SENSOR_SOI763A)
  4653. jpeg_set_qual(sd->jpeg_hdr, jcomp->quality);
  4654. /* else
  4655. fixme: TODO
  4656. */
  4657. return gspca_dev->usb_err;
  4658. }
  4659. static int sd_get_jcomp(struct gspca_dev *gspca_dev,
  4660. struct v4l2_jpegcompression *jcomp)
  4661. {
  4662. struct sd *sd = (struct sd *) gspca_dev;
  4663. memset(jcomp, 0, sizeof *jcomp);
  4664. jcomp->quality = jpeg_q[sd->quality];
  4665. jcomp->jpeg_markers = V4L2_JPEG_MARKER_DHT
  4666. | V4L2_JPEG_MARKER_DQT;
  4667. return 0;
  4668. }
  4669. static struct ctrl sd_ctrls[NCTRLS] = {
  4670. [EXPOSURE] = {
  4671. {
  4672. .id = V4L2_CID_EXPOSURE,
  4673. .type = V4L2_CTRL_TYPE_INTEGER,
  4674. .name = "Exposure",
  4675. .minimum = 0x01,
  4676. .maximum = 0xdc,
  4677. .step = 1,
  4678. .default_value = 0x4e,
  4679. },
  4680. .set_control = setexposure
  4681. },
  4682. [QUALITY] = {
  4683. {
  4684. .id = V4L2_CID_PRIVATE_BASE,
  4685. .type = V4L2_CTRL_TYPE_INTEGER,
  4686. .name = "Compression quality",
  4687. .minimum = 0,
  4688. .maximum = 15,
  4689. .step = 1,
  4690. .default_value = 13,
  4691. },
  4692. .set_control = setquality
  4693. },
  4694. [RGAIN] = {
  4695. {
  4696. .id = V4L2_CID_RED_BALANCE,
  4697. .type = V4L2_CTRL_TYPE_INTEGER,
  4698. .name = "Red balance",
  4699. .minimum = 0,
  4700. .maximum = 4095,
  4701. .step = 1,
  4702. .default_value = 256,
  4703. },
  4704. .set_control = setrgain
  4705. },
  4706. [GAIN] = {
  4707. {
  4708. .id = V4L2_CID_GAIN,
  4709. .type = V4L2_CTRL_TYPE_INTEGER,
  4710. .name = "Gain",
  4711. .minimum = 0,
  4712. .maximum = 4095,
  4713. .step = 1,
  4714. .default_value = 256,
  4715. },
  4716. .set = sd_setgain
  4717. },
  4718. [BGAIN] = {
  4719. {
  4720. .id = V4L2_CID_BLUE_BALANCE,
  4721. .type = V4L2_CTRL_TYPE_INTEGER,
  4722. .name = "Blue balance",
  4723. .minimum = 0,
  4724. .maximum = 4095,
  4725. .step = 1,
  4726. .default_value = 256,
  4727. },
  4728. .set_control = setbgain
  4729. },
  4730. [SHARPNESS] = {
  4731. {
  4732. .id = V4L2_CID_SHARPNESS,
  4733. .type = V4L2_CTRL_TYPE_INTEGER,
  4734. .name = "Sharpness",
  4735. .minimum = 0,
  4736. .maximum = 3,
  4737. .step = 1,
  4738. .default_value = 2,
  4739. },
  4740. .set_control = setsharpness
  4741. },
  4742. [GAMMA] = {
  4743. {
  4744. .id = V4L2_CID_GAMMA,
  4745. .type = V4L2_CTRL_TYPE_INTEGER,
  4746. .name = "Gamma",
  4747. .minimum = 0,
  4748. .maximum = NGAMMA - 1,
  4749. .step = 1,
  4750. .default_value = 1,
  4751. },
  4752. .set_control = setgamma
  4753. },
  4754. [AUTOGAIN] = {
  4755. {
  4756. .id = V4L2_CID_AUTOGAIN,
  4757. .type = V4L2_CTRL_TYPE_BOOLEAN,
  4758. .name = "Auto Gain",
  4759. .minimum = 0,
  4760. .maximum = 1,
  4761. .step = 1,
  4762. .default_value = AUTOGAIN_DEF
  4763. },
  4764. .set_control = setautogain
  4765. },
  4766. };
  4767. static const struct sd_desc sd_desc = {
  4768. .name = KBUILD_MODNAME,
  4769. .ctrls = sd_ctrls,
  4770. .nctrls = NCTRLS,
  4771. .config = sd_config,
  4772. .init = sd_init,
  4773. .isoc_init = sd_isoc_init,
  4774. .start = sd_start,
  4775. .stopN = sd_stopN,
  4776. .pkt_scan = sd_pkt_scan,
  4777. .dq_callback = sd_dq_callback,
  4778. .get_streamparm = sd_get_streamparm,
  4779. .set_streamparm = sd_set_streamparm,
  4780. .get_jcomp = sd_get_jcomp,
  4781. .set_jcomp = sd_set_jcomp,
  4782. };
  4783. static const struct usb_device_id device_table[] = {
  4784. {USB_DEVICE(0x06a2, 0x0003), .driver_info = BRIDGE_TP6800},
  4785. {USB_DEVICE(0x06a2, 0x6810), .driver_info = BRIDGE_TP6810},
  4786. {} /* Terminating entry */
  4787. };
  4788. MODULE_DEVICE_TABLE(usb, device_table);
  4789. static int sd_probe(struct usb_interface *interface,
  4790. const struct usb_device_id *id)
  4791. {
  4792. return gspca_dev_probe(interface, id, &sd_desc, sizeof(struct sd),
  4793. THIS_MODULE);
  4794. }
  4795. static struct usb_driver sd_driver = {
  4796. .name = KBUILD_MODNAME,
  4797. .id_table = device_table,
  4798. .probe = sd_probe,
  4799. .disconnect = gspca_disconnect,
  4800. #ifdef CONFIG_PM
  4801. .suspend = gspca_suspend,
  4802. .resume = gspca_resume,
  4803. .reset_resume = gspca_resume,
  4804. #endif
  4805. };
  4806. module_usb_driver(sd_driver);
  4807. module_param(force_sensor, int, 0644);
  4808. MODULE_PARM_DESC(force_sensor,
  4809. "Force sensor. 0: cx0342, 1: soi763a");