msm-dai-fe.c 71 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791
  1. /* Copyright (c) 2012-2018, 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 = "CDC_DMA_HOSTLESS Playback",
  528. .aif_name = "CDC_DMA_DL_HL",
  529. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 |
  530. SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 |
  531. SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 |
  532. SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 |
  533. SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_176400 |
  534. SNDRV_PCM_RATE_192000 | SNDRV_PCM_RATE_352800 |
  535. SNDRV_PCM_RATE_384000,
  536. .formats = SNDRV_PCM_FMTBIT_S16_LE |
  537. SNDRV_PCM_FMTBIT_S24_LE |
  538. SNDRV_PCM_FMTBIT_S24_3LE |
  539. SNDRV_PCM_FMTBIT_S32_LE,
  540. .channels_min = 1,
  541. .channels_max = 4,
  542. .rate_min = 8000,
  543. .rate_max = 384000,
  544. },
  545. .capture = {
  546. .stream_name = "CDC_DMA_HOSTLESS Capture",
  547. .aif_name = "CDC_DMA_UL_HL",
  548. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 |
  549. SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 |
  550. SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 |
  551. SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 |
  552. SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_176400 |
  553. SNDRV_PCM_RATE_192000 | SNDRV_PCM_RATE_352800 |
  554. SNDRV_PCM_RATE_384000,
  555. .formats = SNDRV_PCM_FMTBIT_S16_LE |
  556. SNDRV_PCM_FMTBIT_S24_LE |
  557. SNDRV_PCM_FMTBIT_S24_3LE,
  558. .channels_min = 1,
  559. .channels_max = 8,
  560. .rate_min = 8000,
  561. .rate_max = 384000,
  562. },
  563. .ops = &msm_fe_dai_ops,
  564. .name = "CDC_DMA_HOSTLESS",
  565. .probe = fe_dai_probe,
  566. },
  567. {
  568. .capture = {
  569. .stream_name = "TX3_CDC_DMA_HOSTLESS Capture",
  570. .aif_name = "TX3_CDC_DMA_UL_HL",
  571. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 |
  572. SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 |
  573. SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 |
  574. SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 |
  575. SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_176400 |
  576. SNDRV_PCM_RATE_192000 | SNDRV_PCM_RATE_352800 |
  577. SNDRV_PCM_RATE_384000,
  578. .formats = SNDRV_PCM_FMTBIT_S16_LE |
  579. SNDRV_PCM_FMTBIT_S24_LE |
  580. SNDRV_PCM_FMTBIT_S24_3LE,
  581. .channels_min = 1,
  582. .channels_max = 8,
  583. .rate_min = 8000,
  584. .rate_max = 384000,
  585. },
  586. .ops = &msm_fe_dai_ops,
  587. .name = "TX3_CDC_DMA_HOSTLESS",
  588. .probe = fe_dai_probe,
  589. },
  590. {
  591. .playback = {
  592. .stream_name = "INT_FM_HOSTLESS Playback",
  593. .aif_name = "INTFM_DL_HL",
  594. .rates = SNDRV_PCM_RATE_8000_48000,
  595. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  596. .channels_min = 1,
  597. .channels_max = 2,
  598. .rate_min = 8000,
  599. .rate_max = 48000,
  600. },
  601. .capture = {
  602. .stream_name = "INT_FM_HOSTLESS Capture",
  603. .aif_name = "INTFM_UL_HL",
  604. .rates = SNDRV_PCM_RATE_8000_48000,
  605. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  606. .channels_min = 1,
  607. .channels_max = 2,
  608. .rate_min = 8000,
  609. .rate_max = 48000,
  610. },
  611. .ops = &msm_fe_dai_ops,
  612. .name = "INT_FM_HOSTLESS",
  613. .probe = fe_dai_probe,
  614. },
  615. {
  616. .playback = {
  617. .stream_name = "INT_HFP_BT Hostless Playback",
  618. .aif_name = "INTHFP_DL_HL",
  619. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
  620. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  621. .channels_min = 1,
  622. .channels_max = 2,
  623. .rate_min = 8000,
  624. .rate_max = 16000,
  625. },
  626. .capture = {
  627. .stream_name = "INT_HFP_BT Hostless Capture",
  628. .aif_name = "INTHFP_UL_HL",
  629. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
  630. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  631. .channels_min = 1,
  632. .channels_max = 2,
  633. .rate_min = 8000,
  634. .rate_max = 16000,
  635. },
  636. .ops = &msm_fe_dai_ops,
  637. .name = "INT_HFP_BT_HOSTLESS",
  638. .probe = fe_dai_probe,
  639. },
  640. {
  641. .playback = {
  642. .stream_name = "USBAUDIO_HOSTLESS Playback",
  643. .aif_name = "USBAUDIO_DL_HL",
  644. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 |
  645. SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 |
  646. SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 |
  647. SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 |
  648. SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_176400 |
  649. SNDRV_PCM_RATE_192000 | SNDRV_PCM_RATE_352800 |
  650. SNDRV_PCM_RATE_384000,
  651. .formats = SNDRV_PCM_FMTBIT_S16_LE |
  652. SNDRV_PCM_FMTBIT_S24_LE |
  653. SNDRV_PCM_FMTBIT_S24_3LE |
  654. SNDRV_PCM_FMTBIT_S32_LE,
  655. .channels_min = 1,
  656. .channels_max = 8,
  657. .rate_min = 8000,
  658. .rate_max = 384000,
  659. },
  660. .capture = {
  661. .stream_name = "USBAUDIO_HOSTLESS Capture",
  662. .aif_name = "USBAUDIO_UL_HL",
  663. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 |
  664. SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 |
  665. SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 |
  666. SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 |
  667. SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_176400 |
  668. SNDRV_PCM_RATE_192000 | SNDRV_PCM_RATE_352800 |
  669. SNDRV_PCM_RATE_384000,
  670. .formats = SNDRV_PCM_FMTBIT_S16_LE |
  671. SNDRV_PCM_FMTBIT_S24_LE |
  672. SNDRV_PCM_FMTBIT_S24_3LE |
  673. SNDRV_PCM_FMTBIT_S32_LE,
  674. .channels_min = 1,
  675. .channels_max = 8,
  676. .rate_min = 8000,
  677. .rate_max = 384000,
  678. },
  679. .ops = &msm_fe_dai_ops,
  680. .name = "USBAUDIO_HOSTLESS",
  681. .probe = fe_dai_probe,
  682. },
  683. {
  684. .playback = {
  685. .stream_name = "AFE Playback",
  686. .aif_name = "PCM_RX",
  687. .rates = (SNDRV_PCM_RATE_8000 |
  688. SNDRV_PCM_RATE_16000 |
  689. SNDRV_PCM_RATE_48000),
  690. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  691. .channels_min = 1,
  692. .channels_max = 2,
  693. .rate_min = 8000,
  694. .rate_max = 48000,
  695. },
  696. .capture = {
  697. .stream_name = "AFE Capture",
  698. .aif_name = "PCM_TX",
  699. .rates = (SNDRV_PCM_RATE_8000 |
  700. SNDRV_PCM_RATE_16000 |
  701. SNDRV_PCM_RATE_48000),
  702. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  703. .channels_min = 1,
  704. .channels_max = 2,
  705. .rate_min = 8000,
  706. .rate_max = 48000,
  707. },
  708. .ops = &msm_fe_dai_ops,
  709. .name = "AFE-PROXY",
  710. .probe = fe_dai_probe,
  711. },
  712. {
  713. .playback = {
  714. .stream_name = "HDMI_HOSTLESS Playback",
  715. .aif_name = "HDMI_DL_HL",
  716. .rates = SNDRV_PCM_RATE_8000_48000,
  717. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  718. SNDRV_PCM_FMTBIT_S24_LE),
  719. .channels_min = 1,
  720. .channels_max = 2,
  721. .rate_min = 8000,
  722. .rate_max = 48000,
  723. },
  724. .ops = &msm_fe_dai_ops,
  725. .name = "HDMI_HOSTLESS",
  726. .probe = fe_dai_probe,
  727. },
  728. {
  729. .playback = {
  730. .stream_name = "AUXPCM_HOSTLESS Playback",
  731. .aif_name = "AUXPCM_DL_HL",
  732. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
  733. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  734. .channels_min = 1,
  735. .channels_max = 1,
  736. .rate_min = 8000,
  737. .rate_max = 16000,
  738. },
  739. .capture = {
  740. .stream_name = "AUXPCM_HOSTLESS Capture",
  741. .aif_name = "AUXPCM_UL_HL",
  742. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
  743. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  744. .channels_min = 1,
  745. .channels_max = 1,
  746. .rate_min = 8000,
  747. .rate_max = 16000,
  748. },
  749. .ops = &msm_fe_dai_ops,
  750. .name = "AUXPCM_HOSTLESS",
  751. .probe = fe_dai_probe,
  752. },
  753. {
  754. .playback = {
  755. .stream_name = "SEC_AUXPCM_HOSTLESS Playback",
  756. .aif_name = "SEC_AUXPCM_DL_HL",
  757. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
  758. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  759. .channels_min = 1,
  760. .channels_max = 1,
  761. .rate_min = 8000,
  762. .rate_max = 16000,
  763. },
  764. .ops = &msm_fe_dai_ops,
  765. .name = "SEC_AUXPCM_RX_HOSTLESS",
  766. .probe = fe_dai_probe,
  767. },
  768. {
  769. .capture = {
  770. .stream_name = "SEC_AUXPCM_HOSTLESS Capture",
  771. .aif_name = "SEC_AUXPCM_UL_HL",
  772. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
  773. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  774. .channels_min = 1,
  775. .channels_max = 1,
  776. .rate_min = 8000,
  777. .rate_max = 16000,
  778. },
  779. .ops = &msm_fe_dai_ops,
  780. .name = "SEC_AUXPCM_TX_HOSTLESS",
  781. .probe = fe_dai_probe,
  782. },
  783. {
  784. .playback = {
  785. .stream_name = "VOICE_STUB Playback",
  786. .aif_name = "VOICE_STUB_DL",
  787. .rates = SNDRV_PCM_RATE_8000_48000,
  788. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  789. .channels_min = 1,
  790. .channels_max = 2,
  791. .rate_min = 8000,
  792. .rate_max = 48000,
  793. },
  794. .capture = {
  795. .stream_name = "VOICE_STUB Capture",
  796. .aif_name = "VOICE_STUB_UL",
  797. .rates = SNDRV_PCM_RATE_8000_48000,
  798. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  799. .channels_min = 1,
  800. .channels_max = 2,
  801. .rate_min = 8000,
  802. .rate_max = 48000,
  803. },
  804. .ops = &msm_fe_dai_ops,
  805. .name = "VOICE_STUB",
  806. .probe = fe_dai_probe,
  807. },
  808. {
  809. .playback = {
  810. .stream_name = "MI2S_RX_HOSTLESS Playback",
  811. .aif_name = "MI2S_DL_HL",
  812. .rates = SNDRV_PCM_RATE_8000_48000,
  813. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  814. .channels_min = 1,
  815. .channels_max = 2,
  816. .rate_min = 8000,
  817. .rate_max = 48000,
  818. },
  819. .capture = {
  820. .stream_name = "MI2S_TX_HOSTLESS Capture",
  821. .aif_name = "MI2S_UL_HL",
  822. .rates = SNDRV_PCM_RATE_8000_48000,
  823. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  824. SNDRV_PCM_FMTBIT_S24_LE),
  825. .channels_min = 1,
  826. .channels_max = 2,
  827. .rate_min = 8000,
  828. .rate_max = 48000,
  829. },
  830. .ops = &msm_fe_dai_ops,
  831. .name = "MI2S_TX_HOSTLESS",
  832. .probe = fe_dai_probe,
  833. },
  834. {
  835. .playback = {
  836. .stream_name = "SEC_I2S_RX_HOSTLESS Playback",
  837. .aif_name = "SEC_I2S_DL_HL",
  838. .rates = SNDRV_PCM_RATE_8000_48000,
  839. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  840. .channels_min = 1,
  841. .channels_max = 2,
  842. .rate_min = 8000,
  843. .rate_max = 48000,
  844. },
  845. .ops = &msm_fe_dai_ops,
  846. .name = "SEC_I2S_RX_HOSTLESS",
  847. .probe = fe_dai_probe,
  848. },
  849. {
  850. .capture = {
  851. .stream_name = "Primary MI2S_TX Hostless Capture",
  852. .aif_name = "PRI_MI2S_UL_HL",
  853. .rates = SNDRV_PCM_RATE_8000_48000,
  854. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  855. SNDRV_PCM_FMTBIT_S24_LE),
  856. .channels_min = 1,
  857. .channels_max = 2,
  858. .rate_min = 8000,
  859. .rate_max = 48000,
  860. },
  861. .ops = &msm_fe_dai_ops,
  862. .name = "PRI_MI2S_TX_HOSTLESS",
  863. .probe = fe_dai_probe,
  864. },
  865. {
  866. .playback = {
  867. .stream_name = "Primary MI2S_RX Hostless Playback",
  868. .aif_name = "PRI_MI2S_DL_HL",
  869. .rates = SNDRV_PCM_RATE_8000_384000,
  870. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  871. SNDRV_PCM_FMTBIT_S24_LE),
  872. .channels_min = 1,
  873. .channels_max = 2,
  874. .rate_min = 8000,
  875. .rate_max = 384000,
  876. },
  877. .ops = &msm_fe_dai_ops,
  878. .name = "PRI_MI2S_RX_HOSTLESS",
  879. .probe = fe_dai_probe,
  880. },
  881. {
  882. .capture = {
  883. .stream_name = "Secondary MI2S_TX Hostless Capture",
  884. .aif_name = "SEC_MI2S_UL_HL",
  885. .rates = SNDRV_PCM_RATE_8000_48000,
  886. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  887. SNDRV_PCM_FMTBIT_S24_LE),
  888. .channels_min = 1,
  889. .channels_max = 2,
  890. .rate_min = 8000,
  891. .rate_max = 48000,
  892. },
  893. .ops = &msm_fe_dai_ops,
  894. .name = "SEC_MI2S_TX_HOSTLESS",
  895. .probe = fe_dai_probe,
  896. },
  897. {
  898. .playback = {
  899. .stream_name = "Secondary MI2S_RX Hostless Playback",
  900. .aif_name = "SEC_MI2S_DL_HL",
  901. .rates = SNDRV_PCM_RATE_8000_384000,
  902. .formats = SNDRV_PCM_FMTBIT_S16_LE |
  903. SNDRV_PCM_FMTBIT_S24_LE,
  904. .channels_min = 1,
  905. .channels_max = 2,
  906. .rate_min = 8000,
  907. .rate_max = 384000,
  908. },
  909. .ops = &msm_fe_dai_ops,
  910. .name = "SEC_MI2S_RX_HOSTLESS",
  911. .probe = fe_dai_probe,
  912. },
  913. {
  914. .capture = {
  915. .stream_name = "Tertiary MI2S_TX Hostless Capture",
  916. .aif_name = "TERT_MI2S_UL_HL",
  917. .rates = SNDRV_PCM_RATE_8000_48000,
  918. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  919. SNDRV_PCM_FMTBIT_S24_LE),
  920. .channels_min = 1,
  921. .channels_max = 2,
  922. .rate_min = 8000,
  923. .rate_max = 48000,
  924. },
  925. .ops = &msm_fe_dai_ops,
  926. .name = "TERT_MI2S_TX_HOSTLESS",
  927. .probe = fe_dai_probe,
  928. },
  929. {
  930. .playback = {
  931. .stream_name = "Tertiary MI2S_RX Hostless Playback",
  932. .aif_name = "TERT_MI2S_DL_HL",
  933. .rates = SNDRV_PCM_RATE_8000_384000,
  934. .formats = SNDRV_PCM_FMTBIT_S16_LE |
  935. SNDRV_PCM_FMTBIT_S24_LE,
  936. .channels_min = 1,
  937. .channels_max = 2,
  938. .rate_min = 8000,
  939. .rate_max = 384000,
  940. },
  941. .ops = &msm_fe_dai_ops,
  942. .name = "TERT_MI2S_RX_HOSTLESS",
  943. .probe = fe_dai_probe,
  944. },
  945. {
  946. .capture = {
  947. .stream_name = "Quaternary MI2S_TX Hostless Capture",
  948. .aif_name = "QUAT_MI2S_UL_HL",
  949. .rates = SNDRV_PCM_RATE_8000_48000,
  950. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  951. SNDRV_PCM_FMTBIT_S24_LE),
  952. .channels_min = 1,
  953. .channels_max = 2,
  954. .rate_min = 8000,
  955. .rate_max = 48000,
  956. },
  957. .ops = &msm_fe_dai_ops,
  958. .name = "QUAT_MI2S_TX_HOSTLESS",
  959. .probe = fe_dai_probe,
  960. },
  961. {
  962. .playback = {
  963. .stream_name = "Quaternary MI2S_RX Hostless Playback",
  964. .aif_name = "QUAT_MI2S_DL_HL",
  965. .rates = SNDRV_PCM_RATE_8000_384000,
  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 = 384000,
  972. },
  973. .ops = &msm_fe_dai_ops,
  974. .name = "QUAT_MI2S_RX_HOSTLESS",
  975. .probe = fe_dai_probe,
  976. },
  977. {
  978. .playback = {
  979. .stream_name = "INT0 MI2S_RX Hostless Playback",
  980. .aif_name = "INT0_MI2S_DL_HL",
  981. .rates = SNDRV_PCM_RATE_8000_192000,
  982. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  983. SNDRV_PCM_FMTBIT_S24_LE),
  984. .channels_min = 1,
  985. .channels_max = 2,
  986. .rate_min = 8000,
  987. .rate_max = 192000,
  988. },
  989. .ops = &msm_fe_dai_ops,
  990. .name = "INT0_MI2S_RX_HOSTLESS",
  991. .probe = fe_dai_probe,
  992. },
  993. {
  994. .playback = {
  995. .stream_name = "INT4 MI2S_RX Hostless Playback",
  996. .aif_name = "INT4_MI2S_DL_HL",
  997. .rates = SNDRV_PCM_RATE_8000_192000,
  998. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  999. SNDRV_PCM_FMTBIT_S24_LE),
  1000. .channels_min = 1,
  1001. .channels_max = 4,
  1002. .rate_min = 8000,
  1003. .rate_max = 192000,
  1004. },
  1005. .ops = &msm_fe_dai_ops,
  1006. .name = "INT4_MI2S_RX_HOSTLESS",
  1007. .probe = fe_dai_probe,
  1008. },
  1009. {
  1010. .capture = {
  1011. .stream_name = "INT3 MI2S_TX Hostless Capture",
  1012. .aif_name = "INT3_MI2S_UL_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 = 2,
  1018. .rate_min = 8000,
  1019. .rate_max = 48000,
  1020. },
  1021. .ops = &msm_fe_dai_ops,
  1022. .name = "INT3_MI2S_TX_HOSTLESS",
  1023. .probe = fe_dai_probe,
  1024. },
  1025. /* TDM Hostless */
  1026. {
  1027. .capture = {
  1028. .stream_name = "Primary TDM0 Hostless Capture",
  1029. .aif_name = "PRI_TDM_TX_0_UL_HL",
  1030. .rates = SNDRV_PCM_RATE_8000_48000,
  1031. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1032. SNDRV_PCM_FMTBIT_S24_LE),
  1033. .channels_min = 1,
  1034. .channels_max = 8,
  1035. .rate_min = 8000,
  1036. .rate_max = 48000,
  1037. },
  1038. .ops = &msm_fe_dai_ops,
  1039. .name = "PRI_TDM_TX_0_HOSTLESS",
  1040. .probe = fe_dai_probe,
  1041. },
  1042. {
  1043. .playback = {
  1044. .stream_name = "Primary TDM0 Hostless Playback",
  1045. .aif_name = "PRI_TDM_RX_0_DL_HL",
  1046. .rates = SNDRV_PCM_RATE_8000_48000,
  1047. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1048. SNDRV_PCM_FMTBIT_S24_LE),
  1049. .channels_min = 1,
  1050. .channels_max = 8,
  1051. .rate_min = 8000,
  1052. .rate_max = 48000,
  1053. },
  1054. .ops = &msm_fe_dai_ops,
  1055. .name = "PRI_TDM_RX_0_HOSTLESS",
  1056. .probe = fe_dai_probe,
  1057. },
  1058. {
  1059. .capture = {
  1060. .stream_name = "Primary TDM1 Hostless Capture",
  1061. .aif_name = "PRI_TDM_TX_1_UL_HL",
  1062. .rates = SNDRV_PCM_RATE_8000_48000,
  1063. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1064. SNDRV_PCM_FMTBIT_S24_LE),
  1065. .channels_min = 1,
  1066. .channels_max = 8,
  1067. .rate_min = 8000,
  1068. .rate_max = 48000,
  1069. },
  1070. .ops = &msm_fe_dai_ops,
  1071. .name = "PRI_TDM_TX_1_HOSTLESS",
  1072. .probe = fe_dai_probe,
  1073. },
  1074. {
  1075. .playback = {
  1076. .stream_name = "Primary TDM1 Hostless Playback",
  1077. .aif_name = "PRI_TDM_RX_1_DL_HL",
  1078. .rates = SNDRV_PCM_RATE_8000_48000,
  1079. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1080. SNDRV_PCM_FMTBIT_S24_LE),
  1081. .channels_min = 1,
  1082. .channels_max = 8,
  1083. .rate_min = 8000,
  1084. .rate_max = 48000,
  1085. },
  1086. .ops = &msm_fe_dai_ops,
  1087. .name = "PRI_TDM_RX_1_HOSTLESS",
  1088. .probe = fe_dai_probe,
  1089. },
  1090. {
  1091. .capture = {
  1092. .stream_name = "Primary TDM2 Hostless Capture",
  1093. .aif_name = "PRI_TDM_TX_2_UL_HL",
  1094. .rates = SNDRV_PCM_RATE_8000_48000,
  1095. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1096. SNDRV_PCM_FMTBIT_S24_LE),
  1097. .channels_min = 1,
  1098. .channels_max = 8,
  1099. .rate_min = 8000,
  1100. .rate_max = 48000,
  1101. },
  1102. .ops = &msm_fe_dai_ops,
  1103. .name = "PRI_TDM_TX_2_HOSTLESS",
  1104. .probe = fe_dai_probe,
  1105. },
  1106. {
  1107. .playback = {
  1108. .stream_name = "Primary TDM2 Hostless Playback",
  1109. .aif_name = "PRI_TDM_RX_2_DL_HL",
  1110. .rates = SNDRV_PCM_RATE_8000_48000,
  1111. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1112. SNDRV_PCM_FMTBIT_S24_LE),
  1113. .channels_min = 1,
  1114. .channels_max = 8,
  1115. .rate_min = 8000,
  1116. .rate_max = 48000,
  1117. },
  1118. .ops = &msm_fe_dai_ops,
  1119. .name = "PRI_TDM_RX_2_HOSTLESS",
  1120. .probe = fe_dai_probe,
  1121. },
  1122. {
  1123. .capture = {
  1124. .stream_name = "Primary TDM3 Hostless Capture",
  1125. .aif_name = "PRI_TDM_TX_3_UL_HL",
  1126. .rates = SNDRV_PCM_RATE_8000_48000,
  1127. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1128. SNDRV_PCM_FMTBIT_S24_LE),
  1129. .channels_min = 1,
  1130. .channels_max = 8,
  1131. .rate_min = 8000,
  1132. .rate_max = 48000,
  1133. },
  1134. .ops = &msm_fe_dai_ops,
  1135. .name = "PRI_TDM_TX_3_HOSTLESS",
  1136. .probe = fe_dai_probe,
  1137. },
  1138. {
  1139. .playback = {
  1140. .stream_name = "Primary TDM3 Hostless Playback",
  1141. .aif_name = "PRI_TDM_RX_3_DL_HL",
  1142. .rates = SNDRV_PCM_RATE_8000_48000,
  1143. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1144. SNDRV_PCM_FMTBIT_S24_LE),
  1145. .channels_min = 1,
  1146. .channels_max = 8,
  1147. .rate_min = 8000,
  1148. .rate_max = 48000,
  1149. },
  1150. .ops = &msm_fe_dai_ops,
  1151. .name = "PRI_TDM_RX_3_HOSTLESS",
  1152. .probe = fe_dai_probe,
  1153. },
  1154. {
  1155. .capture = {
  1156. .stream_name = "Primary TDM4 Hostless Capture",
  1157. .aif_name = "PRI_TDM_TX_4_UL_HL",
  1158. .rates = SNDRV_PCM_RATE_8000_48000,
  1159. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1160. SNDRV_PCM_FMTBIT_S24_LE),
  1161. .channels_min = 1,
  1162. .channels_max = 8,
  1163. .rate_min = 8000,
  1164. .rate_max = 48000,
  1165. },
  1166. .ops = &msm_fe_dai_ops,
  1167. .name = "PRI_TDM_TX_4_HOSTLESS",
  1168. .probe = fe_dai_probe,
  1169. },
  1170. {
  1171. .playback = {
  1172. .stream_name = "Primary TDM4 Hostless Playback",
  1173. .aif_name = "PRI_TDM_RX_4_DL_HL",
  1174. .rates = SNDRV_PCM_RATE_8000_48000,
  1175. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1176. SNDRV_PCM_FMTBIT_S24_LE),
  1177. .channels_min = 1,
  1178. .channels_max = 8,
  1179. .rate_min = 8000,
  1180. .rate_max = 48000,
  1181. },
  1182. .ops = &msm_fe_dai_ops,
  1183. .name = "PRI_TDM_RX_4_HOSTLESS",
  1184. .probe = fe_dai_probe,
  1185. },
  1186. {
  1187. .capture = {
  1188. .stream_name = "Primary TDM5 Hostless Capture",
  1189. .aif_name = "PRI_TDM_TX_5_UL_HL",
  1190. .rates = SNDRV_PCM_RATE_8000_48000,
  1191. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1192. SNDRV_PCM_FMTBIT_S24_LE),
  1193. .channels_min = 1,
  1194. .channels_max = 8,
  1195. .rate_min = 8000,
  1196. .rate_max = 48000,
  1197. },
  1198. .ops = &msm_fe_dai_ops,
  1199. .name = "PRI_TDM_TX_5_HOSTLESS",
  1200. .probe = fe_dai_probe,
  1201. },
  1202. {
  1203. .playback = {
  1204. .stream_name = "Primary TDM5 Hostless Playback",
  1205. .aif_name = "PRI_TDM_RX_5_DL_HL",
  1206. .rates = SNDRV_PCM_RATE_8000_48000,
  1207. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1208. SNDRV_PCM_FMTBIT_S24_LE),
  1209. .channels_min = 1,
  1210. .channels_max = 8,
  1211. .rate_min = 8000,
  1212. .rate_max = 48000,
  1213. },
  1214. .ops = &msm_fe_dai_ops,
  1215. .name = "PRI_TDM_RX_5_HOSTLESS",
  1216. .probe = fe_dai_probe,
  1217. },
  1218. {
  1219. .capture = {
  1220. .stream_name = "Primary TDM6 Hostless Capture",
  1221. .aif_name = "PRI_TDM_TX_6_UL_HL",
  1222. .rates = SNDRV_PCM_RATE_8000_48000,
  1223. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1224. SNDRV_PCM_FMTBIT_S24_LE),
  1225. .channels_min = 1,
  1226. .channels_max = 8,
  1227. .rate_min = 8000,
  1228. .rate_max = 48000,
  1229. },
  1230. .ops = &msm_fe_dai_ops,
  1231. .name = "PRI_TDM_TX_6_HOSTLESS",
  1232. .probe = fe_dai_probe,
  1233. },
  1234. {
  1235. .playback = {
  1236. .stream_name = "Primary TDM6 Hostless Playback",
  1237. .aif_name = "PRI_TDM_RX_6_DL_HL",
  1238. .rates = SNDRV_PCM_RATE_8000_48000,
  1239. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1240. SNDRV_PCM_FMTBIT_S24_LE),
  1241. .channels_min = 1,
  1242. .channels_max = 8,
  1243. .rate_min = 8000,
  1244. .rate_max = 48000,
  1245. },
  1246. .ops = &msm_fe_dai_ops,
  1247. .name = "PRI_TDM_RX_6_HOSTLESS",
  1248. .probe = fe_dai_probe,
  1249. },
  1250. {
  1251. .capture = {
  1252. .stream_name = "Primary TDM7 Hostless Capture",
  1253. .aif_name = "PRI_TDM_TX_7_UL_HL",
  1254. .rates = SNDRV_PCM_RATE_8000_48000,
  1255. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1256. SNDRV_PCM_FMTBIT_S24_LE),
  1257. .channels_min = 1,
  1258. .channels_max = 8,
  1259. .rate_min = 8000,
  1260. .rate_max = 48000,
  1261. },
  1262. .ops = &msm_fe_dai_ops,
  1263. .name = "PRI_TDM_TX_7_HOSTLESS",
  1264. .probe = fe_dai_probe,
  1265. },
  1266. {
  1267. .playback = {
  1268. .stream_name = "Primary TDM7 Hostless Playback",
  1269. .aif_name = "PRI_TDM_RX_7_DL_HL",
  1270. .rates = SNDRV_PCM_RATE_8000_48000,
  1271. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1272. SNDRV_PCM_FMTBIT_S24_LE),
  1273. .channels_min = 1,
  1274. .channels_max = 8,
  1275. .rate_min = 8000,
  1276. .rate_max = 48000,
  1277. },
  1278. .ops = &msm_fe_dai_ops,
  1279. .name = "PRI_TDM_RX_7_HOSTLESS",
  1280. .probe = fe_dai_probe,
  1281. },
  1282. {
  1283. .capture = {
  1284. .stream_name = "Secondary TDM0 Hostless Capture",
  1285. .aif_name = "SEC_TDM_TX_0_UL_HL",
  1286. .rates = SNDRV_PCM_RATE_8000_48000,
  1287. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1288. SNDRV_PCM_FMTBIT_S24_LE),
  1289. .channels_min = 1,
  1290. .channels_max = 8,
  1291. .rate_min = 8000,
  1292. .rate_max = 48000,
  1293. },
  1294. .ops = &msm_fe_dai_ops,
  1295. .name = "SEC_TDM_TX_0_HOSTLESS",
  1296. .probe = fe_dai_probe,
  1297. },
  1298. {
  1299. .playback = {
  1300. .stream_name = "Secondary TDM0 Hostless Playback",
  1301. .aif_name = "SEC_TDM_RX_0_DL_HL",
  1302. .rates = SNDRV_PCM_RATE_8000_48000,
  1303. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1304. SNDRV_PCM_FMTBIT_S24_LE),
  1305. .channels_min = 1,
  1306. .channels_max = 8,
  1307. .rate_min = 8000,
  1308. .rate_max = 48000,
  1309. },
  1310. .ops = &msm_fe_dai_ops,
  1311. .name = "SEC_TDM_RX_0_HOSTLESS",
  1312. .probe = fe_dai_probe,
  1313. },
  1314. {
  1315. .capture = {
  1316. .stream_name = "Secondary TDM1 Hostless Capture",
  1317. .aif_name = "SEC_TDM_TX_1_UL_HL",
  1318. .rates = SNDRV_PCM_RATE_8000_48000,
  1319. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1320. SNDRV_PCM_FMTBIT_S24_LE),
  1321. .channels_min = 1,
  1322. .channels_max = 8,
  1323. .rate_min = 8000,
  1324. .rate_max = 48000,
  1325. },
  1326. .ops = &msm_fe_dai_ops,
  1327. .name = "SEC_TDM_TX_1_HOSTLESS",
  1328. .probe = fe_dai_probe,
  1329. },
  1330. {
  1331. .playback = {
  1332. .stream_name = "Secondary TDM1 Hostless Playback",
  1333. .aif_name = "SEC_TDM_RX_1_DL_HL",
  1334. .rates = SNDRV_PCM_RATE_8000_48000,
  1335. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1336. SNDRV_PCM_FMTBIT_S24_LE),
  1337. .channels_min = 1,
  1338. .channels_max = 8,
  1339. .rate_min = 8000,
  1340. .rate_max = 48000,
  1341. },
  1342. .ops = &msm_fe_dai_ops,
  1343. .name = "SEC_TDM_RX_1_HOSTLESS",
  1344. .probe = fe_dai_probe,
  1345. },
  1346. {
  1347. .capture = {
  1348. .stream_name = "Secondary TDM2 Hostless Capture",
  1349. .aif_name = "SEC_TDM_TX_2_UL_HL",
  1350. .rates = SNDRV_PCM_RATE_8000_48000,
  1351. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1352. SNDRV_PCM_FMTBIT_S24_LE),
  1353. .channels_min = 1,
  1354. .channels_max = 8,
  1355. .rate_min = 8000,
  1356. .rate_max = 48000,
  1357. },
  1358. .ops = &msm_fe_dai_ops,
  1359. .name = "SEC_TDM_TX_2_HOSTLESS",
  1360. .probe = fe_dai_probe,
  1361. },
  1362. {
  1363. .playback = {
  1364. .stream_name = "Secondary TDM2 Hostless Playback",
  1365. .aif_name = "SEC_TDM_RX_2_DL_HL",
  1366. .rates = SNDRV_PCM_RATE_8000_48000,
  1367. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1368. SNDRV_PCM_FMTBIT_S24_LE),
  1369. .channels_min = 1,
  1370. .channels_max = 8,
  1371. .rate_min = 8000,
  1372. .rate_max = 48000,
  1373. },
  1374. .ops = &msm_fe_dai_ops,
  1375. .name = "SEC_TDM_RX_2_HOSTLESS",
  1376. .probe = fe_dai_probe,
  1377. },
  1378. {
  1379. .capture = {
  1380. .stream_name = "Secondary TDM3 Hostless Capture",
  1381. .aif_name = "SEC_TDM_TX_3_UL_HL",
  1382. .rates = SNDRV_PCM_RATE_8000_48000,
  1383. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1384. SNDRV_PCM_FMTBIT_S24_LE),
  1385. .channels_min = 1,
  1386. .channels_max = 8,
  1387. .rate_min = 8000,
  1388. .rate_max = 48000,
  1389. },
  1390. .ops = &msm_fe_dai_ops,
  1391. .name = "SEC_TDM_TX_3_HOSTLESS",
  1392. .probe = fe_dai_probe,
  1393. },
  1394. {
  1395. .playback = {
  1396. .stream_name = "Secondary TDM3 Hostless Playback",
  1397. .aif_name = "SEC_TDM_RX_3_DL_HL",
  1398. .rates = SNDRV_PCM_RATE_8000_48000,
  1399. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1400. SNDRV_PCM_FMTBIT_S24_LE),
  1401. .channels_min = 1,
  1402. .channels_max = 8,
  1403. .rate_min = 8000,
  1404. .rate_max = 48000,
  1405. },
  1406. .ops = &msm_fe_dai_ops,
  1407. .name = "SEC_TDM_RX_3_HOSTLESS",
  1408. .probe = fe_dai_probe,
  1409. },
  1410. {
  1411. .capture = {
  1412. .stream_name = "Secondary TDM4 Hostless Capture",
  1413. .aif_name = "SEC_TDM_TX_4_UL_HL",
  1414. .rates = SNDRV_PCM_RATE_8000_48000,
  1415. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1416. SNDRV_PCM_FMTBIT_S24_LE),
  1417. .channels_min = 1,
  1418. .channels_max = 8,
  1419. .rate_min = 8000,
  1420. .rate_max = 48000,
  1421. },
  1422. .ops = &msm_fe_dai_ops,
  1423. .name = "SEC_TDM_TX_4_HOSTLESS",
  1424. .probe = fe_dai_probe,
  1425. },
  1426. {
  1427. .playback = {
  1428. .stream_name = "Secondary TDM4 Hostless Playback",
  1429. .aif_name = "SEC_TDM_RX_4_DL_HL",
  1430. .rates = SNDRV_PCM_RATE_8000_48000,
  1431. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1432. SNDRV_PCM_FMTBIT_S24_LE),
  1433. .channels_min = 1,
  1434. .channels_max = 8,
  1435. .rate_min = 8000,
  1436. .rate_max = 48000,
  1437. },
  1438. .ops = &msm_fe_dai_ops,
  1439. .name = "SEC_TDM_RX_4_HOSTLESS",
  1440. .probe = fe_dai_probe,
  1441. },
  1442. {
  1443. .capture = {
  1444. .stream_name = "Secondary TDM5 Hostless Capture",
  1445. .aif_name = "SEC_TDM_TX_5_UL_HL",
  1446. .rates = SNDRV_PCM_RATE_8000_48000,
  1447. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1448. SNDRV_PCM_FMTBIT_S24_LE),
  1449. .channels_min = 1,
  1450. .channels_max = 8,
  1451. .rate_min = 8000,
  1452. .rate_max = 48000,
  1453. },
  1454. .ops = &msm_fe_dai_ops,
  1455. .name = "SEC_TDM_TX_5_HOSTLESS",
  1456. .probe = fe_dai_probe,
  1457. },
  1458. {
  1459. .playback = {
  1460. .stream_name = "Secondary TDM5 Hostless Playback",
  1461. .aif_name = "SEC_TDM_RX_5_DL_HL",
  1462. .rates = SNDRV_PCM_RATE_8000_48000,
  1463. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1464. SNDRV_PCM_FMTBIT_S24_LE),
  1465. .channels_min = 1,
  1466. .channels_max = 8,
  1467. .rate_min = 8000,
  1468. .rate_max = 48000,
  1469. },
  1470. .ops = &msm_fe_dai_ops,
  1471. .name = "SEC_TDM_RX_5_HOSTLESS",
  1472. .probe = fe_dai_probe,
  1473. },
  1474. {
  1475. .capture = {
  1476. .stream_name = "Secondary TDM6 Hostless Capture",
  1477. .aif_name = "SEC_TDM_TX_6_UL_HL",
  1478. .rates = SNDRV_PCM_RATE_8000_48000,
  1479. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1480. SNDRV_PCM_FMTBIT_S24_LE),
  1481. .channels_min = 1,
  1482. .channels_max = 8,
  1483. .rate_min = 8000,
  1484. .rate_max = 48000,
  1485. },
  1486. .ops = &msm_fe_dai_ops,
  1487. .name = "SEC_TDM_TX_6_HOSTLESS",
  1488. .probe = fe_dai_probe,
  1489. },
  1490. {
  1491. .playback = {
  1492. .stream_name = "Secondary TDM6 Hostless Playback",
  1493. .aif_name = "SEC_TDM_RX_6_DL_HL",
  1494. .rates = SNDRV_PCM_RATE_8000_48000,
  1495. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1496. SNDRV_PCM_FMTBIT_S24_LE),
  1497. .channels_min = 1,
  1498. .channels_max = 8,
  1499. .rate_min = 8000,
  1500. .rate_max = 48000,
  1501. },
  1502. .ops = &msm_fe_dai_ops,
  1503. .name = "SEC_TDM_RX_6_HOSTLESS",
  1504. .probe = fe_dai_probe,
  1505. },
  1506. {
  1507. .capture = {
  1508. .stream_name = "Secondary TDM7 Hostless Capture",
  1509. .aif_name = "SEC_TDM_TX_7_UL_HL",
  1510. .rates = SNDRV_PCM_RATE_8000_48000,
  1511. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1512. SNDRV_PCM_FMTBIT_S24_LE),
  1513. .channels_min = 1,
  1514. .channels_max = 8,
  1515. .rate_min = 8000,
  1516. .rate_max = 48000,
  1517. },
  1518. .ops = &msm_fe_dai_ops,
  1519. .name = "SEC_TDM_TX_7_HOSTLESS",
  1520. .probe = fe_dai_probe,
  1521. },
  1522. {
  1523. .playback = {
  1524. .stream_name = "Secondary TDM7 Hostless Playback",
  1525. .aif_name = "SEC_TDM_RX_7_DL_HL",
  1526. .rates = SNDRV_PCM_RATE_8000_48000,
  1527. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1528. SNDRV_PCM_FMTBIT_S24_LE),
  1529. .channels_min = 1,
  1530. .channels_max = 8,
  1531. .rate_min = 8000,
  1532. .rate_max = 48000,
  1533. },
  1534. .ops = &msm_fe_dai_ops,
  1535. .name = "SEC_TDM_RX_7_HOSTLESS",
  1536. .probe = fe_dai_probe,
  1537. },
  1538. {
  1539. .capture = {
  1540. .stream_name = "Tertiary TDM0 Hostless Capture",
  1541. .aif_name = "TERT_TDM_TX_0_UL_HL",
  1542. .rates = SNDRV_PCM_RATE_8000_48000,
  1543. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1544. SNDRV_PCM_FMTBIT_S24_LE),
  1545. .channels_min = 1,
  1546. .channels_max = 8,
  1547. .rate_min = 8000,
  1548. .rate_max = 48000,
  1549. },
  1550. .ops = &msm_fe_dai_ops,
  1551. .name = "TERT_TDM_TX_0_HOSTLESS",
  1552. .probe = fe_dai_probe,
  1553. },
  1554. {
  1555. .playback = {
  1556. .stream_name = "Tertiary TDM0 Hostless Playback",
  1557. .aif_name = "TERT_TDM_RX_0_DL_HL",
  1558. .rates = SNDRV_PCM_RATE_8000_48000,
  1559. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1560. SNDRV_PCM_FMTBIT_S24_LE),
  1561. .channels_min = 1,
  1562. .channels_max = 8,
  1563. .rate_min = 8000,
  1564. .rate_max = 48000,
  1565. },
  1566. .ops = &msm_fe_dai_ops,
  1567. .name = "TERT_TDM_RX_0_HOSTLESS",
  1568. .probe = fe_dai_probe,
  1569. },
  1570. {
  1571. .capture = {
  1572. .stream_name = "Tertiary TDM1 Hostless Capture",
  1573. .aif_name = "TERT_TDM_TX_1_UL_HL",
  1574. .rates = SNDRV_PCM_RATE_8000_48000,
  1575. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1576. SNDRV_PCM_FMTBIT_S24_LE),
  1577. .channels_min = 1,
  1578. .channels_max = 8,
  1579. .rate_min = 8000,
  1580. .rate_max = 48000,
  1581. },
  1582. .ops = &msm_fe_dai_ops,
  1583. .name = "TERT_TDM_TX_1_HOSTLESS",
  1584. .probe = fe_dai_probe,
  1585. },
  1586. {
  1587. .playback = {
  1588. .stream_name = "Tertiary TDM1 Hostless Playback",
  1589. .aif_name = "TERT_TDM_RX_1_DL_HL",
  1590. .rates = SNDRV_PCM_RATE_8000_48000,
  1591. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1592. SNDRV_PCM_FMTBIT_S24_LE),
  1593. .channels_min = 1,
  1594. .channels_max = 8,
  1595. .rate_min = 8000,
  1596. .rate_max = 48000,
  1597. },
  1598. .ops = &msm_fe_dai_ops,
  1599. .name = "TERT_TDM_RX_1_HOSTLESS",
  1600. .probe = fe_dai_probe,
  1601. },
  1602. {
  1603. .capture = {
  1604. .stream_name = "Tertiary TDM2 Hostless Capture",
  1605. .aif_name = "TERT_TDM_TX_2_UL_HL",
  1606. .rates = SNDRV_PCM_RATE_8000_48000,
  1607. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1608. SNDRV_PCM_FMTBIT_S24_LE),
  1609. .channels_min = 1,
  1610. .channels_max = 8,
  1611. .rate_min = 8000,
  1612. .rate_max = 48000,
  1613. },
  1614. .ops = &msm_fe_dai_ops,
  1615. .name = "TERT_TDM_TX_2_HOSTLESS",
  1616. .probe = fe_dai_probe,
  1617. },
  1618. {
  1619. .playback = {
  1620. .stream_name = "Tertiary TDM2 Hostless Playback",
  1621. .aif_name = "TERT_TDM_RX_2_DL_HL",
  1622. .rates = SNDRV_PCM_RATE_8000_48000,
  1623. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1624. SNDRV_PCM_FMTBIT_S24_LE),
  1625. .channels_min = 1,
  1626. .channels_max = 8,
  1627. .rate_min = 8000,
  1628. .rate_max = 48000,
  1629. },
  1630. .ops = &msm_fe_dai_ops,
  1631. .name = "TERT_TDM_RX_2_HOSTLESS",
  1632. .probe = fe_dai_probe,
  1633. },
  1634. {
  1635. .capture = {
  1636. .stream_name = "Tertiary TDM3 Hostless Capture",
  1637. .aif_name = "TERT_TDM_TX_3_UL_HL",
  1638. .rates = SNDRV_PCM_RATE_8000_48000,
  1639. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1640. SNDRV_PCM_FMTBIT_S24_LE),
  1641. .channels_min = 1,
  1642. .channels_max = 8,
  1643. .rate_min = 8000,
  1644. .rate_max = 48000,
  1645. },
  1646. .ops = &msm_fe_dai_ops,
  1647. .name = "TERT_TDM_TX_3_HOSTLESS",
  1648. .probe = fe_dai_probe,
  1649. },
  1650. {
  1651. .playback = {
  1652. .stream_name = "Tertiary TDM3 Hostless Playback",
  1653. .aif_name = "TERT_TDM_RX_3_DL_HL",
  1654. .rates = SNDRV_PCM_RATE_8000_48000,
  1655. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1656. SNDRV_PCM_FMTBIT_S24_LE),
  1657. .channels_min = 1,
  1658. .channels_max = 8,
  1659. .rate_min = 8000,
  1660. .rate_max = 48000,
  1661. },
  1662. .ops = &msm_fe_dai_ops,
  1663. .name = "TERT_TDM_RX_3_HOSTLESS",
  1664. .probe = fe_dai_probe,
  1665. },
  1666. {
  1667. .capture = {
  1668. .stream_name = "Tertiary TDM4 Hostless Capture",
  1669. .aif_name = "TERT_TDM_TX_4_UL_HL",
  1670. .rates = SNDRV_PCM_RATE_8000_48000,
  1671. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1672. SNDRV_PCM_FMTBIT_S24_LE),
  1673. .channels_min = 1,
  1674. .channels_max = 8,
  1675. .rate_min = 8000,
  1676. .rate_max = 48000,
  1677. },
  1678. .ops = &msm_fe_dai_ops,
  1679. .name = "TERT_TDM_TX_4_HOSTLESS",
  1680. .probe = fe_dai_probe,
  1681. },
  1682. {
  1683. .playback = {
  1684. .stream_name = "Tertiary TDM4 Hostless Playback",
  1685. .aif_name = "TERT_TDM_RX_4_DL_HL",
  1686. .rates = SNDRV_PCM_RATE_8000_48000,
  1687. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1688. SNDRV_PCM_FMTBIT_S24_LE),
  1689. .channels_min = 1,
  1690. .channels_max = 8,
  1691. .rate_min = 8000,
  1692. .rate_max = 48000,
  1693. },
  1694. .ops = &msm_fe_dai_ops,
  1695. .name = "TERT_TDM_RX_4_HOSTLESS",
  1696. .probe = fe_dai_probe,
  1697. },
  1698. {
  1699. .capture = {
  1700. .stream_name = "Tertiary TDM5 Hostless Capture",
  1701. .aif_name = "TERT_TDM_TX_5_UL_HL",
  1702. .rates = SNDRV_PCM_RATE_8000_48000,
  1703. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1704. SNDRV_PCM_FMTBIT_S24_LE),
  1705. .channels_min = 1,
  1706. .channels_max = 8,
  1707. .rate_min = 8000,
  1708. .rate_max = 48000,
  1709. },
  1710. .ops = &msm_fe_dai_ops,
  1711. .name = "TERT_TDM_TX_5_HOSTLESS",
  1712. .probe = fe_dai_probe,
  1713. },
  1714. {
  1715. .playback = {
  1716. .stream_name = "Tertiary TDM5 Hostless Playback",
  1717. .aif_name = "TERT_TDM_RX_5_DL_HL",
  1718. .rates = SNDRV_PCM_RATE_8000_48000,
  1719. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1720. SNDRV_PCM_FMTBIT_S24_LE),
  1721. .channels_min = 1,
  1722. .channels_max = 8,
  1723. .rate_min = 8000,
  1724. .rate_max = 48000,
  1725. },
  1726. .ops = &msm_fe_dai_ops,
  1727. .name = "TERT_TDM_RX_5_HOSTLESS",
  1728. .probe = fe_dai_probe,
  1729. },
  1730. {
  1731. .capture = {
  1732. .stream_name = "Tertiary TDM6 Hostless Capture",
  1733. .aif_name = "TERT_TDM_TX_6_UL_HL",
  1734. .rates = SNDRV_PCM_RATE_8000_48000,
  1735. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1736. SNDRV_PCM_FMTBIT_S24_LE),
  1737. .channels_min = 1,
  1738. .channels_max = 8,
  1739. .rate_min = 8000,
  1740. .rate_max = 48000,
  1741. },
  1742. .ops = &msm_fe_dai_ops,
  1743. .name = "TERT_TDM_TX_6_HOSTLESS",
  1744. .probe = fe_dai_probe,
  1745. },
  1746. {
  1747. .playback = {
  1748. .stream_name = "Tertiary TDM6 Hostless Playback",
  1749. .aif_name = "TERT_TDM_RX_6_DL_HL",
  1750. .rates = SNDRV_PCM_RATE_8000_48000,
  1751. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1752. SNDRV_PCM_FMTBIT_S24_LE),
  1753. .channels_min = 1,
  1754. .channels_max = 8,
  1755. .rate_min = 8000,
  1756. .rate_max = 48000,
  1757. },
  1758. .ops = &msm_fe_dai_ops,
  1759. .name = "TERT_TDM_RX_6_HOSTLESS",
  1760. .probe = fe_dai_probe,
  1761. },
  1762. {
  1763. .capture = {
  1764. .stream_name = "Tertiary TDM7 Hostless Capture",
  1765. .aif_name = "TERT_TDM_TX_7_UL_HL",
  1766. .rates = SNDRV_PCM_RATE_8000_48000,
  1767. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1768. SNDRV_PCM_FMTBIT_S24_LE),
  1769. .channels_min = 1,
  1770. .channels_max = 8,
  1771. .rate_min = 8000,
  1772. .rate_max = 48000,
  1773. },
  1774. .ops = &msm_fe_dai_ops,
  1775. .name = "TERT_TDM_TX_7_HOSTLESS",
  1776. .probe = fe_dai_probe,
  1777. },
  1778. {
  1779. .playback = {
  1780. .stream_name = "Tertiary TDM7 Hostless Playback",
  1781. .aif_name = "TERT_TDM_RX_7_DL_HL",
  1782. .rates = SNDRV_PCM_RATE_8000_48000,
  1783. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1784. SNDRV_PCM_FMTBIT_S24_LE),
  1785. .channels_min = 1,
  1786. .channels_max = 8,
  1787. .rate_min = 8000,
  1788. .rate_max = 48000,
  1789. },
  1790. .ops = &msm_fe_dai_ops,
  1791. .name = "TERT_TDM_RX_7_HOSTLESS",
  1792. .probe = fe_dai_probe,
  1793. },
  1794. {
  1795. .capture = {
  1796. .stream_name = "Quaternary TDM0 Hostless Capture",
  1797. .aif_name = "QUAT_TDM_TX_0_UL_HL",
  1798. .rates = SNDRV_PCM_RATE_8000_48000,
  1799. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1800. SNDRV_PCM_FMTBIT_S24_LE),
  1801. .channels_min = 1,
  1802. .channels_max = 8,
  1803. .rate_min = 8000,
  1804. .rate_max = 48000,
  1805. },
  1806. .ops = &msm_fe_dai_ops,
  1807. .name = "QUAT_TDM_TX_0_HOSTLESS",
  1808. .probe = fe_dai_probe,
  1809. },
  1810. {
  1811. .playback = {
  1812. .stream_name = "Quaternary TDM0 Hostless Playback",
  1813. .aif_name = "QUAT_TDM_RX_0_DL_HL",
  1814. .rates = SNDRV_PCM_RATE_8000_48000,
  1815. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1816. SNDRV_PCM_FMTBIT_S24_LE),
  1817. .channels_min = 1,
  1818. .channels_max = 8,
  1819. .rate_min = 8000,
  1820. .rate_max = 48000,
  1821. },
  1822. .ops = &msm_fe_dai_ops,
  1823. .name = "QUAT_TDM_RX_0_HOSTLESS",
  1824. .probe = fe_dai_probe,
  1825. },
  1826. {
  1827. .capture = {
  1828. .stream_name = "Quaternary TDM1 Hostless Capture",
  1829. .aif_name = "QUAT_TDM_TX_1_UL_HL",
  1830. .rates = SNDRV_PCM_RATE_8000_48000,
  1831. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1832. SNDRV_PCM_FMTBIT_S24_LE),
  1833. .channels_min = 1,
  1834. .channels_max = 8,
  1835. .rate_min = 8000,
  1836. .rate_max = 48000,
  1837. },
  1838. .ops = &msm_fe_dai_ops,
  1839. .name = "QUAT_TDM_TX_1_HOSTLESS",
  1840. .probe = fe_dai_probe,
  1841. },
  1842. {
  1843. .playback = {
  1844. .stream_name = "Quaternary TDM1 Hostless Playback",
  1845. .aif_name = "QUAT_TDM_RX_1_DL_HL",
  1846. .rates = SNDRV_PCM_RATE_8000_48000,
  1847. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1848. SNDRV_PCM_FMTBIT_S24_LE),
  1849. .channels_min = 1,
  1850. .channels_max = 8,
  1851. .rate_min = 8000,
  1852. .rate_max = 48000,
  1853. },
  1854. .ops = &msm_fe_dai_ops,
  1855. .name = "QUAT_TDM_RX_1_HOSTLESS",
  1856. .probe = fe_dai_probe,
  1857. },
  1858. {
  1859. .capture = {
  1860. .stream_name = "Quaternary TDM2 Hostless Capture",
  1861. .aif_name = "QUAT_TDM_TX_2_UL_HL",
  1862. .rates = SNDRV_PCM_RATE_8000_48000,
  1863. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1864. SNDRV_PCM_FMTBIT_S24_LE),
  1865. .channels_min = 1,
  1866. .channels_max = 8,
  1867. .rate_min = 8000,
  1868. .rate_max = 48000,
  1869. },
  1870. .ops = &msm_fe_dai_ops,
  1871. .name = "QUAT_TDM_TX_2_HOSTLESS",
  1872. .probe = fe_dai_probe,
  1873. },
  1874. {
  1875. .playback = {
  1876. .stream_name = "Quaternary TDM2 Hostless Playback",
  1877. .aif_name = "QUAT_TDM_RX_2_DL_HL",
  1878. .rates = SNDRV_PCM_RATE_8000_48000,
  1879. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1880. SNDRV_PCM_FMTBIT_S24_LE),
  1881. .channels_min = 1,
  1882. .channels_max = 8,
  1883. .rate_min = 8000,
  1884. .rate_max = 48000,
  1885. },
  1886. .ops = &msm_fe_dai_ops,
  1887. .name = "QUAT_TDM_RX_2_HOSTLESS",
  1888. .probe = fe_dai_probe,
  1889. },
  1890. {
  1891. .capture = {
  1892. .stream_name = "Quaternary TDM3 Hostless Capture",
  1893. .aif_name = "QUAT_TDM_TX_3_UL_HL",
  1894. .rates = SNDRV_PCM_RATE_8000_48000,
  1895. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1896. SNDRV_PCM_FMTBIT_S24_LE),
  1897. .channels_min = 1,
  1898. .channels_max = 8,
  1899. .rate_min = 8000,
  1900. .rate_max = 48000,
  1901. },
  1902. .ops = &msm_fe_dai_ops,
  1903. .name = "QUAT_TDM_TX_3_HOSTLESS",
  1904. .probe = fe_dai_probe,
  1905. },
  1906. {
  1907. .playback = {
  1908. .stream_name = "Quaternary TDM3 Hostless Playback",
  1909. .aif_name = "QUAT_TDM_RX_3_DL_HL",
  1910. .rates = SNDRV_PCM_RATE_8000_48000,
  1911. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1912. SNDRV_PCM_FMTBIT_S24_LE),
  1913. .channels_min = 1,
  1914. .channels_max = 8,
  1915. .rate_min = 8000,
  1916. .rate_max = 48000,
  1917. },
  1918. .ops = &msm_fe_dai_ops,
  1919. .name = "QUAT_TDM_RX_3_HOSTLESS",
  1920. .probe = fe_dai_probe,
  1921. },
  1922. {
  1923. .capture = {
  1924. .stream_name = "Quaternary TDM4 Hostless Capture",
  1925. .aif_name = "QUAT_TDM_TX_4_UL_HL",
  1926. .rates = SNDRV_PCM_RATE_8000_48000,
  1927. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1928. SNDRV_PCM_FMTBIT_S24_LE),
  1929. .channels_min = 1,
  1930. .channels_max = 8,
  1931. .rate_min = 8000,
  1932. .rate_max = 48000,
  1933. },
  1934. .ops = &msm_fe_dai_ops,
  1935. .name = "QUAT_TDM_TX_4_HOSTLESS",
  1936. .probe = fe_dai_probe,
  1937. },
  1938. {
  1939. .playback = {
  1940. .stream_name = "Quaternary TDM4 Hostless Playback",
  1941. .aif_name = "QUAT_TDM_RX_4_DL_HL",
  1942. .rates = SNDRV_PCM_RATE_8000_48000,
  1943. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1944. SNDRV_PCM_FMTBIT_S24_LE),
  1945. .channels_min = 1,
  1946. .channels_max = 8,
  1947. .rate_min = 8000,
  1948. .rate_max = 48000,
  1949. },
  1950. .ops = &msm_fe_dai_ops,
  1951. .name = "QUAT_TDM_RX_4_HOSTLESS",
  1952. .probe = fe_dai_probe,
  1953. },
  1954. {
  1955. .capture = {
  1956. .stream_name = "Quaternary TDM5 Hostless Capture",
  1957. .aif_name = "QUAT_TDM_TX_5_UL_HL",
  1958. .rates = SNDRV_PCM_RATE_8000_48000,
  1959. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1960. SNDRV_PCM_FMTBIT_S24_LE),
  1961. .channels_min = 1,
  1962. .channels_max = 8,
  1963. .rate_min = 8000,
  1964. .rate_max = 48000,
  1965. },
  1966. .ops = &msm_fe_dai_ops,
  1967. .name = "QUAT_TDM_TX_5_HOSTLESS",
  1968. .probe = fe_dai_probe,
  1969. },
  1970. {
  1971. .playback = {
  1972. .stream_name = "Quaternary TDM5 Hostless Playback",
  1973. .aif_name = "QUAT_TDM_RX_5_DL_HL",
  1974. .rates = SNDRV_PCM_RATE_8000_48000,
  1975. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1976. SNDRV_PCM_FMTBIT_S24_LE),
  1977. .channels_min = 1,
  1978. .channels_max = 8,
  1979. .rate_min = 8000,
  1980. .rate_max = 48000,
  1981. },
  1982. .ops = &msm_fe_dai_ops,
  1983. .name = "QUAT_TDM_RX_5_HOSTLESS",
  1984. .probe = fe_dai_probe,
  1985. },
  1986. {
  1987. .capture = {
  1988. .stream_name = "Quaternary TDM6 Hostless Capture",
  1989. .aif_name = "QUAT_TDM_TX_6_UL_HL",
  1990. .rates = SNDRV_PCM_RATE_8000_48000,
  1991. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1992. SNDRV_PCM_FMTBIT_S24_LE),
  1993. .channels_min = 1,
  1994. .channels_max = 8,
  1995. .rate_min = 8000,
  1996. .rate_max = 48000,
  1997. },
  1998. .ops = &msm_fe_dai_ops,
  1999. .name = "QUAT_TDM_TX_6_HOSTLESS",
  2000. .probe = fe_dai_probe,
  2001. },
  2002. {
  2003. .playback = {
  2004. .stream_name = "Quaternary TDM6 Hostless Playback",
  2005. .aif_name = "QUAT_TDM_RX_6_DL_HL",
  2006. .rates = SNDRV_PCM_RATE_8000_48000,
  2007. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2008. SNDRV_PCM_FMTBIT_S24_LE),
  2009. .channels_min = 1,
  2010. .channels_max = 8,
  2011. .rate_min = 8000,
  2012. .rate_max = 48000,
  2013. },
  2014. .ops = &msm_fe_dai_ops,
  2015. .name = "QUAT_TDM_RX_6_HOSTLESS",
  2016. .probe = fe_dai_probe,
  2017. },
  2018. {
  2019. .capture = {
  2020. .stream_name = "Quaternary TDM7 Hostless Capture",
  2021. .aif_name = "QUAT_TDM_TX_7_UL_HL",
  2022. .rates = SNDRV_PCM_RATE_8000_48000,
  2023. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2024. SNDRV_PCM_FMTBIT_S24_LE),
  2025. .channels_min = 1,
  2026. .channels_max = 8,
  2027. .rate_min = 8000,
  2028. .rate_max = 48000,
  2029. },
  2030. .ops = &msm_fe_dai_ops,
  2031. .name = "QUAT_TDM_TX_7_HOSTLESS",
  2032. .probe = fe_dai_probe,
  2033. },
  2034. {
  2035. .playback = {
  2036. .stream_name = "Quaternary TDM7 Hostless Playback",
  2037. .aif_name = "QUAT_TDM_RX_7_DL_HL",
  2038. .rates = SNDRV_PCM_RATE_8000_48000,
  2039. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2040. SNDRV_PCM_FMTBIT_S24_LE),
  2041. .channels_min = 1,
  2042. .channels_max = 8,
  2043. .rate_min = 8000,
  2044. .rate_max = 48000,
  2045. },
  2046. .ops = &msm_fe_dai_ops,
  2047. .name = "QUAT_TDM_RX_7_HOSTLESS",
  2048. .probe = fe_dai_probe,
  2049. },
  2050. {
  2051. .playback = {
  2052. .stream_name = "DTMF_RX_HOSTLESS Playback",
  2053. .aif_name = "DTMF_DL_HL",
  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 = "DTMF_RX_HOSTLESS",
  2063. .probe = fe_dai_probe,
  2064. },
  2065. {
  2066. .capture = {
  2067. .stream_name = "CPE Listen Audio capture",
  2068. .aif_name = "CPE_LSM_UL_HL",
  2069. .rates = SNDRV_PCM_RATE_8000_48000,
  2070. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2071. SNDRV_PCM_FMTBIT_S24_LE),
  2072. .channels_min = 1,
  2073. .channels_max = 1,
  2074. .rate_min = 8000,
  2075. .rate_max = 48000,
  2076. },
  2077. .ops = &msm_fe_dai_ops,
  2078. .name = "CPE_LSM_NOHOST",
  2079. },
  2080. {
  2081. .playback = {
  2082. .stream_name = "VOLTE_STUB Playback",
  2083. .aif_name = "VOLTE_STUB_DL",
  2084. .rates = SNDRV_PCM_RATE_8000_48000,
  2085. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2086. .channels_min = 1,
  2087. .channels_max = 2,
  2088. .rate_min = 8000,
  2089. .rate_max = 48000,
  2090. },
  2091. .capture = {
  2092. .stream_name = "VOLTE_STUB Capture",
  2093. .aif_name = "VOLTE_STUB_UL",
  2094. .rates = SNDRV_PCM_RATE_8000_48000,
  2095. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2096. .channels_min = 1,
  2097. .channels_max = 2,
  2098. .rate_min = 8000,
  2099. .rate_max = 48000,
  2100. },
  2101. .ops = &msm_fe_dai_ops,
  2102. .name = "VOLTE_STUB",
  2103. .probe = fe_dai_probe,
  2104. },
  2105. {
  2106. .playback = {
  2107. .stream_name = "VOICE2_STUB Playback",
  2108. .aif_name = "VOICE2_STUB_DL",
  2109. .rates = SNDRV_PCM_RATE_8000_48000,
  2110. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2111. .channels_min = 1,
  2112. .channels_max = 2,
  2113. .rate_min = 8000,
  2114. .rate_max = 48000,
  2115. },
  2116. .capture = {
  2117. .stream_name = "VOICE2_STUB Capture",
  2118. .aif_name = "VOICE2_STUB_UL",
  2119. .rates = SNDRV_PCM_RATE_8000_48000,
  2120. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2121. .channels_min = 1,
  2122. .channels_max = 2,
  2123. .rate_min = 8000,
  2124. .rate_max = 48000,
  2125. },
  2126. .ops = &msm_fe_dai_ops,
  2127. .name = "VOICE2_STUB",
  2128. .probe = fe_dai_probe,
  2129. },
  2130. {
  2131. .playback = {
  2132. .stream_name = "MultiMedia9 Playback",
  2133. .aif_name = "MM_DL9",
  2134. .rates = (SNDRV_PCM_RATE_8000_384000|
  2135. SNDRV_PCM_RATE_KNOT),
  2136. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2137. SNDRV_PCM_FMTBIT_S24_LE |
  2138. SNDRV_PCM_FMTBIT_S24_3LE),
  2139. .channels_min = 1,
  2140. .channels_max = 8,
  2141. .rate_min = 8000,
  2142. .rate_max = 384000,
  2143. },
  2144. .capture = {
  2145. .stream_name = "MultiMedia9 Capture",
  2146. .aif_name = "MM_UL9",
  2147. .rates = (SNDRV_PCM_RATE_8000_48000|
  2148. SNDRV_PCM_RATE_KNOT),
  2149. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2150. .channels_min = 1,
  2151. .channels_max = 8,
  2152. .rate_min = 8000,
  2153. .rate_max = 48000,
  2154. },
  2155. .ops = &msm_fe_Multimedia_dai_ops,
  2156. .name = "MultiMedia9",
  2157. .probe = fe_dai_probe,
  2158. },
  2159. {
  2160. .playback = {
  2161. .stream_name = "QCHAT Playback",
  2162. .aif_name = "QCHAT_DL",
  2163. .rates = SNDRV_PCM_RATE_8000_48000,
  2164. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2165. .channels_min = 1,
  2166. .channels_max = 2,
  2167. .rate_min = 8000,
  2168. .rate_max = 48000,
  2169. },
  2170. .capture = {
  2171. .stream_name = "QCHAT Capture",
  2172. .aif_name = "QCHAT_UL",
  2173. .rates = SNDRV_PCM_RATE_8000_48000,
  2174. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2175. .channels_min = 1,
  2176. .channels_max = 2,
  2177. .rate_min = 8000,
  2178. .rate_max = 48000,
  2179. },
  2180. .ops = &msm_fe_dai_ops,
  2181. .name = "QCHAT",
  2182. .probe = fe_dai_probe,
  2183. },
  2184. {
  2185. .capture = {
  2186. .stream_name = "Listen 1 Audio Service Capture",
  2187. .aif_name = "LSM1_UL_HL",
  2188. .rates = (SNDRV_PCM_RATE_16000 |
  2189. SNDRV_PCM_RATE_48000),
  2190. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2191. SNDRV_PCM_FMTBIT_S24_LE),
  2192. .channels_min = 1,
  2193. .channels_max = 4,
  2194. .rate_min = 16000,
  2195. .rate_max = 48000,
  2196. },
  2197. .ops = &msm_fe_dai_ops,
  2198. .name = "LSM1",
  2199. .probe = fe_dai_probe,
  2200. },
  2201. {
  2202. .capture = {
  2203. .stream_name = "Listen 2 Audio Service Capture",
  2204. .aif_name = "LSM2_UL_HL",
  2205. .rates = (SNDRV_PCM_RATE_16000 |
  2206. SNDRV_PCM_RATE_48000),
  2207. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2208. SNDRV_PCM_FMTBIT_S24_LE),
  2209. .channels_min = 1,
  2210. .channels_max = 4,
  2211. .rate_min = 16000,
  2212. .rate_max = 48000,
  2213. },
  2214. .ops = &msm_fe_dai_ops,
  2215. .name = "LSM2",
  2216. .probe = fe_dai_probe,
  2217. },
  2218. {
  2219. .capture = {
  2220. .stream_name = "Listen 3 Audio Service Capture",
  2221. .aif_name = "LSM3_UL_HL",
  2222. .rates = (SNDRV_PCM_RATE_16000 |
  2223. SNDRV_PCM_RATE_48000),
  2224. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2225. SNDRV_PCM_FMTBIT_S24_LE),
  2226. .channels_min = 1,
  2227. .channels_max = 4,
  2228. .rate_min = 16000,
  2229. .rate_max = 48000,
  2230. },
  2231. .ops = &msm_fe_dai_ops,
  2232. .name = "LSM3",
  2233. .probe = fe_dai_probe,
  2234. },
  2235. {
  2236. .capture = {
  2237. .stream_name = "Listen 4 Audio Service Capture",
  2238. .aif_name = "LSM4_UL_HL",
  2239. .rates = (SNDRV_PCM_RATE_16000 |
  2240. SNDRV_PCM_RATE_48000),
  2241. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2242. SNDRV_PCM_FMTBIT_S24_LE),
  2243. .channels_min = 1,
  2244. .channels_max = 4,
  2245. .rate_min = 16000,
  2246. .rate_max = 48000,
  2247. },
  2248. .ops = &msm_fe_dai_ops,
  2249. .name = "LSM4",
  2250. .probe = fe_dai_probe,
  2251. },
  2252. {
  2253. .capture = {
  2254. .stream_name = "Listen 5 Audio Service Capture",
  2255. .aif_name = "LSM5_UL_HL",
  2256. .rates = (SNDRV_PCM_RATE_16000 |
  2257. SNDRV_PCM_RATE_48000),
  2258. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2259. SNDRV_PCM_FMTBIT_S24_LE),
  2260. .channels_min = 1,
  2261. .channels_max = 4,
  2262. .rate_min = 16000,
  2263. .rate_max = 48000,
  2264. },
  2265. .ops = &msm_fe_dai_ops,
  2266. .name = "LSM5",
  2267. .probe = fe_dai_probe,
  2268. },
  2269. {
  2270. .capture = {
  2271. .stream_name = "Listen 6 Audio Service Capture",
  2272. .aif_name = "LSM6_UL_HL",
  2273. .rates = (SNDRV_PCM_RATE_16000 |
  2274. SNDRV_PCM_RATE_48000),
  2275. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2276. SNDRV_PCM_FMTBIT_S24_LE),
  2277. .channels_min = 1,
  2278. .channels_max = 4,
  2279. .rate_min = 16000,
  2280. .rate_max = 48000,
  2281. },
  2282. .ops = &msm_fe_dai_ops,
  2283. .name = "LSM6",
  2284. .probe = fe_dai_probe,
  2285. },
  2286. {
  2287. .capture = {
  2288. .stream_name = "Listen 7 Audio Service Capture",
  2289. .aif_name = "LSM7_UL_HL",
  2290. .rates = (SNDRV_PCM_RATE_16000 |
  2291. SNDRV_PCM_RATE_48000),
  2292. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2293. SNDRV_PCM_FMTBIT_S24_LE),
  2294. .channels_min = 1,
  2295. .channels_max = 4,
  2296. .rate_min = 16000,
  2297. .rate_max = 48000,
  2298. },
  2299. .ops = &msm_fe_dai_ops,
  2300. .name = "LSM7",
  2301. .probe = fe_dai_probe,
  2302. },
  2303. {
  2304. .capture = {
  2305. .stream_name = "Listen 8 Audio Service Capture",
  2306. .aif_name = "LSM8_UL_HL",
  2307. .rates = (SNDRV_PCM_RATE_16000 |
  2308. SNDRV_PCM_RATE_48000),
  2309. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2310. SNDRV_PCM_FMTBIT_S24_LE),
  2311. .channels_min = 1,
  2312. .channels_max = 4,
  2313. .rate_min = 16000,
  2314. .rate_max = 48000,
  2315. },
  2316. .ops = &msm_fe_dai_ops,
  2317. .name = "LSM8",
  2318. .probe = fe_dai_probe,
  2319. },
  2320. /* FE DAIs created for multiple instances of offload playback */
  2321. {
  2322. .playback = {
  2323. .stream_name = "MultiMedia10 Playback",
  2324. .aif_name = "MM_DL10",
  2325. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2326. SNDRV_PCM_RATE_KNOT),
  2327. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2328. SNDRV_PCM_FMTBIT_S24_LE |
  2329. SNDRV_PCM_FMTBIT_S24_3LE |
  2330. SNDRV_PCM_FMTBIT_S32_LE),
  2331. .channels_min = 1,
  2332. .channels_max = 8,
  2333. .rate_min = 8000,
  2334. .rate_max = 384000,
  2335. },
  2336. .capture = {
  2337. .stream_name = "MultiMedia10 Capture",
  2338. .aif_name = "MM_UL10",
  2339. .rates = (SNDRV_PCM_RATE_8000_48000 |
  2340. SNDRV_PCM_RATE_KNOT),
  2341. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2342. SNDRV_PCM_FMTBIT_S24_LE |
  2343. SNDRV_PCM_FMTBIT_S24_3LE),
  2344. .channels_min = 1,
  2345. .channels_max = 8,
  2346. .rate_min = 8000,
  2347. .rate_max = 48000,
  2348. },
  2349. .ops = &msm_fe_Multimedia_dai_ops,
  2350. .name = "MultiMedia10",
  2351. .probe = fe_dai_probe,
  2352. },
  2353. {
  2354. .playback = {
  2355. .stream_name = "MultiMedia11 Playback",
  2356. .aif_name = "MM_DL11",
  2357. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2358. SNDRV_PCM_RATE_KNOT),
  2359. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2360. SNDRV_PCM_FMTBIT_S24_LE |
  2361. SNDRV_PCM_FMTBIT_S24_3LE |
  2362. SNDRV_PCM_FMTBIT_S32_LE),
  2363. .channels_min = 1,
  2364. .channels_max = 8,
  2365. .rate_min = 8000,
  2366. .rate_max = 384000,
  2367. },
  2368. .ops = &msm_fe_Multimedia_dai_ops,
  2369. .compress_new = snd_soc_new_compress,
  2370. .name = "MultiMedia11",
  2371. .probe = fe_dai_probe,
  2372. },
  2373. {
  2374. .playback = {
  2375. .stream_name = "MultiMedia12 Playback",
  2376. .aif_name = "MM_DL12",
  2377. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2378. SNDRV_PCM_RATE_KNOT),
  2379. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2380. SNDRV_PCM_FMTBIT_S24_LE |
  2381. SNDRV_PCM_FMTBIT_S24_3LE |
  2382. SNDRV_PCM_FMTBIT_S32_LE),
  2383. .channels_min = 1,
  2384. .channels_max = 8,
  2385. .rate_min = 8000,
  2386. .rate_max = 384000,
  2387. },
  2388. .ops = &msm_fe_Multimedia_dai_ops,
  2389. .compress_new = snd_soc_new_compress,
  2390. .name = "MultiMedia12",
  2391. .probe = fe_dai_probe,
  2392. },
  2393. {
  2394. .playback = {
  2395. .stream_name = "MultiMedia13 Playback",
  2396. .aif_name = "MM_DL13",
  2397. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2398. SNDRV_PCM_RATE_KNOT),
  2399. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2400. SNDRV_PCM_FMTBIT_S24_LE |
  2401. SNDRV_PCM_FMTBIT_S24_3LE |
  2402. SNDRV_PCM_FMTBIT_S32_LE),
  2403. .channels_min = 1,
  2404. .channels_max = 8,
  2405. .rate_min = 8000,
  2406. .rate_max = 384000,
  2407. },
  2408. .ops = &msm_fe_Multimedia_dai_ops,
  2409. .compress_new = snd_soc_new_compress,
  2410. .name = "MultiMedia13",
  2411. .probe = fe_dai_probe,
  2412. },
  2413. {
  2414. .playback = {
  2415. .stream_name = "MultiMedia14 Playback",
  2416. .aif_name = "MM_DL14",
  2417. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2418. SNDRV_PCM_RATE_KNOT),
  2419. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2420. SNDRV_PCM_FMTBIT_S24_LE |
  2421. SNDRV_PCM_FMTBIT_S24_3LE |
  2422. SNDRV_PCM_FMTBIT_S32_LE),
  2423. .channels_min = 1,
  2424. .channels_max = 8,
  2425. .rate_min = 8000,
  2426. .rate_max = 384000,
  2427. },
  2428. .ops = &msm_fe_Multimedia_dai_ops,
  2429. .compress_new = snd_soc_new_compress,
  2430. .name = "MultiMedia14",
  2431. .probe = fe_dai_probe,
  2432. },
  2433. {
  2434. .playback = {
  2435. .stream_name = "MultiMedia15 Playback",
  2436. .aif_name = "MM_DL15",
  2437. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2438. SNDRV_PCM_RATE_KNOT),
  2439. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2440. SNDRV_PCM_FMTBIT_S24_LE |
  2441. SNDRV_PCM_FMTBIT_S24_3LE |
  2442. SNDRV_PCM_FMTBIT_S32_LE),
  2443. .channels_min = 1,
  2444. .channels_max = 8,
  2445. .rate_min = 8000,
  2446. .rate_max = 384000,
  2447. },
  2448. .ops = &msm_fe_Multimedia_dai_ops,
  2449. .compress_new = snd_soc_new_compress,
  2450. .name = "MultiMedia15",
  2451. .probe = fe_dai_probe,
  2452. },
  2453. {
  2454. .playback = {
  2455. .stream_name = "MultiMedia16 Playback",
  2456. .aif_name = "MM_DL16",
  2457. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2458. SNDRV_PCM_RATE_KNOT),
  2459. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2460. SNDRV_PCM_FMTBIT_S24_LE |
  2461. SNDRV_PCM_FMTBIT_S24_3LE |
  2462. SNDRV_PCM_FMTBIT_S32_LE),
  2463. .channels_min = 1,
  2464. .channels_max = 8,
  2465. .rate_min = 8000,
  2466. .rate_max = 384000,
  2467. },
  2468. .capture = {
  2469. .stream_name = "MultiMedia16 Capture",
  2470. .aif_name = "MM_UL16",
  2471. .rates = (SNDRV_PCM_RATE_8000_48000|
  2472. SNDRV_PCM_RATE_KNOT),
  2473. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2474. SNDRV_PCM_FMTBIT_S24_LE |
  2475. SNDRV_PCM_FMTBIT_S24_3LE |
  2476. SNDRV_PCM_FMTBIT_S32_LE),
  2477. .channels_min = 1,
  2478. .channels_max = 8,
  2479. .rate_min = 8000,
  2480. .rate_max = 48000,
  2481. },
  2482. .ops = &msm_fe_Multimedia_dai_ops,
  2483. .name = "MultiMedia16",
  2484. .probe = fe_dai_probe,
  2485. },
  2486. {
  2487. .playback = {
  2488. .stream_name = "VoiceMMode1 Playback",
  2489. .aif_name = "VOICEMMODE1_DL",
  2490. .rates = SNDRV_PCM_RATE_8000_48000,
  2491. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2492. .channels_min = 1,
  2493. .channels_max = 2,
  2494. .rate_min = 8000,
  2495. .rate_max = 48000,
  2496. },
  2497. .capture = {
  2498. .stream_name = "VoiceMMode1 Capture",
  2499. .aif_name = "VOICEMMODE1_UL",
  2500. .rates = SNDRV_PCM_RATE_8000_48000,
  2501. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2502. .channels_min = 1,
  2503. .channels_max = 2,
  2504. .rate_min = 8000,
  2505. .rate_max = 48000,
  2506. },
  2507. .ops = &msm_fe_dai_ops,
  2508. .name = "VoiceMMode1",
  2509. .probe = fe_dai_probe,
  2510. },
  2511. {
  2512. .playback = {
  2513. .stream_name = "VoiceMMode2 Playback",
  2514. .aif_name = "VOICEMMODE2_DL",
  2515. .rates = SNDRV_PCM_RATE_8000_48000,
  2516. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2517. .channels_min = 1,
  2518. .channels_max = 2,
  2519. .rate_min = 8000,
  2520. .rate_max = 48000,
  2521. },
  2522. .capture = {
  2523. .stream_name = "VoiceMMode2 Capture",
  2524. .aif_name = "VOICEMMODE2_UL",
  2525. .rates = SNDRV_PCM_RATE_8000_48000,
  2526. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2527. .channels_min = 1,
  2528. .channels_max = 2,
  2529. .rate_min = 8000,
  2530. .rate_max = 48000,
  2531. },
  2532. .ops = &msm_fe_dai_ops,
  2533. .name = "VoiceMMode2",
  2534. .probe = fe_dai_probe,
  2535. },
  2536. {
  2537. .capture = {
  2538. .stream_name = "MultiMedia17 Capture",
  2539. .aif_name = "MM_UL17",
  2540. .rates = (SNDRV_PCM_RATE_8000_192000|
  2541. SNDRV_PCM_RATE_KNOT),
  2542. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2543. SNDRV_PCM_FMTBIT_S24_LE |
  2544. SNDRV_PCM_FMTBIT_S24_3LE),
  2545. .channels_min = 1,
  2546. .channels_max = 8,
  2547. .rate_min = 8000,
  2548. .rate_max = 192000,
  2549. },
  2550. .ops = &msm_fe_Multimedia_dai_ops,
  2551. .compress_new = snd_soc_new_compress,
  2552. .name = "MultiMedia17",
  2553. .probe = fe_dai_probe,
  2554. },
  2555. {
  2556. .capture = {
  2557. .stream_name = "MultiMedia18 Capture",
  2558. .aif_name = "MM_UL18",
  2559. .rates = (SNDRV_PCM_RATE_8000_192000|
  2560. SNDRV_PCM_RATE_KNOT),
  2561. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2562. SNDRV_PCM_FMTBIT_S24_LE |
  2563. SNDRV_PCM_FMTBIT_S24_3LE),
  2564. .channels_min = 1,
  2565. .channels_max = 8,
  2566. .rate_min = 8000,
  2567. .rate_max = 192000,
  2568. },
  2569. .ops = &msm_fe_Multimedia_dai_ops,
  2570. .compress_new = snd_soc_new_compress,
  2571. .name = "MultiMedia18",
  2572. .probe = fe_dai_probe,
  2573. },
  2574. {
  2575. .capture = {
  2576. .stream_name = "MultiMedia19 Capture",
  2577. .aif_name = "MM_UL19",
  2578. .rates = (SNDRV_PCM_RATE_8000_192000|
  2579. SNDRV_PCM_RATE_KNOT),
  2580. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2581. SNDRV_PCM_FMTBIT_S24_LE |
  2582. SNDRV_PCM_FMTBIT_S24_3LE),
  2583. .channels_min = 1,
  2584. .channels_max = 8,
  2585. .rate_min = 8000,
  2586. .rate_max = 192000,
  2587. },
  2588. .ops = &msm_fe_Multimedia_dai_ops,
  2589. .compress_new = snd_soc_new_compress,
  2590. .name = "MultiMedia19",
  2591. .probe = fe_dai_probe,
  2592. },
  2593. {
  2594. .playback = {
  2595. .stream_name = "MultiMedia20 Playback",
  2596. .aif_name = "MM_DL20",
  2597. .rates = (SNDRV_PCM_RATE_8000_384000|
  2598. SNDRV_PCM_RATE_KNOT),
  2599. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2600. SNDRV_PCM_FMTBIT_S24_LE |
  2601. SNDRV_PCM_FMTBIT_S24_3LE |
  2602. SNDRV_PCM_FMTBIT_S32_LE),
  2603. .channels_min = 1,
  2604. .channels_max = 8,
  2605. .rate_min = 8000,
  2606. .rate_max = 384000,
  2607. },
  2608. .capture = {
  2609. .stream_name = "MultiMedia20 Capture",
  2610. .aif_name = "MM_UL20",
  2611. .rates = (SNDRV_PCM_RATE_8000_48000|
  2612. SNDRV_PCM_RATE_KNOT),
  2613. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2614. SNDRV_PCM_FMTBIT_S24_LE |
  2615. SNDRV_PCM_FMTBIT_S24_3LE |
  2616. SNDRV_PCM_FMTBIT_S32_LE),
  2617. .channels_min = 1,
  2618. .channels_max = 8,
  2619. .rate_min = 8000,
  2620. .rate_max = 48000,
  2621. },
  2622. .ops = &msm_fe_Multimedia_dai_ops,
  2623. .name = "MultiMedia20",
  2624. .probe = fe_dai_probe,
  2625. },
  2626. {
  2627. .playback = {
  2628. .stream_name = "MultiMedia21 Playback",
  2629. .aif_name = "MM_DL21",
  2630. .rates = (SNDRV_PCM_RATE_8000_384000|
  2631. SNDRV_PCM_RATE_KNOT),
  2632. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2633. SNDRV_PCM_FMTBIT_S24_LE |
  2634. SNDRV_PCM_FMTBIT_S24_3LE |
  2635. SNDRV_PCM_FMTBIT_S32_LE),
  2636. .channels_min = 1,
  2637. .channels_max = 8,
  2638. .rate_min = 8000,
  2639. .rate_max = 384000,
  2640. },
  2641. .capture = {
  2642. .stream_name = "MultiMedia21 Capture",
  2643. .aif_name = "MM_UL21",
  2644. .rates = (SNDRV_PCM_RATE_8000_48000|
  2645. SNDRV_PCM_RATE_KNOT),
  2646. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2647. SNDRV_PCM_FMTBIT_S24_LE |
  2648. SNDRV_PCM_FMTBIT_S24_3LE |
  2649. SNDRV_PCM_FMTBIT_S32_LE),
  2650. .channels_min = 1,
  2651. .channels_max = 8,
  2652. .rate_min = 8000,
  2653. .rate_max = 48000,
  2654. },
  2655. .ops = &msm_fe_Multimedia_dai_ops,
  2656. .name = "MultiMedia21",
  2657. .probe = fe_dai_probe,
  2658. },
  2659. {
  2660. .playback = {
  2661. .stream_name = "MultiMedia26 Playback",
  2662. .aif_name = "MM_DL26",
  2663. .rates = (SNDRV_PCM_RATE_8000_384000|
  2664. SNDRV_PCM_RATE_KNOT),
  2665. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2666. SNDRV_PCM_FMTBIT_S24_LE |
  2667. SNDRV_PCM_FMTBIT_S24_3LE |
  2668. SNDRV_PCM_FMTBIT_S32_LE),
  2669. .channels_min = 1,
  2670. .channels_max = 32,
  2671. .rate_min = 8000,
  2672. .rate_max = 384000,
  2673. },
  2674. .ops = &msm_fe_Multimedia_dai_ops,
  2675. .compress_new = snd_soc_new_compress,
  2676. .name = "MultiMedia26",
  2677. .probe = fe_dai_probe,
  2678. },
  2679. {
  2680. .capture = {
  2681. .stream_name = "MultiMedia27 Capture",
  2682. .aif_name = "MM_UL27",
  2683. .rates = (SNDRV_PCM_RATE_8000_192000|
  2684. SNDRV_PCM_RATE_KNOT),
  2685. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2686. SNDRV_PCM_FMTBIT_S24_LE |
  2687. SNDRV_PCM_FMTBIT_S24_3LE),
  2688. .channels_min = 1,
  2689. .channels_max = 32,
  2690. .rate_min = 8000,
  2691. .rate_max = 192000,
  2692. },
  2693. .ops = &msm_fe_Multimedia_dai_ops,
  2694. .compress_new = snd_soc_new_compress,
  2695. .name = "MultiMedia27",
  2696. .probe = fe_dai_probe,
  2697. },
  2698. {
  2699. .capture = {
  2700. .stream_name = "MultiMedia28 Capture",
  2701. .aif_name = "MM_UL28",
  2702. .rates = (SNDRV_PCM_RATE_8000_192000|
  2703. SNDRV_PCM_RATE_KNOT),
  2704. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2705. SNDRV_PCM_FMTBIT_S24_LE |
  2706. SNDRV_PCM_FMTBIT_S24_3LE),
  2707. .channels_min = 1,
  2708. .channels_max = 8,
  2709. .rate_min = 8000,
  2710. .rate_max = 192000,
  2711. },
  2712. .ops = &msm_fe_Multimedia_dai_ops,
  2713. .compress_new = snd_soc_new_compress,
  2714. .name = "MultiMedia28",
  2715. .probe = fe_dai_probe,
  2716. },
  2717. {
  2718. .capture = {
  2719. .stream_name = "MultiMedia29 Capture",
  2720. .aif_name = "MM_UL29",
  2721. .rates = (SNDRV_PCM_RATE_8000_192000|
  2722. SNDRV_PCM_RATE_KNOT),
  2723. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2724. SNDRV_PCM_FMTBIT_S24_LE |
  2725. SNDRV_PCM_FMTBIT_S24_3LE),
  2726. .channels_min = 1,
  2727. .channels_max = 8,
  2728. .rate_min = 8000,
  2729. .rate_max = 192000,
  2730. },
  2731. .ops = &msm_fe_Multimedia_dai_ops,
  2732. .compress_new = snd_soc_new_compress,
  2733. .name = "MultiMedia29",
  2734. .probe = fe_dai_probe,
  2735. },
  2736. };
  2737. static int msm_fe_dai_dev_probe(struct platform_device *pdev)
  2738. {
  2739. dev_dbg(&pdev->dev, "%s: dev name %s\n", __func__,
  2740. dev_name(&pdev->dev));
  2741. return snd_soc_register_component(&pdev->dev, &msm_fe_dai_component,
  2742. msm_fe_dais, ARRAY_SIZE(msm_fe_dais));
  2743. }
  2744. static int msm_fe_dai_dev_remove(struct platform_device *pdev)
  2745. {
  2746. snd_soc_unregister_component(&pdev->dev);
  2747. return 0;
  2748. }
  2749. static const struct of_device_id msm_dai_fe_dt_match[] = {
  2750. {.compatible = "qcom,msm-dai-fe"},
  2751. {}
  2752. };
  2753. static struct platform_driver msm_fe_dai_driver = {
  2754. .probe = msm_fe_dai_dev_probe,
  2755. .remove = msm_fe_dai_dev_remove,
  2756. .driver = {
  2757. .name = "msm-dai-fe",
  2758. .owner = THIS_MODULE,
  2759. .of_match_table = msm_dai_fe_dt_match,
  2760. },
  2761. };
  2762. int __init msm_fe_dai_init(void)
  2763. {
  2764. return platform_driver_register(&msm_fe_dai_driver);
  2765. }
  2766. void msm_fe_dai_exit(void)
  2767. {
  2768. platform_driver_unregister(&msm_fe_dai_driver);
  2769. }
  2770. /* Module information */
  2771. MODULE_DESCRIPTION("MSM Frontend DAI driver");
  2772. MODULE_LICENSE("GPL v2");