msm-dai-fe.c 76 KB

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