topro.c 192 KB

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