msm-dai-fe.c 78 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
  3. */
  4. #include <linux/init.h>
  5. #include <linux/module.h>
  6. #include <linux/device.h>
  7. #include <linux/platform_device.h>
  8. #include <linux/of_device.h>
  9. #include <sound/core.h>
  10. #include <sound/pcm.h>
  11. #include <sound/soc.h>
  12. #include "msm-compress-q6-v2.h"
  13. static struct snd_soc_dai_ops msm_fe_dai_ops = {};
  14. /* Conventional and unconventional sample rate supported */
  15. static unsigned int supported_sample_rates[] = {
  16. 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000,
  17. 88200, 96000, 176400, 192000, 352800, 384000
  18. };
  19. static struct snd_pcm_hw_constraint_list constraints_sample_rates = {
  20. .count = ARRAY_SIZE(supported_sample_rates),
  21. .list = supported_sample_rates,
  22. .mask = 0,
  23. };
  24. static int multimedia_startup(struct snd_pcm_substream *substream,
  25. struct snd_soc_dai *dai)
  26. {
  27. snd_pcm_hw_constraint_list(substream->runtime, 0,
  28. SNDRV_PCM_HW_PARAM_RATE,
  29. &constraints_sample_rates);
  30. return 0;
  31. }
  32. static int fe_dai_probe(struct snd_soc_dai *dai)
  33. {
  34. struct snd_soc_dapm_route intercon;
  35. struct snd_soc_dapm_context *dapm;
  36. if (!dai || !dai->driver) {
  37. pr_err("%s invalid params\n", __func__);
  38. return -EINVAL;
  39. }
  40. dapm = snd_soc_component_get_dapm(dai->component);
  41. memset(&intercon, 0, sizeof(intercon));
  42. if (dai->driver->playback.stream_name &&
  43. dai->driver->playback.aif_name) {
  44. dev_dbg(dai->dev, "%s add route for widget %s",
  45. __func__, dai->driver->playback.stream_name);
  46. intercon.source = dai->driver->playback.stream_name;
  47. intercon.sink = dai->driver->playback.aif_name;
  48. dev_dbg(dai->dev, "%s src %s sink %s\n",
  49. __func__, intercon.source, intercon.sink);
  50. snd_soc_dapm_add_routes(dapm, &intercon, 1);
  51. snd_soc_dapm_ignore_suspend(dapm, intercon.source);
  52. }
  53. if (dai->driver->capture.stream_name &&
  54. dai->driver->capture.aif_name) {
  55. dev_dbg(dai->dev, "%s add route for widget %s",
  56. __func__, dai->driver->capture.stream_name);
  57. intercon.sink = dai->driver->capture.stream_name;
  58. intercon.source = dai->driver->capture.aif_name;
  59. dev_dbg(dai->dev, "%s src %s sink %s\n",
  60. __func__, intercon.source, intercon.sink);
  61. snd_soc_dapm_add_routes(dapm, &intercon, 1);
  62. snd_soc_dapm_ignore_suspend(dapm, intercon.sink);
  63. }
  64. return 0;
  65. }
  66. static struct snd_soc_dai_ops msm_fe_Multimedia_dai_ops = {
  67. .startup = multimedia_startup,
  68. };
  69. static const struct snd_soc_component_driver msm_fe_dai_component = {
  70. .name = "msm-dai-fe",
  71. };
  72. static struct snd_soc_dai_driver msm_fe_dais[] = {
  73. {
  74. .playback = {
  75. .stream_name = "MultiMedia1 Playback",
  76. .aif_name = "MM_DL1",
  77. .rates = (SNDRV_PCM_RATE_8000_384000|
  78. SNDRV_PCM_RATE_KNOT),
  79. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  80. SNDRV_PCM_FMTBIT_S24_LE |
  81. SNDRV_PCM_FMTBIT_S24_3LE |
  82. SNDRV_PCM_FMTBIT_S32_LE),
  83. .channels_min = 1,
  84. .channels_max = 32,
  85. .rate_min = 8000,
  86. .rate_max = 384000,
  87. },
  88. .capture = {
  89. .stream_name = "MultiMedia1 Capture",
  90. .aif_name = "MM_UL1",
  91. .rates = (SNDRV_PCM_RATE_8000_384000|
  92. SNDRV_PCM_RATE_KNOT),
  93. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  94. SNDRV_PCM_FMTBIT_S24_LE |
  95. SNDRV_PCM_FMTBIT_S24_3LE |
  96. SNDRV_PCM_FMTBIT_S32_LE),
  97. .channels_min = 1,
  98. .channels_max = 32,
  99. .rate_min = 8000,
  100. .rate_max = 48000,
  101. },
  102. .ops = &msm_fe_Multimedia_dai_ops,
  103. .name = "MultiMedia1",
  104. .probe = fe_dai_probe,
  105. },
  106. {
  107. .playback = {
  108. .stream_name = "MultiMedia2 Playback",
  109. .aif_name = "MM_DL2",
  110. .rates = (SNDRV_PCM_RATE_8000_384000|
  111. SNDRV_PCM_RATE_KNOT),
  112. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  113. SNDRV_PCM_FMTBIT_S24_LE |
  114. SNDRV_PCM_FMTBIT_S24_3LE |
  115. SNDRV_PCM_FMTBIT_S32_LE),
  116. .channels_min = 1,
  117. .channels_max = 32,
  118. .rate_min = 8000,
  119. .rate_max = 384000,
  120. },
  121. .capture = {
  122. .stream_name = "MultiMedia2 Capture",
  123. .aif_name = "MM_UL2",
  124. .rates = (SNDRV_PCM_RATE_8000_384000|
  125. SNDRV_PCM_RATE_KNOT),
  126. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  127. SNDRV_PCM_FMTBIT_S24_LE |
  128. SNDRV_PCM_FMTBIT_S24_3LE |
  129. SNDRV_PCM_FMTBIT_S32_LE),
  130. .channels_min = 1,
  131. .channels_max = 32,
  132. .rate_min = 8000,
  133. .rate_max = 48000,
  134. },
  135. .ops = &msm_fe_Multimedia_dai_ops,
  136. .name = "MultiMedia2",
  137. .probe = fe_dai_probe,
  138. },
  139. {
  140. .playback = {
  141. .stream_name = "VoIP Playback",
  142. .aif_name = "VOIP_DL",
  143. .rates = SNDRV_PCM_RATE_8000_48000,
  144. .formats = SNDRV_PCM_FMTBIT_S16_LE |
  145. SNDRV_PCM_FMTBIT_SPECIAL,
  146. .channels_min = 1,
  147. .channels_max = 2,
  148. .rate_min = 8000,
  149. .rate_max = 48000,
  150. },
  151. .capture = {
  152. .stream_name = "VoIP Capture",
  153. .aif_name = "VOIP_UL",
  154. .rates = SNDRV_PCM_RATE_8000_48000,
  155. .formats = SNDRV_PCM_FMTBIT_S16_LE |
  156. SNDRV_PCM_FMTBIT_SPECIAL,
  157. .channels_min = 1,
  158. .channels_max = 2,
  159. .rate_min = 8000,
  160. .rate_max = 48000,
  161. },
  162. .ops = &msm_fe_dai_ops,
  163. .name = "VoIP",
  164. .probe = fe_dai_probe,
  165. },
  166. {
  167. .playback = {
  168. .stream_name = "MultiMedia3 Playback",
  169. .aif_name = "MM_DL3",
  170. .rates = (SNDRV_PCM_RATE_8000_384000 |
  171. SNDRV_PCM_RATE_KNOT),
  172. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  173. SNDRV_PCM_FMTBIT_S24_LE |
  174. SNDRV_PCM_FMTBIT_S24_3LE |
  175. SNDRV_PCM_FMTBIT_S32_LE),
  176. .channels_min = 1,
  177. .channels_max = 32,
  178. .rate_min = 8000,
  179. .rate_max = 384000,
  180. },
  181. .capture = {
  182. .stream_name = "MultiMedia3 Capture",
  183. .aif_name = "MM_UL3",
  184. .rates = (SNDRV_PCM_RATE_8000_384000|
  185. SNDRV_PCM_RATE_KNOT),
  186. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  187. SNDRV_PCM_FMTBIT_S24_LE |
  188. SNDRV_PCM_FMTBIT_S24_3LE |
  189. SNDRV_PCM_FMTBIT_S32_LE),
  190. .channels_min = 1,
  191. .channels_max = 32,
  192. .rate_min = 8000,
  193. .rate_max = 48000,
  194. },
  195. .ops = &msm_fe_Multimedia_dai_ops,
  196. .name = "MultiMedia3",
  197. .probe = fe_dai_probe,
  198. },
  199. {
  200. .playback = {
  201. .stream_name = "MultiMedia4 Playback",
  202. .aif_name = "MM_DL4",
  203. .rates = (SNDRV_PCM_RATE_8000_384000 |
  204. SNDRV_PCM_RATE_KNOT),
  205. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  206. SNDRV_PCM_FMTBIT_S24_LE |
  207. SNDRV_PCM_FMTBIT_S24_3LE |
  208. SNDRV_PCM_FMTBIT_S32_LE),
  209. .channels_min = 1,
  210. .channels_max = 32,
  211. .rate_min = 8000,
  212. .rate_max = 384000,
  213. },
  214. .ops = &msm_fe_Multimedia_dai_ops,
  215. .compress_new = msm_compr_new,
  216. .name = "MultiMedia4",
  217. .probe = fe_dai_probe,
  218. },
  219. {
  220. .playback = {
  221. .stream_name = "MultiMedia5 Playback",
  222. .aif_name = "MM_DL5",
  223. .rates = (SNDRV_PCM_RATE_8000_384000 |
  224. SNDRV_PCM_RATE_KNOT),
  225. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  226. SNDRV_PCM_FMTBIT_S24_LE |
  227. SNDRV_PCM_FMTBIT_S24_3LE |
  228. SNDRV_PCM_FMTBIT_S32_LE),
  229. .channels_min = 1,
  230. .channels_max = 32,
  231. .rate_min = 8000,
  232. .rate_max = 384000,
  233. },
  234. .capture = {
  235. .stream_name = "MultiMedia5 Capture",
  236. .aif_name = "MM_UL5",
  237. .rates = (SNDRV_PCM_RATE_8000_48000|
  238. SNDRV_PCM_RATE_KNOT),
  239. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  240. SNDRV_PCM_FMTBIT_S24_LE |
  241. SNDRV_PCM_FMTBIT_S24_3LE |
  242. SNDRV_PCM_FMTBIT_S32_LE),
  243. .channels_min = 1,
  244. .channels_max = 32,
  245. .rate_min = 8000,
  246. .rate_max = 48000,
  247. },
  248. .ops = &msm_fe_Multimedia_dai_ops,
  249. .name = "MultiMedia5",
  250. .probe = fe_dai_probe,
  251. },
  252. {
  253. .playback = {
  254. .stream_name = "MultiMedia6 Playback",
  255. .aif_name = "MM_DL6",
  256. .rates = (SNDRV_PCM_RATE_8000_384000 |
  257. SNDRV_PCM_RATE_KNOT),
  258. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  259. SNDRV_PCM_FMTBIT_S24_LE |
  260. SNDRV_PCM_FMTBIT_S24_3LE |
  261. SNDRV_PCM_FMTBIT_S32_LE),
  262. .channels_min = 1,
  263. .channels_max = 32,
  264. .rate_min = 8000,
  265. .rate_max = 384000,
  266. },
  267. .capture = {
  268. .stream_name = "MultiMedia6 Capture",
  269. .aif_name = "MM_UL6",
  270. .rates = (SNDRV_PCM_RATE_8000_48000|
  271. SNDRV_PCM_RATE_KNOT),
  272. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  273. SNDRV_PCM_FMTBIT_S24_LE |
  274. SNDRV_PCM_FMTBIT_S24_3LE |
  275. SNDRV_PCM_FMTBIT_S32_LE),
  276. .channels_min = 1,
  277. .channels_max = 32,
  278. .rate_min = 8000,
  279. .rate_max = 48000,
  280. },
  281. .ops = &msm_fe_Multimedia_dai_ops,
  282. .name = "MultiMedia6",
  283. .probe = fe_dai_probe,
  284. },
  285. {
  286. .playback = {
  287. .stream_name = "MultiMedia7 Playback",
  288. .aif_name = "MM_DL7",
  289. .rates = (SNDRV_PCM_RATE_8000_384000 |
  290. SNDRV_PCM_RATE_KNOT),
  291. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  292. SNDRV_PCM_FMTBIT_S24_LE |
  293. SNDRV_PCM_FMTBIT_S24_3LE |
  294. SNDRV_PCM_FMTBIT_S32_LE),
  295. .channels_min = 1,
  296. .channels_max = 32,
  297. .rate_min = 8000,
  298. .rate_max = 384000,
  299. },
  300. .ops = &msm_fe_Multimedia_dai_ops,
  301. .compress_new = msm_compr_new,
  302. .name = "MultiMedia7",
  303. .probe = fe_dai_probe,
  304. },
  305. {
  306. .playback = {
  307. .stream_name = "MultiMedia8 Playback",
  308. .aif_name = "MM_DL8",
  309. .rates = (SNDRV_PCM_RATE_8000_384000 |
  310. SNDRV_PCM_RATE_KNOT),
  311. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  312. SNDRV_PCM_FMTBIT_S24_LE |
  313. SNDRV_PCM_FMTBIT_S24_3LE |
  314. SNDRV_PCM_FMTBIT_S32_LE),
  315. .channels_min = 1,
  316. .channels_max = 32,
  317. .rate_min = 8000,
  318. .rate_max = 384000,
  319. },
  320. .capture = {
  321. .stream_name = "MultiMedia8 Capture",
  322. .aif_name = "MM_UL8",
  323. .rates = (SNDRV_PCM_RATE_8000_48000|
  324. SNDRV_PCM_RATE_KNOT),
  325. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  326. SNDRV_PCM_FMTBIT_S24_LE |
  327. SNDRV_PCM_FMTBIT_S24_3LE |
  328. SNDRV_PCM_FMTBIT_S32_LE),
  329. .channels_min = 1,
  330. .channels_max = 32,
  331. .rate_min = 8000,
  332. .rate_max = 48000,
  333. },
  334. .ops = &msm_fe_Multimedia_dai_ops,
  335. .name = "MultiMedia8",
  336. .probe = fe_dai_probe,
  337. },
  338. /* FE DAIs created for hostless operation purpose */
  339. {
  340. .playback = {
  341. .stream_name = "SLIMBUS0_HOSTLESS Playback",
  342. .aif_name = "SLIM0_DL_HL",
  343. .rates = SNDRV_PCM_RATE_8000_384000,
  344. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  345. SNDRV_PCM_FMTBIT_S24_LE),
  346. .channels_min = 1,
  347. .channels_max = 8,
  348. .rate_min = 8000,
  349. .rate_max = 384000,
  350. },
  351. .capture = {
  352. .stream_name = "SLIMBUS0_HOSTLESS Capture",
  353. .aif_name = "SLIM0_UL_HL",
  354. .rates = SNDRV_PCM_RATE_8000_96000,
  355. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  356. SNDRV_PCM_FMTBIT_S24_LE |
  357. SNDRV_PCM_FMTBIT_S32_LE),
  358. .channels_min = 1,
  359. .channels_max = 8,
  360. .rate_min = 8000,
  361. .rate_max = 384000,
  362. },
  363. .ops = &msm_fe_dai_ops,
  364. .name = "SLIMBUS0_HOSTLESS",
  365. .probe = fe_dai_probe,
  366. },
  367. {
  368. .playback = {
  369. .stream_name = "SLIMBUS1_HOSTLESS Playback",
  370. .aif_name = "SLIM1_DL_HL",
  371. .rates = SNDRV_PCM_RATE_8000_384000,
  372. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  373. SNDRV_PCM_FMTBIT_S24_LE),
  374. .channels_min = 1,
  375. .channels_max = 2,
  376. .rate_min = 8000,
  377. .rate_max = 384000,
  378. },
  379. .capture = {
  380. .stream_name = "SLIMBUS1_HOSTLESS Capture",
  381. .aif_name = "SLIM1_UL_HL",
  382. .rates = SNDRV_PCM_RATE_8000_48000,
  383. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  384. SNDRV_PCM_FMTBIT_S24_LE),
  385. .channels_min = 1,
  386. .channels_max = 2,
  387. .rate_min = 8000,
  388. .rate_max = 48000,
  389. },
  390. .ops = &msm_fe_dai_ops,
  391. .name = "SLIMBUS1_HOSTLESS",
  392. .probe = fe_dai_probe,
  393. },
  394. {
  395. .playback = {
  396. .stream_name = "SLIMBUS3_HOSTLESS Playback",
  397. .aif_name = "SLIM3_DL_HL",
  398. .rates = SNDRV_PCM_RATE_8000_384000,
  399. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  400. SNDRV_PCM_FMTBIT_S24_LE),
  401. .channels_min = 1,
  402. .channels_max = 2,
  403. .rate_min = 8000,
  404. .rate_max = 384000,
  405. },
  406. .capture = {
  407. .stream_name = "SLIMBUS3_HOSTLESS Capture",
  408. .aif_name = "SLIM3_UL_HL",
  409. .rates = SNDRV_PCM_RATE_8000_48000,
  410. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  411. SNDRV_PCM_FMTBIT_S24_LE),
  412. .channels_min = 1,
  413. .channels_max = 2,
  414. .rate_min = 8000,
  415. .rate_max = 48000,
  416. },
  417. .ops = &msm_fe_dai_ops,
  418. .name = "SLIMBUS3_HOSTLESS",
  419. .probe = fe_dai_probe,
  420. },
  421. {
  422. .playback = {
  423. .stream_name = "SLIMBUS4_HOSTLESS Playback",
  424. .aif_name = "SLIM4_DL_HL",
  425. .rates = SNDRV_PCM_RATE_8000_384000,
  426. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  427. SNDRV_PCM_FMTBIT_S24_LE),
  428. .channels_min = 1,
  429. .channels_max = 2,
  430. .rate_min = 8000,
  431. .rate_max = 384000,
  432. },
  433. .capture = {
  434. .stream_name = "SLIMBUS4_HOSTLESS Capture",
  435. .aif_name = "SLIM4_UL_HL",
  436. .rates = SNDRV_PCM_RATE_8000_48000,
  437. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  438. SNDRV_PCM_FMTBIT_S24_LE),
  439. .channels_min = 1,
  440. .channels_max = 2,
  441. .rate_min = 8000,
  442. .rate_max = 48000,
  443. },
  444. .ops = &msm_fe_dai_ops,
  445. .name = "SLIMBUS4_HOSTLESS",
  446. .probe = fe_dai_probe,
  447. },
  448. {
  449. .playback = {
  450. .stream_name = "SLIMBUS6_HOSTLESS Playback",
  451. .aif_name = "SLIM6_DL_HL",
  452. .rates = SNDRV_PCM_RATE_8000_384000,
  453. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  454. SNDRV_PCM_FMTBIT_S24_LE),
  455. .channels_min = 1,
  456. .channels_max = 8,
  457. .rate_min = 8000,
  458. .rate_max = 384000,
  459. },
  460. .ops = &msm_fe_dai_ops,
  461. .name = "SLIMBUS6_HOSTLESS",
  462. .probe = fe_dai_probe,
  463. },
  464. {
  465. .playback = {
  466. .stream_name = "SLIMBUS7_HOSTLESS Playback",
  467. .aif_name = "SLIM7_DL_HL",
  468. .rates = SNDRV_PCM_RATE_8000_384000,
  469. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  470. SNDRV_PCM_FMTBIT_S24_LE),
  471. .channels_min = 1,
  472. .channels_max = 8,
  473. .rate_min = 8000,
  474. .rate_max = 384000,
  475. },
  476. .capture = {
  477. .stream_name = "SLIMBUS7_HOSTLESS Capture",
  478. .aif_name = "SLIM7_UL_HL",
  479. .rates = SNDRV_PCM_RATE_8000_384000,
  480. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  481. SNDRV_PCM_FMTBIT_S24_LE),
  482. .channels_min = 1,
  483. .channels_max = 8,
  484. .rate_min = 8000,
  485. .rate_max = 384000,
  486. },
  487. .ops = &msm_fe_dai_ops,
  488. .name = "SLIMBUS7_HOSTLESS",
  489. .probe = fe_dai_probe,
  490. },
  491. {
  492. .playback = {
  493. .stream_name = "SLIMBUS8_HOSTLESS Playback",
  494. .aif_name = "SLIM8_DL_HL",
  495. .rates = SNDRV_PCM_RATE_8000_384000,
  496. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  497. SNDRV_PCM_FMTBIT_S24_LE),
  498. .channels_min = 1,
  499. .channels_max = 8,
  500. .rate_min = 8000,
  501. .rate_max = 384000,
  502. },
  503. .capture = {
  504. .stream_name = "SLIMBUS8_HOSTLESS Capture",
  505. .aif_name = "SLIM8_UL_HL",
  506. .rates = SNDRV_PCM_RATE_8000_384000,
  507. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  508. SNDRV_PCM_FMTBIT_S24_LE),
  509. .channels_min = 1,
  510. .channels_max = 8,
  511. .rate_min = 8000,
  512. .rate_max = 384000,
  513. },
  514. .ops = &msm_fe_dai_ops,
  515. .name = "SLIMBUS8_HOSTLESS",
  516. .probe = fe_dai_probe,
  517. },
  518. {
  519. .playback = {
  520. .stream_name = "CDC_DMA_HOSTLESS Playback",
  521. .aif_name = "CDC_DMA_DL_HL",
  522. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 |
  523. SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 |
  524. SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 |
  525. SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 |
  526. SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_176400 |
  527. SNDRV_PCM_RATE_192000 | SNDRV_PCM_RATE_352800 |
  528. SNDRV_PCM_RATE_384000,
  529. .formats = SNDRV_PCM_FMTBIT_S16_LE |
  530. SNDRV_PCM_FMTBIT_S24_LE |
  531. SNDRV_PCM_FMTBIT_S24_3LE |
  532. SNDRV_PCM_FMTBIT_S32_LE,
  533. .channels_min = 1,
  534. .channels_max = 4,
  535. .rate_min = 8000,
  536. .rate_max = 384000,
  537. },
  538. .capture = {
  539. .stream_name = "CDC_DMA_HOSTLESS Capture",
  540. .aif_name = "CDC_DMA_UL_HL",
  541. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 |
  542. SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 |
  543. SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 |
  544. SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 |
  545. SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_176400 |
  546. SNDRV_PCM_RATE_192000 | SNDRV_PCM_RATE_352800 |
  547. SNDRV_PCM_RATE_384000,
  548. .formats = SNDRV_PCM_FMTBIT_S16_LE |
  549. SNDRV_PCM_FMTBIT_S24_LE |
  550. SNDRV_PCM_FMTBIT_S24_3LE,
  551. .channels_min = 1,
  552. .channels_max = 8,
  553. .rate_min = 8000,
  554. .rate_max = 384000,
  555. },
  556. .ops = &msm_fe_dai_ops,
  557. .name = "CDC_DMA_HOSTLESS",
  558. .probe = fe_dai_probe,
  559. },
  560. {
  561. .capture = {
  562. .stream_name = "TX3_CDC_DMA_HOSTLESS Capture",
  563. .aif_name = "TX3_CDC_DMA_UL_HL",
  564. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 |
  565. SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 |
  566. SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 |
  567. SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 |
  568. SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_176400 |
  569. SNDRV_PCM_RATE_192000 | SNDRV_PCM_RATE_352800 |
  570. SNDRV_PCM_RATE_384000,
  571. .formats = SNDRV_PCM_FMTBIT_S16_LE |
  572. SNDRV_PCM_FMTBIT_S24_LE |
  573. SNDRV_PCM_FMTBIT_S24_3LE,
  574. .channels_min = 1,
  575. .channels_max = 8,
  576. .rate_min = 8000,
  577. .rate_max = 384000,
  578. },
  579. .ops = &msm_fe_dai_ops,
  580. .name = "TX3_CDC_DMA_HOSTLESS",
  581. .probe = fe_dai_probe,
  582. },
  583. {
  584. .playback = {
  585. .stream_name = "INT_FM_HOSTLESS Playback",
  586. .aif_name = "INTFM_DL_HL",
  587. .rates = SNDRV_PCM_RATE_8000_48000,
  588. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  589. .channels_min = 1,
  590. .channels_max = 2,
  591. .rate_min = 8000,
  592. .rate_max = 48000,
  593. },
  594. .capture = {
  595. .stream_name = "INT_FM_HOSTLESS Capture",
  596. .aif_name = "INTFM_UL_HL",
  597. .rates = SNDRV_PCM_RATE_8000_48000,
  598. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  599. .channels_min = 1,
  600. .channels_max = 2,
  601. .rate_min = 8000,
  602. .rate_max = 48000,
  603. },
  604. .ops = &msm_fe_dai_ops,
  605. .name = "INT_FM_HOSTLESS",
  606. .probe = fe_dai_probe,
  607. },
  608. {
  609. .playback = {
  610. .stream_name = "INT_HFP_BT Hostless Playback",
  611. .aif_name = "INTHFP_DL_HL",
  612. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
  613. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  614. .channels_min = 1,
  615. .channels_max = 2,
  616. .rate_min = 8000,
  617. .rate_max = 16000,
  618. },
  619. .capture = {
  620. .stream_name = "INT_HFP_BT Hostless Capture",
  621. .aif_name = "INTHFP_UL_HL",
  622. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
  623. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  624. .channels_min = 1,
  625. .channels_max = 2,
  626. .rate_min = 8000,
  627. .rate_max = 16000,
  628. },
  629. .ops = &msm_fe_dai_ops,
  630. .name = "INT_HFP_BT_HOSTLESS",
  631. .probe = fe_dai_probe,
  632. },
  633. {
  634. .playback = {
  635. .stream_name = "USBAUDIO_HOSTLESS Playback",
  636. .aif_name = "USBAUDIO_DL_HL",
  637. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 |
  638. SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 |
  639. SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 |
  640. SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 |
  641. SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_176400 |
  642. SNDRV_PCM_RATE_192000 | SNDRV_PCM_RATE_352800 |
  643. SNDRV_PCM_RATE_384000,
  644. .formats = SNDRV_PCM_FMTBIT_S16_LE |
  645. SNDRV_PCM_FMTBIT_S24_LE |
  646. SNDRV_PCM_FMTBIT_S24_3LE |
  647. SNDRV_PCM_FMTBIT_S32_LE,
  648. .channels_min = 1,
  649. .channels_max = 8,
  650. .rate_min = 8000,
  651. .rate_max = 384000,
  652. },
  653. .capture = {
  654. .stream_name = "USBAUDIO_HOSTLESS Capture",
  655. .aif_name = "USBAUDIO_UL_HL",
  656. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 |
  657. SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 |
  658. SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 |
  659. SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 |
  660. SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_176400 |
  661. SNDRV_PCM_RATE_192000 | SNDRV_PCM_RATE_352800 |
  662. SNDRV_PCM_RATE_384000,
  663. .formats = SNDRV_PCM_FMTBIT_S16_LE |
  664. SNDRV_PCM_FMTBIT_S24_LE |
  665. SNDRV_PCM_FMTBIT_S24_3LE |
  666. SNDRV_PCM_FMTBIT_S32_LE,
  667. .channels_min = 1,
  668. .channels_max = 8,
  669. .rate_min = 8000,
  670. .rate_max = 384000,
  671. },
  672. .ops = &msm_fe_dai_ops,
  673. .name = "USBAUDIO_HOSTLESS",
  674. .probe = fe_dai_probe,
  675. },
  676. {
  677. .playback = {
  678. .stream_name = "HDMI_HOSTLESS Playback",
  679. .aif_name = "HDMI_DL_HL",
  680. .rates = SNDRV_PCM_RATE_8000_48000,
  681. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  682. SNDRV_PCM_FMTBIT_S24_LE),
  683. .channels_min = 1,
  684. .channels_max = 2,
  685. .rate_min = 8000,
  686. .rate_max = 48000,
  687. },
  688. .ops = &msm_fe_dai_ops,
  689. .name = "HDMI_HOSTLESS",
  690. .probe = fe_dai_probe,
  691. },
  692. {
  693. .playback = {
  694. .stream_name = "AUXPCM_HOSTLESS Playback",
  695. .aif_name = "AUXPCM_DL_HL",
  696. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
  697. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  698. .channels_min = 1,
  699. .channels_max = 1,
  700. .rate_min = 8000,
  701. .rate_max = 16000,
  702. },
  703. .capture = {
  704. .stream_name = "AUXPCM_HOSTLESS Capture",
  705. .aif_name = "AUXPCM_UL_HL",
  706. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
  707. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  708. .channels_min = 1,
  709. .channels_max = 1,
  710. .rate_min = 8000,
  711. .rate_max = 16000,
  712. },
  713. .ops = &msm_fe_dai_ops,
  714. .name = "AUXPCM_HOSTLESS",
  715. .probe = fe_dai_probe,
  716. },
  717. {
  718. .playback = {
  719. .stream_name = "SEC_AUXPCM_HOSTLESS Playback",
  720. .aif_name = "SEC_AUXPCM_DL_HL",
  721. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
  722. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  723. .channels_min = 1,
  724. .channels_max = 1,
  725. .rate_min = 8000,
  726. .rate_max = 16000,
  727. },
  728. .ops = &msm_fe_dai_ops,
  729. .name = "SEC_AUXPCM_RX_HOSTLESS",
  730. .probe = fe_dai_probe,
  731. },
  732. {
  733. .capture = {
  734. .stream_name = "SEC_AUXPCM_HOSTLESS Capture",
  735. .aif_name = "SEC_AUXPCM_UL_HL",
  736. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
  737. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  738. .channels_min = 1,
  739. .channels_max = 1,
  740. .rate_min = 8000,
  741. .rate_max = 16000,
  742. },
  743. .ops = &msm_fe_dai_ops,
  744. .name = "SEC_AUXPCM_TX_HOSTLESS",
  745. .probe = fe_dai_probe,
  746. },
  747. {
  748. .playback = {
  749. .stream_name = "VOICE_STUB Playback",
  750. .aif_name = "VOICE_STUB_DL",
  751. .rates = SNDRV_PCM_RATE_8000_48000,
  752. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  753. .channels_min = 1,
  754. .channels_max = 2,
  755. .rate_min = 8000,
  756. .rate_max = 48000,
  757. },
  758. .capture = {
  759. .stream_name = "VOICE_STUB Capture",
  760. .aif_name = "VOICE_STUB_UL",
  761. .rates = SNDRV_PCM_RATE_8000_48000,
  762. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  763. .channels_min = 1,
  764. .channels_max = 2,
  765. .rate_min = 8000,
  766. .rate_max = 48000,
  767. },
  768. .ops = &msm_fe_dai_ops,
  769. .name = "VOICE_STUB",
  770. .probe = fe_dai_probe,
  771. },
  772. {
  773. .playback = {
  774. .stream_name = "MI2S_RX_HOSTLESS Playback",
  775. .aif_name = "MI2S_DL_HL",
  776. .rates = SNDRV_PCM_RATE_8000_48000,
  777. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  778. .channels_min = 1,
  779. .channels_max = 2,
  780. .rate_min = 8000,
  781. .rate_max = 48000,
  782. },
  783. .capture = {
  784. .stream_name = "MI2S_TX_HOSTLESS Capture",
  785. .aif_name = "MI2S_UL_HL",
  786. .rates = SNDRV_PCM_RATE_8000_48000,
  787. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  788. SNDRV_PCM_FMTBIT_S24_LE),
  789. .channels_min = 1,
  790. .channels_max = 2,
  791. .rate_min = 8000,
  792. .rate_max = 48000,
  793. },
  794. .ops = &msm_fe_dai_ops,
  795. .name = "MI2S_TX_HOSTLESS",
  796. .probe = fe_dai_probe,
  797. },
  798. {
  799. .playback = {
  800. .stream_name = "SEC_I2S_RX_HOSTLESS Playback",
  801. .aif_name = "SEC_I2S_DL_HL",
  802. .rates = SNDRV_PCM_RATE_8000_48000,
  803. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  804. .channels_min = 1,
  805. .channels_max = 2,
  806. .rate_min = 8000,
  807. .rate_max = 48000,
  808. },
  809. .ops = &msm_fe_dai_ops,
  810. .name = "SEC_I2S_RX_HOSTLESS",
  811. .probe = fe_dai_probe,
  812. },
  813. {
  814. .capture = {
  815. .stream_name = "Primary MI2S_TX Hostless Capture",
  816. .aif_name = "PRI_MI2S_UL_HL",
  817. .rates = SNDRV_PCM_RATE_8000_48000,
  818. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  819. SNDRV_PCM_FMTBIT_S24_LE),
  820. .channels_min = 1,
  821. .channels_max = 2,
  822. .rate_min = 8000,
  823. .rate_max = 48000,
  824. },
  825. .ops = &msm_fe_dai_ops,
  826. .name = "PRI_MI2S_TX_HOSTLESS",
  827. .probe = fe_dai_probe,
  828. },
  829. {
  830. .playback = {
  831. .stream_name = "Primary MI2S_RX Hostless Playback",
  832. .aif_name = "PRI_MI2S_DL_HL",
  833. .rates = SNDRV_PCM_RATE_8000_384000,
  834. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  835. SNDRV_PCM_FMTBIT_S24_LE),
  836. .channels_min = 1,
  837. .channels_max = 2,
  838. .rate_min = 8000,
  839. .rate_max = 384000,
  840. },
  841. .ops = &msm_fe_dai_ops,
  842. .name = "PRI_MI2S_RX_HOSTLESS",
  843. .probe = fe_dai_probe,
  844. },
  845. {
  846. .capture = {
  847. .stream_name = "Secondary MI2S_TX Hostless Capture",
  848. .aif_name = "SEC_MI2S_UL_HL",
  849. .rates = SNDRV_PCM_RATE_8000_48000,
  850. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  851. SNDRV_PCM_FMTBIT_S24_LE),
  852. .channels_min = 1,
  853. .channels_max = 2,
  854. .rate_min = 8000,
  855. .rate_max = 48000,
  856. },
  857. .ops = &msm_fe_dai_ops,
  858. .name = "SEC_MI2S_TX_HOSTLESS",
  859. .probe = fe_dai_probe,
  860. },
  861. {
  862. .playback = {
  863. .stream_name = "Secondary MI2S_RX Hostless Playback",
  864. .aif_name = "SEC_MI2S_DL_HL",
  865. .rates = SNDRV_PCM_RATE_8000_384000,
  866. .formats = SNDRV_PCM_FMTBIT_S16_LE |
  867. SNDRV_PCM_FMTBIT_S24_LE,
  868. .channels_min = 1,
  869. .channels_max = 2,
  870. .rate_min = 8000,
  871. .rate_max = 384000,
  872. },
  873. .ops = &msm_fe_dai_ops,
  874. .name = "SEC_MI2S_RX_HOSTLESS",
  875. .probe = fe_dai_probe,
  876. },
  877. {
  878. .capture = {
  879. .stream_name = "Tertiary MI2S_TX Hostless Capture",
  880. .aif_name = "TERT_MI2S_UL_HL",
  881. .rates = SNDRV_PCM_RATE_8000_48000,
  882. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  883. SNDRV_PCM_FMTBIT_S24_LE),
  884. .channels_min = 1,
  885. .channels_max = 2,
  886. .rate_min = 8000,
  887. .rate_max = 48000,
  888. },
  889. .ops = &msm_fe_dai_ops,
  890. .name = "TERT_MI2S_TX_HOSTLESS",
  891. .probe = fe_dai_probe,
  892. },
  893. {
  894. .playback = {
  895. .stream_name = "Tertiary MI2S_RX Hostless Playback",
  896. .aif_name = "TERT_MI2S_DL_HL",
  897. .rates = SNDRV_PCM_RATE_8000_384000,
  898. .formats = SNDRV_PCM_FMTBIT_S16_LE |
  899. SNDRV_PCM_FMTBIT_S24_LE,
  900. .channels_min = 1,
  901. .channels_max = 2,
  902. .rate_min = 8000,
  903. .rate_max = 384000,
  904. },
  905. .ops = &msm_fe_dai_ops,
  906. .name = "TERT_MI2S_RX_HOSTLESS",
  907. .probe = fe_dai_probe,
  908. },
  909. {
  910. .capture = {
  911. .stream_name = "Quaternary MI2S_TX Hostless Capture",
  912. .aif_name = "QUAT_MI2S_UL_HL",
  913. .rates = SNDRV_PCM_RATE_8000_48000,
  914. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  915. SNDRV_PCM_FMTBIT_S24_LE),
  916. .channels_min = 1,
  917. .channels_max = 2,
  918. .rate_min = 8000,
  919. .rate_max = 48000,
  920. },
  921. .ops = &msm_fe_dai_ops,
  922. .name = "QUAT_MI2S_TX_HOSTLESS",
  923. .probe = fe_dai_probe,
  924. },
  925. {
  926. .playback = {
  927. .stream_name = "Quaternary MI2S_RX Hostless Playback",
  928. .aif_name = "QUAT_MI2S_DL_HL",
  929. .rates = SNDRV_PCM_RATE_8000_384000,
  930. .formats = SNDRV_PCM_FMTBIT_S16_LE |
  931. SNDRV_PCM_FMTBIT_S24_LE,
  932. .channels_min = 1,
  933. .channels_max = 8,
  934. .rate_min = 8000,
  935. .rate_max = 384000,
  936. },
  937. .ops = &msm_fe_dai_ops,
  938. .name = "QUAT_MI2S_RX_HOSTLESS",
  939. .probe = fe_dai_probe,
  940. },
  941. {
  942. .playback = {
  943. .stream_name = "INT0 MI2S_RX Hostless Playback",
  944. .aif_name = "INT0_MI2S_DL_HL",
  945. .rates = SNDRV_PCM_RATE_8000_192000,
  946. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  947. SNDRV_PCM_FMTBIT_S24_LE),
  948. .channels_min = 1,
  949. .channels_max = 2,
  950. .rate_min = 8000,
  951. .rate_max = 192000,
  952. },
  953. .ops = &msm_fe_dai_ops,
  954. .name = "INT0_MI2S_RX_HOSTLESS",
  955. .probe = fe_dai_probe,
  956. },
  957. {
  958. .playback = {
  959. .stream_name = "INT4 MI2S_RX Hostless Playback",
  960. .aif_name = "INT4_MI2S_DL_HL",
  961. .rates = SNDRV_PCM_RATE_8000_192000,
  962. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  963. SNDRV_PCM_FMTBIT_S24_LE),
  964. .channels_min = 1,
  965. .channels_max = 4,
  966. .rate_min = 8000,
  967. .rate_max = 192000,
  968. },
  969. .ops = &msm_fe_dai_ops,
  970. .name = "INT4_MI2S_RX_HOSTLESS",
  971. .probe = fe_dai_probe,
  972. },
  973. {
  974. .capture = {
  975. .stream_name = "INT3 MI2S_TX Hostless Capture",
  976. .aif_name = "INT3_MI2S_UL_HL",
  977. .rates = SNDRV_PCM_RATE_8000_48000,
  978. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  979. SNDRV_PCM_FMTBIT_S24_LE),
  980. .channels_min = 1,
  981. .channels_max = 2,
  982. .rate_min = 8000,
  983. .rate_max = 48000,
  984. },
  985. .ops = &msm_fe_dai_ops,
  986. .name = "INT3_MI2S_TX_HOSTLESS",
  987. .probe = fe_dai_probe,
  988. },
  989. /* TDM Hostless */
  990. {
  991. .capture = {
  992. .stream_name = "Primary TDM0 Hostless Capture",
  993. .aif_name = "PRI_TDM_TX_0_UL_HL",
  994. .rates = SNDRV_PCM_RATE_8000_48000,
  995. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  996. SNDRV_PCM_FMTBIT_S24_LE),
  997. .channels_min = 1,
  998. .channels_max = 8,
  999. .rate_min = 8000,
  1000. .rate_max = 48000,
  1001. },
  1002. .ops = &msm_fe_dai_ops,
  1003. .name = "PRI_TDM_TX_0_HOSTLESS",
  1004. .probe = fe_dai_probe,
  1005. },
  1006. {
  1007. .playback = {
  1008. .stream_name = "Primary TDM0 Hostless Playback",
  1009. .aif_name = "PRI_TDM_RX_0_DL_HL",
  1010. .rates = SNDRV_PCM_RATE_8000_48000,
  1011. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1012. SNDRV_PCM_FMTBIT_S24_LE),
  1013. .channels_min = 1,
  1014. .channels_max = 8,
  1015. .rate_min = 8000,
  1016. .rate_max = 48000,
  1017. },
  1018. .ops = &msm_fe_dai_ops,
  1019. .name = "PRI_TDM_RX_0_HOSTLESS",
  1020. .probe = fe_dai_probe,
  1021. },
  1022. {
  1023. .capture = {
  1024. .stream_name = "Primary TDM1 Hostless Capture",
  1025. .aif_name = "PRI_TDM_TX_1_UL_HL",
  1026. .rates = SNDRV_PCM_RATE_8000_48000,
  1027. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1028. SNDRV_PCM_FMTBIT_S24_LE),
  1029. .channels_min = 1,
  1030. .channels_max = 8,
  1031. .rate_min = 8000,
  1032. .rate_max = 48000,
  1033. },
  1034. .ops = &msm_fe_dai_ops,
  1035. .name = "PRI_TDM_TX_1_HOSTLESS",
  1036. .probe = fe_dai_probe,
  1037. },
  1038. {
  1039. .playback = {
  1040. .stream_name = "Primary TDM1 Hostless Playback",
  1041. .aif_name = "PRI_TDM_RX_1_DL_HL",
  1042. .rates = SNDRV_PCM_RATE_8000_48000,
  1043. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1044. SNDRV_PCM_FMTBIT_S24_LE),
  1045. .channels_min = 1,
  1046. .channels_max = 8,
  1047. .rate_min = 8000,
  1048. .rate_max = 48000,
  1049. },
  1050. .ops = &msm_fe_dai_ops,
  1051. .name = "PRI_TDM_RX_1_HOSTLESS",
  1052. .probe = fe_dai_probe,
  1053. },
  1054. {
  1055. .capture = {
  1056. .stream_name = "Primary TDM2 Hostless Capture",
  1057. .aif_name = "PRI_TDM_TX_2_UL_HL",
  1058. .rates = SNDRV_PCM_RATE_8000_48000,
  1059. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1060. SNDRV_PCM_FMTBIT_S24_LE),
  1061. .channels_min = 1,
  1062. .channels_max = 8,
  1063. .rate_min = 8000,
  1064. .rate_max = 48000,
  1065. },
  1066. .ops = &msm_fe_dai_ops,
  1067. .name = "PRI_TDM_TX_2_HOSTLESS",
  1068. .probe = fe_dai_probe,
  1069. },
  1070. {
  1071. .playback = {
  1072. .stream_name = "Primary TDM2 Hostless Playback",
  1073. .aif_name = "PRI_TDM_RX_2_DL_HL",
  1074. .rates = SNDRV_PCM_RATE_8000_48000,
  1075. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1076. SNDRV_PCM_FMTBIT_S24_LE),
  1077. .channels_min = 1,
  1078. .channels_max = 8,
  1079. .rate_min = 8000,
  1080. .rate_max = 48000,
  1081. },
  1082. .ops = &msm_fe_dai_ops,
  1083. .name = "PRI_TDM_RX_2_HOSTLESS",
  1084. .probe = fe_dai_probe,
  1085. },
  1086. {
  1087. .capture = {
  1088. .stream_name = "Primary TDM3 Hostless Capture",
  1089. .aif_name = "PRI_TDM_TX_3_UL_HL",
  1090. .rates = SNDRV_PCM_RATE_8000_48000,
  1091. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1092. SNDRV_PCM_FMTBIT_S24_LE),
  1093. .channels_min = 1,
  1094. .channels_max = 8,
  1095. .rate_min = 8000,
  1096. .rate_max = 48000,
  1097. },
  1098. .ops = &msm_fe_dai_ops,
  1099. .name = "PRI_TDM_TX_3_HOSTLESS",
  1100. .probe = fe_dai_probe,
  1101. },
  1102. {
  1103. .playback = {
  1104. .stream_name = "Primary TDM3 Hostless Playback",
  1105. .aif_name = "PRI_TDM_RX_3_DL_HL",
  1106. .rates = SNDRV_PCM_RATE_8000_48000,
  1107. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1108. SNDRV_PCM_FMTBIT_S24_LE),
  1109. .channels_min = 1,
  1110. .channels_max = 8,
  1111. .rate_min = 8000,
  1112. .rate_max = 48000,
  1113. },
  1114. .ops = &msm_fe_dai_ops,
  1115. .name = "PRI_TDM_RX_3_HOSTLESS",
  1116. .probe = fe_dai_probe,
  1117. },
  1118. {
  1119. .capture = {
  1120. .stream_name = "Primary TDM4 Hostless Capture",
  1121. .aif_name = "PRI_TDM_TX_4_UL_HL",
  1122. .rates = SNDRV_PCM_RATE_8000_48000,
  1123. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1124. SNDRV_PCM_FMTBIT_S24_LE),
  1125. .channels_min = 1,
  1126. .channels_max = 8,
  1127. .rate_min = 8000,
  1128. .rate_max = 48000,
  1129. },
  1130. .ops = &msm_fe_dai_ops,
  1131. .name = "PRI_TDM_TX_4_HOSTLESS",
  1132. .probe = fe_dai_probe,
  1133. },
  1134. {
  1135. .playback = {
  1136. .stream_name = "Primary TDM4 Hostless Playback",
  1137. .aif_name = "PRI_TDM_RX_4_DL_HL",
  1138. .rates = SNDRV_PCM_RATE_8000_48000,
  1139. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1140. SNDRV_PCM_FMTBIT_S24_LE),
  1141. .channels_min = 1,
  1142. .channels_max = 8,
  1143. .rate_min = 8000,
  1144. .rate_max = 48000,
  1145. },
  1146. .ops = &msm_fe_dai_ops,
  1147. .name = "PRI_TDM_RX_4_HOSTLESS",
  1148. .probe = fe_dai_probe,
  1149. },
  1150. {
  1151. .capture = {
  1152. .stream_name = "Primary TDM5 Hostless Capture",
  1153. .aif_name = "PRI_TDM_TX_5_UL_HL",
  1154. .rates = SNDRV_PCM_RATE_8000_48000,
  1155. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1156. SNDRV_PCM_FMTBIT_S24_LE),
  1157. .channels_min = 1,
  1158. .channels_max = 8,
  1159. .rate_min = 8000,
  1160. .rate_max = 48000,
  1161. },
  1162. .ops = &msm_fe_dai_ops,
  1163. .name = "PRI_TDM_TX_5_HOSTLESS",
  1164. .probe = fe_dai_probe,
  1165. },
  1166. {
  1167. .playback = {
  1168. .stream_name = "Primary TDM5 Hostless Playback",
  1169. .aif_name = "PRI_TDM_RX_5_DL_HL",
  1170. .rates = SNDRV_PCM_RATE_8000_48000,
  1171. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1172. SNDRV_PCM_FMTBIT_S24_LE),
  1173. .channels_min = 1,
  1174. .channels_max = 8,
  1175. .rate_min = 8000,
  1176. .rate_max = 48000,
  1177. },
  1178. .ops = &msm_fe_dai_ops,
  1179. .name = "PRI_TDM_RX_5_HOSTLESS",
  1180. .probe = fe_dai_probe,
  1181. },
  1182. {
  1183. .capture = {
  1184. .stream_name = "Primary TDM6 Hostless Capture",
  1185. .aif_name = "PRI_TDM_TX_6_UL_HL",
  1186. .rates = SNDRV_PCM_RATE_8000_48000,
  1187. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1188. SNDRV_PCM_FMTBIT_S24_LE),
  1189. .channels_min = 1,
  1190. .channels_max = 8,
  1191. .rate_min = 8000,
  1192. .rate_max = 48000,
  1193. },
  1194. .ops = &msm_fe_dai_ops,
  1195. .name = "PRI_TDM_TX_6_HOSTLESS",
  1196. .probe = fe_dai_probe,
  1197. },
  1198. {
  1199. .playback = {
  1200. .stream_name = "Primary TDM6 Hostless Playback",
  1201. .aif_name = "PRI_TDM_RX_6_DL_HL",
  1202. .rates = SNDRV_PCM_RATE_8000_48000,
  1203. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1204. SNDRV_PCM_FMTBIT_S24_LE),
  1205. .channels_min = 1,
  1206. .channels_max = 8,
  1207. .rate_min = 8000,
  1208. .rate_max = 48000,
  1209. },
  1210. .ops = &msm_fe_dai_ops,
  1211. .name = "PRI_TDM_RX_6_HOSTLESS",
  1212. .probe = fe_dai_probe,
  1213. },
  1214. {
  1215. .capture = {
  1216. .stream_name = "Primary TDM7 Hostless Capture",
  1217. .aif_name = "PRI_TDM_TX_7_UL_HL",
  1218. .rates = SNDRV_PCM_RATE_8000_48000,
  1219. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1220. SNDRV_PCM_FMTBIT_S24_LE),
  1221. .channels_min = 1,
  1222. .channels_max = 8,
  1223. .rate_min = 8000,
  1224. .rate_max = 48000,
  1225. },
  1226. .ops = &msm_fe_dai_ops,
  1227. .name = "PRI_TDM_TX_7_HOSTLESS",
  1228. .probe = fe_dai_probe,
  1229. },
  1230. {
  1231. .playback = {
  1232. .stream_name = "Primary TDM7 Hostless Playback",
  1233. .aif_name = "PRI_TDM_RX_7_DL_HL",
  1234. .rates = SNDRV_PCM_RATE_8000_48000,
  1235. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1236. SNDRV_PCM_FMTBIT_S24_LE),
  1237. .channels_min = 1,
  1238. .channels_max = 8,
  1239. .rate_min = 8000,
  1240. .rate_max = 48000,
  1241. },
  1242. .ops = &msm_fe_dai_ops,
  1243. .name = "PRI_TDM_RX_7_HOSTLESS",
  1244. .probe = fe_dai_probe,
  1245. },
  1246. {
  1247. .capture = {
  1248. .stream_name = "Secondary TDM0 Hostless Capture",
  1249. .aif_name = "SEC_TDM_TX_0_UL_HL",
  1250. .rates = SNDRV_PCM_RATE_8000_48000,
  1251. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1252. SNDRV_PCM_FMTBIT_S24_LE),
  1253. .channels_min = 1,
  1254. .channels_max = 8,
  1255. .rate_min = 8000,
  1256. .rate_max = 48000,
  1257. },
  1258. .ops = &msm_fe_dai_ops,
  1259. .name = "SEC_TDM_TX_0_HOSTLESS",
  1260. .probe = fe_dai_probe,
  1261. },
  1262. {
  1263. .playback = {
  1264. .stream_name = "Secondary TDM0 Hostless Playback",
  1265. .aif_name = "SEC_TDM_RX_0_DL_HL",
  1266. .rates = SNDRV_PCM_RATE_8000_48000,
  1267. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1268. SNDRV_PCM_FMTBIT_S24_LE),
  1269. .channels_min = 1,
  1270. .channels_max = 8,
  1271. .rate_min = 8000,
  1272. .rate_max = 48000,
  1273. },
  1274. .ops = &msm_fe_dai_ops,
  1275. .name = "SEC_TDM_RX_0_HOSTLESS",
  1276. .probe = fe_dai_probe,
  1277. },
  1278. {
  1279. .capture = {
  1280. .stream_name = "Secondary TDM1 Hostless Capture",
  1281. .aif_name = "SEC_TDM_TX_1_UL_HL",
  1282. .rates = SNDRV_PCM_RATE_8000_48000,
  1283. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1284. SNDRV_PCM_FMTBIT_S24_LE),
  1285. .channels_min = 1,
  1286. .channels_max = 8,
  1287. .rate_min = 8000,
  1288. .rate_max = 48000,
  1289. },
  1290. .ops = &msm_fe_dai_ops,
  1291. .name = "SEC_TDM_TX_1_HOSTLESS",
  1292. .probe = fe_dai_probe,
  1293. },
  1294. {
  1295. .playback = {
  1296. .stream_name = "Secondary TDM1 Hostless Playback",
  1297. .aif_name = "SEC_TDM_RX_1_DL_HL",
  1298. .rates = SNDRV_PCM_RATE_8000_48000,
  1299. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1300. SNDRV_PCM_FMTBIT_S24_LE),
  1301. .channels_min = 1,
  1302. .channels_max = 8,
  1303. .rate_min = 8000,
  1304. .rate_max = 48000,
  1305. },
  1306. .ops = &msm_fe_dai_ops,
  1307. .name = "SEC_TDM_RX_1_HOSTLESS",
  1308. .probe = fe_dai_probe,
  1309. },
  1310. {
  1311. .capture = {
  1312. .stream_name = "Secondary TDM2 Hostless Capture",
  1313. .aif_name = "SEC_TDM_TX_2_UL_HL",
  1314. .rates = SNDRV_PCM_RATE_8000_48000,
  1315. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1316. SNDRV_PCM_FMTBIT_S24_LE),
  1317. .channels_min = 1,
  1318. .channels_max = 8,
  1319. .rate_min = 8000,
  1320. .rate_max = 48000,
  1321. },
  1322. .ops = &msm_fe_dai_ops,
  1323. .name = "SEC_TDM_TX_2_HOSTLESS",
  1324. .probe = fe_dai_probe,
  1325. },
  1326. {
  1327. .playback = {
  1328. .stream_name = "Secondary TDM2 Hostless Playback",
  1329. .aif_name = "SEC_TDM_RX_2_DL_HL",
  1330. .rates = SNDRV_PCM_RATE_8000_48000,
  1331. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1332. SNDRV_PCM_FMTBIT_S24_LE),
  1333. .channels_min = 1,
  1334. .channels_max = 8,
  1335. .rate_min = 8000,
  1336. .rate_max = 48000,
  1337. },
  1338. .ops = &msm_fe_dai_ops,
  1339. .name = "SEC_TDM_RX_2_HOSTLESS",
  1340. .probe = fe_dai_probe,
  1341. },
  1342. {
  1343. .capture = {
  1344. .stream_name = "Secondary TDM3 Hostless Capture",
  1345. .aif_name = "SEC_TDM_TX_3_UL_HL",
  1346. .rates = SNDRV_PCM_RATE_8000_48000,
  1347. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1348. SNDRV_PCM_FMTBIT_S24_LE),
  1349. .channels_min = 1,
  1350. .channels_max = 8,
  1351. .rate_min = 8000,
  1352. .rate_max = 48000,
  1353. },
  1354. .ops = &msm_fe_dai_ops,
  1355. .name = "SEC_TDM_TX_3_HOSTLESS",
  1356. .probe = fe_dai_probe,
  1357. },
  1358. {
  1359. .playback = {
  1360. .stream_name = "Secondary TDM3 Hostless Playback",
  1361. .aif_name = "SEC_TDM_RX_3_DL_HL",
  1362. .rates = SNDRV_PCM_RATE_8000_48000,
  1363. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1364. SNDRV_PCM_FMTBIT_S24_LE),
  1365. .channels_min = 1,
  1366. .channels_max = 8,
  1367. .rate_min = 8000,
  1368. .rate_max = 48000,
  1369. },
  1370. .ops = &msm_fe_dai_ops,
  1371. .name = "SEC_TDM_RX_3_HOSTLESS",
  1372. .probe = fe_dai_probe,
  1373. },
  1374. {
  1375. .capture = {
  1376. .stream_name = "Secondary TDM4 Hostless Capture",
  1377. .aif_name = "SEC_TDM_TX_4_UL_HL",
  1378. .rates = SNDRV_PCM_RATE_8000_48000,
  1379. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1380. SNDRV_PCM_FMTBIT_S24_LE),
  1381. .channels_min = 1,
  1382. .channels_max = 8,
  1383. .rate_min = 8000,
  1384. .rate_max = 48000,
  1385. },
  1386. .ops = &msm_fe_dai_ops,
  1387. .name = "SEC_TDM_TX_4_HOSTLESS",
  1388. .probe = fe_dai_probe,
  1389. },
  1390. {
  1391. .playback = {
  1392. .stream_name = "Secondary TDM4 Hostless Playback",
  1393. .aif_name = "SEC_TDM_RX_4_DL_HL",
  1394. .rates = SNDRV_PCM_RATE_8000_48000,
  1395. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1396. SNDRV_PCM_FMTBIT_S24_LE),
  1397. .channels_min = 1,
  1398. .channels_max = 8,
  1399. .rate_min = 8000,
  1400. .rate_max = 48000,
  1401. },
  1402. .ops = &msm_fe_dai_ops,
  1403. .name = "SEC_TDM_RX_4_HOSTLESS",
  1404. .probe = fe_dai_probe,
  1405. },
  1406. {
  1407. .capture = {
  1408. .stream_name = "Secondary TDM5 Hostless Capture",
  1409. .aif_name = "SEC_TDM_TX_5_UL_HL",
  1410. .rates = SNDRV_PCM_RATE_8000_48000,
  1411. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1412. SNDRV_PCM_FMTBIT_S24_LE),
  1413. .channels_min = 1,
  1414. .channels_max = 8,
  1415. .rate_min = 8000,
  1416. .rate_max = 48000,
  1417. },
  1418. .ops = &msm_fe_dai_ops,
  1419. .name = "SEC_TDM_TX_5_HOSTLESS",
  1420. .probe = fe_dai_probe,
  1421. },
  1422. {
  1423. .playback = {
  1424. .stream_name = "Secondary TDM5 Hostless Playback",
  1425. .aif_name = "SEC_TDM_RX_5_DL_HL",
  1426. .rates = SNDRV_PCM_RATE_8000_48000,
  1427. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1428. SNDRV_PCM_FMTBIT_S24_LE),
  1429. .channels_min = 1,
  1430. .channels_max = 8,
  1431. .rate_min = 8000,
  1432. .rate_max = 48000,
  1433. },
  1434. .ops = &msm_fe_dai_ops,
  1435. .name = "SEC_TDM_RX_5_HOSTLESS",
  1436. .probe = fe_dai_probe,
  1437. },
  1438. {
  1439. .capture = {
  1440. .stream_name = "Secondary TDM6 Hostless Capture",
  1441. .aif_name = "SEC_TDM_TX_6_UL_HL",
  1442. .rates = SNDRV_PCM_RATE_8000_48000,
  1443. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1444. SNDRV_PCM_FMTBIT_S24_LE),
  1445. .channels_min = 1,
  1446. .channels_max = 8,
  1447. .rate_min = 8000,
  1448. .rate_max = 48000,
  1449. },
  1450. .ops = &msm_fe_dai_ops,
  1451. .name = "SEC_TDM_TX_6_HOSTLESS",
  1452. .probe = fe_dai_probe,
  1453. },
  1454. {
  1455. .playback = {
  1456. .stream_name = "Secondary TDM6 Hostless Playback",
  1457. .aif_name = "SEC_TDM_RX_6_DL_HL",
  1458. .rates = SNDRV_PCM_RATE_8000_48000,
  1459. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1460. SNDRV_PCM_FMTBIT_S24_LE),
  1461. .channels_min = 1,
  1462. .channels_max = 8,
  1463. .rate_min = 8000,
  1464. .rate_max = 48000,
  1465. },
  1466. .ops = &msm_fe_dai_ops,
  1467. .name = "SEC_TDM_RX_6_HOSTLESS",
  1468. .probe = fe_dai_probe,
  1469. },
  1470. {
  1471. .capture = {
  1472. .stream_name = "Secondary TDM7 Hostless Capture",
  1473. .aif_name = "SEC_TDM_TX_7_UL_HL",
  1474. .rates = SNDRV_PCM_RATE_8000_48000,
  1475. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1476. SNDRV_PCM_FMTBIT_S24_LE),
  1477. .channels_min = 1,
  1478. .channels_max = 8,
  1479. .rate_min = 8000,
  1480. .rate_max = 48000,
  1481. },
  1482. .ops = &msm_fe_dai_ops,
  1483. .name = "SEC_TDM_TX_7_HOSTLESS",
  1484. .probe = fe_dai_probe,
  1485. },
  1486. {
  1487. .playback = {
  1488. .stream_name = "Secondary TDM7 Hostless Playback",
  1489. .aif_name = "SEC_TDM_RX_7_DL_HL",
  1490. .rates = SNDRV_PCM_RATE_8000_48000,
  1491. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1492. SNDRV_PCM_FMTBIT_S24_LE),
  1493. .channels_min = 1,
  1494. .channels_max = 8,
  1495. .rate_min = 8000,
  1496. .rate_max = 48000,
  1497. },
  1498. .ops = &msm_fe_dai_ops,
  1499. .name = "SEC_TDM_RX_7_HOSTLESS",
  1500. .probe = fe_dai_probe,
  1501. },
  1502. {
  1503. .capture = {
  1504. .stream_name = "Tertiary TDM0 Hostless Capture",
  1505. .aif_name = "TERT_TDM_TX_0_UL_HL",
  1506. .rates = SNDRV_PCM_RATE_8000_48000,
  1507. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1508. SNDRV_PCM_FMTBIT_S24_LE),
  1509. .channels_min = 1,
  1510. .channels_max = 8,
  1511. .rate_min = 8000,
  1512. .rate_max = 48000,
  1513. },
  1514. .ops = &msm_fe_dai_ops,
  1515. .name = "TERT_TDM_TX_0_HOSTLESS",
  1516. .probe = fe_dai_probe,
  1517. },
  1518. {
  1519. .playback = {
  1520. .stream_name = "Tertiary TDM0 Hostless Playback",
  1521. .aif_name = "TERT_TDM_RX_0_DL_HL",
  1522. .rates = SNDRV_PCM_RATE_8000_48000,
  1523. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1524. SNDRV_PCM_FMTBIT_S24_LE),
  1525. .channels_min = 1,
  1526. .channels_max = 8,
  1527. .rate_min = 8000,
  1528. .rate_max = 48000,
  1529. },
  1530. .ops = &msm_fe_dai_ops,
  1531. .name = "TERT_TDM_RX_0_HOSTLESS",
  1532. .probe = fe_dai_probe,
  1533. },
  1534. {
  1535. .capture = {
  1536. .stream_name = "Tertiary TDM1 Hostless Capture",
  1537. .aif_name = "TERT_TDM_TX_1_UL_HL",
  1538. .rates = SNDRV_PCM_RATE_8000_48000,
  1539. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1540. SNDRV_PCM_FMTBIT_S24_LE),
  1541. .channels_min = 1,
  1542. .channels_max = 8,
  1543. .rate_min = 8000,
  1544. .rate_max = 48000,
  1545. },
  1546. .ops = &msm_fe_dai_ops,
  1547. .name = "TERT_TDM_TX_1_HOSTLESS",
  1548. .probe = fe_dai_probe,
  1549. },
  1550. {
  1551. .playback = {
  1552. .stream_name = "Tertiary TDM1 Hostless Playback",
  1553. .aif_name = "TERT_TDM_RX_1_DL_HL",
  1554. .rates = SNDRV_PCM_RATE_8000_48000,
  1555. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1556. SNDRV_PCM_FMTBIT_S24_LE),
  1557. .channels_min = 1,
  1558. .channels_max = 8,
  1559. .rate_min = 8000,
  1560. .rate_max = 48000,
  1561. },
  1562. .ops = &msm_fe_dai_ops,
  1563. .name = "TERT_TDM_RX_1_HOSTLESS",
  1564. .probe = fe_dai_probe,
  1565. },
  1566. {
  1567. .capture = {
  1568. .stream_name = "Tertiary TDM2 Hostless Capture",
  1569. .aif_name = "TERT_TDM_TX_2_UL_HL",
  1570. .rates = SNDRV_PCM_RATE_8000_48000,
  1571. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1572. SNDRV_PCM_FMTBIT_S24_LE),
  1573. .channels_min = 1,
  1574. .channels_max = 8,
  1575. .rate_min = 8000,
  1576. .rate_max = 48000,
  1577. },
  1578. .ops = &msm_fe_dai_ops,
  1579. .name = "TERT_TDM_TX_2_HOSTLESS",
  1580. .probe = fe_dai_probe,
  1581. },
  1582. {
  1583. .playback = {
  1584. .stream_name = "Tertiary TDM2 Hostless Playback",
  1585. .aif_name = "TERT_TDM_RX_2_DL_HL",
  1586. .rates = SNDRV_PCM_RATE_8000_48000,
  1587. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1588. SNDRV_PCM_FMTBIT_S24_LE),
  1589. .channels_min = 1,
  1590. .channels_max = 8,
  1591. .rate_min = 8000,
  1592. .rate_max = 48000,
  1593. },
  1594. .ops = &msm_fe_dai_ops,
  1595. .name = "TERT_TDM_RX_2_HOSTLESS",
  1596. .probe = fe_dai_probe,
  1597. },
  1598. {
  1599. .capture = {
  1600. .stream_name = "Tertiary TDM3 Hostless Capture",
  1601. .aif_name = "TERT_TDM_TX_3_UL_HL",
  1602. .rates = SNDRV_PCM_RATE_8000_48000,
  1603. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1604. SNDRV_PCM_FMTBIT_S24_LE),
  1605. .channels_min = 1,
  1606. .channels_max = 8,
  1607. .rate_min = 8000,
  1608. .rate_max = 48000,
  1609. },
  1610. .ops = &msm_fe_dai_ops,
  1611. .name = "TERT_TDM_TX_3_HOSTLESS",
  1612. .probe = fe_dai_probe,
  1613. },
  1614. {
  1615. .playback = {
  1616. .stream_name = "Tertiary TDM3 Hostless Playback",
  1617. .aif_name = "TERT_TDM_RX_3_DL_HL",
  1618. .rates = SNDRV_PCM_RATE_8000_48000,
  1619. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1620. SNDRV_PCM_FMTBIT_S24_LE),
  1621. .channels_min = 1,
  1622. .channels_max = 8,
  1623. .rate_min = 8000,
  1624. .rate_max = 48000,
  1625. },
  1626. .ops = &msm_fe_dai_ops,
  1627. .name = "TERT_TDM_RX_3_HOSTLESS",
  1628. .probe = fe_dai_probe,
  1629. },
  1630. {
  1631. .capture = {
  1632. .stream_name = "Tertiary TDM4 Hostless Capture",
  1633. .aif_name = "TERT_TDM_TX_4_UL_HL",
  1634. .rates = SNDRV_PCM_RATE_8000_48000,
  1635. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1636. SNDRV_PCM_FMTBIT_S24_LE),
  1637. .channels_min = 1,
  1638. .channels_max = 8,
  1639. .rate_min = 8000,
  1640. .rate_max = 48000,
  1641. },
  1642. .ops = &msm_fe_dai_ops,
  1643. .name = "TERT_TDM_TX_4_HOSTLESS",
  1644. .probe = fe_dai_probe,
  1645. },
  1646. {
  1647. .playback = {
  1648. .stream_name = "Tertiary TDM4 Hostless Playback",
  1649. .aif_name = "TERT_TDM_RX_4_DL_HL",
  1650. .rates = SNDRV_PCM_RATE_8000_48000,
  1651. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1652. SNDRV_PCM_FMTBIT_S24_LE),
  1653. .channels_min = 1,
  1654. .channels_max = 8,
  1655. .rate_min = 8000,
  1656. .rate_max = 48000,
  1657. },
  1658. .ops = &msm_fe_dai_ops,
  1659. .name = "TERT_TDM_RX_4_HOSTLESS",
  1660. .probe = fe_dai_probe,
  1661. },
  1662. {
  1663. .capture = {
  1664. .stream_name = "Tertiary TDM5 Hostless Capture",
  1665. .aif_name = "TERT_TDM_TX_5_UL_HL",
  1666. .rates = SNDRV_PCM_RATE_8000_48000,
  1667. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1668. SNDRV_PCM_FMTBIT_S24_LE),
  1669. .channels_min = 1,
  1670. .channels_max = 8,
  1671. .rate_min = 8000,
  1672. .rate_max = 48000,
  1673. },
  1674. .ops = &msm_fe_dai_ops,
  1675. .name = "TERT_TDM_TX_5_HOSTLESS",
  1676. .probe = fe_dai_probe,
  1677. },
  1678. {
  1679. .playback = {
  1680. .stream_name = "Tertiary TDM5 Hostless Playback",
  1681. .aif_name = "TERT_TDM_RX_5_DL_HL",
  1682. .rates = SNDRV_PCM_RATE_8000_48000,
  1683. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1684. SNDRV_PCM_FMTBIT_S24_LE),
  1685. .channels_min = 1,
  1686. .channels_max = 8,
  1687. .rate_min = 8000,
  1688. .rate_max = 48000,
  1689. },
  1690. .ops = &msm_fe_dai_ops,
  1691. .name = "TERT_TDM_RX_5_HOSTLESS",
  1692. .probe = fe_dai_probe,
  1693. },
  1694. {
  1695. .capture = {
  1696. .stream_name = "Tertiary TDM6 Hostless Capture",
  1697. .aif_name = "TERT_TDM_TX_6_UL_HL",
  1698. .rates = SNDRV_PCM_RATE_8000_48000,
  1699. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1700. SNDRV_PCM_FMTBIT_S24_LE),
  1701. .channels_min = 1,
  1702. .channels_max = 8,
  1703. .rate_min = 8000,
  1704. .rate_max = 48000,
  1705. },
  1706. .ops = &msm_fe_dai_ops,
  1707. .name = "TERT_TDM_TX_6_HOSTLESS",
  1708. .probe = fe_dai_probe,
  1709. },
  1710. {
  1711. .playback = {
  1712. .stream_name = "Tertiary TDM6 Hostless Playback",
  1713. .aif_name = "TERT_TDM_RX_6_DL_HL",
  1714. .rates = SNDRV_PCM_RATE_8000_48000,
  1715. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1716. SNDRV_PCM_FMTBIT_S24_LE),
  1717. .channels_min = 1,
  1718. .channels_max = 8,
  1719. .rate_min = 8000,
  1720. .rate_max = 48000,
  1721. },
  1722. .ops = &msm_fe_dai_ops,
  1723. .name = "TERT_TDM_RX_6_HOSTLESS",
  1724. .probe = fe_dai_probe,
  1725. },
  1726. {
  1727. .capture = {
  1728. .stream_name = "Tertiary TDM7 Hostless Capture",
  1729. .aif_name = "TERT_TDM_TX_7_UL_HL",
  1730. .rates = SNDRV_PCM_RATE_8000_48000,
  1731. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1732. SNDRV_PCM_FMTBIT_S24_LE),
  1733. .channels_min = 1,
  1734. .channels_max = 8,
  1735. .rate_min = 8000,
  1736. .rate_max = 48000,
  1737. },
  1738. .ops = &msm_fe_dai_ops,
  1739. .name = "TERT_TDM_TX_7_HOSTLESS",
  1740. .probe = fe_dai_probe,
  1741. },
  1742. {
  1743. .playback = {
  1744. .stream_name = "Tertiary TDM7 Hostless Playback",
  1745. .aif_name = "TERT_TDM_RX_7_DL_HL",
  1746. .rates = SNDRV_PCM_RATE_8000_48000,
  1747. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1748. SNDRV_PCM_FMTBIT_S24_LE),
  1749. .channels_min = 1,
  1750. .channels_max = 8,
  1751. .rate_min = 8000,
  1752. .rate_max = 48000,
  1753. },
  1754. .ops = &msm_fe_dai_ops,
  1755. .name = "TERT_TDM_RX_7_HOSTLESS",
  1756. .probe = fe_dai_probe,
  1757. },
  1758. {
  1759. .capture = {
  1760. .stream_name = "Quaternary TDM0 Hostless Capture",
  1761. .aif_name = "QUAT_TDM_TX_0_UL_HL",
  1762. .rates = SNDRV_PCM_RATE_8000_48000,
  1763. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1764. SNDRV_PCM_FMTBIT_S24_LE),
  1765. .channels_min = 1,
  1766. .channels_max = 8,
  1767. .rate_min = 8000,
  1768. .rate_max = 48000,
  1769. },
  1770. .ops = &msm_fe_dai_ops,
  1771. .name = "QUAT_TDM_TX_0_HOSTLESS",
  1772. .probe = fe_dai_probe,
  1773. },
  1774. {
  1775. .playback = {
  1776. .stream_name = "Quaternary TDM0 Hostless Playback",
  1777. .aif_name = "QUAT_TDM_RX_0_DL_HL",
  1778. .rates = SNDRV_PCM_RATE_8000_48000,
  1779. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1780. SNDRV_PCM_FMTBIT_S24_LE),
  1781. .channels_min = 1,
  1782. .channels_max = 8,
  1783. .rate_min = 8000,
  1784. .rate_max = 48000,
  1785. },
  1786. .ops = &msm_fe_dai_ops,
  1787. .name = "QUAT_TDM_RX_0_HOSTLESS",
  1788. .probe = fe_dai_probe,
  1789. },
  1790. {
  1791. .capture = {
  1792. .stream_name = "Quaternary TDM1 Hostless Capture",
  1793. .aif_name = "QUAT_TDM_TX_1_UL_HL",
  1794. .rates = SNDRV_PCM_RATE_8000_48000,
  1795. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1796. SNDRV_PCM_FMTBIT_S24_LE),
  1797. .channels_min = 1,
  1798. .channels_max = 8,
  1799. .rate_min = 8000,
  1800. .rate_max = 48000,
  1801. },
  1802. .ops = &msm_fe_dai_ops,
  1803. .name = "QUAT_TDM_TX_1_HOSTLESS",
  1804. .probe = fe_dai_probe,
  1805. },
  1806. {
  1807. .playback = {
  1808. .stream_name = "Quaternary TDM1 Hostless Playback",
  1809. .aif_name = "QUAT_TDM_RX_1_DL_HL",
  1810. .rates = SNDRV_PCM_RATE_8000_48000,
  1811. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1812. SNDRV_PCM_FMTBIT_S24_LE),
  1813. .channels_min = 1,
  1814. .channels_max = 8,
  1815. .rate_min = 8000,
  1816. .rate_max = 48000,
  1817. },
  1818. .ops = &msm_fe_dai_ops,
  1819. .name = "QUAT_TDM_RX_1_HOSTLESS",
  1820. .probe = fe_dai_probe,
  1821. },
  1822. {
  1823. .capture = {
  1824. .stream_name = "Quaternary TDM2 Hostless Capture",
  1825. .aif_name = "QUAT_TDM_TX_2_UL_HL",
  1826. .rates = SNDRV_PCM_RATE_8000_48000,
  1827. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1828. SNDRV_PCM_FMTBIT_S24_LE),
  1829. .channels_min = 1,
  1830. .channels_max = 8,
  1831. .rate_min = 8000,
  1832. .rate_max = 48000,
  1833. },
  1834. .ops = &msm_fe_dai_ops,
  1835. .name = "QUAT_TDM_TX_2_HOSTLESS",
  1836. .probe = fe_dai_probe,
  1837. },
  1838. {
  1839. .playback = {
  1840. .stream_name = "Quaternary TDM2 Hostless Playback",
  1841. .aif_name = "QUAT_TDM_RX_2_DL_HL",
  1842. .rates = SNDRV_PCM_RATE_8000_48000,
  1843. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1844. SNDRV_PCM_FMTBIT_S24_LE),
  1845. .channels_min = 1,
  1846. .channels_max = 8,
  1847. .rate_min = 8000,
  1848. .rate_max = 48000,
  1849. },
  1850. .ops = &msm_fe_dai_ops,
  1851. .name = "QUAT_TDM_RX_2_HOSTLESS",
  1852. .probe = fe_dai_probe,
  1853. },
  1854. {
  1855. .capture = {
  1856. .stream_name = "Quaternary TDM3 Hostless Capture",
  1857. .aif_name = "QUAT_TDM_TX_3_UL_HL",
  1858. .rates = SNDRV_PCM_RATE_8000_48000,
  1859. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1860. SNDRV_PCM_FMTBIT_S24_LE),
  1861. .channels_min = 1,
  1862. .channels_max = 8,
  1863. .rate_min = 8000,
  1864. .rate_max = 48000,
  1865. },
  1866. .ops = &msm_fe_dai_ops,
  1867. .name = "QUAT_TDM_TX_3_HOSTLESS",
  1868. .probe = fe_dai_probe,
  1869. },
  1870. {
  1871. .playback = {
  1872. .stream_name = "Quaternary TDM3 Hostless Playback",
  1873. .aif_name = "QUAT_TDM_RX_3_DL_HL",
  1874. .rates = SNDRV_PCM_RATE_8000_48000,
  1875. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1876. SNDRV_PCM_FMTBIT_S24_LE),
  1877. .channels_min = 1,
  1878. .channels_max = 8,
  1879. .rate_min = 8000,
  1880. .rate_max = 48000,
  1881. },
  1882. .ops = &msm_fe_dai_ops,
  1883. .name = "QUAT_TDM_RX_3_HOSTLESS",
  1884. .probe = fe_dai_probe,
  1885. },
  1886. {
  1887. .capture = {
  1888. .stream_name = "Quaternary TDM4 Hostless Capture",
  1889. .aif_name = "QUAT_TDM_TX_4_UL_HL",
  1890. .rates = SNDRV_PCM_RATE_8000_48000,
  1891. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1892. SNDRV_PCM_FMTBIT_S24_LE),
  1893. .channels_min = 1,
  1894. .channels_max = 8,
  1895. .rate_min = 8000,
  1896. .rate_max = 48000,
  1897. },
  1898. .ops = &msm_fe_dai_ops,
  1899. .name = "QUAT_TDM_TX_4_HOSTLESS",
  1900. .probe = fe_dai_probe,
  1901. },
  1902. {
  1903. .playback = {
  1904. .stream_name = "Quaternary TDM4 Hostless Playback",
  1905. .aif_name = "QUAT_TDM_RX_4_DL_HL",
  1906. .rates = SNDRV_PCM_RATE_8000_48000,
  1907. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1908. SNDRV_PCM_FMTBIT_S24_LE),
  1909. .channels_min = 1,
  1910. .channels_max = 8,
  1911. .rate_min = 8000,
  1912. .rate_max = 48000,
  1913. },
  1914. .ops = &msm_fe_dai_ops,
  1915. .name = "QUAT_TDM_RX_4_HOSTLESS",
  1916. .probe = fe_dai_probe,
  1917. },
  1918. {
  1919. .capture = {
  1920. .stream_name = "Quaternary TDM5 Hostless Capture",
  1921. .aif_name = "QUAT_TDM_TX_5_UL_HL",
  1922. .rates = SNDRV_PCM_RATE_8000_48000,
  1923. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1924. SNDRV_PCM_FMTBIT_S24_LE),
  1925. .channels_min = 1,
  1926. .channels_max = 8,
  1927. .rate_min = 8000,
  1928. .rate_max = 48000,
  1929. },
  1930. .ops = &msm_fe_dai_ops,
  1931. .name = "QUAT_TDM_TX_5_HOSTLESS",
  1932. .probe = fe_dai_probe,
  1933. },
  1934. {
  1935. .playback = {
  1936. .stream_name = "Quaternary TDM5 Hostless Playback",
  1937. .aif_name = "QUAT_TDM_RX_5_DL_HL",
  1938. .rates = SNDRV_PCM_RATE_8000_48000,
  1939. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1940. SNDRV_PCM_FMTBIT_S24_LE),
  1941. .channels_min = 1,
  1942. .channels_max = 8,
  1943. .rate_min = 8000,
  1944. .rate_max = 48000,
  1945. },
  1946. .ops = &msm_fe_dai_ops,
  1947. .name = "QUAT_TDM_RX_5_HOSTLESS",
  1948. .probe = fe_dai_probe,
  1949. },
  1950. {
  1951. .capture = {
  1952. .stream_name = "Quaternary TDM6 Hostless Capture",
  1953. .aif_name = "QUAT_TDM_TX_6_UL_HL",
  1954. .rates = SNDRV_PCM_RATE_8000_48000,
  1955. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1956. SNDRV_PCM_FMTBIT_S24_LE),
  1957. .channels_min = 1,
  1958. .channels_max = 8,
  1959. .rate_min = 8000,
  1960. .rate_max = 48000,
  1961. },
  1962. .ops = &msm_fe_dai_ops,
  1963. .name = "QUAT_TDM_TX_6_HOSTLESS",
  1964. .probe = fe_dai_probe,
  1965. },
  1966. {
  1967. .playback = {
  1968. .stream_name = "Quaternary TDM6 Hostless Playback",
  1969. .aif_name = "QUAT_TDM_RX_6_DL_HL",
  1970. .rates = SNDRV_PCM_RATE_8000_48000,
  1971. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1972. SNDRV_PCM_FMTBIT_S24_LE),
  1973. .channels_min = 1,
  1974. .channels_max = 8,
  1975. .rate_min = 8000,
  1976. .rate_max = 48000,
  1977. },
  1978. .ops = &msm_fe_dai_ops,
  1979. .name = "QUAT_TDM_RX_6_HOSTLESS",
  1980. .probe = fe_dai_probe,
  1981. },
  1982. {
  1983. .capture = {
  1984. .stream_name = "Quaternary TDM7 Hostless Capture",
  1985. .aif_name = "QUAT_TDM_TX_7_UL_HL",
  1986. .rates = SNDRV_PCM_RATE_8000_48000,
  1987. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1988. SNDRV_PCM_FMTBIT_S24_LE),
  1989. .channels_min = 1,
  1990. .channels_max = 16,
  1991. .rate_min = 8000,
  1992. .rate_max = 48000,
  1993. },
  1994. .ops = &msm_fe_dai_ops,
  1995. .name = "QUAT_TDM_TX_7_HOSTLESS",
  1996. .probe = fe_dai_probe,
  1997. },
  1998. {
  1999. .playback = {
  2000. .stream_name = "Quaternary TDM7 Hostless Playback",
  2001. .aif_name = "QUAT_TDM_RX_7_DL_HL",
  2002. .rates = SNDRV_PCM_RATE_8000_48000,
  2003. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2004. SNDRV_PCM_FMTBIT_S24_LE),
  2005. .channels_min = 1,
  2006. .channels_max = 16,
  2007. .rate_min = 8000,
  2008. .rate_max = 48000,
  2009. },
  2010. .ops = &msm_fe_dai_ops,
  2011. .name = "QUAT_TDM_RX_7_HOSTLESS",
  2012. .probe = fe_dai_probe,
  2013. },
  2014. {
  2015. .capture = {
  2016. .stream_name = "Quinary TDM7 Hostless Capture",
  2017. .aif_name = "QUIN_TDM_TX_7_UL_HL",
  2018. .rates = SNDRV_PCM_RATE_8000_48000,
  2019. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2020. SNDRV_PCM_FMTBIT_S24_LE),
  2021. .channels_min = 1,
  2022. .channels_max = 16,
  2023. .rate_min = 8000,
  2024. .rate_max = 48000,
  2025. },
  2026. .ops = &msm_fe_dai_ops,
  2027. .name = "QUIN_TDM_TX_7_HOSTLESS",
  2028. .probe = fe_dai_probe,
  2029. },
  2030. {
  2031. .playback = {
  2032. .stream_name = "Quinary TDM7 Hostless Playback",
  2033. .aif_name = "QUIN_TDM_RX_7_DL_HL",
  2034. .rates = SNDRV_PCM_RATE_8000_48000,
  2035. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2036. SNDRV_PCM_FMTBIT_S24_LE),
  2037. .channels_min = 1,
  2038. .channels_max = 16,
  2039. .rate_min = 8000,
  2040. .rate_max = 48000,
  2041. },
  2042. .ops = &msm_fe_dai_ops,
  2043. .name = "QUIN_TDM_RX_7_HOSTLESS",
  2044. .probe = fe_dai_probe,
  2045. },
  2046. {
  2047. .playback = {
  2048. .stream_name = "DTMF_RX_HOSTLESS Playback",
  2049. .aif_name = "DTMF_DL_HL",
  2050. .rates = SNDRV_PCM_RATE_8000_48000,
  2051. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2052. .channels_min = 1,
  2053. .channels_max = 2,
  2054. .rate_min = 8000,
  2055. .rate_max = 48000,
  2056. },
  2057. .ops = &msm_fe_dai_ops,
  2058. .name = "DTMF_RX_HOSTLESS",
  2059. .probe = fe_dai_probe,
  2060. },
  2061. {
  2062. .capture = {
  2063. .stream_name = "CPE Listen Audio capture",
  2064. .aif_name = "CPE_LSM_UL_HL",
  2065. .rates = SNDRV_PCM_RATE_8000_48000,
  2066. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2067. SNDRV_PCM_FMTBIT_S24_LE),
  2068. .channels_min = 1,
  2069. .channels_max = 1,
  2070. .rate_min = 8000,
  2071. .rate_max = 48000,
  2072. },
  2073. .ops = &msm_fe_dai_ops,
  2074. .name = "CPE_LSM_NOHOST",
  2075. },
  2076. {
  2077. .playback = {
  2078. .stream_name = "VOLTE_STUB Playback",
  2079. .aif_name = "VOLTE_STUB_DL",
  2080. .rates = SNDRV_PCM_RATE_8000_48000,
  2081. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2082. .channels_min = 1,
  2083. .channels_max = 2,
  2084. .rate_min = 8000,
  2085. .rate_max = 48000,
  2086. },
  2087. .capture = {
  2088. .stream_name = "VOLTE_STUB Capture",
  2089. .aif_name = "VOLTE_STUB_UL",
  2090. .rates = SNDRV_PCM_RATE_8000_48000,
  2091. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2092. .channels_min = 1,
  2093. .channels_max = 2,
  2094. .rate_min = 8000,
  2095. .rate_max = 48000,
  2096. },
  2097. .ops = &msm_fe_dai_ops,
  2098. .name = "VOLTE_STUB",
  2099. .probe = fe_dai_probe,
  2100. },
  2101. {
  2102. .playback = {
  2103. .stream_name = "VOICE2_STUB Playback",
  2104. .aif_name = "VOICE2_STUB_DL",
  2105. .rates = SNDRV_PCM_RATE_8000_48000,
  2106. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2107. .channels_min = 1,
  2108. .channels_max = 2,
  2109. .rate_min = 8000,
  2110. .rate_max = 48000,
  2111. },
  2112. .capture = {
  2113. .stream_name = "VOICE2_STUB Capture",
  2114. .aif_name = "VOICE2_STUB_UL",
  2115. .rates = SNDRV_PCM_RATE_8000_48000,
  2116. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2117. .channels_min = 1,
  2118. .channels_max = 2,
  2119. .rate_min = 8000,
  2120. .rate_max = 48000,
  2121. },
  2122. .ops = &msm_fe_dai_ops,
  2123. .name = "VOICE2_STUB",
  2124. .probe = fe_dai_probe,
  2125. },
  2126. {
  2127. .playback = {
  2128. .stream_name = "MultiMedia9 Playback",
  2129. .aif_name = "MM_DL9",
  2130. .rates = (SNDRV_PCM_RATE_8000_384000|
  2131. SNDRV_PCM_RATE_KNOT),
  2132. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2133. SNDRV_PCM_FMTBIT_S24_LE |
  2134. SNDRV_PCM_FMTBIT_S24_3LE),
  2135. .channels_min = 1,
  2136. .channels_max = 32,
  2137. .rate_min = 8000,
  2138. .rate_max = 384000,
  2139. },
  2140. .capture = {
  2141. .stream_name = "MultiMedia9 Capture",
  2142. .aif_name = "MM_UL9",
  2143. .rates = (SNDRV_PCM_RATE_8000_48000|
  2144. SNDRV_PCM_RATE_KNOT),
  2145. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2146. .channels_min = 1,
  2147. .channels_max = 32,
  2148. .rate_min = 8000,
  2149. .rate_max = 48000,
  2150. },
  2151. .ops = &msm_fe_Multimedia_dai_ops,
  2152. .name = "MultiMedia9",
  2153. .probe = fe_dai_probe,
  2154. },
  2155. {
  2156. .playback = {
  2157. .stream_name = "QCHAT Playback",
  2158. .aif_name = "QCHAT_DL",
  2159. .rates = SNDRV_PCM_RATE_8000_48000,
  2160. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2161. .channels_min = 1,
  2162. .channels_max = 2,
  2163. .rate_min = 8000,
  2164. .rate_max = 48000,
  2165. },
  2166. .capture = {
  2167. .stream_name = "QCHAT Capture",
  2168. .aif_name = "QCHAT_UL",
  2169. .rates = SNDRV_PCM_RATE_8000_48000,
  2170. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2171. .channels_min = 1,
  2172. .channels_max = 2,
  2173. .rate_min = 8000,
  2174. .rate_max = 48000,
  2175. },
  2176. .ops = &msm_fe_dai_ops,
  2177. .name = "QCHAT",
  2178. .probe = fe_dai_probe,
  2179. },
  2180. {
  2181. .capture = {
  2182. .stream_name = "Listen 1 Audio Service Capture",
  2183. .aif_name = "LSM1_UL_HL",
  2184. .rates = (SNDRV_PCM_RATE_16000 |
  2185. SNDRV_PCM_RATE_48000),
  2186. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2187. SNDRV_PCM_FMTBIT_S24_LE),
  2188. .channels_min = 1,
  2189. .channels_max = 4,
  2190. .rate_min = 16000,
  2191. .rate_max = 48000,
  2192. },
  2193. .ops = &msm_fe_dai_ops,
  2194. .name = "LSM1",
  2195. .probe = fe_dai_probe,
  2196. },
  2197. {
  2198. .capture = {
  2199. .stream_name = "Listen 2 Audio Service Capture",
  2200. .aif_name = "LSM2_UL_HL",
  2201. .rates = (SNDRV_PCM_RATE_16000 |
  2202. SNDRV_PCM_RATE_48000),
  2203. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2204. SNDRV_PCM_FMTBIT_S24_LE),
  2205. .channels_min = 1,
  2206. .channels_max = 4,
  2207. .rate_min = 16000,
  2208. .rate_max = 48000,
  2209. },
  2210. .ops = &msm_fe_dai_ops,
  2211. .name = "LSM2",
  2212. .probe = fe_dai_probe,
  2213. },
  2214. {
  2215. .capture = {
  2216. .stream_name = "Listen 3 Audio Service Capture",
  2217. .aif_name = "LSM3_UL_HL",
  2218. .rates = (SNDRV_PCM_RATE_16000 |
  2219. SNDRV_PCM_RATE_48000),
  2220. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2221. SNDRV_PCM_FMTBIT_S24_LE),
  2222. .channels_min = 1,
  2223. .channels_max = 4,
  2224. .rate_min = 16000,
  2225. .rate_max = 48000,
  2226. },
  2227. .ops = &msm_fe_dai_ops,
  2228. .name = "LSM3",
  2229. .probe = fe_dai_probe,
  2230. },
  2231. {
  2232. .capture = {
  2233. .stream_name = "Listen 4 Audio Service Capture",
  2234. .aif_name = "LSM4_UL_HL",
  2235. .rates = (SNDRV_PCM_RATE_16000 |
  2236. SNDRV_PCM_RATE_48000),
  2237. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2238. SNDRV_PCM_FMTBIT_S24_LE),
  2239. .channels_min = 1,
  2240. .channels_max = 4,
  2241. .rate_min = 16000,
  2242. .rate_max = 48000,
  2243. },
  2244. .ops = &msm_fe_dai_ops,
  2245. .name = "LSM4",
  2246. .probe = fe_dai_probe,
  2247. },
  2248. {
  2249. .capture = {
  2250. .stream_name = "Listen 5 Audio Service Capture",
  2251. .aif_name = "LSM5_UL_HL",
  2252. .rates = (SNDRV_PCM_RATE_16000 |
  2253. SNDRV_PCM_RATE_48000),
  2254. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2255. SNDRV_PCM_FMTBIT_S24_LE),
  2256. .channels_min = 1,
  2257. .channels_max = 4,
  2258. .rate_min = 16000,
  2259. .rate_max = 48000,
  2260. },
  2261. .ops = &msm_fe_dai_ops,
  2262. .name = "LSM5",
  2263. .probe = fe_dai_probe,
  2264. },
  2265. {
  2266. .capture = {
  2267. .stream_name = "Listen 6 Audio Service Capture",
  2268. .aif_name = "LSM6_UL_HL",
  2269. .rates = (SNDRV_PCM_RATE_16000 |
  2270. SNDRV_PCM_RATE_48000),
  2271. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2272. SNDRV_PCM_FMTBIT_S24_LE),
  2273. .channels_min = 1,
  2274. .channels_max = 4,
  2275. .rate_min = 16000,
  2276. .rate_max = 48000,
  2277. },
  2278. .ops = &msm_fe_dai_ops,
  2279. .name = "LSM6",
  2280. .probe = fe_dai_probe,
  2281. },
  2282. {
  2283. .capture = {
  2284. .stream_name = "Listen 7 Audio Service Capture",
  2285. .aif_name = "LSM7_UL_HL",
  2286. .rates = (SNDRV_PCM_RATE_16000 |
  2287. SNDRV_PCM_RATE_48000),
  2288. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2289. SNDRV_PCM_FMTBIT_S24_LE),
  2290. .channels_min = 1,
  2291. .channels_max = 4,
  2292. .rate_min = 16000,
  2293. .rate_max = 48000,
  2294. },
  2295. .ops = &msm_fe_dai_ops,
  2296. .name = "LSM7",
  2297. .probe = fe_dai_probe,
  2298. },
  2299. {
  2300. .capture = {
  2301. .stream_name = "Listen 8 Audio Service Capture",
  2302. .aif_name = "LSM8_UL_HL",
  2303. .rates = (SNDRV_PCM_RATE_16000 |
  2304. SNDRV_PCM_RATE_48000),
  2305. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2306. SNDRV_PCM_FMTBIT_S24_LE),
  2307. .channels_min = 1,
  2308. .channels_max = 4,
  2309. .rate_min = 16000,
  2310. .rate_max = 48000,
  2311. },
  2312. .ops = &msm_fe_dai_ops,
  2313. .name = "LSM8",
  2314. .probe = fe_dai_probe,
  2315. },
  2316. /* FE DAIs created for multiple instances of offload playback */
  2317. {
  2318. .playback = {
  2319. .stream_name = "MultiMedia10 Playback",
  2320. .aif_name = "MM_DL10",
  2321. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2322. SNDRV_PCM_RATE_KNOT),
  2323. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2324. SNDRV_PCM_FMTBIT_S24_LE |
  2325. SNDRV_PCM_FMTBIT_S24_3LE |
  2326. SNDRV_PCM_FMTBIT_S32_LE),
  2327. .channels_min = 1,
  2328. .channels_max = 32,
  2329. .rate_min = 8000,
  2330. .rate_max = 384000,
  2331. },
  2332. .capture = {
  2333. .stream_name = "MultiMedia10 Capture",
  2334. .aif_name = "MM_UL10",
  2335. .rates = (SNDRV_PCM_RATE_8000_48000 |
  2336. SNDRV_PCM_RATE_KNOT),
  2337. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2338. SNDRV_PCM_FMTBIT_S24_LE |
  2339. SNDRV_PCM_FMTBIT_S24_3LE),
  2340. .channels_min = 1,
  2341. .channels_max = 8,
  2342. .rate_min = 8000,
  2343. .rate_max = 48000,
  2344. },
  2345. .ops = &msm_fe_Multimedia_dai_ops,
  2346. .name = "MultiMedia10",
  2347. .probe = fe_dai_probe,
  2348. },
  2349. {
  2350. .playback = {
  2351. .stream_name = "MultiMedia11 Playback",
  2352. .aif_name = "MM_DL11",
  2353. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2354. SNDRV_PCM_RATE_KNOT),
  2355. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2356. SNDRV_PCM_FMTBIT_S24_LE |
  2357. SNDRV_PCM_FMTBIT_S24_3LE |
  2358. SNDRV_PCM_FMTBIT_S32_LE),
  2359. .channels_min = 1,
  2360. .channels_max = 32,
  2361. .rate_min = 8000,
  2362. .rate_max = 384000,
  2363. },
  2364. .ops = &msm_fe_Multimedia_dai_ops,
  2365. .compress_new = msm_compr_new,
  2366. .name = "MultiMedia11",
  2367. .probe = fe_dai_probe,
  2368. },
  2369. {
  2370. .playback = {
  2371. .stream_name = "MultiMedia12 Playback",
  2372. .aif_name = "MM_DL12",
  2373. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2374. SNDRV_PCM_RATE_KNOT),
  2375. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2376. SNDRV_PCM_FMTBIT_S24_LE |
  2377. SNDRV_PCM_FMTBIT_S24_3LE |
  2378. SNDRV_PCM_FMTBIT_S32_LE),
  2379. .channels_min = 1,
  2380. .channels_max = 32,
  2381. .rate_min = 8000,
  2382. .rate_max = 384000,
  2383. },
  2384. .ops = &msm_fe_Multimedia_dai_ops,
  2385. .compress_new = msm_compr_new,
  2386. .name = "MultiMedia12",
  2387. .probe = fe_dai_probe,
  2388. },
  2389. {
  2390. .playback = {
  2391. .stream_name = "MultiMedia13 Playback",
  2392. .aif_name = "MM_DL13",
  2393. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2394. SNDRV_PCM_RATE_KNOT),
  2395. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2396. SNDRV_PCM_FMTBIT_S24_LE |
  2397. SNDRV_PCM_FMTBIT_S24_3LE |
  2398. SNDRV_PCM_FMTBIT_S32_LE),
  2399. .channels_min = 1,
  2400. .channels_max = 32,
  2401. .rate_min = 8000,
  2402. .rate_max = 384000,
  2403. },
  2404. .ops = &msm_fe_Multimedia_dai_ops,
  2405. .compress_new = msm_compr_new,
  2406. .name = "MultiMedia13",
  2407. .probe = fe_dai_probe,
  2408. },
  2409. {
  2410. .playback = {
  2411. .stream_name = "MultiMedia14 Playback",
  2412. .aif_name = "MM_DL14",
  2413. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2414. SNDRV_PCM_RATE_KNOT),
  2415. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2416. SNDRV_PCM_FMTBIT_S24_LE |
  2417. SNDRV_PCM_FMTBIT_S24_3LE |
  2418. SNDRV_PCM_FMTBIT_S32_LE),
  2419. .channels_min = 1,
  2420. .channels_max = 32,
  2421. .rate_min = 8000,
  2422. .rate_max = 384000,
  2423. },
  2424. .ops = &msm_fe_Multimedia_dai_ops,
  2425. .compress_new = msm_compr_new,
  2426. .name = "MultiMedia14",
  2427. .probe = fe_dai_probe,
  2428. },
  2429. {
  2430. .playback = {
  2431. .stream_name = "MultiMedia15 Playback",
  2432. .aif_name = "MM_DL15",
  2433. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2434. SNDRV_PCM_RATE_KNOT),
  2435. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2436. SNDRV_PCM_FMTBIT_S24_LE |
  2437. SNDRV_PCM_FMTBIT_S24_3LE |
  2438. SNDRV_PCM_FMTBIT_S32_LE),
  2439. .channels_min = 1,
  2440. .channels_max = 32,
  2441. .rate_min = 8000,
  2442. .rate_max = 384000,
  2443. },
  2444. .ops = &msm_fe_Multimedia_dai_ops,
  2445. .compress_new = msm_compr_new,
  2446. .name = "MultiMedia15",
  2447. .probe = fe_dai_probe,
  2448. },
  2449. {
  2450. .playback = {
  2451. .stream_name = "MultiMedia16 Playback",
  2452. .aif_name = "MM_DL16",
  2453. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2454. SNDRV_PCM_RATE_KNOT),
  2455. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2456. SNDRV_PCM_FMTBIT_S24_LE |
  2457. SNDRV_PCM_FMTBIT_S24_3LE |
  2458. SNDRV_PCM_FMTBIT_S32_LE),
  2459. .channels_min = 1,
  2460. .channels_max = 32,
  2461. .rate_min = 8000,
  2462. .rate_max = 384000,
  2463. },
  2464. .capture = {
  2465. .stream_name = "MultiMedia16 Capture",
  2466. .aif_name = "MM_UL16",
  2467. .rates = (SNDRV_PCM_RATE_8000_48000|
  2468. SNDRV_PCM_RATE_KNOT),
  2469. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2470. SNDRV_PCM_FMTBIT_S24_LE |
  2471. SNDRV_PCM_FMTBIT_S24_3LE |
  2472. SNDRV_PCM_FMTBIT_S32_LE),
  2473. .channels_min = 1,
  2474. .channels_max = 32,
  2475. .rate_min = 8000,
  2476. .rate_max = 48000,
  2477. },
  2478. .ops = &msm_fe_Multimedia_dai_ops,
  2479. .name = "MultiMedia16",
  2480. .probe = fe_dai_probe,
  2481. },
  2482. {
  2483. .playback = {
  2484. .stream_name = "VoiceMMode1 Playback",
  2485. .aif_name = "VOICEMMODE1_DL",
  2486. .rates = SNDRV_PCM_RATE_8000_48000,
  2487. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2488. .channels_min = 1,
  2489. .channels_max = 2,
  2490. .rate_min = 8000,
  2491. .rate_max = 48000,
  2492. },
  2493. .capture = {
  2494. .stream_name = "VoiceMMode1 Capture",
  2495. .aif_name = "VOICEMMODE1_UL",
  2496. .rates = SNDRV_PCM_RATE_8000_48000,
  2497. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2498. .channels_min = 1,
  2499. .channels_max = 2,
  2500. .rate_min = 8000,
  2501. .rate_max = 48000,
  2502. },
  2503. .ops = &msm_fe_dai_ops,
  2504. .name = "VoiceMMode1",
  2505. .probe = fe_dai_probe,
  2506. },
  2507. {
  2508. .playback = {
  2509. .stream_name = "VoiceMMode2 Playback",
  2510. .aif_name = "VOICEMMODE2_DL",
  2511. .rates = SNDRV_PCM_RATE_8000_48000,
  2512. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2513. .channels_min = 1,
  2514. .channels_max = 2,
  2515. .rate_min = 8000,
  2516. .rate_max = 48000,
  2517. },
  2518. .capture = {
  2519. .stream_name = "VoiceMMode2 Capture",
  2520. .aif_name = "VOICEMMODE2_UL",
  2521. .rates = SNDRV_PCM_RATE_8000_48000,
  2522. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2523. .channels_min = 1,
  2524. .channels_max = 2,
  2525. .rate_min = 8000,
  2526. .rate_max = 48000,
  2527. },
  2528. .ops = &msm_fe_dai_ops,
  2529. .name = "VoiceMMode2",
  2530. .probe = fe_dai_probe,
  2531. },
  2532. {
  2533. .capture = {
  2534. .stream_name = "MultiMedia17 Capture",
  2535. .aif_name = "MM_UL17",
  2536. .rates = (SNDRV_PCM_RATE_8000_192000|
  2537. SNDRV_PCM_RATE_KNOT),
  2538. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2539. SNDRV_PCM_FMTBIT_S24_LE |
  2540. SNDRV_PCM_FMTBIT_S24_3LE),
  2541. .channels_min = 1,
  2542. .channels_max = 32,
  2543. .rate_min = 8000,
  2544. .rate_max = 192000,
  2545. },
  2546. .ops = &msm_fe_Multimedia_dai_ops,
  2547. .compress_new = msm_compr_new,
  2548. .name = "MultiMedia17",
  2549. .probe = fe_dai_probe,
  2550. },
  2551. {
  2552. .capture = {
  2553. .stream_name = "MultiMedia18 Capture",
  2554. .aif_name = "MM_UL18",
  2555. .rates = (SNDRV_PCM_RATE_8000_192000|
  2556. SNDRV_PCM_RATE_KNOT),
  2557. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2558. SNDRV_PCM_FMTBIT_S24_LE |
  2559. SNDRV_PCM_FMTBIT_S24_3LE),
  2560. .channels_min = 1,
  2561. .channels_max = 32,
  2562. .rate_min = 8000,
  2563. .rate_max = 192000,
  2564. },
  2565. .ops = &msm_fe_Multimedia_dai_ops,
  2566. .compress_new = msm_compr_new,
  2567. .name = "MultiMedia18",
  2568. .probe = fe_dai_probe,
  2569. },
  2570. {
  2571. .capture = {
  2572. .stream_name = "MultiMedia19 Capture",
  2573. .aif_name = "MM_UL19",
  2574. .rates = (SNDRV_PCM_RATE_8000_192000|
  2575. SNDRV_PCM_RATE_KNOT),
  2576. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2577. SNDRV_PCM_FMTBIT_S24_LE |
  2578. SNDRV_PCM_FMTBIT_S24_3LE),
  2579. .channels_min = 1,
  2580. .channels_max = 32,
  2581. .rate_min = 8000,
  2582. .rate_max = 192000,
  2583. },
  2584. .ops = &msm_fe_Multimedia_dai_ops,
  2585. .compress_new = msm_compr_new,
  2586. .name = "MultiMedia19",
  2587. .probe = fe_dai_probe,
  2588. },
  2589. {
  2590. .playback = {
  2591. .stream_name = "MultiMedia20 Playback",
  2592. .aif_name = "MM_DL20",
  2593. .rates = (SNDRV_PCM_RATE_8000_384000|
  2594. SNDRV_PCM_RATE_KNOT),
  2595. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2596. SNDRV_PCM_FMTBIT_S24_LE |
  2597. SNDRV_PCM_FMTBIT_S24_3LE |
  2598. SNDRV_PCM_FMTBIT_S32_LE),
  2599. .channels_min = 1,
  2600. .channels_max = 32,
  2601. .rate_min = 8000,
  2602. .rate_max = 384000,
  2603. },
  2604. .capture = {
  2605. .stream_name = "MultiMedia20 Capture",
  2606. .aif_name = "MM_UL20",
  2607. .rates = (SNDRV_PCM_RATE_8000_48000|
  2608. SNDRV_PCM_RATE_KNOT),
  2609. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2610. SNDRV_PCM_FMTBIT_S24_LE |
  2611. SNDRV_PCM_FMTBIT_S24_3LE |
  2612. SNDRV_PCM_FMTBIT_S32_LE),
  2613. .channels_min = 1,
  2614. .channels_max = 32,
  2615. .rate_min = 8000,
  2616. .rate_max = 48000,
  2617. },
  2618. .ops = &msm_fe_Multimedia_dai_ops,
  2619. .name = "MultiMedia20",
  2620. .probe = fe_dai_probe,
  2621. },
  2622. {
  2623. .playback = {
  2624. .stream_name = "MultiMedia21 Playback",
  2625. .aif_name = "MM_DL21",
  2626. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2627. SNDRV_PCM_RATE_KNOT),
  2628. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2629. SNDRV_PCM_FMTBIT_S24_LE |
  2630. SNDRV_PCM_FMTBIT_S24_3LE |
  2631. SNDRV_PCM_FMTBIT_S32_LE),
  2632. .channels_min = 1,
  2633. .channels_max = 32,
  2634. .rate_min = 8000,
  2635. .rate_max = 384000,
  2636. },
  2637. .capture = {
  2638. .stream_name = "MultiMedia21 Capture",
  2639. .aif_name = "MM_UL21",
  2640. .rates = (SNDRV_PCM_RATE_8000_48000|
  2641. SNDRV_PCM_RATE_KNOT),
  2642. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2643. SNDRV_PCM_FMTBIT_S24_LE |
  2644. SNDRV_PCM_FMTBIT_S24_3LE |
  2645. SNDRV_PCM_FMTBIT_S32_LE),
  2646. .channels_min = 1,
  2647. .channels_max = 32,
  2648. .rate_min = 8000,
  2649. .rate_max = 48000,
  2650. },
  2651. .ops = &msm_fe_Multimedia_dai_ops,
  2652. .name = "MultiMedia21",
  2653. .probe = fe_dai_probe,
  2654. },
  2655. {
  2656. .playback = {
  2657. .stream_name = "MultiMedia22 Playback",
  2658. .aif_name = "MM_DL22",
  2659. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2660. SNDRV_PCM_RATE_KNOT),
  2661. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2662. SNDRV_PCM_FMTBIT_S24_LE |
  2663. SNDRV_PCM_FMTBIT_S24_3LE |
  2664. SNDRV_PCM_FMTBIT_S32_LE),
  2665. .channels_min = 1,
  2666. .channels_max = 32,
  2667. .rate_min = 8000,
  2668. .rate_max = 384000,
  2669. },
  2670. .capture = {
  2671. .stream_name = "MultiMedia22 Capture",
  2672. .aif_name = "MM_UL22",
  2673. .rates = (SNDRV_PCM_RATE_8000_48000|
  2674. SNDRV_PCM_RATE_KNOT),
  2675. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2676. SNDRV_PCM_FMTBIT_S24_LE |
  2677. SNDRV_PCM_FMTBIT_S24_3LE |
  2678. SNDRV_PCM_FMTBIT_S32_LE),
  2679. .channels_min = 1,
  2680. .channels_max = 32,
  2681. .rate_min = 8000,
  2682. .rate_max = 48000,
  2683. },
  2684. .ops = &msm_fe_Multimedia_dai_ops,
  2685. .name = "MultiMedia22",
  2686. .probe = fe_dai_probe,
  2687. },
  2688. {
  2689. .playback = {
  2690. .stream_name = "MultiMedia23 Playback",
  2691. .aif_name = "MM_DL23",
  2692. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2693. SNDRV_PCM_RATE_KNOT),
  2694. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2695. SNDRV_PCM_FMTBIT_S24_LE |
  2696. SNDRV_PCM_FMTBIT_S24_3LE |
  2697. SNDRV_PCM_FMTBIT_S32_LE),
  2698. .channels_min = 1,
  2699. .channels_max = 32,
  2700. .rate_min = 8000,
  2701. .rate_max = 384000,
  2702. },
  2703. .capture = {
  2704. .stream_name = "MultiMedia23 Capture",
  2705. .aif_name = "MM_UL23",
  2706. .rates = (SNDRV_PCM_RATE_8000_48000|
  2707. SNDRV_PCM_RATE_KNOT),
  2708. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2709. SNDRV_PCM_FMTBIT_S24_LE |
  2710. SNDRV_PCM_FMTBIT_S24_3LE |
  2711. SNDRV_PCM_FMTBIT_S32_LE),
  2712. .channels_min = 1,
  2713. .channels_max = 32,
  2714. .rate_min = 8000,
  2715. .rate_max = 48000,
  2716. },
  2717. .ops = &msm_fe_Multimedia_dai_ops,
  2718. .name = "MultiMedia23",
  2719. .probe = fe_dai_probe,
  2720. },
  2721. {
  2722. .playback = {
  2723. .stream_name = "MultiMedia24 Playback",
  2724. .aif_name = "MM_DL24",
  2725. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2726. SNDRV_PCM_RATE_KNOT),
  2727. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2728. SNDRV_PCM_FMTBIT_S24_LE |
  2729. SNDRV_PCM_FMTBIT_S24_3LE |
  2730. SNDRV_PCM_FMTBIT_S32_LE),
  2731. .channels_min = 1,
  2732. .channels_max = 8,
  2733. .rate_min = 8000,
  2734. .rate_max = 384000,
  2735. },
  2736. .capture = {
  2737. .stream_name = "MultiMedia24 Capture",
  2738. .aif_name = "MM_UL24",
  2739. .rates = (SNDRV_PCM_RATE_8000_48000|
  2740. SNDRV_PCM_RATE_KNOT),
  2741. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2742. SNDRV_PCM_FMTBIT_S24_LE |
  2743. SNDRV_PCM_FMTBIT_S24_3LE |
  2744. SNDRV_PCM_FMTBIT_S32_LE),
  2745. .channels_min = 1,
  2746. .channels_max = 8,
  2747. .rate_min = 8000,
  2748. .rate_max = 48000,
  2749. },
  2750. .ops = &msm_fe_Multimedia_dai_ops,
  2751. .name = "MultiMedia24",
  2752. .probe = fe_dai_probe,
  2753. },
  2754. {
  2755. .playback = {
  2756. .stream_name = "MultiMedia25 Playback",
  2757. .aif_name = "MM_DL25",
  2758. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2759. SNDRV_PCM_RATE_KNOT),
  2760. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2761. SNDRV_PCM_FMTBIT_S24_LE |
  2762. SNDRV_PCM_FMTBIT_S24_3LE |
  2763. SNDRV_PCM_FMTBIT_S32_LE),
  2764. .channels_min = 1,
  2765. .channels_max = 8,
  2766. .rate_min = 8000,
  2767. .rate_max = 384000,
  2768. },
  2769. .capture = {
  2770. .stream_name = "MultiMedia25 Capture",
  2771. .aif_name = "MM_UL25",
  2772. .rates = (SNDRV_PCM_RATE_8000_48000|
  2773. SNDRV_PCM_RATE_KNOT),
  2774. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2775. SNDRV_PCM_FMTBIT_S24_LE |
  2776. SNDRV_PCM_FMTBIT_S24_3LE |
  2777. SNDRV_PCM_FMTBIT_S32_LE),
  2778. .channels_min = 1,
  2779. .channels_max = 8,
  2780. .rate_min = 8000,
  2781. .rate_max = 48000,
  2782. },
  2783. .ops = &msm_fe_Multimedia_dai_ops,
  2784. .name = "MultiMedia25",
  2785. .probe = fe_dai_probe,
  2786. },
  2787. {
  2788. .playback = {
  2789. .stream_name = "MultiMedia26 Playback",
  2790. .aif_name = "MM_DL26",
  2791. .rates = (SNDRV_PCM_RATE_8000_384000|
  2792. SNDRV_PCM_RATE_KNOT),
  2793. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2794. SNDRV_PCM_FMTBIT_S24_LE |
  2795. SNDRV_PCM_FMTBIT_S24_3LE |
  2796. SNDRV_PCM_FMTBIT_S32_LE),
  2797. .channels_min = 1,
  2798. .channels_max = 32,
  2799. .rate_min = 8000,
  2800. .rate_max = 384000,
  2801. },
  2802. .ops = &msm_fe_Multimedia_dai_ops,
  2803. .compress_new = msm_compr_new,
  2804. .name = "MultiMedia26",
  2805. .probe = fe_dai_probe,
  2806. },
  2807. {
  2808. .capture = {
  2809. .stream_name = "MultiMedia27 Capture",
  2810. .aif_name = "MM_UL27",
  2811. .rates = (SNDRV_PCM_RATE_8000_192000|
  2812. SNDRV_PCM_RATE_KNOT),
  2813. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2814. SNDRV_PCM_FMTBIT_S24_LE |
  2815. SNDRV_PCM_FMTBIT_S24_3LE),
  2816. .channels_min = 1,
  2817. .channels_max = 32,
  2818. .rate_min = 8000,
  2819. .rate_max = 192000,
  2820. },
  2821. .ops = &msm_fe_Multimedia_dai_ops,
  2822. .compress_new = msm_compr_new,
  2823. .name = "MultiMedia27",
  2824. .probe = fe_dai_probe,
  2825. },
  2826. {
  2827. .capture = {
  2828. .stream_name = "MultiMedia28 Capture",
  2829. .aif_name = "MM_UL28",
  2830. .rates = (SNDRV_PCM_RATE_8000_192000|
  2831. SNDRV_PCM_RATE_KNOT),
  2832. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2833. SNDRV_PCM_FMTBIT_S24_LE |
  2834. SNDRV_PCM_FMTBIT_S24_3LE),
  2835. .channels_min = 1,
  2836. .channels_max = 32,
  2837. .rate_min = 8000,
  2838. .rate_max = 192000,
  2839. },
  2840. .ops = &msm_fe_Multimedia_dai_ops,
  2841. .compress_new = msm_compr_new,
  2842. .name = "MultiMedia28",
  2843. .probe = fe_dai_probe,
  2844. },
  2845. {
  2846. .capture = {
  2847. .stream_name = "MultiMedia29 Capture",
  2848. .aif_name = "MM_UL29",
  2849. .rates = (SNDRV_PCM_RATE_8000_192000|
  2850. SNDRV_PCM_RATE_KNOT),
  2851. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2852. SNDRV_PCM_FMTBIT_S24_LE |
  2853. SNDRV_PCM_FMTBIT_S24_3LE),
  2854. .channels_min = 1,
  2855. .channels_max = 32,
  2856. .rate_min = 8000,
  2857. .rate_max = 192000,
  2858. },
  2859. .ops = &msm_fe_Multimedia_dai_ops,
  2860. .compress_new = msm_compr_new,
  2861. .name = "MultiMedia29",
  2862. .probe = fe_dai_probe,
  2863. },
  2864. {
  2865. .capture = {
  2866. .stream_name = "MultiMedia30 Capture",
  2867. .aif_name = "MM_UL30",
  2868. .rates = (SNDRV_PCM_RATE_8000_192000|
  2869. SNDRV_PCM_RATE_KNOT),
  2870. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2871. SNDRV_PCM_FMTBIT_S24_LE |
  2872. SNDRV_PCM_FMTBIT_S24_3LE),
  2873. .channels_min = 1,
  2874. .channels_max = 32,
  2875. .rate_min = 8000,
  2876. .rate_max = 192000,
  2877. },
  2878. .ops = &msm_fe_Multimedia_dai_ops,
  2879. .compress_new = msm_compr_new,
  2880. .name = "MultiMedia30",
  2881. .probe = fe_dai_probe,
  2882. },
  2883. {
  2884. .playback = {
  2885. .stream_name = "MultiMedia31 Playback",
  2886. .aif_name = "MM_DL31",
  2887. .rates = (SNDRV_PCM_RATE_8000_384000|
  2888. SNDRV_PCM_RATE_KNOT),
  2889. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2890. SNDRV_PCM_FMTBIT_S24_LE |
  2891. SNDRV_PCM_FMTBIT_S24_3LE |
  2892. SNDRV_PCM_FMTBIT_S32_LE),
  2893. .channels_min = 1,
  2894. .channels_max = 32,
  2895. .rate_min = 8000,
  2896. .rate_max = 384000,
  2897. },
  2898. .capture = {
  2899. .stream_name = "MultiMedia31 Capture",
  2900. .aif_name = "MM_UL31",
  2901. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2902. SNDRV_PCM_RATE_KNOT),
  2903. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2904. SNDRV_PCM_FMTBIT_S24_LE |
  2905. SNDRV_PCM_FMTBIT_S24_3LE |
  2906. SNDRV_PCM_FMTBIT_S32_LE),
  2907. .channels_min = 1,
  2908. .channels_max = 32,
  2909. .rate_min = 8000,
  2910. .rate_max = 48000,
  2911. },
  2912. .ops = &msm_fe_Multimedia_dai_ops,
  2913. .name = "MultiMedia31",
  2914. .probe = fe_dai_probe,
  2915. },
  2916. {
  2917. .playback = {
  2918. .stream_name = "MultiMedia32 Playback",
  2919. .aif_name = "MM_DL32",
  2920. .rates = (SNDRV_PCM_RATE_8000_384000|
  2921. SNDRV_PCM_RATE_KNOT),
  2922. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2923. SNDRV_PCM_FMTBIT_S24_LE |
  2924. SNDRV_PCM_FMTBIT_S24_3LE |
  2925. SNDRV_PCM_FMTBIT_S32_LE),
  2926. .channels_min = 1,
  2927. .channels_max = 32,
  2928. .rate_min = 8000,
  2929. .rate_max = 384000,
  2930. },
  2931. .capture = {
  2932. .stream_name = "MultiMedia32 Capture",
  2933. .aif_name = "MM_UL32",
  2934. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2935. SNDRV_PCM_RATE_KNOT),
  2936. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2937. SNDRV_PCM_FMTBIT_S24_LE |
  2938. SNDRV_PCM_FMTBIT_S24_3LE |
  2939. SNDRV_PCM_FMTBIT_S32_LE),
  2940. .channels_min = 1,
  2941. .channels_max = 32,
  2942. .rate_min = 8000,
  2943. .rate_max = 48000,
  2944. },
  2945. .ops = &msm_fe_Multimedia_dai_ops,
  2946. .name = "MultiMedia32",
  2947. .probe = fe_dai_probe,
  2948. },
  2949. {
  2950. .playback = {
  2951. .stream_name = "MultiMedia33 Playback",
  2952. .aif_name = "MM_DL33",
  2953. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2954. SNDRV_PCM_RATE_KNOT),
  2955. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2956. SNDRV_PCM_FMTBIT_S24_LE |
  2957. SNDRV_PCM_FMTBIT_S24_3LE |
  2958. SNDRV_PCM_FMTBIT_S32_LE),
  2959. .channels_min = 1,
  2960. .channels_max = 32,
  2961. .rate_min = 8000,
  2962. .rate_max = 384000,
  2963. },
  2964. .capture = {
  2965. .stream_name = "MultiMedia33 Capture",
  2966. .aif_name = "MM_UL33",
  2967. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2968. SNDRV_PCM_RATE_KNOT),
  2969. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2970. SNDRV_PCM_FMTBIT_S24_LE |
  2971. SNDRV_PCM_FMTBIT_S24_3LE |
  2972. SNDRV_PCM_FMTBIT_S32_LE),
  2973. .channels_min = 1,
  2974. .channels_max = 32,
  2975. .rate_min = 8000,
  2976. .rate_max = 48000,
  2977. },
  2978. .ops = &msm_fe_Multimedia_dai_ops,
  2979. .name = "MultiMedia33",
  2980. .probe = fe_dai_probe,
  2981. },
  2982. {
  2983. .playback = {
  2984. .stream_name = "MultiMedia34 Playback",
  2985. .aif_name = "MM_DL34",
  2986. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2987. SNDRV_PCM_RATE_KNOT),
  2988. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2989. SNDRV_PCM_FMTBIT_S24_LE |
  2990. SNDRV_PCM_FMTBIT_S24_3LE |
  2991. SNDRV_PCM_FMTBIT_S32_LE),
  2992. .channels_min = 1,
  2993. .channels_max = 32,
  2994. .rate_min = 8000,
  2995. .rate_max = 384000,
  2996. },
  2997. .capture = {
  2998. .stream_name = "MultiMedia34 Capture",
  2999. .aif_name = "MM_UL34",
  3000. .rates = (SNDRV_PCM_RATE_8000_384000 |
  3001. SNDRV_PCM_RATE_KNOT),
  3002. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  3003. SNDRV_PCM_FMTBIT_S24_LE |
  3004. SNDRV_PCM_FMTBIT_S24_3LE |
  3005. SNDRV_PCM_FMTBIT_S32_LE),
  3006. .channels_min = 1,
  3007. .channels_max = 32,
  3008. .rate_min = 8000,
  3009. .rate_max = 48000,
  3010. },
  3011. .ops = &msm_fe_Multimedia_dai_ops,
  3012. .name = "MultiMedia34",
  3013. .probe = fe_dai_probe,
  3014. },
  3015. };
  3016. static int msm_fe_dai_dev_probe(struct platform_device *pdev)
  3017. {
  3018. dev_dbg(&pdev->dev, "%s: dev name %s\n", __func__,
  3019. dev_name(&pdev->dev));
  3020. return snd_soc_register_component(&pdev->dev, &msm_fe_dai_component,
  3021. msm_fe_dais, ARRAY_SIZE(msm_fe_dais));
  3022. }
  3023. static int msm_fe_dai_dev_remove(struct platform_device *pdev)
  3024. {
  3025. snd_soc_unregister_component(&pdev->dev);
  3026. return 0;
  3027. }
  3028. static const struct of_device_id msm_dai_fe_dt_match[] = {
  3029. {.compatible = "qcom,msm-dai-fe"},
  3030. {}
  3031. };
  3032. static struct platform_driver msm_fe_dai_driver = {
  3033. .probe = msm_fe_dai_dev_probe,
  3034. .remove = msm_fe_dai_dev_remove,
  3035. .driver = {
  3036. .name = "msm-dai-fe",
  3037. .owner = THIS_MODULE,
  3038. .of_match_table = msm_dai_fe_dt_match,
  3039. .suppress_bind_attrs = true,
  3040. },
  3041. };
  3042. int __init msm_fe_dai_init(void)
  3043. {
  3044. return platform_driver_register(&msm_fe_dai_driver);
  3045. }
  3046. void msm_fe_dai_exit(void)
  3047. {
  3048. platform_driver_unregister(&msm_fe_dai_driver);
  3049. }
  3050. /* Module information */
  3051. MODULE_DESCRIPTION("MSM Frontend DAI driver");
  3052. MODULE_LICENSE("GPL v2");