msm-dai-fe.c 67 KB

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