]> code.ossystems Code Review - meta-freescale.git/commitdiff
alsa-state: Add support for splitting ESAI device
authorTom Hochstein <tom.hochstein@nxp.com>
Thu, 26 Jul 2018 19:07:22 +0000 (14:07 -0500)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 31 Aug 2018 00:57:09 +0000 (21:57 -0300)
Split one ESAI device into two virtual devices, one
6 channel and one 2 channel.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-bsp/alsa-state/alsa-state/imx/asound.conf

index 37cb76f8404f2e806e46e9b5f068e6ded962ecfe..0084f4a0b4fe42220825bd35d1f20b1457c4b2d9 100644 (file)
@@ -242,3 +242,30 @@ ctl.mixer0{
 type hw
 card 0
 }
+
+pcm_slave.esai{
+       pcm "hw:0,0"
+       channels 8
+       rate 48000
+       period_time 40000
+}
+
+pcm.esaich1to6{
+       type dshare
+       ipc_key 5778293
+       slave esai
+       bindings.0 0
+       bindings.1 4
+       bindings.2 1
+       bindings.3 5
+       bindings.4 2
+       bindings.5 6
+}
+
+pcm.esaich78{
+       type dshare
+       ipc_key 5778293
+       slave esai
+       bindings.0 3
+       bindings.1 7
+}