msm-dai-fe.c 78 KB

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