msm-dai-fe.c 68 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696
  1. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/module.h>
  14. #include <linux/device.h>
  15. #include <linux/platform_device.h>
  16. #include <linux/of_device.h>
  17. #include <sound/core.h>
  18. #include <sound/pcm.h>
  19. #include <sound/soc.h>
  20. static struct snd_soc_dai_ops msm_fe_dai_ops = {};
  21. /* Conventional and unconventional sample rate supported */
  22. static unsigned int supported_sample_rates[] = {
  23. 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000,
  24. 88200, 96000, 176400, 192000, 352800, 384000
  25. };
  26. static struct snd_pcm_hw_constraint_list constraints_sample_rates = {
  27. .count = ARRAY_SIZE(supported_sample_rates),
  28. .list = supported_sample_rates,
  29. .mask = 0,
  30. };
  31. static int multimedia_startup(struct snd_pcm_substream *substream,
  32. struct snd_soc_dai *dai)
  33. {
  34. snd_pcm_hw_constraint_list(substream->runtime, 0,
  35. SNDRV_PCM_HW_PARAM_RATE,
  36. &constraints_sample_rates);
  37. return 0;
  38. }
  39. static int fe_dai_probe(struct snd_soc_dai *dai)
  40. {
  41. struct snd_soc_dapm_route intercon;
  42. struct snd_soc_dapm_context *dapm;
  43. if (!dai || !dai->driver) {
  44. pr_err("%s invalid params\n", __func__);
  45. return -EINVAL;
  46. }
  47. dapm = snd_soc_component_get_dapm(dai->component);
  48. memset(&intercon, 0, sizeof(intercon));
  49. if (dai->driver->playback.stream_name &&
  50. dai->driver->playback.aif_name) {
  51. dev_dbg(dai->dev, "%s add route for widget %s",
  52. __func__, dai->driver->playback.stream_name);
  53. intercon.source = dai->driver->playback.stream_name;
  54. intercon.sink = dai->driver->playback.aif_name;
  55. dev_dbg(dai->dev, "%s src %s sink %s\n",
  56. __func__, intercon.source, intercon.sink);
  57. snd_soc_dapm_add_routes(dapm, &intercon, 1);
  58. snd_soc_dapm_ignore_suspend(dapm, intercon.source);
  59. }
  60. if (dai->driver->capture.stream_name &&
  61. dai->driver->capture.aif_name) {
  62. dev_dbg(dai->dev, "%s add route for widget %s",
  63. __func__, dai->driver->capture.stream_name);
  64. intercon.sink = dai->driver->capture.stream_name;
  65. intercon.source = dai->driver->capture.aif_name;
  66. dev_dbg(dai->dev, "%s src %s sink %s\n",
  67. __func__, intercon.source, intercon.sink);
  68. snd_soc_dapm_add_routes(dapm, &intercon, 1);
  69. snd_soc_dapm_ignore_suspend(dapm, intercon.sink);
  70. }
  71. return 0;
  72. }
  73. static struct snd_soc_dai_ops msm_fe_Multimedia_dai_ops = {
  74. .startup = multimedia_startup,
  75. };
  76. static const struct snd_soc_component_driver msm_fe_dai_component = {
  77. .name = "msm-dai-fe",
  78. };
  79. static struct snd_soc_dai_driver msm_fe_dais[] = {
  80. {
  81. .playback = {
  82. .stream_name = "MultiMedia1 Playback",
  83. .aif_name = "MM_DL1",
  84. .rates = (SNDRV_PCM_RATE_8000_384000|
  85. SNDRV_PCM_RATE_KNOT),
  86. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  87. SNDRV_PCM_FMTBIT_S24_LE |
  88. SNDRV_PCM_FMTBIT_S24_3LE |
  89. SNDRV_PCM_FMTBIT_S32_LE),
  90. .channels_min = 1,
  91. .channels_max = 8,
  92. .rate_min = 8000,
  93. .rate_max = 384000,
  94. },
  95. .capture = {
  96. .stream_name = "MultiMedia1 Capture",
  97. .aif_name = "MM_UL1",
  98. .rates = (SNDRV_PCM_RATE_8000_384000|
  99. SNDRV_PCM_RATE_KNOT),
  100. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  101. SNDRV_PCM_FMTBIT_S24_LE |
  102. SNDRV_PCM_FMTBIT_S24_3LE |
  103. SNDRV_PCM_FMTBIT_S32_LE),
  104. .channels_min = 1,
  105. .channels_max = 8,
  106. .rate_min = 8000,
  107. .rate_max = 48000,
  108. },
  109. .ops = &msm_fe_Multimedia_dai_ops,
  110. .name = "MultiMedia1",
  111. .probe = fe_dai_probe,
  112. },
  113. {
  114. .playback = {
  115. .stream_name = "MultiMedia2 Playback",
  116. .aif_name = "MM_DL2",
  117. .rates = (SNDRV_PCM_RATE_8000_384000|
  118. SNDRV_PCM_RATE_KNOT),
  119. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  120. SNDRV_PCM_FMTBIT_S24_LE |
  121. SNDRV_PCM_FMTBIT_S24_3LE |
  122. SNDRV_PCM_FMTBIT_S32_LE),
  123. .channels_min = 1,
  124. .channels_max = 8,
  125. .rate_min = 8000,
  126. .rate_max = 384000,
  127. },
  128. .capture = {
  129. .stream_name = "MultiMedia2 Capture",
  130. .aif_name = "MM_UL2",
  131. .rates = (SNDRV_PCM_RATE_8000_384000|
  132. SNDRV_PCM_RATE_KNOT),
  133. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  134. SNDRV_PCM_FMTBIT_S24_LE |
  135. SNDRV_PCM_FMTBIT_S24_3LE |
  136. SNDRV_PCM_FMTBIT_S32_LE),
  137. .channels_min = 1,
  138. .channels_max = 8,
  139. .rate_min = 8000,
  140. .rate_max = 48000,
  141. },
  142. .ops = &msm_fe_Multimedia_dai_ops,
  143. .name = "MultiMedia2",
  144. .probe = fe_dai_probe,
  145. },
  146. {
  147. .playback = {
  148. .stream_name = "VoIP Playback",
  149. .aif_name = "VOIP_DL",
  150. .rates = SNDRV_PCM_RATE_8000_48000,
  151. .formats = SNDRV_PCM_FMTBIT_S16_LE |
  152. SNDRV_PCM_FMTBIT_SPECIAL,
  153. .channels_min = 1,
  154. .channels_max = 2,
  155. .rate_min = 8000,
  156. .rate_max = 48000,
  157. },
  158. .capture = {
  159. .stream_name = "VoIP Capture",
  160. .aif_name = "VOIP_UL",
  161. .rates = SNDRV_PCM_RATE_8000_48000,
  162. .formats = SNDRV_PCM_FMTBIT_S16_LE |
  163. SNDRV_PCM_FMTBIT_SPECIAL,
  164. .channels_min = 1,
  165. .channels_max = 2,
  166. .rate_min = 8000,
  167. .rate_max = 48000,
  168. },
  169. .ops = &msm_fe_dai_ops,
  170. .name = "VoIP",
  171. .probe = fe_dai_probe,
  172. },
  173. {
  174. .playback = {
  175. .stream_name = "MultiMedia3 Playback",
  176. .aif_name = "MM_DL3",
  177. .rates = (SNDRV_PCM_RATE_8000_384000 |
  178. SNDRV_PCM_RATE_KNOT),
  179. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  180. SNDRV_PCM_FMTBIT_S24_LE |
  181. SNDRV_PCM_FMTBIT_S24_3LE |
  182. SNDRV_PCM_FMTBIT_S32_LE),
  183. .channels_min = 1,
  184. .channels_max = 6,
  185. .rate_min = 8000,
  186. .rate_max = 384000,
  187. },
  188. .capture = {
  189. .stream_name = "MultiMedia3 Capture",
  190. .aif_name = "MM_UL3",
  191. .rates = (SNDRV_PCM_RATE_8000_384000|
  192. SNDRV_PCM_RATE_KNOT),
  193. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  194. SNDRV_PCM_FMTBIT_S24_LE |
  195. SNDRV_PCM_FMTBIT_S24_3LE |
  196. SNDRV_PCM_FMTBIT_S32_LE),
  197. .channels_min = 1,
  198. .channels_max = 8,
  199. .rate_min = 8000,
  200. .rate_max = 48000,
  201. },
  202. .ops = &msm_fe_Multimedia_dai_ops,
  203. .name = "MultiMedia3",
  204. .probe = fe_dai_probe,
  205. },
  206. {
  207. .playback = {
  208. .stream_name = "MultiMedia4 Playback",
  209. .aif_name = "MM_DL4",
  210. .rates = (SNDRV_PCM_RATE_8000_384000 |
  211. SNDRV_PCM_RATE_KNOT),
  212. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  213. SNDRV_PCM_FMTBIT_S24_LE |
  214. SNDRV_PCM_FMTBIT_S24_3LE |
  215. SNDRV_PCM_FMTBIT_S32_LE),
  216. .channels_min = 1,
  217. .channels_max = 8,
  218. .rate_min = 8000,
  219. .rate_max = 384000,
  220. },
  221. .ops = &msm_fe_Multimedia_dai_ops,
  222. .compress_new = snd_soc_new_compress,
  223. .name = "MultiMedia4",
  224. .probe = fe_dai_probe,
  225. },
  226. {
  227. .playback = {
  228. .stream_name = "MultiMedia5 Playback",
  229. .aif_name = "MM_DL5",
  230. .rates = (SNDRV_PCM_RATE_8000_384000 |
  231. SNDRV_PCM_RATE_KNOT),
  232. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  233. SNDRV_PCM_FMTBIT_S24_LE |
  234. SNDRV_PCM_FMTBIT_S24_3LE |
  235. SNDRV_PCM_FMTBIT_S32_LE),
  236. .channels_min = 1,
  237. .channels_max = 8,
  238. .rate_min = 8000,
  239. .rate_max = 384000,
  240. },
  241. .capture = {
  242. .stream_name = "MultiMedia5 Capture",
  243. .aif_name = "MM_UL5",
  244. .rates = (SNDRV_PCM_RATE_8000_48000|
  245. SNDRV_PCM_RATE_KNOT),
  246. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  247. SNDRV_PCM_FMTBIT_S24_LE |
  248. SNDRV_PCM_FMTBIT_S24_3LE |
  249. SNDRV_PCM_FMTBIT_S32_LE),
  250. .channels_min = 1,
  251. .channels_max = 8,
  252. .rate_min = 8000,
  253. .rate_max = 48000,
  254. },
  255. .ops = &msm_fe_Multimedia_dai_ops,
  256. .name = "MultiMedia5",
  257. .probe = fe_dai_probe,
  258. },
  259. {
  260. .playback = {
  261. .stream_name = "MultiMedia6 Playback",
  262. .aif_name = "MM_DL6",
  263. .rates = (SNDRV_PCM_RATE_8000_384000 |
  264. SNDRV_PCM_RATE_KNOT),
  265. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  266. SNDRV_PCM_FMTBIT_S24_LE |
  267. SNDRV_PCM_FMTBIT_S24_3LE |
  268. SNDRV_PCM_FMTBIT_S32_LE),
  269. .channels_min = 1,
  270. .channels_max = 8,
  271. .rate_min = 8000,
  272. .rate_max = 384000,
  273. },
  274. .capture = {
  275. .stream_name = "MultiMedia6 Capture",
  276. .aif_name = "MM_UL6",
  277. .rates = (SNDRV_PCM_RATE_8000_48000|
  278. SNDRV_PCM_RATE_KNOT),
  279. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  280. SNDRV_PCM_FMTBIT_S24_LE |
  281. SNDRV_PCM_FMTBIT_S24_3LE |
  282. SNDRV_PCM_FMTBIT_S32_LE),
  283. .channels_min = 1,
  284. .channels_max = 8,
  285. .rate_min = 8000,
  286. .rate_max = 48000,
  287. },
  288. .ops = &msm_fe_Multimedia_dai_ops,
  289. .name = "MultiMedia6",
  290. .probe = fe_dai_probe,
  291. },
  292. {
  293. .playback = {
  294. .stream_name = "MultiMedia7 Playback",
  295. .aif_name = "MM_DL7",
  296. .rates = (SNDRV_PCM_RATE_8000_384000 |
  297. SNDRV_PCM_RATE_KNOT),
  298. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  299. SNDRV_PCM_FMTBIT_S24_LE |
  300. SNDRV_PCM_FMTBIT_S24_3LE |
  301. SNDRV_PCM_FMTBIT_S32_LE),
  302. .channels_min = 1,
  303. .channels_max = 8,
  304. .rate_min = 8000,
  305. .rate_max = 384000,
  306. },
  307. .ops = &msm_fe_Multimedia_dai_ops,
  308. .compress_new = snd_soc_new_compress,
  309. .name = "MultiMedia7",
  310. .probe = fe_dai_probe,
  311. },
  312. {
  313. .playback = {
  314. .stream_name = "MultiMedia8 Playback",
  315. .aif_name = "MM_DL8",
  316. .rates = (SNDRV_PCM_RATE_8000_384000 |
  317. SNDRV_PCM_RATE_KNOT),
  318. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  319. SNDRV_PCM_FMTBIT_S24_LE |
  320. SNDRV_PCM_FMTBIT_S24_3LE |
  321. SNDRV_PCM_FMTBIT_S32_LE),
  322. .channels_min = 1,
  323. .channels_max = 8,
  324. .rate_min = 8000,
  325. .rate_max = 384000,
  326. },
  327. .capture = {
  328. .stream_name = "MultiMedia8 Capture",
  329. .aif_name = "MM_UL8",
  330. .rates = (SNDRV_PCM_RATE_8000_48000|
  331. SNDRV_PCM_RATE_KNOT),
  332. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  333. SNDRV_PCM_FMTBIT_S24_LE |
  334. SNDRV_PCM_FMTBIT_S24_3LE |
  335. SNDRV_PCM_FMTBIT_S32_LE),
  336. .channels_min = 1,
  337. .channels_max = 8,
  338. .rate_min = 8000,
  339. .rate_max = 48000,
  340. },
  341. .ops = &msm_fe_Multimedia_dai_ops,
  342. .name = "MultiMedia8",
  343. .probe = fe_dai_probe,
  344. },
  345. /* FE DAIs created for hostless operation purpose */
  346. {
  347. .playback = {
  348. .stream_name = "SLIMBUS0_HOSTLESS Playback",
  349. .aif_name = "SLIM0_DL_HL",
  350. .rates = SNDRV_PCM_RATE_8000_384000,
  351. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  352. SNDRV_PCM_FMTBIT_S24_LE),
  353. .channels_min = 1,
  354. .channels_max = 8,
  355. .rate_min = 8000,
  356. .rate_max = 384000,
  357. },
  358. .capture = {
  359. .stream_name = "SLIMBUS0_HOSTLESS Capture",
  360. .aif_name = "SLIM0_UL_HL",
  361. .rates = SNDRV_PCM_RATE_8000_96000,
  362. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  363. SNDRV_PCM_FMTBIT_S24_LE |
  364. SNDRV_PCM_FMTBIT_S32_LE),
  365. .channels_min = 1,
  366. .channels_max = 8,
  367. .rate_min = 8000,
  368. .rate_max = 384000,
  369. },
  370. .ops = &msm_fe_dai_ops,
  371. .name = "SLIMBUS0_HOSTLESS",
  372. .probe = fe_dai_probe,
  373. },
  374. {
  375. .playback = {
  376. .stream_name = "SLIMBUS1_HOSTLESS Playback",
  377. .aif_name = "SLIM1_DL_HL",
  378. .rates = SNDRV_PCM_RATE_8000_384000,
  379. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  380. SNDRV_PCM_FMTBIT_S24_LE),
  381. .channels_min = 1,
  382. .channels_max = 2,
  383. .rate_min = 8000,
  384. .rate_max = 384000,
  385. },
  386. .capture = {
  387. .stream_name = "SLIMBUS1_HOSTLESS Capture",
  388. .aif_name = "SLIM1_UL_HL",
  389. .rates = SNDRV_PCM_RATE_8000_48000,
  390. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  391. SNDRV_PCM_FMTBIT_S24_LE),
  392. .channels_min = 1,
  393. .channels_max = 2,
  394. .rate_min = 8000,
  395. .rate_max = 48000,
  396. },
  397. .ops = &msm_fe_dai_ops,
  398. .name = "SLIMBUS1_HOSTLESS",
  399. .probe = fe_dai_probe,
  400. },
  401. {
  402. .playback = {
  403. .stream_name = "SLIMBUS3_HOSTLESS Playback",
  404. .aif_name = "SLIM3_DL_HL",
  405. .rates = SNDRV_PCM_RATE_8000_384000,
  406. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  407. SNDRV_PCM_FMTBIT_S24_LE),
  408. .channels_min = 1,
  409. .channels_max = 2,
  410. .rate_min = 8000,
  411. .rate_max = 384000,
  412. },
  413. .capture = {
  414. .stream_name = "SLIMBUS3_HOSTLESS Capture",
  415. .aif_name = "SLIM3_UL_HL",
  416. .rates = SNDRV_PCM_RATE_8000_48000,
  417. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  418. SNDRV_PCM_FMTBIT_S24_LE),
  419. .channels_min = 1,
  420. .channels_max = 2,
  421. .rate_min = 8000,
  422. .rate_max = 48000,
  423. },
  424. .ops = &msm_fe_dai_ops,
  425. .name = "SLIMBUS3_HOSTLESS",
  426. .probe = fe_dai_probe,
  427. },
  428. {
  429. .playback = {
  430. .stream_name = "SLIMBUS4_HOSTLESS Playback",
  431. .aif_name = "SLIM4_DL_HL",
  432. .rates = SNDRV_PCM_RATE_8000_384000,
  433. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  434. SNDRV_PCM_FMTBIT_S24_LE),
  435. .channels_min = 1,
  436. .channels_max = 2,
  437. .rate_min = 8000,
  438. .rate_max = 384000,
  439. },
  440. .capture = {
  441. .stream_name = "SLIMBUS4_HOSTLESS Capture",
  442. .aif_name = "SLIM4_UL_HL",
  443. .rates = SNDRV_PCM_RATE_8000_48000,
  444. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  445. SNDRV_PCM_FMTBIT_S24_LE),
  446. .channels_min = 1,
  447. .channels_max = 2,
  448. .rate_min = 8000,
  449. .rate_max = 48000,
  450. },
  451. .ops = &msm_fe_dai_ops,
  452. .name = "SLIMBUS4_HOSTLESS",
  453. .probe = fe_dai_probe,
  454. },
  455. {
  456. .playback = {
  457. .stream_name = "SLIMBUS6_HOSTLESS Playback",
  458. .aif_name = "SLIM6_DL_HL",
  459. .rates = SNDRV_PCM_RATE_8000_384000,
  460. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  461. SNDRV_PCM_FMTBIT_S24_LE),
  462. .channels_min = 1,
  463. .channels_max = 8,
  464. .rate_min = 8000,
  465. .rate_max = 384000,
  466. },
  467. .ops = &msm_fe_dai_ops,
  468. .name = "SLIMBUS6_HOSTLESS",
  469. .probe = fe_dai_probe,
  470. },
  471. {
  472. .playback = {
  473. .stream_name = "SLIMBUS7_HOSTLESS Playback",
  474. .aif_name = "SLIM7_DL_HL",
  475. .rates = SNDRV_PCM_RATE_8000_384000,
  476. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  477. SNDRV_PCM_FMTBIT_S24_LE),
  478. .channels_min = 1,
  479. .channels_max = 8,
  480. .rate_min = 8000,
  481. .rate_max = 384000,
  482. },
  483. .capture = {
  484. .stream_name = "SLIMBUS7_HOSTLESS Capture",
  485. .aif_name = "SLIM7_UL_HL",
  486. .rates = SNDRV_PCM_RATE_8000_384000,
  487. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  488. SNDRV_PCM_FMTBIT_S24_LE),
  489. .channels_min = 1,
  490. .channels_max = 8,
  491. .rate_min = 8000,
  492. .rate_max = 384000,
  493. },
  494. .ops = &msm_fe_dai_ops,
  495. .name = "SLIMBUS7_HOSTLESS",
  496. .probe = fe_dai_probe,
  497. },
  498. {
  499. .playback = {
  500. .stream_name = "SLIMBUS8_HOSTLESS Playback",
  501. .aif_name = "SLIM8_DL_HL",
  502. .rates = SNDRV_PCM_RATE_8000_384000,
  503. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  504. SNDRV_PCM_FMTBIT_S24_LE),
  505. .channels_min = 1,
  506. .channels_max = 8,
  507. .rate_min = 8000,
  508. .rate_max = 384000,
  509. },
  510. .capture = {
  511. .stream_name = "SLIMBUS8_HOSTLESS Capture",
  512. .aif_name = "SLIM8_UL_HL",
  513. .rates = SNDRV_PCM_RATE_8000_384000,
  514. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  515. SNDRV_PCM_FMTBIT_S24_LE),
  516. .channels_min = 1,
  517. .channels_max = 8,
  518. .rate_min = 8000,
  519. .rate_max = 384000,
  520. },
  521. .ops = &msm_fe_dai_ops,
  522. .name = "SLIMBUS8_HOSTLESS",
  523. .probe = fe_dai_probe,
  524. },
  525. {
  526. .playback = {
  527. .stream_name = "CDC_DMA_HOSTLESS Playback",
  528. .aif_name = "CDC_DMA_DL_HL",
  529. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 |
  530. SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 |
  531. SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 |
  532. SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 |
  533. SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_176400 |
  534. SNDRV_PCM_RATE_192000 | SNDRV_PCM_RATE_352800 |
  535. SNDRV_PCM_RATE_384000,
  536. .formats = SNDRV_PCM_FMTBIT_S16_LE |
  537. SNDRV_PCM_FMTBIT_S24_LE |
  538. SNDRV_PCM_FMTBIT_S24_3LE |
  539. SNDRV_PCM_FMTBIT_S32_LE,
  540. .channels_min = 1,
  541. .channels_max = 2,
  542. .rate_min = 8000,
  543. .rate_max = 384000,
  544. },
  545. .capture = {
  546. .stream_name = "CDC_DMA_HOSTLESS Capture",
  547. .aif_name = "CDC_DMA_UL_HL",
  548. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 |
  549. SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 |
  550. SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 |
  551. SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 |
  552. SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_176400 |
  553. SNDRV_PCM_RATE_192000 | SNDRV_PCM_RATE_352800 |
  554. SNDRV_PCM_RATE_384000,
  555. .formats = SNDRV_PCM_FMTBIT_S16_LE |
  556. SNDRV_PCM_FMTBIT_S24_LE |
  557. SNDRV_PCM_FMTBIT_S24_3LE,
  558. .channels_min = 1,
  559. .channels_max = 8,
  560. .rate_min = 8000,
  561. .rate_max = 384000,
  562. },
  563. .ops = &msm_fe_dai_ops,
  564. .name = "CDC_DMA_HOSTLESS",
  565. .probe = fe_dai_probe,
  566. },
  567. {
  568. .playback = {
  569. .stream_name = "INT_FM_HOSTLESS Playback",
  570. .aif_name = "INTFM_DL_HL",
  571. .rates = SNDRV_PCM_RATE_8000_48000,
  572. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  573. .channels_min = 1,
  574. .channels_max = 2,
  575. .rate_min = 8000,
  576. .rate_max = 48000,
  577. },
  578. .capture = {
  579. .stream_name = "INT_FM_HOSTLESS Capture",
  580. .aif_name = "INTFM_UL_HL",
  581. .rates = SNDRV_PCM_RATE_8000_48000,
  582. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  583. .channels_min = 1,
  584. .channels_max = 2,
  585. .rate_min = 8000,
  586. .rate_max = 48000,
  587. },
  588. .ops = &msm_fe_dai_ops,
  589. .name = "INT_FM_HOSTLESS",
  590. .probe = fe_dai_probe,
  591. },
  592. {
  593. .playback = {
  594. .stream_name = "INT_HFP_BT Hostless Playback",
  595. .aif_name = "INTHFP_DL_HL",
  596. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
  597. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  598. .channels_min = 1,
  599. .channels_max = 2,
  600. .rate_min = 8000,
  601. .rate_max = 16000,
  602. },
  603. .capture = {
  604. .stream_name = "INT_HFP_BT Hostless Capture",
  605. .aif_name = "INTHFP_UL_HL",
  606. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
  607. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  608. .channels_min = 1,
  609. .channels_max = 2,
  610. .rate_min = 8000,
  611. .rate_max = 16000,
  612. },
  613. .ops = &msm_fe_dai_ops,
  614. .name = "INT_HFP_BT_HOSTLESS",
  615. .probe = fe_dai_probe,
  616. },
  617. {
  618. .playback = {
  619. .stream_name = "USBAUDIO_HOSTLESS Playback",
  620. .aif_name = "USBAUDIO_DL_HL",
  621. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 |
  622. SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 |
  623. SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 |
  624. SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 |
  625. SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_176400 |
  626. SNDRV_PCM_RATE_192000 | SNDRV_PCM_RATE_352800 |
  627. SNDRV_PCM_RATE_384000,
  628. .formats = SNDRV_PCM_FMTBIT_S16_LE |
  629. SNDRV_PCM_FMTBIT_S24_LE |
  630. SNDRV_PCM_FMTBIT_S24_3LE |
  631. SNDRV_PCM_FMTBIT_S32_LE,
  632. .channels_min = 1,
  633. .channels_max = 8,
  634. .rate_min = 8000,
  635. .rate_max = 384000,
  636. },
  637. .capture = {
  638. .stream_name = "USBAUDIO_HOSTLESS Capture",
  639. .aif_name = "USBAUDIO_UL_HL",
  640. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 |
  641. SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 |
  642. SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 |
  643. SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 |
  644. SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_176400 |
  645. SNDRV_PCM_RATE_192000 | SNDRV_PCM_RATE_352800 |
  646. SNDRV_PCM_RATE_384000,
  647. .formats = SNDRV_PCM_FMTBIT_S16_LE |
  648. SNDRV_PCM_FMTBIT_S24_LE |
  649. SNDRV_PCM_FMTBIT_S24_3LE |
  650. SNDRV_PCM_FMTBIT_S32_LE,
  651. .channels_min = 1,
  652. .channels_max = 8,
  653. .rate_min = 8000,
  654. .rate_max = 384000,
  655. },
  656. .ops = &msm_fe_dai_ops,
  657. .name = "USBAUDIO_HOSTLESS",
  658. .probe = fe_dai_probe,
  659. },
  660. {
  661. .playback = {
  662. .stream_name = "AFE Playback",
  663. .aif_name = "PCM_RX",
  664. .rates = (SNDRV_PCM_RATE_8000 |
  665. SNDRV_PCM_RATE_16000 |
  666. SNDRV_PCM_RATE_48000),
  667. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  668. .channels_min = 1,
  669. .channels_max = 2,
  670. .rate_min = 8000,
  671. .rate_max = 48000,
  672. },
  673. .capture = {
  674. .stream_name = "AFE Capture",
  675. .aif_name = "PCM_TX",
  676. .rates = (SNDRV_PCM_RATE_8000 |
  677. SNDRV_PCM_RATE_16000 |
  678. SNDRV_PCM_RATE_48000),
  679. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  680. .channels_min = 1,
  681. .channels_max = 2,
  682. .rate_min = 8000,
  683. .rate_max = 48000,
  684. },
  685. .ops = &msm_fe_dai_ops,
  686. .name = "AFE-PROXY",
  687. .probe = fe_dai_probe,
  688. },
  689. {
  690. .playback = {
  691. .stream_name = "HDMI_HOSTLESS Playback",
  692. .aif_name = "HDMI_DL_HL",
  693. .rates = SNDRV_PCM_RATE_8000_48000,
  694. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  695. SNDRV_PCM_FMTBIT_S24_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 = "HDMI_HOSTLESS",
  703. .probe = fe_dai_probe,
  704. },
  705. {
  706. .playback = {
  707. .stream_name = "AUXPCM_HOSTLESS Playback",
  708. .aif_name = "AUXPCM_DL_HL",
  709. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
  710. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  711. .channels_min = 1,
  712. .channels_max = 1,
  713. .rate_min = 8000,
  714. .rate_max = 16000,
  715. },
  716. .capture = {
  717. .stream_name = "AUXPCM_HOSTLESS Capture",
  718. .aif_name = "AUXPCM_UL_HL",
  719. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
  720. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  721. .channels_min = 1,
  722. .channels_max = 1,
  723. .rate_min = 8000,
  724. .rate_max = 16000,
  725. },
  726. .ops = &msm_fe_dai_ops,
  727. .name = "AUXPCM_HOSTLESS",
  728. .probe = fe_dai_probe,
  729. },
  730. {
  731. .playback = {
  732. .stream_name = "SEC_AUXPCM_HOSTLESS Playback",
  733. .aif_name = "SEC_AUXPCM_DL_HL",
  734. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
  735. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  736. .channels_min = 1,
  737. .channels_max = 1,
  738. .rate_min = 8000,
  739. .rate_max = 16000,
  740. },
  741. .ops = &msm_fe_dai_ops,
  742. .name = "SEC_AUXPCM_RX_HOSTLESS",
  743. .probe = fe_dai_probe,
  744. },
  745. {
  746. .capture = {
  747. .stream_name = "SEC_AUXPCM_HOSTLESS Capture",
  748. .aif_name = "SEC_AUXPCM_UL_HL",
  749. .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
  750. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  751. .channels_min = 1,
  752. .channels_max = 1,
  753. .rate_min = 8000,
  754. .rate_max = 16000,
  755. },
  756. .ops = &msm_fe_dai_ops,
  757. .name = "SEC_AUXPCM_TX_HOSTLESS",
  758. .probe = fe_dai_probe,
  759. },
  760. {
  761. .playback = {
  762. .stream_name = "VOICE_STUB Playback",
  763. .aif_name = "VOICE_STUB_DL",
  764. .rates = SNDRV_PCM_RATE_8000_48000,
  765. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  766. .channels_min = 1,
  767. .channels_max = 2,
  768. .rate_min = 8000,
  769. .rate_max = 48000,
  770. },
  771. .capture = {
  772. .stream_name = "VOICE_STUB Capture",
  773. .aif_name = "VOICE_STUB_UL",
  774. .rates = SNDRV_PCM_RATE_8000_48000,
  775. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  776. .channels_min = 1,
  777. .channels_max = 2,
  778. .rate_min = 8000,
  779. .rate_max = 48000,
  780. },
  781. .ops = &msm_fe_dai_ops,
  782. .name = "VOICE_STUB",
  783. .probe = fe_dai_probe,
  784. },
  785. {
  786. .playback = {
  787. .stream_name = "MI2S_RX_HOSTLESS Playback",
  788. .aif_name = "MI2S_DL_HL",
  789. .rates = SNDRV_PCM_RATE_8000_48000,
  790. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  791. .channels_min = 1,
  792. .channels_max = 2,
  793. .rate_min = 8000,
  794. .rate_max = 48000,
  795. },
  796. .capture = {
  797. .stream_name = "MI2S_TX_HOSTLESS Capture",
  798. .aif_name = "MI2S_UL_HL",
  799. .rates = SNDRV_PCM_RATE_8000_48000,
  800. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  801. SNDRV_PCM_FMTBIT_S24_LE),
  802. .channels_min = 1,
  803. .channels_max = 2,
  804. .rate_min = 8000,
  805. .rate_max = 48000,
  806. },
  807. .ops = &msm_fe_dai_ops,
  808. .name = "MI2S_TX_HOSTLESS",
  809. .probe = fe_dai_probe,
  810. },
  811. {
  812. .playback = {
  813. .stream_name = "SEC_I2S_RX_HOSTLESS Playback",
  814. .aif_name = "SEC_I2S_DL_HL",
  815. .rates = SNDRV_PCM_RATE_8000_48000,
  816. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  817. .channels_min = 1,
  818. .channels_max = 2,
  819. .rate_min = 8000,
  820. .rate_max = 48000,
  821. },
  822. .ops = &msm_fe_dai_ops,
  823. .name = "SEC_I2S_RX_HOSTLESS",
  824. .probe = fe_dai_probe,
  825. },
  826. {
  827. .capture = {
  828. .stream_name = "Primary MI2S_TX Hostless Capture",
  829. .aif_name = "PRI_MI2S_UL_HL",
  830. .rates = SNDRV_PCM_RATE_8000_48000,
  831. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  832. SNDRV_PCM_FMTBIT_S24_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 = "PRI_MI2S_TX_HOSTLESS",
  840. .probe = fe_dai_probe,
  841. },
  842. {
  843. .playback = {
  844. .stream_name = "Primary MI2S_RX Hostless Playback",
  845. .aif_name = "PRI_MI2S_DL_HL",
  846. .rates = SNDRV_PCM_RATE_8000_384000,
  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 = 384000,
  853. },
  854. .ops = &msm_fe_dai_ops,
  855. .name = "PRI_MI2S_RX_HOSTLESS",
  856. .probe = fe_dai_probe,
  857. },
  858. {
  859. .capture = {
  860. .stream_name = "Secondary MI2S_TX Hostless Capture",
  861. .aif_name = "SEC_MI2S_UL_HL",
  862. .rates = SNDRV_PCM_RATE_8000_48000,
  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 = 48000,
  869. },
  870. .ops = &msm_fe_dai_ops,
  871. .name = "SEC_MI2S_TX_HOSTLESS",
  872. .probe = fe_dai_probe,
  873. },
  874. {
  875. .playback = {
  876. .stream_name = "Secondary MI2S_RX Hostless Playback",
  877. .aif_name = "SEC_MI2S_DL_HL",
  878. .rates = SNDRV_PCM_RATE_8000_384000,
  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 = 384000,
  885. },
  886. .ops = &msm_fe_dai_ops,
  887. .name = "SEC_MI2S_RX_HOSTLESS",
  888. .probe = fe_dai_probe,
  889. },
  890. {
  891. .capture = {
  892. .stream_name = "Tertiary MI2S_TX Hostless Capture",
  893. .aif_name = "TERT_MI2S_UL_HL",
  894. .rates = SNDRV_PCM_RATE_8000_48000,
  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 = 48000,
  901. },
  902. .ops = &msm_fe_dai_ops,
  903. .name = "TERT_MI2S_TX_HOSTLESS",
  904. .probe = fe_dai_probe,
  905. },
  906. {
  907. .playback = {
  908. .stream_name = "Tertiary MI2S_RX Hostless Playback",
  909. .aif_name = "TERT_MI2S_DL_HL",
  910. .rates = SNDRV_PCM_RATE_8000_384000,
  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 = 384000,
  917. },
  918. .ops = &msm_fe_dai_ops,
  919. .name = "TERT_MI2S_RX_HOSTLESS",
  920. .probe = fe_dai_probe,
  921. },
  922. {
  923. .capture = {
  924. .stream_name = "Quaternary MI2S_TX Hostless Capture",
  925. .aif_name = "QUAT_MI2S_UL_HL",
  926. .rates = SNDRV_PCM_RATE_8000_48000,
  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 = 48000,
  933. },
  934. .ops = &msm_fe_dai_ops,
  935. .name = "QUAT_MI2S_TX_HOSTLESS",
  936. .probe = fe_dai_probe,
  937. },
  938. {
  939. .playback = {
  940. .stream_name = "Quaternary MI2S_RX Hostless Playback",
  941. .aif_name = "QUAT_MI2S_DL_HL",
  942. .rates = SNDRV_PCM_RATE_8000_384000,
  943. .formats = SNDRV_PCM_FMTBIT_S16_LE |
  944. SNDRV_PCM_FMTBIT_S24_LE,
  945. .channels_min = 1,
  946. .channels_max = 8,
  947. .rate_min = 8000,
  948. .rate_max = 384000,
  949. },
  950. .ops = &msm_fe_dai_ops,
  951. .name = "QUAT_MI2S_RX_HOSTLESS",
  952. .probe = fe_dai_probe,
  953. },
  954. {
  955. .playback = {
  956. .stream_name = "INT0 MI2S_RX Hostless Playback",
  957. .aif_name = "INT0_MI2S_DL_HL",
  958. .rates = SNDRV_PCM_RATE_8000_192000,
  959. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  960. SNDRV_PCM_FMTBIT_S24_LE),
  961. .channels_min = 1,
  962. .channels_max = 2,
  963. .rate_min = 8000,
  964. .rate_max = 192000,
  965. },
  966. .ops = &msm_fe_dai_ops,
  967. .name = "INT0_MI2S_RX_HOSTLESS",
  968. .probe = fe_dai_probe,
  969. },
  970. {
  971. .playback = {
  972. .stream_name = "INT4 MI2S_RX Hostless Playback",
  973. .aif_name = "INT4_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 = 4,
  979. .rate_min = 8000,
  980. .rate_max = 192000,
  981. },
  982. .ops = &msm_fe_dai_ops,
  983. .name = "INT4_MI2S_RX_HOSTLESS",
  984. .probe = fe_dai_probe,
  985. },
  986. {
  987. .capture = {
  988. .stream_name = "INT3 MI2S_TX Hostless Capture",
  989. .aif_name = "INT3_MI2S_UL_HL",
  990. .rates = SNDRV_PCM_RATE_8000_48000,
  991. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  992. SNDRV_PCM_FMTBIT_S24_LE),
  993. .channels_min = 1,
  994. .channels_max = 2,
  995. .rate_min = 8000,
  996. .rate_max = 48000,
  997. },
  998. .ops = &msm_fe_dai_ops,
  999. .name = "INT3_MI2S_TX_HOSTLESS",
  1000. .probe = fe_dai_probe,
  1001. },
  1002. /* TDM Hostless */
  1003. {
  1004. .capture = {
  1005. .stream_name = "Primary TDM0 Hostless Capture",
  1006. .aif_name = "PRI_TDM_TX_0_UL_HL",
  1007. .rates = SNDRV_PCM_RATE_8000_48000,
  1008. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  1009. SNDRV_PCM_FMTBIT_S24_LE),
  1010. .channels_min = 1,
  1011. .channels_max = 8,
  1012. .rate_min = 8000,
  1013. .rate_max = 48000,
  1014. },
  1015. .ops = &msm_fe_dai_ops,
  1016. .name = "PRI_TDM_TX_0_HOSTLESS",
  1017. .probe = fe_dai_probe,
  1018. },
  1019. {
  1020. .playback = {
  1021. .stream_name = "Primary TDM0 Hostless Playback",
  1022. .aif_name = "PRI_TDM_RX_0_DL_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_RX_0_HOSTLESS",
  1033. .probe = fe_dai_probe,
  1034. },
  1035. {
  1036. .capture = {
  1037. .stream_name = "Primary TDM1 Hostless Capture",
  1038. .aif_name = "PRI_TDM_TX_1_UL_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_TX_1_HOSTLESS",
  1049. .probe = fe_dai_probe,
  1050. },
  1051. {
  1052. .playback = {
  1053. .stream_name = "Primary TDM1 Hostless Playback",
  1054. .aif_name = "PRI_TDM_RX_1_DL_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_RX_1_HOSTLESS",
  1065. .probe = fe_dai_probe,
  1066. },
  1067. {
  1068. .capture = {
  1069. .stream_name = "Primary TDM2 Hostless Capture",
  1070. .aif_name = "PRI_TDM_TX_2_UL_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_TX_2_HOSTLESS",
  1081. .probe = fe_dai_probe,
  1082. },
  1083. {
  1084. .playback = {
  1085. .stream_name = "Primary TDM2 Hostless Playback",
  1086. .aif_name = "PRI_TDM_RX_2_DL_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_RX_2_HOSTLESS",
  1097. .probe = fe_dai_probe,
  1098. },
  1099. {
  1100. .capture = {
  1101. .stream_name = "Primary TDM3 Hostless Capture",
  1102. .aif_name = "PRI_TDM_TX_3_UL_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_TX_3_HOSTLESS",
  1113. .probe = fe_dai_probe,
  1114. },
  1115. {
  1116. .playback = {
  1117. .stream_name = "Primary TDM3 Hostless Playback",
  1118. .aif_name = "PRI_TDM_RX_3_DL_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_RX_3_HOSTLESS",
  1129. .probe = fe_dai_probe,
  1130. },
  1131. {
  1132. .capture = {
  1133. .stream_name = "Primary TDM4 Hostless Capture",
  1134. .aif_name = "PRI_TDM_TX_4_UL_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_TX_4_HOSTLESS",
  1145. .probe = fe_dai_probe,
  1146. },
  1147. {
  1148. .playback = {
  1149. .stream_name = "Primary TDM4 Hostless Playback",
  1150. .aif_name = "PRI_TDM_RX_4_DL_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_RX_4_HOSTLESS",
  1161. .probe = fe_dai_probe,
  1162. },
  1163. {
  1164. .capture = {
  1165. .stream_name = "Primary TDM5 Hostless Capture",
  1166. .aif_name = "PRI_TDM_TX_5_UL_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_TX_5_HOSTLESS",
  1177. .probe = fe_dai_probe,
  1178. },
  1179. {
  1180. .playback = {
  1181. .stream_name = "Primary TDM5 Hostless Playback",
  1182. .aif_name = "PRI_TDM_RX_5_DL_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_RX_5_HOSTLESS",
  1193. .probe = fe_dai_probe,
  1194. },
  1195. {
  1196. .capture = {
  1197. .stream_name = "Primary TDM6 Hostless Capture",
  1198. .aif_name = "PRI_TDM_TX_6_UL_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_TX_6_HOSTLESS",
  1209. .probe = fe_dai_probe,
  1210. },
  1211. {
  1212. .playback = {
  1213. .stream_name = "Primary TDM6 Hostless Playback",
  1214. .aif_name = "PRI_TDM_RX_6_DL_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_RX_6_HOSTLESS",
  1225. .probe = fe_dai_probe,
  1226. },
  1227. {
  1228. .capture = {
  1229. .stream_name = "Primary TDM7 Hostless Capture",
  1230. .aif_name = "PRI_TDM_TX_7_UL_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_TX_7_HOSTLESS",
  1241. .probe = fe_dai_probe,
  1242. },
  1243. {
  1244. .playback = {
  1245. .stream_name = "Primary TDM7 Hostless Playback",
  1246. .aif_name = "PRI_TDM_RX_7_DL_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_RX_7_HOSTLESS",
  1257. .probe = fe_dai_probe,
  1258. },
  1259. {
  1260. .capture = {
  1261. .stream_name = "Secondary TDM0 Hostless Capture",
  1262. .aif_name = "SEC_TDM_TX_0_UL_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 = "SEC_TDM_TX_0_HOSTLESS",
  1273. .probe = fe_dai_probe,
  1274. },
  1275. {
  1276. .playback = {
  1277. .stream_name = "Secondary TDM0 Hostless Playback",
  1278. .aif_name = "SEC_TDM_RX_0_DL_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_RX_0_HOSTLESS",
  1289. .probe = fe_dai_probe,
  1290. },
  1291. {
  1292. .capture = {
  1293. .stream_name = "Secondary TDM1 Hostless Capture",
  1294. .aif_name = "SEC_TDM_TX_1_UL_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_TX_1_HOSTLESS",
  1305. .probe = fe_dai_probe,
  1306. },
  1307. {
  1308. .playback = {
  1309. .stream_name = "Secondary TDM1 Hostless Playback",
  1310. .aif_name = "SEC_TDM_RX_1_DL_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_RX_1_HOSTLESS",
  1321. .probe = fe_dai_probe,
  1322. },
  1323. {
  1324. .capture = {
  1325. .stream_name = "Secondary TDM2 Hostless Capture",
  1326. .aif_name = "SEC_TDM_TX_2_UL_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_TX_2_HOSTLESS",
  1337. .probe = fe_dai_probe,
  1338. },
  1339. {
  1340. .playback = {
  1341. .stream_name = "Secondary TDM2 Hostless Playback",
  1342. .aif_name = "SEC_TDM_RX_2_DL_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_RX_2_HOSTLESS",
  1353. .probe = fe_dai_probe,
  1354. },
  1355. {
  1356. .capture = {
  1357. .stream_name = "Secondary TDM3 Hostless Capture",
  1358. .aif_name = "SEC_TDM_TX_3_UL_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_TX_3_HOSTLESS",
  1369. .probe = fe_dai_probe,
  1370. },
  1371. {
  1372. .playback = {
  1373. .stream_name = "Secondary TDM3 Hostless Playback",
  1374. .aif_name = "SEC_TDM_RX_3_DL_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_RX_3_HOSTLESS",
  1385. .probe = fe_dai_probe,
  1386. },
  1387. {
  1388. .capture = {
  1389. .stream_name = "Secondary TDM4 Hostless Capture",
  1390. .aif_name = "SEC_TDM_TX_4_UL_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_TX_4_HOSTLESS",
  1401. .probe = fe_dai_probe,
  1402. },
  1403. {
  1404. .playback = {
  1405. .stream_name = "Secondary TDM4 Hostless Playback",
  1406. .aif_name = "SEC_TDM_RX_4_DL_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_RX_4_HOSTLESS",
  1417. .probe = fe_dai_probe,
  1418. },
  1419. {
  1420. .capture = {
  1421. .stream_name = "Secondary TDM5 Hostless Capture",
  1422. .aif_name = "SEC_TDM_TX_5_UL_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_TX_5_HOSTLESS",
  1433. .probe = fe_dai_probe,
  1434. },
  1435. {
  1436. .playback = {
  1437. .stream_name = "Secondary TDM5 Hostless Playback",
  1438. .aif_name = "SEC_TDM_RX_5_DL_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_RX_5_HOSTLESS",
  1449. .probe = fe_dai_probe,
  1450. },
  1451. {
  1452. .capture = {
  1453. .stream_name = "Secondary TDM6 Hostless Capture",
  1454. .aif_name = "SEC_TDM_TX_6_UL_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_TX_6_HOSTLESS",
  1465. .probe = fe_dai_probe,
  1466. },
  1467. {
  1468. .playback = {
  1469. .stream_name = "Secondary TDM6 Hostless Playback",
  1470. .aif_name = "SEC_TDM_RX_6_DL_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_RX_6_HOSTLESS",
  1481. .probe = fe_dai_probe,
  1482. },
  1483. {
  1484. .capture = {
  1485. .stream_name = "Secondary TDM7 Hostless Capture",
  1486. .aif_name = "SEC_TDM_TX_7_UL_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_TX_7_HOSTLESS",
  1497. .probe = fe_dai_probe,
  1498. },
  1499. {
  1500. .playback = {
  1501. .stream_name = "Secondary TDM7 Hostless Playback",
  1502. .aif_name = "SEC_TDM_RX_7_DL_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_RX_7_HOSTLESS",
  1513. .probe = fe_dai_probe,
  1514. },
  1515. {
  1516. .capture = {
  1517. .stream_name = "Tertiary TDM0 Hostless Capture",
  1518. .aif_name = "TERT_TDM_TX_0_UL_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 = "TERT_TDM_TX_0_HOSTLESS",
  1529. .probe = fe_dai_probe,
  1530. },
  1531. {
  1532. .playback = {
  1533. .stream_name = "Tertiary TDM0 Hostless Playback",
  1534. .aif_name = "TERT_TDM_RX_0_DL_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_RX_0_HOSTLESS",
  1545. .probe = fe_dai_probe,
  1546. },
  1547. {
  1548. .capture = {
  1549. .stream_name = "Tertiary TDM1 Hostless Capture",
  1550. .aif_name = "TERT_TDM_TX_1_UL_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_TX_1_HOSTLESS",
  1561. .probe = fe_dai_probe,
  1562. },
  1563. {
  1564. .playback = {
  1565. .stream_name = "Tertiary TDM1 Hostless Playback",
  1566. .aif_name = "TERT_TDM_RX_1_DL_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_RX_1_HOSTLESS",
  1577. .probe = fe_dai_probe,
  1578. },
  1579. {
  1580. .capture = {
  1581. .stream_name = "Tertiary TDM2 Hostless Capture",
  1582. .aif_name = "TERT_TDM_TX_2_UL_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_TX_2_HOSTLESS",
  1593. .probe = fe_dai_probe,
  1594. },
  1595. {
  1596. .playback = {
  1597. .stream_name = "Tertiary TDM2 Hostless Playback",
  1598. .aif_name = "TERT_TDM_RX_2_DL_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_RX_2_HOSTLESS",
  1609. .probe = fe_dai_probe,
  1610. },
  1611. {
  1612. .capture = {
  1613. .stream_name = "Tertiary TDM3 Hostless Capture",
  1614. .aif_name = "TERT_TDM_TX_3_UL_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_TX_3_HOSTLESS",
  1625. .probe = fe_dai_probe,
  1626. },
  1627. {
  1628. .playback = {
  1629. .stream_name = "Tertiary TDM3 Hostless Playback",
  1630. .aif_name = "TERT_TDM_RX_3_DL_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_RX_3_HOSTLESS",
  1641. .probe = fe_dai_probe,
  1642. },
  1643. {
  1644. .capture = {
  1645. .stream_name = "Tertiary TDM4 Hostless Capture",
  1646. .aif_name = "TERT_TDM_TX_4_UL_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_TX_4_HOSTLESS",
  1657. .probe = fe_dai_probe,
  1658. },
  1659. {
  1660. .playback = {
  1661. .stream_name = "Tertiary TDM4 Hostless Playback",
  1662. .aif_name = "TERT_TDM_RX_4_DL_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_RX_4_HOSTLESS",
  1673. .probe = fe_dai_probe,
  1674. },
  1675. {
  1676. .capture = {
  1677. .stream_name = "Tertiary TDM5 Hostless Capture",
  1678. .aif_name = "TERT_TDM_TX_5_UL_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_TX_5_HOSTLESS",
  1689. .probe = fe_dai_probe,
  1690. },
  1691. {
  1692. .playback = {
  1693. .stream_name = "Tertiary TDM5 Hostless Playback",
  1694. .aif_name = "TERT_TDM_RX_5_DL_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_RX_5_HOSTLESS",
  1705. .probe = fe_dai_probe,
  1706. },
  1707. {
  1708. .capture = {
  1709. .stream_name = "Tertiary TDM6 Hostless Capture",
  1710. .aif_name = "TERT_TDM_TX_6_UL_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_TX_6_HOSTLESS",
  1721. .probe = fe_dai_probe,
  1722. },
  1723. {
  1724. .playback = {
  1725. .stream_name = "Tertiary TDM6 Hostless Playback",
  1726. .aif_name = "TERT_TDM_RX_6_DL_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_RX_6_HOSTLESS",
  1737. .probe = fe_dai_probe,
  1738. },
  1739. {
  1740. .capture = {
  1741. .stream_name = "Tertiary TDM7 Hostless Capture",
  1742. .aif_name = "TERT_TDM_TX_7_UL_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_TX_7_HOSTLESS",
  1753. .probe = fe_dai_probe,
  1754. },
  1755. {
  1756. .playback = {
  1757. .stream_name = "Tertiary TDM7 Hostless Playback",
  1758. .aif_name = "TERT_TDM_RX_7_DL_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_RX_7_HOSTLESS",
  1769. .probe = fe_dai_probe,
  1770. },
  1771. {
  1772. .capture = {
  1773. .stream_name = "Quaternary TDM0 Hostless Capture",
  1774. .aif_name = "QUAT_TDM_TX_0_UL_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 = "QUAT_TDM_TX_0_HOSTLESS",
  1785. .probe = fe_dai_probe,
  1786. },
  1787. {
  1788. .playback = {
  1789. .stream_name = "Quaternary TDM0 Hostless Playback",
  1790. .aif_name = "QUAT_TDM_RX_0_DL_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_RX_0_HOSTLESS",
  1801. .probe = fe_dai_probe,
  1802. },
  1803. {
  1804. .capture = {
  1805. .stream_name = "Quaternary TDM1 Hostless Capture",
  1806. .aif_name = "QUAT_TDM_TX_1_UL_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_TX_1_HOSTLESS",
  1817. .probe = fe_dai_probe,
  1818. },
  1819. {
  1820. .playback = {
  1821. .stream_name = "Quaternary TDM1 Hostless Playback",
  1822. .aif_name = "QUAT_TDM_RX_1_DL_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_RX_1_HOSTLESS",
  1833. .probe = fe_dai_probe,
  1834. },
  1835. {
  1836. .capture = {
  1837. .stream_name = "Quaternary TDM2 Hostless Capture",
  1838. .aif_name = "QUAT_TDM_TX_2_UL_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_TX_2_HOSTLESS",
  1849. .probe = fe_dai_probe,
  1850. },
  1851. {
  1852. .playback = {
  1853. .stream_name = "Quaternary TDM2 Hostless Playback",
  1854. .aif_name = "QUAT_TDM_RX_2_DL_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_RX_2_HOSTLESS",
  1865. .probe = fe_dai_probe,
  1866. },
  1867. {
  1868. .capture = {
  1869. .stream_name = "Quaternary TDM3 Hostless Capture",
  1870. .aif_name = "QUAT_TDM_TX_3_UL_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_TX_3_HOSTLESS",
  1881. .probe = fe_dai_probe,
  1882. },
  1883. {
  1884. .playback = {
  1885. .stream_name = "Quaternary TDM3 Hostless Playback",
  1886. .aif_name = "QUAT_TDM_RX_3_DL_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_RX_3_HOSTLESS",
  1897. .probe = fe_dai_probe,
  1898. },
  1899. {
  1900. .capture = {
  1901. .stream_name = "Quaternary TDM4 Hostless Capture",
  1902. .aif_name = "QUAT_TDM_TX_4_UL_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_TX_4_HOSTLESS",
  1913. .probe = fe_dai_probe,
  1914. },
  1915. {
  1916. .playback = {
  1917. .stream_name = "Quaternary TDM4 Hostless Playback",
  1918. .aif_name = "QUAT_TDM_RX_4_DL_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_RX_4_HOSTLESS",
  1929. .probe = fe_dai_probe,
  1930. },
  1931. {
  1932. .capture = {
  1933. .stream_name = "Quaternary TDM5 Hostless Capture",
  1934. .aif_name = "QUAT_TDM_TX_5_UL_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_TX_5_HOSTLESS",
  1945. .probe = fe_dai_probe,
  1946. },
  1947. {
  1948. .playback = {
  1949. .stream_name = "Quaternary TDM5 Hostless Playback",
  1950. .aif_name = "QUAT_TDM_RX_5_DL_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_RX_5_HOSTLESS",
  1961. .probe = fe_dai_probe,
  1962. },
  1963. {
  1964. .capture = {
  1965. .stream_name = "Quaternary TDM6 Hostless Capture",
  1966. .aif_name = "QUAT_TDM_TX_6_UL_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_TX_6_HOSTLESS",
  1977. .probe = fe_dai_probe,
  1978. },
  1979. {
  1980. .playback = {
  1981. .stream_name = "Quaternary TDM6 Hostless Playback",
  1982. .aif_name = "QUAT_TDM_RX_6_DL_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_RX_6_HOSTLESS",
  1993. .probe = fe_dai_probe,
  1994. },
  1995. {
  1996. .capture = {
  1997. .stream_name = "Quaternary TDM7 Hostless Capture",
  1998. .aif_name = "QUAT_TDM_TX_7_UL_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_TX_7_HOSTLESS",
  2009. .probe = fe_dai_probe,
  2010. },
  2011. {
  2012. .playback = {
  2013. .stream_name = "Quaternary TDM7 Hostless Playback",
  2014. .aif_name = "QUAT_TDM_RX_7_DL_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 = 8,
  2020. .rate_min = 8000,
  2021. .rate_max = 48000,
  2022. },
  2023. .ops = &msm_fe_dai_ops,
  2024. .name = "QUAT_TDM_RX_7_HOSTLESS",
  2025. .probe = fe_dai_probe,
  2026. },
  2027. {
  2028. .playback = {
  2029. .stream_name = "DTMF_RX_HOSTLESS Playback",
  2030. .aif_name = "DTMF_DL_HL",
  2031. .rates = SNDRV_PCM_RATE_8000_48000,
  2032. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2033. .channels_min = 1,
  2034. .channels_max = 2,
  2035. .rate_min = 8000,
  2036. .rate_max = 48000,
  2037. },
  2038. .ops = &msm_fe_dai_ops,
  2039. .name = "DTMF_RX_HOSTLESS",
  2040. .probe = fe_dai_probe,
  2041. },
  2042. {
  2043. .capture = {
  2044. .stream_name = "CPE Listen Audio capture",
  2045. .aif_name = "CPE_LSM_UL_HL",
  2046. .rates = SNDRV_PCM_RATE_8000_48000,
  2047. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2048. SNDRV_PCM_FMTBIT_S24_LE),
  2049. .channels_min = 1,
  2050. .channels_max = 1,
  2051. .rate_min = 8000,
  2052. .rate_max = 48000,
  2053. },
  2054. .ops = &msm_fe_dai_ops,
  2055. .name = "CPE_LSM_NOHOST",
  2056. },
  2057. {
  2058. .playback = {
  2059. .stream_name = "VOLTE_STUB Playback",
  2060. .aif_name = "VOLTE_STUB_DL",
  2061. .rates = SNDRV_PCM_RATE_8000_48000,
  2062. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2063. .channels_min = 1,
  2064. .channels_max = 2,
  2065. .rate_min = 8000,
  2066. .rate_max = 48000,
  2067. },
  2068. .capture = {
  2069. .stream_name = "VOLTE_STUB Capture",
  2070. .aif_name = "VOLTE_STUB_UL",
  2071. .rates = SNDRV_PCM_RATE_8000_48000,
  2072. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2073. .channels_min = 1,
  2074. .channels_max = 2,
  2075. .rate_min = 8000,
  2076. .rate_max = 48000,
  2077. },
  2078. .ops = &msm_fe_dai_ops,
  2079. .name = "VOLTE_STUB",
  2080. .probe = fe_dai_probe,
  2081. },
  2082. {
  2083. .playback = {
  2084. .stream_name = "VOICE2_STUB Playback",
  2085. .aif_name = "VOICE2_STUB_DL",
  2086. .rates = SNDRV_PCM_RATE_8000_48000,
  2087. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2088. .channels_min = 1,
  2089. .channels_max = 2,
  2090. .rate_min = 8000,
  2091. .rate_max = 48000,
  2092. },
  2093. .capture = {
  2094. .stream_name = "VOICE2_STUB Capture",
  2095. .aif_name = "VOICE2_STUB_UL",
  2096. .rates = SNDRV_PCM_RATE_8000_48000,
  2097. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2098. .channels_min = 1,
  2099. .channels_max = 2,
  2100. .rate_min = 8000,
  2101. .rate_max = 48000,
  2102. },
  2103. .ops = &msm_fe_dai_ops,
  2104. .name = "VOICE2_STUB",
  2105. .probe = fe_dai_probe,
  2106. },
  2107. {
  2108. .playback = {
  2109. .stream_name = "MultiMedia9 Playback",
  2110. .aif_name = "MM_DL9",
  2111. .rates = (SNDRV_PCM_RATE_8000_384000|
  2112. SNDRV_PCM_RATE_KNOT),
  2113. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2114. SNDRV_PCM_FMTBIT_S24_LE |
  2115. SNDRV_PCM_FMTBIT_S24_3LE),
  2116. .channels_min = 1,
  2117. .channels_max = 8,
  2118. .rate_min = 8000,
  2119. .rate_max = 384000,
  2120. },
  2121. .capture = {
  2122. .stream_name = "MultiMedia9 Capture",
  2123. .aif_name = "MM_UL9",
  2124. .rates = (SNDRV_PCM_RATE_8000_48000|
  2125. SNDRV_PCM_RATE_KNOT),
  2126. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2127. .channels_min = 1,
  2128. .channels_max = 8,
  2129. .rate_min = 8000,
  2130. .rate_max = 48000,
  2131. },
  2132. .ops = &msm_fe_Multimedia_dai_ops,
  2133. .name = "MultiMedia9",
  2134. .probe = fe_dai_probe,
  2135. },
  2136. {
  2137. .playback = {
  2138. .stream_name = "QCHAT Playback",
  2139. .aif_name = "QCHAT_DL",
  2140. .rates = SNDRV_PCM_RATE_8000_48000,
  2141. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2142. .channels_min = 1,
  2143. .channels_max = 2,
  2144. .rate_min = 8000,
  2145. .rate_max = 48000,
  2146. },
  2147. .capture = {
  2148. .stream_name = "QCHAT Capture",
  2149. .aif_name = "QCHAT_UL",
  2150. .rates = SNDRV_PCM_RATE_8000_48000,
  2151. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2152. .channels_min = 1,
  2153. .channels_max = 2,
  2154. .rate_min = 8000,
  2155. .rate_max = 48000,
  2156. },
  2157. .ops = &msm_fe_dai_ops,
  2158. .name = "QCHAT",
  2159. .probe = fe_dai_probe,
  2160. },
  2161. {
  2162. .capture = {
  2163. .stream_name = "Listen 1 Audio Service Capture",
  2164. .aif_name = "LSM1_UL_HL",
  2165. .rates = (SNDRV_PCM_RATE_16000 |
  2166. SNDRV_PCM_RATE_48000),
  2167. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2168. SNDRV_PCM_FMTBIT_S24_LE),
  2169. .channels_min = 1,
  2170. .channels_max = 4,
  2171. .rate_min = 16000,
  2172. .rate_max = 48000,
  2173. },
  2174. .ops = &msm_fe_dai_ops,
  2175. .name = "LSM1",
  2176. .probe = fe_dai_probe,
  2177. },
  2178. {
  2179. .capture = {
  2180. .stream_name = "Listen 2 Audio Service Capture",
  2181. .aif_name = "LSM2_UL_HL",
  2182. .rates = (SNDRV_PCM_RATE_16000 |
  2183. SNDRV_PCM_RATE_48000),
  2184. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2185. SNDRV_PCM_FMTBIT_S24_LE),
  2186. .channels_min = 1,
  2187. .channels_max = 4,
  2188. .rate_min = 16000,
  2189. .rate_max = 48000,
  2190. },
  2191. .ops = &msm_fe_dai_ops,
  2192. .name = "LSM2",
  2193. .probe = fe_dai_probe,
  2194. },
  2195. {
  2196. .capture = {
  2197. .stream_name = "Listen 3 Audio Service Capture",
  2198. .aif_name = "LSM3_UL_HL",
  2199. .rates = (SNDRV_PCM_RATE_16000 |
  2200. SNDRV_PCM_RATE_48000),
  2201. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2202. SNDRV_PCM_FMTBIT_S24_LE),
  2203. .channels_min = 1,
  2204. .channels_max = 4,
  2205. .rate_min = 16000,
  2206. .rate_max = 48000,
  2207. },
  2208. .ops = &msm_fe_dai_ops,
  2209. .name = "LSM3",
  2210. .probe = fe_dai_probe,
  2211. },
  2212. {
  2213. .capture = {
  2214. .stream_name = "Listen 4 Audio Service Capture",
  2215. .aif_name = "LSM4_UL_HL",
  2216. .rates = (SNDRV_PCM_RATE_16000 |
  2217. SNDRV_PCM_RATE_48000),
  2218. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2219. SNDRV_PCM_FMTBIT_S24_LE),
  2220. .channels_min = 1,
  2221. .channels_max = 4,
  2222. .rate_min = 16000,
  2223. .rate_max = 48000,
  2224. },
  2225. .ops = &msm_fe_dai_ops,
  2226. .name = "LSM4",
  2227. .probe = fe_dai_probe,
  2228. },
  2229. {
  2230. .capture = {
  2231. .stream_name = "Listen 5 Audio Service Capture",
  2232. .aif_name = "LSM5_UL_HL",
  2233. .rates = (SNDRV_PCM_RATE_16000 |
  2234. SNDRV_PCM_RATE_48000),
  2235. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2236. SNDRV_PCM_FMTBIT_S24_LE),
  2237. .channels_min = 1,
  2238. .channels_max = 4,
  2239. .rate_min = 16000,
  2240. .rate_max = 48000,
  2241. },
  2242. .ops = &msm_fe_dai_ops,
  2243. .name = "LSM5",
  2244. .probe = fe_dai_probe,
  2245. },
  2246. {
  2247. .capture = {
  2248. .stream_name = "Listen 6 Audio Service Capture",
  2249. .aif_name = "LSM6_UL_HL",
  2250. .rates = (SNDRV_PCM_RATE_16000 |
  2251. SNDRV_PCM_RATE_48000),
  2252. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2253. SNDRV_PCM_FMTBIT_S24_LE),
  2254. .channels_min = 1,
  2255. .channels_max = 4,
  2256. .rate_min = 16000,
  2257. .rate_max = 48000,
  2258. },
  2259. .ops = &msm_fe_dai_ops,
  2260. .name = "LSM6",
  2261. .probe = fe_dai_probe,
  2262. },
  2263. {
  2264. .capture = {
  2265. .stream_name = "Listen 7 Audio Service Capture",
  2266. .aif_name = "LSM7_UL_HL",
  2267. .rates = (SNDRV_PCM_RATE_16000 |
  2268. SNDRV_PCM_RATE_48000),
  2269. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2270. SNDRV_PCM_FMTBIT_S24_LE),
  2271. .channels_min = 1,
  2272. .channels_max = 4,
  2273. .rate_min = 16000,
  2274. .rate_max = 48000,
  2275. },
  2276. .ops = &msm_fe_dai_ops,
  2277. .name = "LSM7",
  2278. .probe = fe_dai_probe,
  2279. },
  2280. {
  2281. .capture = {
  2282. .stream_name = "Listen 8 Audio Service Capture",
  2283. .aif_name = "LSM8_UL_HL",
  2284. .rates = (SNDRV_PCM_RATE_16000 |
  2285. SNDRV_PCM_RATE_48000),
  2286. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2287. SNDRV_PCM_FMTBIT_S24_LE),
  2288. .channels_min = 1,
  2289. .channels_max = 4,
  2290. .rate_min = 16000,
  2291. .rate_max = 48000,
  2292. },
  2293. .ops = &msm_fe_dai_ops,
  2294. .name = "LSM8",
  2295. .probe = fe_dai_probe,
  2296. },
  2297. /* FE DAIs created for multiple instances of offload playback */
  2298. {
  2299. .playback = {
  2300. .stream_name = "MultiMedia10 Playback",
  2301. .aif_name = "MM_DL10",
  2302. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2303. SNDRV_PCM_RATE_KNOT),
  2304. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2305. SNDRV_PCM_FMTBIT_S24_LE |
  2306. SNDRV_PCM_FMTBIT_S24_3LE |
  2307. SNDRV_PCM_FMTBIT_S32_LE),
  2308. .channels_min = 1,
  2309. .channels_max = 8,
  2310. .rate_min = 8000,
  2311. .rate_max = 384000,
  2312. },
  2313. .capture = {
  2314. .stream_name = "MultiMedia10 Capture",
  2315. .aif_name = "MM_UL10",
  2316. .rates = (SNDRV_PCM_RATE_8000_48000 |
  2317. SNDRV_PCM_RATE_KNOT),
  2318. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2319. SNDRV_PCM_FMTBIT_S24_LE |
  2320. SNDRV_PCM_FMTBIT_S24_3LE),
  2321. .channels_min = 1,
  2322. .channels_max = 8,
  2323. .rate_min = 8000,
  2324. .rate_max = 48000,
  2325. },
  2326. .ops = &msm_fe_Multimedia_dai_ops,
  2327. .name = "MultiMedia10",
  2328. .probe = fe_dai_probe,
  2329. },
  2330. {
  2331. .playback = {
  2332. .stream_name = "MultiMedia11 Playback",
  2333. .aif_name = "MM_DL11",
  2334. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2335. SNDRV_PCM_RATE_KNOT),
  2336. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2337. SNDRV_PCM_FMTBIT_S24_LE |
  2338. SNDRV_PCM_FMTBIT_S24_3LE |
  2339. SNDRV_PCM_FMTBIT_S32_LE),
  2340. .channels_min = 1,
  2341. .channels_max = 8,
  2342. .rate_min = 8000,
  2343. .rate_max = 384000,
  2344. },
  2345. .ops = &msm_fe_Multimedia_dai_ops,
  2346. .compress_new = snd_soc_new_compress,
  2347. .name = "MultiMedia11",
  2348. .probe = fe_dai_probe,
  2349. },
  2350. {
  2351. .playback = {
  2352. .stream_name = "MultiMedia12 Playback",
  2353. .aif_name = "MM_DL12",
  2354. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2355. SNDRV_PCM_RATE_KNOT),
  2356. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2357. SNDRV_PCM_FMTBIT_S24_LE |
  2358. SNDRV_PCM_FMTBIT_S24_3LE |
  2359. SNDRV_PCM_FMTBIT_S32_LE),
  2360. .channels_min = 1,
  2361. .channels_max = 8,
  2362. .rate_min = 8000,
  2363. .rate_max = 384000,
  2364. },
  2365. .ops = &msm_fe_Multimedia_dai_ops,
  2366. .compress_new = snd_soc_new_compress,
  2367. .name = "MultiMedia12",
  2368. .probe = fe_dai_probe,
  2369. },
  2370. {
  2371. .playback = {
  2372. .stream_name = "MultiMedia13 Playback",
  2373. .aif_name = "MM_DL13",
  2374. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2375. SNDRV_PCM_RATE_KNOT),
  2376. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2377. SNDRV_PCM_FMTBIT_S24_LE |
  2378. SNDRV_PCM_FMTBIT_S24_3LE |
  2379. SNDRV_PCM_FMTBIT_S32_LE),
  2380. .channels_min = 1,
  2381. .channels_max = 8,
  2382. .rate_min = 8000,
  2383. .rate_max = 384000,
  2384. },
  2385. .ops = &msm_fe_Multimedia_dai_ops,
  2386. .compress_new = snd_soc_new_compress,
  2387. .name = "MultiMedia13",
  2388. .probe = fe_dai_probe,
  2389. },
  2390. {
  2391. .playback = {
  2392. .stream_name = "MultiMedia14 Playback",
  2393. .aif_name = "MM_DL14",
  2394. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2395. SNDRV_PCM_RATE_KNOT),
  2396. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2397. SNDRV_PCM_FMTBIT_S24_LE |
  2398. SNDRV_PCM_FMTBIT_S24_3LE |
  2399. SNDRV_PCM_FMTBIT_S32_LE),
  2400. .channels_min = 1,
  2401. .channels_max = 8,
  2402. .rate_min = 8000,
  2403. .rate_max = 384000,
  2404. },
  2405. .ops = &msm_fe_Multimedia_dai_ops,
  2406. .compress_new = snd_soc_new_compress,
  2407. .name = "MultiMedia14",
  2408. .probe = fe_dai_probe,
  2409. },
  2410. {
  2411. .playback = {
  2412. .stream_name = "MultiMedia15 Playback",
  2413. .aif_name = "MM_DL15",
  2414. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2415. SNDRV_PCM_RATE_KNOT),
  2416. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2417. SNDRV_PCM_FMTBIT_S24_LE |
  2418. SNDRV_PCM_FMTBIT_S24_3LE |
  2419. SNDRV_PCM_FMTBIT_S32_LE),
  2420. .channels_min = 1,
  2421. .channels_max = 8,
  2422. .rate_min = 8000,
  2423. .rate_max = 384000,
  2424. },
  2425. .ops = &msm_fe_Multimedia_dai_ops,
  2426. .compress_new = snd_soc_new_compress,
  2427. .name = "MultiMedia15",
  2428. .probe = fe_dai_probe,
  2429. },
  2430. {
  2431. .playback = {
  2432. .stream_name = "MultiMedia16 Playback",
  2433. .aif_name = "MM_DL16",
  2434. .rates = (SNDRV_PCM_RATE_8000_384000 |
  2435. SNDRV_PCM_RATE_KNOT),
  2436. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2437. SNDRV_PCM_FMTBIT_S24_LE |
  2438. SNDRV_PCM_FMTBIT_S24_3LE |
  2439. SNDRV_PCM_FMTBIT_S32_LE),
  2440. .channels_min = 1,
  2441. .channels_max = 8,
  2442. .rate_min = 8000,
  2443. .rate_max = 384000,
  2444. },
  2445. .capture = {
  2446. .stream_name = "MultiMedia16 Capture",
  2447. .aif_name = "MM_UL16",
  2448. .rates = (SNDRV_PCM_RATE_8000_48000|
  2449. SNDRV_PCM_RATE_KNOT),
  2450. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2451. SNDRV_PCM_FMTBIT_S24_LE |
  2452. SNDRV_PCM_FMTBIT_S24_3LE |
  2453. SNDRV_PCM_FMTBIT_S32_LE),
  2454. .channels_min = 1,
  2455. .channels_max = 8,
  2456. .rate_min = 8000,
  2457. .rate_max = 48000,
  2458. },
  2459. .ops = &msm_fe_Multimedia_dai_ops,
  2460. .name = "MultiMedia16",
  2461. .probe = fe_dai_probe,
  2462. },
  2463. {
  2464. .playback = {
  2465. .stream_name = "VoiceMMode1 Playback",
  2466. .aif_name = "VOICEMMODE1_DL",
  2467. .rates = SNDRV_PCM_RATE_8000_48000,
  2468. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2469. .channels_min = 1,
  2470. .channels_max = 2,
  2471. .rate_min = 8000,
  2472. .rate_max = 48000,
  2473. },
  2474. .capture = {
  2475. .stream_name = "VoiceMMode1 Capture",
  2476. .aif_name = "VOICEMMODE1_UL",
  2477. .rates = SNDRV_PCM_RATE_8000_48000,
  2478. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2479. .channels_min = 1,
  2480. .channels_max = 2,
  2481. .rate_min = 8000,
  2482. .rate_max = 48000,
  2483. },
  2484. .ops = &msm_fe_dai_ops,
  2485. .name = "VoiceMMode1",
  2486. .probe = fe_dai_probe,
  2487. },
  2488. {
  2489. .playback = {
  2490. .stream_name = "VoiceMMode2 Playback",
  2491. .aif_name = "VOICEMMODE2_DL",
  2492. .rates = SNDRV_PCM_RATE_8000_48000,
  2493. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2494. .channels_min = 1,
  2495. .channels_max = 2,
  2496. .rate_min = 8000,
  2497. .rate_max = 48000,
  2498. },
  2499. .capture = {
  2500. .stream_name = "VoiceMMode2 Capture",
  2501. .aif_name = "VOICEMMODE2_UL",
  2502. .rates = SNDRV_PCM_RATE_8000_48000,
  2503. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2504. .channels_min = 1,
  2505. .channels_max = 2,
  2506. .rate_min = 8000,
  2507. .rate_max = 48000,
  2508. },
  2509. .ops = &msm_fe_dai_ops,
  2510. .name = "VoiceMMode2",
  2511. .probe = fe_dai_probe,
  2512. },
  2513. {
  2514. .capture = {
  2515. .stream_name = "MultiMedia17 Capture",
  2516. .aif_name = "MM_UL17",
  2517. .rates = (SNDRV_PCM_RATE_8000_192000|
  2518. SNDRV_PCM_RATE_KNOT),
  2519. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2520. SNDRV_PCM_FMTBIT_S24_LE |
  2521. SNDRV_PCM_FMTBIT_S24_3LE),
  2522. .channels_min = 1,
  2523. .channels_max = 8,
  2524. .rate_min = 8000,
  2525. .rate_max = 192000,
  2526. },
  2527. .ops = &msm_fe_Multimedia_dai_ops,
  2528. .compress_new = snd_soc_new_compress,
  2529. .name = "MultiMedia17",
  2530. .probe = fe_dai_probe,
  2531. },
  2532. {
  2533. .capture = {
  2534. .stream_name = "MultiMedia18 Capture",
  2535. .aif_name = "MM_UL18",
  2536. .rates = (SNDRV_PCM_RATE_8000_192000|
  2537. SNDRV_PCM_RATE_KNOT),
  2538. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2539. SNDRV_PCM_FMTBIT_S24_LE |
  2540. SNDRV_PCM_FMTBIT_S24_3LE),
  2541. .channels_min = 1,
  2542. .channels_max = 8,
  2543. .rate_min = 8000,
  2544. .rate_max = 192000,
  2545. },
  2546. .ops = &msm_fe_Multimedia_dai_ops,
  2547. .compress_new = snd_soc_new_compress,
  2548. .name = "MultiMedia18",
  2549. .probe = fe_dai_probe,
  2550. },
  2551. {
  2552. .capture = {
  2553. .stream_name = "MultiMedia19 Capture",
  2554. .aif_name = "MM_UL19",
  2555. .rates = (SNDRV_PCM_RATE_8000_192000|
  2556. SNDRV_PCM_RATE_KNOT),
  2557. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2558. SNDRV_PCM_FMTBIT_S24_LE |
  2559. SNDRV_PCM_FMTBIT_S24_3LE),
  2560. .channels_min = 1,
  2561. .channels_max = 8,
  2562. .rate_min = 8000,
  2563. .rate_max = 192000,
  2564. },
  2565. .ops = &msm_fe_Multimedia_dai_ops,
  2566. .compress_new = snd_soc_new_compress,
  2567. .name = "MultiMedia19",
  2568. .probe = fe_dai_probe,
  2569. },
  2570. {
  2571. .playback = {
  2572. .stream_name = "MultiMedia20 Playback",
  2573. .aif_name = "MM_DL20",
  2574. .rates = (SNDRV_PCM_RATE_8000_384000|
  2575. SNDRV_PCM_RATE_KNOT),
  2576. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2577. SNDRV_PCM_FMTBIT_S24_LE |
  2578. SNDRV_PCM_FMTBIT_S24_3LE |
  2579. SNDRV_PCM_FMTBIT_S32_LE),
  2580. .channels_min = 1,
  2581. .channels_max = 8,
  2582. .rate_min = 8000,
  2583. .rate_max = 384000,
  2584. },
  2585. .capture = {
  2586. .stream_name = "MultiMedia20 Capture",
  2587. .aif_name = "MM_UL20",
  2588. .rates = (SNDRV_PCM_RATE_8000_48000|
  2589. SNDRV_PCM_RATE_KNOT),
  2590. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2591. SNDRV_PCM_FMTBIT_S24_LE |
  2592. SNDRV_PCM_FMTBIT_S24_3LE |
  2593. SNDRV_PCM_FMTBIT_S32_LE),
  2594. .channels_min = 1,
  2595. .channels_max = 8,
  2596. .rate_min = 8000,
  2597. .rate_max = 48000,
  2598. },
  2599. .ops = &msm_fe_Multimedia_dai_ops,
  2600. .name = "MultiMedia20",
  2601. .probe = fe_dai_probe,
  2602. },
  2603. {
  2604. .capture = {
  2605. .stream_name = "MultiMedia28 Capture",
  2606. .aif_name = "MM_UL28",
  2607. .rates = (SNDRV_PCM_RATE_8000_192000|
  2608. SNDRV_PCM_RATE_KNOT),
  2609. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2610. SNDRV_PCM_FMTBIT_S24_LE |
  2611. SNDRV_PCM_FMTBIT_S24_3LE),
  2612. .channels_min = 1,
  2613. .channels_max = 8,
  2614. .rate_min = 8000,
  2615. .rate_max = 192000,
  2616. },
  2617. .ops = &msm_fe_Multimedia_dai_ops,
  2618. .compress_new = snd_soc_new_compress,
  2619. .name = "MultiMedia28",
  2620. .probe = fe_dai_probe,
  2621. },
  2622. {
  2623. .capture = {
  2624. .stream_name = "MultiMedia29 Capture",
  2625. .aif_name = "MM_UL29",
  2626. .rates = (SNDRV_PCM_RATE_8000_192000|
  2627. SNDRV_PCM_RATE_KNOT),
  2628. .formats = (SNDRV_PCM_FMTBIT_S16_LE |
  2629. SNDRV_PCM_FMTBIT_S24_LE |
  2630. SNDRV_PCM_FMTBIT_S24_3LE),
  2631. .channels_min = 1,
  2632. .channels_max = 8,
  2633. .rate_min = 8000,
  2634. .rate_max = 192000,
  2635. },
  2636. .ops = &msm_fe_Multimedia_dai_ops,
  2637. .compress_new = snd_soc_new_compress,
  2638. .name = "MultiMedia29",
  2639. .probe = fe_dai_probe,
  2640. },
  2641. };
  2642. static int msm_fe_dai_dev_probe(struct platform_device *pdev)
  2643. {
  2644. dev_dbg(&pdev->dev, "%s: dev name %s\n", __func__,
  2645. dev_name(&pdev->dev));
  2646. return snd_soc_register_component(&pdev->dev, &msm_fe_dai_component,
  2647. msm_fe_dais, ARRAY_SIZE(msm_fe_dais));
  2648. }
  2649. static int msm_fe_dai_dev_remove(struct platform_device *pdev)
  2650. {
  2651. snd_soc_unregister_component(&pdev->dev);
  2652. return 0;
  2653. }
  2654. static const struct of_device_id msm_dai_fe_dt_match[] = {
  2655. {.compatible = "qcom,msm-dai-fe"},
  2656. {}
  2657. };
  2658. static struct platform_driver msm_fe_dai_driver = {
  2659. .probe = msm_fe_dai_dev_probe,
  2660. .remove = msm_fe_dai_dev_remove,
  2661. .driver = {
  2662. .name = "msm-dai-fe",
  2663. .owner = THIS_MODULE,
  2664. .of_match_table = msm_dai_fe_dt_match,
  2665. },
  2666. };
  2667. int __init msm_fe_dai_init(void)
  2668. {
  2669. return platform_driver_register(&msm_fe_dai_driver);
  2670. }
  2671. void msm_fe_dai_exit(void)
  2672. {
  2673. platform_driver_unregister(&msm_fe_dai_driver);
  2674. }
  2675. /* Module information */
  2676. MODULE_DESCRIPTION("MSM Frontend DAI driver");
  2677. MODULE_LICENSE("GPL v2");