msm-dai-fe.c 66 KB

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