msm-dai-fe.c 67 KB

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