es325-access.h 67 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144
  1. /*
  2. * es325-access.h -- ES325 Soc Audio access values
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef _ES325_ACCESS_H
  9. #define _ES325_ACCESS_H
  10. #define ES325_API_WORD(upper, lower) ((upper << 16) | lower)
  11. static struct es325_api_access es325_api_access[ES325_API_ADDR_MAX] = {
  12. [ES325_MIC_CONFIG] = {
  13. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0002) },
  14. .read_msg_len = 4,
  15. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0002),
  16. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  17. .write_msg_len = 8,
  18. .val_shift = 0,
  19. .val_max = 65535,
  20. },
  21. [ES325_AEC_MODE] = {
  22. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0003) },
  23. .read_msg_len = 4,
  24. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0003),
  25. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  26. .write_msg_len = 8,
  27. .val_shift = 0,
  28. .val_max = 65535,
  29. },
  30. [ES325_TX_AGC] = {
  31. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0004) },
  32. .read_msg_len = 4,
  33. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0004),
  34. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  35. .write_msg_len = 8,
  36. .val_shift = 0,
  37. .val_max = 65535,
  38. },
  39. [ES325_TX_AGC_TARGET_LEVEL] = {
  40. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0005) },
  41. .read_msg_len = 4,
  42. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0005),
  43. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  44. .write_msg_len = 8,
  45. .val_shift = 0,
  46. .val_max = 65535,
  47. },
  48. [ES325_TX_AGC_NOISE_FLOOR] = {
  49. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0006) },
  50. .read_msg_len = 4,
  51. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0006),
  52. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  53. .write_msg_len = 8,
  54. .val_shift = 0,
  55. .val_max = 65535,
  56. },
  57. [ES325_TX_AGC_SNR_IMPROVEMENT] = {
  58. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0007) },
  59. .read_msg_len = 4,
  60. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0007),
  61. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  62. .write_msg_len = 8,
  63. .val_shift = 0,
  64. .val_max = 65535,
  65. },
  66. [ES325_VEQ_ENABLE] = {
  67. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0009) },
  68. .read_msg_len = 4,
  69. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0009),
  70. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  71. .write_msg_len = 8,
  72. .val_shift = 0,
  73. .val_max = 65535,
  74. },
  75. [ES325_RX_OUT_LIMITER_MAX_LEVEL] = {
  76. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x000d) },
  77. .read_msg_len = 4,
  78. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x000d),
  79. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  80. .write_msg_len = 8,
  81. .val_shift = 0,
  82. .val_max = 65535,
  83. },
  84. [ES325_RX_NOISE_SUPPRESS] = {
  85. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x000e) },
  86. .read_msg_len = 4,
  87. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x000e),
  88. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  89. .write_msg_len = 8,
  90. .val_shift = 0,
  91. .val_max = 65535,
  92. },
  93. [ES325_RX_STS] = {
  94. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0010) },
  95. .read_msg_len = 4,
  96. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0010),
  97. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  98. .write_msg_len = 8,
  99. .val_shift = 0,
  100. .val_max = 65535,
  101. },
  102. [ES325_RX_STS_RATE] = {
  103. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0011) },
  104. .read_msg_len = 4,
  105. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0011),
  106. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  107. .write_msg_len = 8,
  108. .val_shift = 0,
  109. .val_max = 65535,
  110. },
  111. [ES325_AEC_SPEAKER_VOLUME] = {
  112. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0012) },
  113. .read_msg_len = 4,
  114. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0012),
  115. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  116. .write_msg_len = 8,
  117. .val_shift = 0,
  118. .val_max = 65535,
  119. },
  120. [ES325_SIDETONE] = {
  121. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0015) },
  122. .read_msg_len = 4,
  123. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0015),
  124. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  125. .write_msg_len = 8,
  126. .val_shift = 0,
  127. .val_max = 65535,
  128. },
  129. [ES325_SIDETONE_GAIN] = {
  130. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0016) },
  131. .read_msg_len = 4,
  132. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0016),
  133. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  134. .write_msg_len = 8,
  135. .val_shift = 0,
  136. .val_max = 65535,
  137. },
  138. [ES325_TX_COMFORT_NOISE] = {
  139. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x001a) },
  140. .read_msg_len = 4,
  141. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x001a),
  142. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  143. .write_msg_len = 8,
  144. .val_shift = 0,
  145. .val_max = 65535,
  146. },
  147. [ES325_TX_COMFORT_NOISE_LEVEL] = {
  148. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x001b) },
  149. .read_msg_len = 4,
  150. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x001b),
  151. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  152. .write_msg_len = 8,
  153. .val_shift = 0,
  154. .val_max = 65535,
  155. },
  156. [ES325_ALGORITHM_RESET] = {
  157. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x001c) },
  158. .read_msg_len = 4,
  159. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x001c),
  160. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  161. .write_msg_len = 8,
  162. .val_shift = 0,
  163. .val_max = 65535,
  164. },
  165. [ES325_RX_POST_EQ] = {
  166. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x001f) },
  167. .read_msg_len = 4,
  168. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x001f),
  169. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  170. .write_msg_len = 8,
  171. .val_shift = 0,
  172. .val_max = 65535,
  173. },
  174. [ES325_TX_POST_EQ] = {
  175. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0020) },
  176. .read_msg_len = 4,
  177. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0020),
  178. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  179. .write_msg_len = 8,
  180. .val_shift = 0,
  181. .val_max = 65535,
  182. },
  183. [ES325_AEC_CNG] = {
  184. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0023) },
  185. .read_msg_len = 4,
  186. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0023),
  187. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  188. .write_msg_len = 8,
  189. .val_shift = 0,
  190. .val_max = 65535,
  191. },
  192. [ES325_VEQ_NOISE_ESTIMATION_ADJUSTMENT] = {
  193. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0024) },
  194. .read_msg_len = 4,
  195. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0024),
  196. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  197. .write_msg_len = 8,
  198. .val_shift = 0,
  199. .val_max = 65535,
  200. },
  201. [ES325_TX_AGC_SLEW_RATE_UP] = {
  202. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0026) },
  203. .read_msg_len = 4,
  204. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0026),
  205. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  206. .write_msg_len = 8,
  207. .val_shift = 0,
  208. .val_max = 65535,
  209. },
  210. [ES325_TX_AGC_SLEW_RATE_DOWN] = {
  211. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0027) },
  212. .read_msg_len = 4,
  213. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0027),
  214. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  215. .write_msg_len = 8,
  216. .val_shift = 0,
  217. .val_max = 65535,
  218. },
  219. [ES325_RX_AGC] = {
  220. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0028) },
  221. .read_msg_len = 4,
  222. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0028),
  223. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  224. .write_msg_len = 8,
  225. .val_shift = 0,
  226. .val_max = 65535,
  227. },
  228. [ES325_RX_AGC_TARGET_LEVEL] = {
  229. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0029) },
  230. .read_msg_len = 4,
  231. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0029),
  232. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  233. .write_msg_len = 8,
  234. .val_shift = 0,
  235. .val_max = 65535,
  236. },
  237. [ES325_RX_AGC_NOISE_FLOOR] = {
  238. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x002a) },
  239. .read_msg_len = 4,
  240. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x002a),
  241. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  242. .write_msg_len = 8,
  243. .val_shift = 0,
  244. .val_max = 65535,
  245. },
  246. [ES325_RX_AGC_SNR_IMPROVEMENT] = {
  247. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x002b) },
  248. .read_msg_len = 4,
  249. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x002b),
  250. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  251. .write_msg_len = 8,
  252. .val_shift = 0,
  253. .val_max = 65535,
  254. },
  255. [ES325_RX_AGC_SLEW_RATE_UP] = {
  256. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x002c) },
  257. .read_msg_len = 4,
  258. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x002c),
  259. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  260. .write_msg_len = 8,
  261. .val_shift = 0,
  262. .val_max = 65535,
  263. },
  264. [ES325_RX_AGC_SLEW_RATE_DOWN] = {
  265. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x002d) },
  266. .read_msg_len = 4,
  267. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x002d),
  268. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  269. .write_msg_len = 8,
  270. .val_shift = 0,
  271. .val_max = 65535,
  272. },
  273. [ES325_AEC_CNG_GAIN] = {
  274. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x002e) },
  275. .read_msg_len = 4,
  276. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x002e),
  277. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  278. .write_msg_len = 8,
  279. .val_shift = 0,
  280. .val_max = 65535,
  281. },
  282. [ES325_TX_MBC] = {
  283. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0030) },
  284. .read_msg_len = 4,
  285. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0030),
  286. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  287. .write_msg_len = 8,
  288. .val_shift = 0,
  289. .val_max = 65535,
  290. },
  291. [ES325_RX_MBC] = {
  292. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0031) },
  293. .read_msg_len = 4,
  294. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0031),
  295. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  296. .write_msg_len = 8,
  297. .val_shift = 0,
  298. .val_max = 65535,
  299. },
  300. [ES325_AEC_ESE] = {
  301. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0034) },
  302. .read_msg_len = 4,
  303. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0034),
  304. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  305. .write_msg_len = 8,
  306. .val_shift = 0,
  307. .val_max = 65535,
  308. },
  309. [ES325_TX_NS_ADAPTATION_SPEED] = {
  310. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0039) },
  311. .read_msg_len = 4,
  312. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0039),
  313. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  314. .write_msg_len = 8,
  315. .val_shift = 0,
  316. .val_max = 65535,
  317. },
  318. [ES325_TX_SNR_ESTIMATE] = {
  319. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x003a) },
  320. .read_msg_len = 4,
  321. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x003a),
  322. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  323. .write_msg_len = 8,
  324. .val_shift = 0,
  325. .val_max = 65535,
  326. },
  327. [ES325_VEQ_MAX_GAIN] = {
  328. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x003d) },
  329. .read_msg_len = 4,
  330. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x003d),
  331. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  332. .write_msg_len = 8,
  333. .val_shift = 0,
  334. .val_max = 65535,
  335. },
  336. [ES325_TX_AGC_GUARDBAND] = {
  337. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x003e) },
  338. .read_msg_len = 4,
  339. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x003e),
  340. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  341. .write_msg_len = 8,
  342. .val_shift = 0,
  343. .val_max = 65535,
  344. },
  345. [ES325_RX_AGC_GUARDBAND] = {
  346. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x003f) },
  347. .read_msg_len = 4,
  348. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x003f),
  349. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  350. .write_msg_len = 8,
  351. .val_shift = 0,
  352. .val_max = 65535,
  353. },
  354. [ES325_TX_OUT_LIMITER_MAX_LEVEL] = {
  355. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0040) },
  356. .read_msg_len = 4,
  357. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0040),
  358. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  359. .write_msg_len = 8,
  360. .val_shift = 0,
  361. .val_max = 65535,
  362. },
  363. [ES325_TX_IN_LIMITER_MAX_LEVEL] = {
  364. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0042) },
  365. .read_msg_len = 4,
  366. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0042),
  367. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  368. .write_msg_len = 8,
  369. .val_shift = 0,
  370. .val_max = 65535,
  371. },
  372. [ES325_RX_NS_ADAPTATION_SPEED] = {
  373. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0043) },
  374. .read_msg_len = 4,
  375. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0043),
  376. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  377. .write_msg_len = 8,
  378. .val_shift = 0,
  379. .val_max = 65535,
  380. },
  381. [ES325_AEC_VARIABLE_ECHO_REF_DELAY] = {
  382. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0047) },
  383. .read_msg_len = 4,
  384. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0047),
  385. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  386. .write_msg_len = 8,
  387. .val_shift = 0,
  388. .val_max = 65535,
  389. },
  390. [ES325_TX_NOISE_SUPPRESS_LEVEL] = {
  391. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x004b) },
  392. .read_msg_len = 4,
  393. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x004b),
  394. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  395. .write_msg_len = 8,
  396. .val_shift = 0,
  397. .val_max = 65535,
  398. },
  399. [ES325_RX_NOISE_SUPPRESS_LEVEL] = {
  400. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x004c) },
  401. .read_msg_len = 4,
  402. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x004c),
  403. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  404. .write_msg_len = 8,
  405. .val_shift = 0,
  406. .val_max = 65535,
  407. },
  408. [ES325_RX_CNG] = {
  409. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x004d) },
  410. .read_msg_len = 4,
  411. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x004d),
  412. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  413. .write_msg_len = 8,
  414. .val_shift = 0,
  415. .val_max = 65535,
  416. },
  417. [ES325_RX_CNG_GAIN] = {
  418. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x004e) },
  419. .read_msg_len = 4,
  420. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x004e),
  421. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  422. .write_msg_len = 8,
  423. .val_shift = 0,
  424. .val_max = 65535,
  425. },
  426. [ES325_TX_AGC_MAX_GAIN] = {
  427. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0100) },
  428. .read_msg_len = 4,
  429. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0100),
  430. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  431. .write_msg_len = 8,
  432. .val_shift = 0,
  433. .val_max = 65535,
  434. },
  435. [ES325_RX_AGC_MAX_GAIN] = {
  436. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0102) },
  437. .read_msg_len = 4,
  438. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0102),
  439. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  440. .write_msg_len = 8,
  441. .val_shift = 0,
  442. .val_max = 65535,
  443. },
  444. [ES325_AVALON_API_VERSION_LO] = {
  445. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x1001) },
  446. .read_msg_len = 4,
  447. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x1001),
  448. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  449. .write_msg_len = 8,
  450. .val_shift = 0,
  451. .val_max = 65535,
  452. },
  453. [ES325_AVALON_API_VERSION_HI] = {
  454. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x1002) },
  455. .read_msg_len = 4,
  456. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x1002),
  457. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  458. .write_msg_len = 8,
  459. .val_shift = 0,
  460. .val_max = 65535,
  461. },
  462. [ES325_AVALON_AV_PROCESSOR] = {
  463. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x1003) },
  464. .read_msg_len = 4,
  465. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x1003),
  466. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  467. .write_msg_len = 8,
  468. .val_shift = 0,
  469. .val_max = 65535,
  470. },
  471. [ES325_AVALON_AV_CONFIG] = {
  472. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x1003) },
  473. .read_msg_len = 4,
  474. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x1003),
  475. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  476. .write_msg_len = 8,
  477. .val_shift = 0,
  478. .val_max = 65535,
  479. },
  480. [ES325_AVALON_EQ_PRESET] = {
  481. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x1005) },
  482. .read_msg_len = 4,
  483. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x1005),
  484. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  485. .write_msg_len = 8,
  486. .val_shift = 0,
  487. .val_max = 65535,
  488. },
  489. [ES325_AVALON_STEREO_WIDTH] = {
  490. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x1006) },
  491. .read_msg_len = 4,
  492. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x1006),
  493. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  494. .write_msg_len = 8,
  495. .val_shift = 0,
  496. .val_max = 65535,
  497. },
  498. [ES325_AVALON_AV_DIGITAL_OUT_GAIN] = {
  499. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x1007) },
  500. .read_msg_len = 4,
  501. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x1007),
  502. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  503. .write_msg_len = 8,
  504. .val_shift = 0,
  505. .val_max = 65535,
  506. },
  507. [ES325_AVALON_TDMBC] = {
  508. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x1008) },
  509. .read_msg_len = 4,
  510. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x1008),
  511. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  512. .write_msg_len = 8,
  513. .val_shift = 0,
  514. .val_max = 65535,
  515. },
  516. [ES325_AVALON_AV_OUT_LIMIT] = {
  517. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x1009) },
  518. .read_msg_len = 4,
  519. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x1009),
  520. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  521. .write_msg_len = 8,
  522. .val_shift = 0,
  523. .val_max = 65535,
  524. },
  525. [ES325_AVALON_STEREO_WIDENING] = {
  526. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x100a) },
  527. .read_msg_len = 4,
  528. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x100a),
  529. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  530. .write_msg_len = 8,
  531. .val_shift = 0,
  532. .val_max = 65535,
  533. },
  534. [ES325_AVALON_STAT_NS] = {
  535. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x100b) },
  536. .read_msg_len = 4,
  537. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x100b),
  538. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  539. .write_msg_len = 8,
  540. .val_shift = 0,
  541. .val_max = 65535,
  542. },
  543. [ES325_AVALON_STAT_NS_SUPPRESS] = {
  544. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x100c) },
  545. .read_msg_len = 4,
  546. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x100c),
  547. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  548. .write_msg_len = 8,
  549. .val_shift = 0,
  550. .val_max = 65535,
  551. },
  552. [ES325_AVALON_STAT_NS_ADAP_SPEED] = {
  553. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x100d) },
  554. .read_msg_len = 4,
  555. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x100d),
  556. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  557. .write_msg_len = 8,
  558. .val_shift = 0,
  559. .val_max = 65535,
  560. },
  561. [ES325_AVALON_STAT_NS_MODE] = {
  562. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x100e) },
  563. .read_msg_len = 4,
  564. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x100e),
  565. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  566. .write_msg_len = 8,
  567. .val_shift = 0,
  568. .val_max = 65535,
  569. },
  570. [ES325_AVLALON_STAT_NS_MAX_NOISE_ENERGY] = {
  571. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x100f) },
  572. .read_msg_len = 4,
  573. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x100f),
  574. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  575. .write_msg_len = 8,
  576. .val_shift = 0,
  577. .val_max = 65535,
  578. },
  579. [ES325_AVALON_VBB] = {
  580. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x1010) },
  581. .read_msg_len = 4,
  582. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x1010),
  583. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  584. .write_msg_len = 8,
  585. .val_shift = 0,
  586. .val_max = 65535,
  587. },
  588. [ES325_AVALON_VBB_STRENGTH] = {
  589. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x1011) },
  590. .read_msg_len = 4,
  591. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x1011),
  592. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  593. .write_msg_len = 8,
  594. .val_shift = 0,
  595. .val_max = 65535,
  596. },
  597. [ES325_AVALON_EQ_MODE] = {
  598. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x1012) },
  599. .read_msg_len = 4,
  600. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x1012),
  601. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  602. .write_msg_len = 8,
  603. .val_shift = 0,
  604. .val_max = 65535,
  605. },
  606. [ES325_AVALON_EQ_GRAPHIC_BAND1_GAIN] = {
  607. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x1013) },
  608. .read_msg_len = 4,
  609. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x1013),
  610. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  611. .write_msg_len = 8,
  612. .val_shift = 0,
  613. .val_max = 65535,
  614. },
  615. [ES325_AVALON_EQ_GRAPHIC_BAND2_GAIN] = {
  616. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x1014) },
  617. .read_msg_len = 4,
  618. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x1014),
  619. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  620. .write_msg_len = 8,
  621. .val_shift = 0,
  622. .val_max = 65535,
  623. },
  624. [ES325_AVALON_EQ_GRAPHIC_BAND3_GAIN] = {
  625. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x1015) },
  626. .read_msg_len = 4,
  627. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x1015),
  628. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  629. .write_msg_len = 8,
  630. .val_shift = 0,
  631. .val_max = 65535,
  632. },
  633. [ES325_AVALON_EQ_GRAPHIC_BAND4_GAIN] = {
  634. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x1016) },
  635. .read_msg_len = 4,
  636. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x1016),
  637. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  638. .write_msg_len = 8,
  639. .val_shift = 0,
  640. .val_max = 65535,
  641. },
  642. [ES325_AVALON_EQ_GRAPHIC_BAND5_GAIN] = {
  643. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x1017) },
  644. .read_msg_len = 4,
  645. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x1017),
  646. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  647. .write_msg_len = 8,
  648. .val_shift = 0,
  649. .val_max = 65535,
  650. },
  651. [ES325_AVALON_EQ_GRAPHIC_BAND6_GAIN] = {
  652. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x1018) },
  653. .read_msg_len = 4,
  654. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x1018),
  655. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  656. .write_msg_len = 8,
  657. .val_shift = 0,
  658. .val_max = 65535,
  659. },
  660. [ES325_AVALON_EQ_GRAPHIC_BAND7_GAIN] = {
  661. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x1019) },
  662. .read_msg_len = 4,
  663. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x1019),
  664. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  665. .write_msg_len = 8,
  666. .val_shift = 0,
  667. .val_max = 65535,
  668. },
  669. [ES325_AVALON_EQ_GRAPHIC_BAND8_GAIN] = {
  670. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x101a) },
  671. .read_msg_len = 4,
  672. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x101a),
  673. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  674. .write_msg_len = 8,
  675. .val_shift = 0,
  676. .val_max = 65535,
  677. },
  678. [ES325_AVALON_EQ_GRAPHIC_BAND9_GAIN] = {
  679. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x101b) },
  680. .read_msg_len = 4,
  681. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x101b),
  682. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  683. .write_msg_len = 8,
  684. .val_shift = 0,
  685. .val_max = 65535,
  686. },
  687. [ES325_AVALON_EQ_GRAPHIC_BAND10_GAIN] = {
  688. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x101c) },
  689. .read_msg_len = 4,
  690. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x101c),
  691. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  692. .write_msg_len = 8,
  693. .val_shift = 0,
  694. .val_max = 65535,
  695. },
  696. [ES325_AVALON_TDDRC] = {
  697. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x101d) },
  698. .read_msg_len = 4,
  699. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x101d),
  700. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  701. .write_msg_len = 8,
  702. .val_shift = 0,
  703. .val_max = 65535,
  704. },
  705. [ES325_AVALON_TDDRC_STRENGTH] = {
  706. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x101e) },
  707. .read_msg_len = 4,
  708. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x101e),
  709. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  710. .write_msg_len = 8,
  711. .val_shift = 0,
  712. .val_max = 65535,
  713. },
  714. [ES325_AVALON_LIMITER] = {
  715. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x101f) },
  716. .read_msg_len = 4,
  717. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x101f),
  718. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  719. .write_msg_len = 8,
  720. .val_shift = 0,
  721. .val_max = 65535,
  722. },
  723. [ES325_AVALON_EQ] = {
  724. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x1020) },
  725. .read_msg_len = 4,
  726. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x1020),
  727. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  728. .write_msg_len = 8,
  729. .val_shift = 0,
  730. .val_max = 65535,
  731. },
  732. [ES325_DIRAC] = {
  733. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x2000) },
  734. .read_msg_len = 4,
  735. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x2000),
  736. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  737. .write_msg_len = 8,
  738. .val_shift = 0,
  739. .val_max = 65535,
  740. },
  741. [ES325_DIRAC_OUT_HEADROOM_LIMITER] = {
  742. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x2001) },
  743. .read_msg_len = 4,
  744. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x2001),
  745. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  746. .write_msg_len = 8,
  747. .val_shift = 0,
  748. .val_max = 65535,
  749. },
  750. [ES325_DIRAC_MODE] = {
  751. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x2002) },
  752. .read_msg_len = 4,
  753. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x2002),
  754. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  755. .write_msg_len = 8,
  756. .val_shift = 0,
  757. .val_max = 65535,
  758. },
  759. [ES325_DIRAC_IN_HEADROOM_LIMITER] = {
  760. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x2004) },
  761. .read_msg_len = 4,
  762. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x2004),
  763. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  764. .write_msg_len = 8,
  765. .val_shift = 0,
  766. .val_max = 65535,
  767. },
  768. [ES325_DIRAC_COMFORT_NOISE] = {
  769. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x2006) },
  770. .read_msg_len = 4,
  771. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x2006),
  772. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  773. .write_msg_len = 8,
  774. .val_shift = 0,
  775. .val_max = 65535,
  776. },
  777. [ES325_DIRAC_COMFORT_NOISE_LEVEL] = {
  778. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x2007) },
  779. .read_msg_len = 4,
  780. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x2007),
  781. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  782. .write_msg_len = 8,
  783. .val_shift = 0,
  784. .val_max = 65535,
  785. },
  786. [ES325_DIRAC_NARRATOR_VQOS] = {
  787. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x2008) },
  788. .read_msg_len = 4,
  789. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x2008),
  790. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  791. .write_msg_len = 8,
  792. .val_shift = 0,
  793. .val_max = 65535,
  794. },
  795. [ES325_DIRAC_NARRATOR_POSITION_SUPPRESS] = {
  796. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x2009) },
  797. .read_msg_len = 4,
  798. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x2009),
  799. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  800. .write_msg_len = 8,
  801. .val_shift = 0,
  802. .val_max = 65535,
  803. },
  804. [ES325_DIRAC_NARRATOR_AGC_OUT] = {
  805. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x200a) },
  806. .read_msg_len = 4,
  807. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x200a),
  808. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  809. .write_msg_len = 8,
  810. .val_shift = 0,
  811. .val_max = 65535,
  812. },
  813. [ES325_DIRAC_NARRATOR_AGC_SPEECH_TARGET] = {
  814. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x200b) },
  815. .read_msg_len = 4,
  816. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x200b),
  817. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  818. .write_msg_len = 8,
  819. .val_shift = 0,
  820. .val_max = 65535,
  821. },
  822. [ES325_DIRAC_NARRATOR_AGC_SNR_IMPROVE] = {
  823. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x200c) },
  824. .read_msg_len = 4,
  825. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x200c),
  826. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  827. .write_msg_len = 8,
  828. .val_shift = 0,
  829. .val_max = 65535,
  830. },
  831. [ES325_DIRAC_NARRATOR_AGC_NOISE_FLOOR] = {
  832. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x200d) },
  833. .read_msg_len = 4,
  834. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x200d),
  835. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  836. .write_msg_len = 8,
  837. .val_shift = 0,
  838. .val_max = 65535,
  839. },
  840. [ES325_DIRAC_NARRATOR_AGC_MAX_GAIN] = {
  841. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x200e) },
  842. .read_msg_len = 4,
  843. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x200e),
  844. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  845. .write_msg_len = 8,
  846. .val_shift = 0,
  847. .val_max = 65535,
  848. },
  849. [ES325_DIRAC_NARRATOR_AGC_UP_RATE] = {
  850. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x200f) },
  851. .read_msg_len = 4,
  852. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x200f),
  853. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  854. .write_msg_len = 8,
  855. .val_shift = 0,
  856. .val_max = 65535,
  857. },
  858. [ES325_DIRAC_NARRATOR_AGC_DOWN_RATE] = {
  859. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x2010) },
  860. .read_msg_len = 4,
  861. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x2010),
  862. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  863. .write_msg_len = 8,
  864. .val_shift = 0,
  865. .val_max = 65535,
  866. },
  867. [ES325_DIRAC_NARRATOR_AGC_GUARDBAND] = {
  868. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x2011) },
  869. .read_msg_len = 4,
  870. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x2011),
  871. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  872. .write_msg_len = 8,
  873. .val_shift = 0,
  874. .val_max = 65535,
  875. },
  876. [ES325_DIRAC_NARRATOR_POST_EQ_MODE] = {
  877. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x2013) },
  878. .read_msg_len = 4,
  879. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x2013),
  880. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  881. .write_msg_len = 8,
  882. .val_shift = 0,
  883. .val_max = 65535,
  884. },
  885. [ES325_DIRAC_NARRATOR_MBC_MODE] = {
  886. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x2014) },
  887. .read_msg_len = 4,
  888. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x2014),
  889. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  890. .write_msg_len = 8,
  891. .val_shift = 0,
  892. .val_max = 65535,
  893. },
  894. [ES325_DIRAC_SCENE_BEAM_WIDTH] = {
  895. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x2015) },
  896. .read_msg_len = 4,
  897. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x2015),
  898. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  899. .write_msg_len = 8,
  900. .val_shift = 0,
  901. .val_max = 65535,
  902. },
  903. [ES325_DIRAC_SCENE_AGC_OUT] = {
  904. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x2016) },
  905. .read_msg_len = 4,
  906. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x2016),
  907. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  908. .write_msg_len = 8,
  909. .val_shift = 0,
  910. .val_max = 65535,
  911. },
  912. [ES325_DIRAC_SCENE_AGC_SPEECH_TARGET] = {
  913. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x2017) },
  914. .read_msg_len = 4,
  915. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x2017),
  916. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  917. .write_msg_len = 8,
  918. .val_shift = 0,
  919. .val_max = 65535,
  920. },
  921. [ES325_DIRAC_SCENE_AGC_SNR_IMPROVE] = {
  922. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x2018) },
  923. .read_msg_len = 4,
  924. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x2018),
  925. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  926. .write_msg_len = 8,
  927. .val_shift = 0,
  928. .val_max = 65535,
  929. },
  930. [ES325_DIRAC_SCENE_AGC_NOISE_FLOOR] = {
  931. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x2019) },
  932. .read_msg_len = 4,
  933. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x2019),
  934. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  935. .write_msg_len = 8,
  936. .val_shift = 0,
  937. .val_max = 65535,
  938. },
  939. [ES325_DIRAC_SCENE_AGC_MAX_GAIN] = {
  940. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x201a) },
  941. .read_msg_len = 4,
  942. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x201a),
  943. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  944. .write_msg_len = 8,
  945. .val_shift = 0,
  946. .val_max = 65535,
  947. },
  948. [ES325_DIRAC_SCENE_AGC_UP_RATE] = {
  949. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x201b) },
  950. .read_msg_len = 4,
  951. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x201b),
  952. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  953. .write_msg_len = 8,
  954. .val_shift = 0,
  955. .val_max = 65535,
  956. },
  957. [ES325_DIRAC_SCENE_AGC_DOWN_RATE] = {
  958. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x201c) },
  959. .read_msg_len = 4,
  960. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x201c),
  961. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  962. .write_msg_len = 8,
  963. .val_shift = 0,
  964. .val_max = 65535,
  965. },
  966. [ES325_DIRAC_SCENE_AGC_GUARDBAND] = {
  967. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x201d) },
  968. .read_msg_len = 4,
  969. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x201d),
  970. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  971. .write_msg_len = 8,
  972. .val_shift = 0,
  973. .val_max = 65535,
  974. },
  975. [ES325_DIRAC_SCENE_VQOS] = {
  976. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x201f) },
  977. .read_msg_len = 4,
  978. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x201f),
  979. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  980. .write_msg_len = 8,
  981. .val_shift = 0,
  982. .val_max = 65535,
  983. },
  984. [ES325_DIRAC_SCENE_POST_EQ_MODE] = {
  985. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x2020) },
  986. .read_msg_len = 4,
  987. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x2020),
  988. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  989. .write_msg_len = 8,
  990. .val_shift = 0,
  991. .val_max = 65535,
  992. },
  993. [ES325_DIRAC_SCENE_MBC_MODE] = {
  994. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x2021) },
  995. .read_msg_len = 4,
  996. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x2021),
  997. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  998. .write_msg_len = 8,
  999. .val_shift = 0,
  1000. .val_max = 65535,
  1001. },
  1002. [ES325_TONE_PARAM_API_VERSION_LO] = {
  1003. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x3001) },
  1004. .read_msg_len = 4,
  1005. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x3001),
  1006. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  1007. .write_msg_len = 8,
  1008. .val_shift = 0,
  1009. .val_max = 65535,
  1010. },
  1011. [ES325_TONE_PARAM_API_VERSION_HI] = {
  1012. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x3002) },
  1013. .read_msg_len = 4,
  1014. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x3002),
  1015. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  1016. .write_msg_len = 8,
  1017. .val_shift = 0,
  1018. .val_max = 65535,
  1019. },
  1020. [ES325_TONE_PARAM_ENABLE_BEEP_SYS] = {
  1021. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x3003) },
  1022. .read_msg_len = 4,
  1023. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x3003),
  1024. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  1025. .write_msg_len = 8,
  1026. .val_shift = 0,
  1027. .val_max = 65535,
  1028. },
  1029. [ES325_TONE_PARAM_ENABLE_GEN_BEEP] = {
  1030. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x3005) },
  1031. .read_msg_len = 4,
  1032. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x3005),
  1033. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  1034. .write_msg_len = 8,
  1035. .val_shift = 0,
  1036. .val_max = 65535,
  1037. },
  1038. [ES325_TONE_PARAM_GEN_BEEP_ON] = {
  1039. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x3006) },
  1040. .read_msg_len = 4,
  1041. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x3006),
  1042. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  1043. .write_msg_len = 8,
  1044. .val_shift = 0,
  1045. .val_max = 65535,
  1046. },
  1047. [ES325_TONE_PARAM_GEN_BEEP_FREQ1] = {
  1048. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x3007) },
  1049. .read_msg_len = 4,
  1050. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x3007),
  1051. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  1052. .write_msg_len = 8,
  1053. .val_shift = 0,
  1054. .val_max = 65535,
  1055. },
  1056. [ES325_TONE_PARAM_GEN_BEEP_FREQ2] = {
  1057. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x3008) },
  1058. .read_msg_len = 4,
  1059. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x3008),
  1060. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  1061. .write_msg_len = 8,
  1062. .val_shift = 0,
  1063. .val_max = 65535,
  1064. },
  1065. [ES325_TONE_PARAM_GEN_BEEP_PAN_LR] = {
  1066. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x3009) },
  1067. .read_msg_len = 4,
  1068. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x3009),
  1069. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  1070. .write_msg_len = 8,
  1071. .val_shift = 0,
  1072. .val_max = 65535,
  1073. },
  1074. [ES325_TONE_PARAM_GEN_BEEP_GAIN] = {
  1075. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x300a) },
  1076. .read_msg_len = 4,
  1077. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x300a),
  1078. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  1079. .write_msg_len = 8,
  1080. .val_shift = 0,
  1081. .val_max = 65535,
  1082. },
  1083. [ES325_DEREVERB_ENABLE] = {
  1084. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0053) },
  1085. .read_msg_len = 4,
  1086. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0053),
  1087. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  1088. .write_msg_len = 8,
  1089. .val_shift = 0,
  1090. .val_max = 65535,
  1091. },
  1092. [ES325_DEREVERB_GAIN] = {
  1093. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0054) },
  1094. .read_msg_len = 4,
  1095. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0054),
  1096. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  1097. .write_msg_len = 8,
  1098. .val_shift = 0,
  1099. .val_max = 65535,
  1100. },
  1101. [ES325_BWE_ENABLE] = {
  1102. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x004f) },
  1103. .read_msg_len = 4,
  1104. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x004f),
  1105. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  1106. .write_msg_len = 8,
  1107. .val_shift = 0,
  1108. .val_max = 65535,
  1109. },
  1110. [ES325_BWE_HIGH_BAND_GAIN] = {
  1111. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0050) },
  1112. .read_msg_len = 4,
  1113. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0050),
  1114. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  1115. .write_msg_len = 8,
  1116. .val_shift = 0,
  1117. .val_max = 65535,
  1118. },
  1119. [ES325_BWE_MAX_SNR] = {
  1120. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0051) },
  1121. .read_msg_len = 4,
  1122. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0051),
  1123. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  1124. .write_msg_len = 8,
  1125. .val_shift = 0,
  1126. .val_max = 65535,
  1127. },
  1128. [ES325_BWE_POST_EQ_ENABLE] = {
  1129. .read_msg = { ES325_API_WORD(ES325_GET_ALGO_PARAM, 0x0052) },
  1130. .read_msg_len = 4,
  1131. .write_msg = { ES325_API_WORD(ES325_SET_ALGO_PARAM_ID, 0x0052),
  1132. ES325_API_WORD(ES325_SET_ALGO_PARAM, 0x0000) },
  1133. .write_msg_len = 8,
  1134. .val_shift = 0,
  1135. .val_max = 65535,
  1136. },
  1137. [ES325_PORTA_WORD_LEN] = {
  1138. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0a00) },
  1139. .read_msg_len = 4,
  1140. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0a00),
  1141. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1142. .write_msg_len = 8,
  1143. .val_shift = 0,
  1144. .val_max = 65535,
  1145. },
  1146. [ES325_PORTA_TDM_SLOTS_PER_FRAME] = {
  1147. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0a01) },
  1148. .read_msg_len = 4,
  1149. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0a01),
  1150. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1151. .write_msg_len = 8,
  1152. .val_shift = 0,
  1153. .val_max = 65535,
  1154. },
  1155. [ES325_PORTA_TX_DELAY_FROM_FS] = {
  1156. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0a02) },
  1157. .read_msg_len = 4,
  1158. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0a02),
  1159. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1160. .write_msg_len = 8,
  1161. .val_shift = 0,
  1162. .val_max = 65535,
  1163. },
  1164. [ES325_PORTA_RX_DELAY_FROM_FS] = {
  1165. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0a03) },
  1166. .read_msg_len = 4,
  1167. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0a03),
  1168. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1169. .write_msg_len = 8,
  1170. .val_shift = 0,
  1171. .val_max = 65535,
  1172. },
  1173. [ES325_PORTA_LATCH_EDGE] = {
  1174. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0a04) },
  1175. .read_msg_len = 4,
  1176. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0a04),
  1177. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1178. .write_msg_len = 8,
  1179. .val_shift = 0,
  1180. .val_max = 65535,
  1181. },
  1182. [ES325_PORTA_ENDIAN] = {
  1183. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0a05) },
  1184. .read_msg_len = 4,
  1185. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0a05),
  1186. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1187. .write_msg_len = 8,
  1188. .val_shift = 0,
  1189. .val_max = 65535,
  1190. },
  1191. [ES325_PORTA_TRISTATE] = {
  1192. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0a06) },
  1193. .read_msg_len = 4,
  1194. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0a06),
  1195. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1196. .write_msg_len = 8,
  1197. .val_shift = 0,
  1198. .val_max = 65535,
  1199. },
  1200. [ES325_PORTA_AUDIO_PORT_MODE] = {
  1201. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0a07) },
  1202. .read_msg_len = 4,
  1203. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0a07),
  1204. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1205. .write_msg_len = 8,
  1206. .val_shift = 0,
  1207. .val_max = 65535,
  1208. },
  1209. [ES325_PORTA_TDM_ENABLED] = {
  1210. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0a08) },
  1211. .read_msg_len = 4,
  1212. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0a08),
  1213. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1214. .write_msg_len = 8,
  1215. .val_shift = 0,
  1216. .val_max = 65535,
  1217. },
  1218. [ES325_PORTA_CLOCK_CONTROL] = {
  1219. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0a09) },
  1220. .read_msg_len = 4,
  1221. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0a09),
  1222. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1223. .write_msg_len = 8,
  1224. .val_shift = 0,
  1225. .val_max = 65535,
  1226. },
  1227. [ES325_PORTA_DATA_JUSTIFICATION] = {
  1228. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0a0a) },
  1229. .read_msg_len = 4,
  1230. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0a0a),
  1231. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1232. .write_msg_len = 8,
  1233. .val_shift = 0,
  1234. .val_max = 65535,
  1235. },
  1236. [ES325_PORTA_FS_DURATION] = {
  1237. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0a0b) },
  1238. .read_msg_len = 4,
  1239. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0a0b),
  1240. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1241. .write_msg_len = 8,
  1242. .val_shift = 0,
  1243. .val_max = 65535,
  1244. },
  1245. [ES325_PORTB_WORD_LEN] = {
  1246. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0b00) },
  1247. .read_msg_len = 4,
  1248. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0b00),
  1249. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1250. .write_msg_len = 8,
  1251. .val_shift = 0,
  1252. .val_max = 65535,
  1253. },
  1254. [ES325_PORTB_TDM_SLOTS_PER_FRAME] = {
  1255. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0b01) },
  1256. .read_msg_len = 4,
  1257. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0b01),
  1258. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1259. .write_msg_len = 8,
  1260. .val_shift = 0,
  1261. .val_max = 65535,
  1262. },
  1263. [ES325_PORTB_TX_DELAY_FROM_FS] = {
  1264. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0b02) },
  1265. .read_msg_len = 4,
  1266. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0b02),
  1267. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1268. .write_msg_len = 8,
  1269. .val_shift = 0,
  1270. .val_max = 65535,
  1271. },
  1272. [ES325_PORTB_RX_DELAY_FROM_FS] = {
  1273. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0b03) },
  1274. .read_msg_len = 4,
  1275. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0b03),
  1276. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1277. .write_msg_len = 8,
  1278. .val_shift = 0,
  1279. .val_max = 65535,
  1280. },
  1281. [ES325_PORTB_LATCH_EDGE] = {
  1282. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0b04) },
  1283. .read_msg_len = 4,
  1284. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0b04),
  1285. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1286. .write_msg_len = 8,
  1287. .val_shift = 0,
  1288. .val_max = 65535,
  1289. },
  1290. [ES325_PORTB_ENDIAN] = {
  1291. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0b05) },
  1292. .read_msg_len = 4,
  1293. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0b05),
  1294. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1295. .write_msg_len = 8,
  1296. .val_shift = 0,
  1297. .val_max = 65535,
  1298. },
  1299. [ES325_PORTB_TRISTATE] = {
  1300. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0b06) },
  1301. .read_msg_len = 4,
  1302. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0b06),
  1303. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1304. .write_msg_len = 8,
  1305. .val_shift = 0,
  1306. .val_max = 65535,
  1307. },
  1308. [ES325_PORTB_AUDIO_PORT_MODE] = {
  1309. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0b07) },
  1310. .read_msg_len = 4,
  1311. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0b07),
  1312. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1313. .write_msg_len = 8,
  1314. .val_shift = 0,
  1315. .val_max = 65535,
  1316. },
  1317. [ES325_PORTB_TDM_ENABLED] = {
  1318. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0b08) },
  1319. .read_msg_len = 4,
  1320. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0b08),
  1321. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1322. .write_msg_len = 8,
  1323. .val_shift = 0,
  1324. .val_max = 65535,
  1325. },
  1326. [ES325_PORTB_CLOCK_CONTROL] = {
  1327. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0b09) },
  1328. .read_msg_len = 4,
  1329. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0b09),
  1330. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1331. .write_msg_len = 8,
  1332. .val_shift = 0,
  1333. .val_max = 65535,
  1334. },
  1335. [ES325_PORTB_DATA_JUSTIFICATION] = {
  1336. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0b0a) },
  1337. .read_msg_len = 4,
  1338. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0b0a),
  1339. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1340. .write_msg_len = 8,
  1341. .val_shift = 0,
  1342. .val_max = 65535,
  1343. },
  1344. [ES325_PORTB_FS_DURATION] = {
  1345. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0b0b) },
  1346. .read_msg_len = 4,
  1347. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0b0b),
  1348. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1349. .write_msg_len = 8,
  1350. .val_shift = 0,
  1351. .val_max = 65535,
  1352. },
  1353. [ES325_PORTC_WORD_LEN] = {
  1354. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0c00) },
  1355. .read_msg_len = 4,
  1356. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0c00),
  1357. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1358. .write_msg_len = 8,
  1359. .val_shift = 0,
  1360. .val_max = 65535,
  1361. },
  1362. [ES325_PORTC_TDM_SLOTS_PER_FRAME] = {
  1363. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0c01) },
  1364. .read_msg_len = 4,
  1365. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0c01),
  1366. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1367. .write_msg_len = 8,
  1368. .val_shift = 0,
  1369. .val_max = 65535,
  1370. },
  1371. [ES325_PORTC_TX_DELAY_FROM_FS] = {
  1372. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0c02) },
  1373. .read_msg_len = 4,
  1374. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0c02),
  1375. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1376. .write_msg_len = 8,
  1377. .val_shift = 0,
  1378. .val_max = 65535,
  1379. },
  1380. [ES325_PORTC_RX_DELAY_FROM_FS] = {
  1381. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0c03) },
  1382. .read_msg_len = 4,
  1383. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0c03),
  1384. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1385. .write_msg_len = 8,
  1386. .val_shift = 0,
  1387. .val_max = 65535,
  1388. },
  1389. [ES325_PORTC_LATCH_EDGE] = {
  1390. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0c04) },
  1391. .read_msg_len = 4,
  1392. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0c04),
  1393. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1394. .write_msg_len = 8,
  1395. .val_shift = 0,
  1396. .val_max = 65535,
  1397. },
  1398. [ES325_PORTC_ENDIAN] = {
  1399. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0c05) },
  1400. .read_msg_len = 4,
  1401. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0c05),
  1402. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1403. .write_msg_len = 8,
  1404. .val_shift = 0,
  1405. .val_max = 65535,
  1406. },
  1407. [ES325_PORTC_TRISTATE] = {
  1408. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0c06) },
  1409. .read_msg_len = 4,
  1410. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0c06),
  1411. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1412. .write_msg_len = 8,
  1413. .val_shift = 0,
  1414. .val_max = 65535,
  1415. },
  1416. [ES325_PORTC_AUDIO_PORT_MODE] = {
  1417. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0c07) },
  1418. .read_msg_len = 4,
  1419. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0c07),
  1420. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1421. .write_msg_len = 8,
  1422. .val_shift = 0,
  1423. .val_max = 65535,
  1424. },
  1425. [ES325_PORTC_TDM_ENABLED] = {
  1426. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0c08) },
  1427. .read_msg_len = 4,
  1428. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0c08),
  1429. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1430. .write_msg_len = 8,
  1431. .val_shift = 0,
  1432. .val_max = 65535,
  1433. },
  1434. [ES325_PORTC_CLOCK_CONTROL] = {
  1435. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0c09) },
  1436. .read_msg_len = 4,
  1437. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0c09),
  1438. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1439. .write_msg_len = 8,
  1440. .val_shift = 0,
  1441. .val_max = 65535,
  1442. },
  1443. [ES325_PORTC_DATA_JUSTIFICATION] = {
  1444. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0c0a) },
  1445. .read_msg_len = 4,
  1446. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0c0a),
  1447. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1448. .write_msg_len = 8,
  1449. .val_shift = 0,
  1450. .val_max = 65535,
  1451. },
  1452. [ES325_PORTC_FS_DURATION] = {
  1453. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0c0b) },
  1454. .read_msg_len = 4,
  1455. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0c0b),
  1456. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1457. .write_msg_len = 8,
  1458. .val_shift = 0,
  1459. .val_max = 65535,
  1460. },
  1461. [ES325_PORTD_WORD_LEN] = {
  1462. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0d00) },
  1463. .read_msg_len = 4,
  1464. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0d00),
  1465. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1466. .write_msg_len = 8,
  1467. .val_shift = 0,
  1468. .val_max = 65535,
  1469. },
  1470. [ES325_PORTD_TDM_SLOTS_PER_FRAME] = {
  1471. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0d01) },
  1472. .read_msg_len = 4,
  1473. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0d01),
  1474. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1475. .write_msg_len = 8,
  1476. .val_shift = 0,
  1477. .val_max = 65535,
  1478. },
  1479. [ES325_PORTD_TX_DELAY_FROM_FS] = {
  1480. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0d02) },
  1481. .read_msg_len = 4,
  1482. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0d02),
  1483. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1484. .write_msg_len = 8,
  1485. .val_shift = 0,
  1486. .val_max = 65535,
  1487. },
  1488. [ES325_PORTD_RX_DELAY_FROM_FS] = {
  1489. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0d03) },
  1490. .read_msg_len = 4,
  1491. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0d03),
  1492. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1493. .write_msg_len = 8,
  1494. .val_shift = 0,
  1495. .val_max = 65535,
  1496. },
  1497. [ES325_PORTD_LATCH_EDGE] = {
  1498. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0d04) },
  1499. .read_msg_len = 4,
  1500. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0d04),
  1501. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1502. .write_msg_len = 8,
  1503. .val_shift = 0,
  1504. .val_max = 65535,
  1505. },
  1506. [ES325_PORTD_ENDIAN] = {
  1507. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0d05) },
  1508. .read_msg_len = 4,
  1509. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0d05),
  1510. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1511. .write_msg_len = 8,
  1512. .val_shift = 0,
  1513. .val_max = 65535,
  1514. },
  1515. [ES325_PORTD_TRISTATE] = {
  1516. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0d06) },
  1517. .read_msg_len = 4,
  1518. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0d06),
  1519. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1520. .write_msg_len = 8,
  1521. .val_shift = 0,
  1522. .val_max = 65535,
  1523. },
  1524. [ES325_PORTD_AUDIO_PORT_MODE] = {
  1525. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0d07) },
  1526. .read_msg_len = 4,
  1527. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0d07),
  1528. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1529. .write_msg_len = 8,
  1530. .val_shift = 0,
  1531. .val_max = 65535,
  1532. },
  1533. [ES325_PORTD_TDM_ENABLED] = {
  1534. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0d08) },
  1535. .read_msg_len = 4,
  1536. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0d08),
  1537. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1538. .write_msg_len = 8,
  1539. .val_shift = 0,
  1540. .val_max = 65535,
  1541. },
  1542. [ES325_PORTD_CLOCK_CONTROL] = {
  1543. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0d09) },
  1544. .read_msg_len = 4,
  1545. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0d09),
  1546. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1547. .write_msg_len = 8,
  1548. .val_shift = 0,
  1549. .val_max = 65535,
  1550. },
  1551. [ES325_PORTD_DATA_JUSTIFICATION] = {
  1552. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0d0a) },
  1553. .read_msg_len = 4,
  1554. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0d0a),
  1555. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1556. .write_msg_len = 8,
  1557. .val_shift = 0,
  1558. .val_max = 65535,
  1559. },
  1560. [ES325_PORTD_FS_DURATION] = {
  1561. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0d0b) },
  1562. .read_msg_len = 4,
  1563. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0d0b),
  1564. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1565. .write_msg_len = 8,
  1566. .val_shift = 0,
  1567. .val_max = 65535,
  1568. },
  1569. [ES325_SLIMBUS_LINK_MULTI_CHANNEL] = {
  1570. .read_msg = { ES325_API_WORD(ES325_GET_DEV_PARAM, 0x0900) },
  1571. .read_msg_len = 4,
  1572. .write_msg = { ES325_API_WORD(ES325_SET_DEV_PARAM_ID, 0x0900),
  1573. ES325_API_WORD(ES325_SET_DEV_PARAM, 0x0000) },
  1574. .write_msg_len = 8,
  1575. .val_shift = 0,
  1576. .val_max = 65535,
  1577. },
  1578. [ES325_POWER_STATE] = {
  1579. .read_msg = { ES325_API_WORD(0x8010, 0x0000) },
  1580. .read_msg_len = 4,
  1581. .write_msg = { ES325_API_WORD(0x8010, 0x0000) },
  1582. .write_msg_len = 4,
  1583. .val_shift = 0,
  1584. .val_max = 1,
  1585. },
  1586. [ES325_STREAMING] = {
  1587. .read_msg = { ES325_API_WORD(0x8025, 0x0000) },
  1588. .read_msg_len = 4,
  1589. .write_msg = { ES325_API_WORD(0x8025, 0x0000) },
  1590. .write_msg_len = 4,
  1591. .val_shift = 0,
  1592. .val_max = 5,
  1593. },
  1594. [ES325_FE_STREAMING] = {
  1595. .read_msg = { ES325_API_WORD(0x8028, 0x0000) },
  1596. .read_msg_len = 4,
  1597. .write_msg = { ES325_API_WORD(0x8028, 0x0000) },
  1598. .write_msg_len = 4,
  1599. .val_shift = 0,
  1600. .val_max = 8,
  1601. },
  1602. [ES325_PRESET] = {
  1603. .read_msg = { ES325_API_WORD(0x8031, 0x0000) },
  1604. .read_msg_len = 4,
  1605. .write_msg = { ES325_API_WORD(0x8031, 0x0000) },
  1606. .write_msg_len = 4,
  1607. .val_shift = 0,
  1608. .val_max = 15,
  1609. },
  1610. [ES325_ALGO_STATS] = {
  1611. .read_msg = { ES325_API_WORD(0x8042, 0x0000) },
  1612. .read_msg_len = 4,
  1613. .write_msg = { ES325_API_WORD(0x8042, 0x0000) },
  1614. .write_msg_len = 4,
  1615. .val_shift = 0,
  1616. .val_max = 15,
  1617. },
  1618. [ES325_ALGO_PROCESSING] = {
  1619. .read_msg = { ES325_API_WORD(0x8043, 0x0000) },
  1620. .read_msg_len = 4,
  1621. .write_msg = { ES325_API_WORD(0x801c, 0x0000) },
  1622. .write_msg_len = 4,
  1623. .val_shift = 0,
  1624. .val_max = 1,
  1625. },
  1626. [ES325_ALGO_SAMPLE_RATE] = {
  1627. .read_msg = { ES325_API_WORD(0x804b, 0x0000) },
  1628. .read_msg_len = 4,
  1629. .write_msg = { ES325_API_WORD(0x804c, 0x0000) },
  1630. .write_msg_len = 4,
  1631. .val_shift = 0,
  1632. .val_max = 5,
  1633. },
  1634. [ES325_SMOOTH_RATE] = {
  1635. .read_msg = { ES325_API_WORD(0x804d, 0x0000) },
  1636. .read_msg_len = 4,
  1637. .write_msg = { ES325_API_WORD(0x804e, 0x0000) },
  1638. .write_msg_len = 4,
  1639. .val_shift = 0,
  1640. .val_max = 65535,
  1641. },
  1642. [ES325_CHANGE_STATUS] = {
  1643. .read_msg = { ES325_API_WORD(0x804f, 0x0000) },
  1644. .read_msg_len = 4,
  1645. .write_msg = { ES325_API_WORD(0x804f, 0x0000) },
  1646. .write_msg_len = 4,
  1647. .val_shift = 0,
  1648. .val_max = 4,
  1649. },
  1650. [ES325_DIGITAL_PASS_THROUGH] = {
  1651. .read_msg = { ES325_API_WORD(0x8052, 0x0000) },
  1652. .read_msg_len = 4,
  1653. .write_msg = { ES325_API_WORD(0x8052, 0x0000) },
  1654. .write_msg_len = 4,
  1655. .val_shift = 0,
  1656. .val_max = 65535,
  1657. },
  1658. [ES325_DATA_PATH] = {
  1659. .read_msg = { ES325_API_WORD(0x805b, 0x0000) },
  1660. .read_msg_len = 4,
  1661. .write_msg = { ES325_API_WORD(0x805a, 0x0000) },
  1662. .write_msg_len = 4,
  1663. .val_shift = 0,
  1664. .val_max = 65535,
  1665. },
  1666. [ES325_ALGORITHM] = {
  1667. .read_msg = { ES325_API_WORD(0x805d, 0x0000) },
  1668. .read_msg_len = 4,
  1669. .write_msg = { ES325_API_WORD(0x805c, 0x0000) },
  1670. .write_msg_len = 4,
  1671. .val_shift = 0,
  1672. .val_max = 4,
  1673. },
  1674. [ES325_MIX_SAMPLE_RATE] = {
  1675. .read_msg = { ES325_API_WORD(0x8065, 0x0000) },
  1676. .read_msg_len = 4,
  1677. .write_msg = { ES325_API_WORD(0x805e, 0x0000) },
  1678. .write_msg_len = 4,
  1679. .val_shift = 0,
  1680. .val_max = 5,
  1681. },
  1682. [ES325_SIGNAL_RMS_PORTA_DIN_LEFT] = {
  1683. .read_msg = { ES325_API_WORD(0x8013, 0x0000) },
  1684. .read_msg_len = 4,
  1685. .write_msg = { ES325_API_WORD(0x8013, 0x0000) },
  1686. .write_msg_len = 4,
  1687. .val_shift = 0,
  1688. .val_max = 65535,
  1689. },
  1690. [ES325_SIGNAL_RMS_PORTA_DIN_RIGHT] = {
  1691. .read_msg = { ES325_API_WORD(0x8013, 0x0001) },
  1692. .read_msg_len = 4,
  1693. .write_msg = { ES325_API_WORD(0x8013, 0x0001) },
  1694. .write_msg_len = 4,
  1695. .val_shift = 0,
  1696. .val_max = 65535,
  1697. },
  1698. [ES325_SIGNAL_RMS_PORTA_DOUT_LEFT] = {
  1699. .read_msg = { ES325_API_WORD(0x8013, 0x0002) },
  1700. .read_msg_len = 4,
  1701. .write_msg = { ES325_API_WORD(0x8013, 0x0002) },
  1702. .write_msg_len = 4,
  1703. .val_shift = 0,
  1704. .val_max = 65535,
  1705. },
  1706. [ES325_SIGNAL_RMS_PORTA_DOUT_RIGHT] = {
  1707. .read_msg = { ES325_API_WORD(0x8013, 0x0003) },
  1708. .read_msg_len = 4,
  1709. .write_msg = { ES325_API_WORD(0x8013, 0x0003) },
  1710. .write_msg_len = 4,
  1711. .val_shift = 0,
  1712. .val_max = 65535,
  1713. },
  1714. [ES325_SIGNAL_RMS_PORTB_DIN_LEFT] = {
  1715. .read_msg = { ES325_API_WORD(0x8013, 0x0004) },
  1716. .read_msg_len = 4,
  1717. .write_msg = { ES325_API_WORD(0x8013, 0x0004) },
  1718. .write_msg_len = 4,
  1719. .val_shift = 0,
  1720. .val_max = 65535,
  1721. },
  1722. [ES325_SIGNAL_RMS_PORTB_DIN_RIGHT] = {
  1723. .read_msg = { ES325_API_WORD(0x8013, 0x0005) },
  1724. .read_msg_len = 4,
  1725. .write_msg = { ES325_API_WORD(0x8013, 0x0005) },
  1726. .write_msg_len = 4,
  1727. .val_shift = 0,
  1728. .val_max = 65535,
  1729. },
  1730. [ES325_SIGNAL_RMS_PORTB_DOUT_LEFT] = {
  1731. .read_msg = { ES325_API_WORD(0x8013, 0x0006) },
  1732. .read_msg_len = 4,
  1733. .write_msg = { ES325_API_WORD(0x8013, 0x0006) },
  1734. .write_msg_len = 4,
  1735. .val_shift = 0,
  1736. .val_max = 65535,
  1737. },
  1738. [ES325_SIGNAL_RMS_PORTB_DOUT_RIGHT] = {
  1739. .read_msg = { ES325_API_WORD(0x8013, 0x0007) },
  1740. .read_msg_len = 4,
  1741. .write_msg = { ES325_API_WORD(0x8013, 0x0007) },
  1742. .write_msg_len = 4,
  1743. .val_shift = 0,
  1744. .val_max = 65535,
  1745. },
  1746. [ES325_SIGNAL_RMS_PORTC_DIN_LEFT] = {
  1747. .read_msg = { ES325_API_WORD(0x8013, 0x0008) },
  1748. .read_msg_len = 4,
  1749. .write_msg = { ES325_API_WORD(0x8013, 0x0008) },
  1750. .write_msg_len = 4,
  1751. .val_shift = 0,
  1752. .val_max = 65535,
  1753. },
  1754. [ES325_SIGNAL_RMS_PORTC_DIN_RIGHT] = {
  1755. .read_msg = { ES325_API_WORD(0x8013, 0x0009) },
  1756. .read_msg_len = 4,
  1757. .write_msg = { ES325_API_WORD(0x8013, 0x0009) },
  1758. .write_msg_len = 4,
  1759. .val_shift = 0,
  1760. .val_max = 65535,
  1761. },
  1762. [ES325_SIGNAL_RMS_PORTC_DOUT_LEFT] = {
  1763. .read_msg = { ES325_API_WORD(0x8013, 0x000a) },
  1764. .read_msg_len = 4,
  1765. .write_msg = { ES325_API_WORD(0x8013, 0x000a) },
  1766. .write_msg_len = 4,
  1767. .val_shift = 0,
  1768. .val_max = 65535,
  1769. },
  1770. [ES325_SIGNAL_RMS_PORTC_DOUT_RIGHT] = {
  1771. .read_msg = { ES325_API_WORD(0x8013, 0x000b) },
  1772. .read_msg_len = 4,
  1773. .write_msg = { ES325_API_WORD(0x8013, 0x000b) },
  1774. .write_msg_len = 4,
  1775. .val_shift = 0,
  1776. .val_max = 65535,
  1777. },
  1778. [ES325_SIGNAL_RMS_PORTD_DIN_LEFT] = {
  1779. .read_msg = { ES325_API_WORD(0x8013, 0x000c) },
  1780. .read_msg_len = 4,
  1781. .write_msg = { ES325_API_WORD(0x8013, 0x000c) },
  1782. .write_msg_len = 4,
  1783. .val_shift = 0,
  1784. .val_max = 65535,
  1785. },
  1786. [ES325_SIGNAL_RMS_PORTD_DIN_RIGHT] = {
  1787. .read_msg = { ES325_API_WORD(0x8013, 0x000d) },
  1788. .read_msg_len = 4,
  1789. .write_msg = { ES325_API_WORD(0x8013, 0x000d) },
  1790. .write_msg_len = 4,
  1791. .val_shift = 0,
  1792. .val_max = 65535,
  1793. },
  1794. [ES325_SIGNAL_RMS_PORTD_DOUT_LEFT] = {
  1795. .read_msg = { ES325_API_WORD(0x8013, 0x000e) },
  1796. .read_msg_len = 4,
  1797. .write_msg = { ES325_API_WORD(0x8013, 0x000e) },
  1798. .write_msg_len = 4,
  1799. .val_shift = 0,
  1800. .val_max = 65535,
  1801. },
  1802. [ES325_SIGNAL_RMS_PORTD_DOUT_RIGHT] = {
  1803. .read_msg = { ES325_API_WORD(0x8013, 0x000f) },
  1804. .read_msg_len = 4,
  1805. .write_msg = { ES325_API_WORD(0x8013, 0x000f) },
  1806. .write_msg_len = 4,
  1807. .val_shift = 0,
  1808. .val_max = 65535,
  1809. },
  1810. [ES325_SIGNAL_PEAK_PORTA_DIN_LEFT] = {
  1811. .read_msg = { ES325_API_WORD(0x8014, 0x0000) },
  1812. .read_msg_len = 4,
  1813. .write_msg = { ES325_API_WORD(0x8014, 0x0000) },
  1814. .write_msg_len = 4,
  1815. .val_shift = 0,
  1816. .val_max = 65535,
  1817. },
  1818. [ES325_SIGNAL_PEAK_PORTA_DIN_RIGHT] = {
  1819. .read_msg = { ES325_API_WORD(0x8014, 0x0001) },
  1820. .read_msg_len = 4,
  1821. .write_msg = { ES325_API_WORD(0x8014, 0x0001) },
  1822. .write_msg_len = 4,
  1823. .val_shift = 0,
  1824. .val_max = 65535,
  1825. },
  1826. [ES325_SIGNAL_PEAK_PORTA_DOUT_LEFT] = {
  1827. .read_msg = { ES325_API_WORD(0x8014, 0x0002) },
  1828. .read_msg_len = 4,
  1829. .write_msg = { ES325_API_WORD(0x8014, 0x0002) },
  1830. .write_msg_len = 4,
  1831. .val_shift = 0,
  1832. .val_max = 65535,
  1833. },
  1834. [ES325_SIGNAL_PEAK_PORTA_DOUT_RIGHT] = {
  1835. .read_msg = { ES325_API_WORD(0x8014, 0x0003) },
  1836. .read_msg_len = 4,
  1837. .write_msg = { ES325_API_WORD(0x8014, 0x0003) },
  1838. .write_msg_len = 4,
  1839. .val_shift = 0,
  1840. .val_max = 65535,
  1841. },
  1842. [ES325_SIGNAL_PEAK_PORTB_DIN_LEFT] = {
  1843. .read_msg = { ES325_API_WORD(0x8014, 0x0004) },
  1844. .read_msg_len = 4,
  1845. .write_msg = { ES325_API_WORD(0x8014, 0x0004) },
  1846. .write_msg_len = 4,
  1847. .val_shift = 0,
  1848. .val_max = 65535,
  1849. },
  1850. [ES325_SIGNAL_PEAK_PORTB_DIN_RIGHT] = {
  1851. .read_msg = { ES325_API_WORD(0x8014, 0x0005) },
  1852. .read_msg_len = 4,
  1853. .write_msg = { ES325_API_WORD(0x8014, 0x0005) },
  1854. .write_msg_len = 4,
  1855. .val_shift = 0,
  1856. .val_max = 65535,
  1857. },
  1858. [ES325_SIGNAL_PEAK_PORTB_DOUT_LEFT] = {
  1859. .read_msg = { ES325_API_WORD(0x8014, 0x0006) },
  1860. .read_msg_len = 4,
  1861. .write_msg = { ES325_API_WORD(0x8014, 0x0006) },
  1862. .write_msg_len = 4,
  1863. .val_shift = 0,
  1864. .val_max = 65535,
  1865. },
  1866. [ES325_SIGNAL_PEAK_PORTB_DOUT_RIGHT] = {
  1867. .read_msg = { ES325_API_WORD(0x8014, 0x0007) },
  1868. .read_msg_len = 4,
  1869. .write_msg = { ES325_API_WORD(0x8014, 0x0007) },
  1870. .write_msg_len = 4,
  1871. .val_shift = 0,
  1872. .val_max = 65535,
  1873. },
  1874. [ES325_SIGNAL_PEAK_PORTC_DIN_LEFT] = {
  1875. .read_msg = { ES325_API_WORD(0x8014, 0x0008) },
  1876. .read_msg_len = 4,
  1877. .write_msg = { ES325_API_WORD(0x8014, 0x0008) },
  1878. .write_msg_len = 4,
  1879. .val_shift = 0,
  1880. .val_max = 65535,
  1881. },
  1882. [ES325_SIGNAL_PEAK_PORTC_DIN_RIGHT] = {
  1883. .read_msg = { ES325_API_WORD(0x8014, 0x0009) },
  1884. .read_msg_len = 4,
  1885. .write_msg = { ES325_API_WORD(0x8014, 0x0009) },
  1886. .write_msg_len = 4,
  1887. .val_shift = 0,
  1888. .val_max = 65535,
  1889. },
  1890. [ES325_SIGNAL_PEAK_PORTC_DOUT_LEFT] = {
  1891. .read_msg = { ES325_API_WORD(0x8014, 0x000a) },
  1892. .read_msg_len = 4,
  1893. .write_msg = { ES325_API_WORD(0x8014, 0x000a) },
  1894. .write_msg_len = 4,
  1895. .val_shift = 0,
  1896. .val_max = 65535,
  1897. },
  1898. [ES325_SIGNAL_PEAK_PORTC_DOUT_RIGHT] = {
  1899. .read_msg = { ES325_API_WORD(0x8014, 0x000b) },
  1900. .read_msg_len = 4,
  1901. .write_msg = { ES325_API_WORD(0x8014, 0x000b) },
  1902. .write_msg_len = 4,
  1903. .val_shift = 0,
  1904. .val_max = 65535,
  1905. },
  1906. [ES325_SIGNAL_PEAK_PORTD_DIN_LEFT] = {
  1907. .read_msg = { ES325_API_WORD(0x8014, 0x000c) },
  1908. .read_msg_len = 4,
  1909. .write_msg = { ES325_API_WORD(0x8014, 0x000c) },
  1910. .write_msg_len = 4,
  1911. .val_shift = 0,
  1912. .val_max = 65535,
  1913. },
  1914. [ES325_SIGNAL_PEAK_PORTD_DIN_RIGHT] = {
  1915. .read_msg = { ES325_API_WORD(0x8014, 0x000d) },
  1916. .read_msg_len = 4,
  1917. .write_msg = { ES325_API_WORD(0x8014, 0x000d) },
  1918. .write_msg_len = 4,
  1919. .val_shift = 0,
  1920. .val_max = 65535,
  1921. },
  1922. [ES325_SIGNAL_PEAK_PORTD_DOUT_LEFT] = {
  1923. .read_msg = { ES325_API_WORD(0x8014, 0x000e) },
  1924. .read_msg_len = 4,
  1925. .write_msg = { ES325_API_WORD(0x8014, 0x000e) },
  1926. .write_msg_len = 4,
  1927. .val_shift = 0,
  1928. .val_max = 65535,
  1929. },
  1930. [ES325_SIGNAL_PEAK_PORTD_DOUT_RIGHT] = {
  1931. .read_msg = { ES325_API_WORD(0x8014, 0x000f) },
  1932. .read_msg_len = 4,
  1933. .write_msg = { ES325_API_WORD(0x8014, 0x000f) },
  1934. .write_msg_len = 4,
  1935. .val_shift = 0,
  1936. .val_max = 65535,
  1937. },
  1938. [ES325_DIGITAL_GAIN_PRIMARY] = {
  1939. .read_msg = { ES325_API_WORD(0x801D, 0x0001) },
  1940. .read_msg_len = 4,
  1941. .write_msg = { ES325_API_WORD(0x8015, 0x0100) },
  1942. .write_msg_len = 4,
  1943. .val_shift = 0,
  1944. .val_max = 255,
  1945. },
  1946. [ES325_DIGITAL_GAIN_SECONDARY] = {
  1947. .read_msg = { ES325_API_WORD(0x801D, 0x0002) },
  1948. .read_msg_len = 4,
  1949. .write_msg = { ES325_API_WORD(0x8015, 0x0200) },
  1950. .write_msg_len = 4,
  1951. .val_shift = 0,
  1952. .val_max = 255,
  1953. },
  1954. [ES325_DIGITAL_GAIN_TERTIARY] = {
  1955. .read_msg = { ES325_API_WORD(0x801D, 0x0003) },
  1956. .read_msg_len = 4,
  1957. .write_msg = { ES325_API_WORD(0x8015, 0x0300) },
  1958. .write_msg_len = 4,
  1959. .val_shift = 0,
  1960. .val_max = 255,
  1961. },
  1962. [ES325_DIGITAL_GAIN_QUAD] = {
  1963. .read_msg = { ES325_API_WORD(0x801D, 0x0004) },
  1964. .read_msg_len = 4,
  1965. .write_msg = { ES325_API_WORD(0x8015, 0x0400) },
  1966. .write_msg_len = 4,
  1967. .val_shift = 0,
  1968. .val_max = 255,
  1969. },
  1970. [ES325_DIGITAL_GAIN_FEIN] = {
  1971. .read_msg = { ES325_API_WORD(0x801D, 0x0005) },
  1972. .read_msg_len = 4,
  1973. .write_msg = { ES325_API_WORD(0x8015, 0x0500) },
  1974. .write_msg_len = 4,
  1975. .val_shift = 0,
  1976. .val_max = 255,
  1977. },
  1978. [ES325_DIGITAL_GAIN_AUDIN1] = {
  1979. .read_msg = { ES325_API_WORD(0x801D, 0x0006) },
  1980. .read_msg_len = 4,
  1981. .write_msg = { ES325_API_WORD(0x8015, 0x0600) },
  1982. .write_msg_len = 4,
  1983. .val_shift = 0,
  1984. .val_max = 255,
  1985. },
  1986. [ES325_DIGITAL_GAIN_AUDIN2] = {
  1987. .read_msg = { ES325_API_WORD(0x801D, 0x0007) },
  1988. .read_msg_len = 4,
  1989. .write_msg = { ES325_API_WORD(0x8015, 0x0700) },
  1990. .write_msg_len = 4,
  1991. .val_shift = 0,
  1992. .val_max = 255,
  1993. },
  1994. [ES325_DIGITAL_GAIN_AUDIN3] = {
  1995. .read_msg = { ES325_API_WORD(0x801D, 0x0008) },
  1996. .read_msg_len = 4,
  1997. .write_msg = { ES325_API_WORD(0x8015, 0x0800) },
  1998. .write_msg_len = 4,
  1999. .val_shift = 0,
  2000. .val_max = 255,
  2001. },
  2002. [ES325_DIGITAL_GAIN_AUDIN4] = {
  2003. .read_msg = { ES325_API_WORD(0x801D, 0x0009) },
  2004. .read_msg_len = 4,
  2005. .write_msg = { ES325_API_WORD(0x8015, 0x0900) },
  2006. .write_msg_len = 4,
  2007. .val_shift = 0,
  2008. .val_max = 255,
  2009. },
  2010. [ES325_DIGITAL_GAIN_UITONE1] = {
  2011. .read_msg = { ES325_API_WORD(0x801D, 0x000A) },
  2012. .read_msg_len = 4,
  2013. .write_msg = { ES325_API_WORD(0x8015, 0x0a00) },
  2014. .write_msg_len = 4,
  2015. .val_shift = 0,
  2016. .val_max = 255,
  2017. },
  2018. [ES325_DIGITAL_GAIN_UITONE2] = {
  2019. .read_msg = { ES325_API_WORD(0x801D, 0x000B) },
  2020. .read_msg_len = 4,
  2021. .write_msg = { ES325_API_WORD(0x8015, 0x0b00) },
  2022. .write_msg_len = 4,
  2023. .val_shift = 0,
  2024. .val_max = 255,
  2025. },
  2026. [ES325_DIGITAL_GAIN_CSOUT] = {
  2027. .read_msg = { ES325_API_WORD(0x801D, 0x0010) },
  2028. .read_msg_len = 4,
  2029. .write_msg = { ES325_API_WORD(0x8015, 0x1000) },
  2030. .write_msg_len = 4,
  2031. .val_shift = 0,
  2032. .val_max = 255,
  2033. },
  2034. [ES325_DIGITAL_GAIN_FEOUT1] = {
  2035. .read_msg = { ES325_API_WORD(0x801D, 0x0011) },
  2036. .read_msg_len = 4,
  2037. .write_msg = { ES325_API_WORD(0x8015, 0x1100) },
  2038. .write_msg_len = 4,
  2039. .val_shift = 0,
  2040. .val_max = 255,
  2041. },
  2042. [ES325_DIGITAL_GAIN_FEOUT2] = {
  2043. .read_msg = { ES325_API_WORD(0x801D, 0x0012) },
  2044. .read_msg_len = 4,
  2045. .write_msg = { ES325_API_WORD(0x8015, 0x1200) },
  2046. .write_msg_len = 4,
  2047. .val_shift = 0,
  2048. .val_max = 255,
  2049. },
  2050. [ES325_DIGITAL_GAIN_AUDOUT1] = {
  2051. .read_msg = { ES325_API_WORD(0x801D, 0x0013) },
  2052. .read_msg_len = 4,
  2053. .write_msg = { ES325_API_WORD(0x8015, 0x1300) },
  2054. .write_msg_len = 4,
  2055. .val_shift = 0,
  2056. .val_max = 255,
  2057. },
  2058. [ES325_DIGITAL_GAIN_AUDOUT2] = {
  2059. .read_msg = { ES325_API_WORD(0x801D, 0x0014) },
  2060. .read_msg_len = 4,
  2061. .write_msg = { ES325_API_WORD(0x8015, 0x1400) },
  2062. .write_msg_len = 4,
  2063. .val_shift = 0,
  2064. .val_max = 255,
  2065. },
  2066. [ES325_DIGITAL_GAIN_AUDOUT3] = {
  2067. .read_msg = { ES325_API_WORD(0x801D, 0x0015) },
  2068. .read_msg_len = 4,
  2069. .write_msg = { ES325_API_WORD(0x8015, 0x1500) },
  2070. .write_msg_len = 4,
  2071. .val_shift = 0,
  2072. .val_max = 255,
  2073. },
  2074. [ES325_DIGITAL_GAIN_AUDOUT4] = {
  2075. .read_msg = { ES325_API_WORD(0x801D, 0x0016) },
  2076. .read_msg_len = 4,
  2077. .write_msg = { ES325_API_WORD(0x8015, 0x1600) },
  2078. .write_msg_len = 4,
  2079. .val_shift = 0,
  2080. .val_max = 255,
  2081. },
  2082. [ES325_PORTA_TIMING] = {
  2083. .read_msg = { ES325_API_WORD(0x8059, 0x0000) },
  2084. .read_msg_len = 4,
  2085. .write_msg = { ES325_API_WORD(0x8058, 0x0000) },
  2086. .write_msg_len = 4,
  2087. .val_shift = 0,
  2088. .val_max = 15,
  2089. },
  2090. [ES325_PORTB_TIMING] = {
  2091. .read_msg = { ES325_API_WORD(0x8059, 0x1000) },
  2092. .read_msg_len = 4,
  2093. .write_msg = { ES325_API_WORD(0x8058, 0x1000) },
  2094. .write_msg_len = 4,
  2095. .val_shift = 0,
  2096. .val_max = 15,
  2097. },
  2098. [ES325_PORTC_TIMING] = {
  2099. .read_msg = { ES325_API_WORD(0x8059, 0x2000) },
  2100. .read_msg_len = 4,
  2101. .write_msg = { ES325_API_WORD(0x8058, 0x2000) },
  2102. .write_msg_len = 4,
  2103. .val_shift = 0,
  2104. .val_max = 15,
  2105. },
  2106. [ES325_PORTD_TIMING] = {
  2107. .read_msg = { ES325_API_WORD(0x8059, 0x3000) },
  2108. .read_msg_len = 4,
  2109. .write_msg = { ES325_API_WORD(0x8058, 0x3000) },
  2110. .write_msg_len = 4,
  2111. .val_shift = 0,
  2112. .val_max = 15,
  2113. },
  2114. [ES325_FLUSH] = {
  2115. .read_msg = { ES325_API_WORD(0x805A, 0x0000) },
  2116. .read_msg_len = 4,
  2117. .write_msg = { ES325_API_WORD(0x8059, 0x0000) },
  2118. .write_msg_len = 4,
  2119. .val_shift = 0,
  2120. .val_max = 0,
  2121. },
  2122. [ES325_FW_FIRST_CHAR] = {
  2123. .read_msg = { ES325_API_WORD(0x8020, 0x0000) },
  2124. .read_msg_len = 4,
  2125. .write_msg = { ES325_API_WORD(0x8020, 0x0000) },
  2126. .write_msg_len = 4,
  2127. .val_shift = 0,
  2128. .val_max = 255,
  2129. },
  2130. [ES325_FW_NEXT_CHAR] = {
  2131. .read_msg = { ES325_API_WORD(0x8021, 0x0000) },
  2132. .read_msg_len = 4,
  2133. .write_msg = { ES325_API_WORD(0x8021, 0x0000) },
  2134. .write_msg_len = 4,
  2135. .val_shift = 0,
  2136. .val_max = 255,
  2137. },
  2138. };
  2139. #endif /* _ES325_ACCESS_H */