From 66c56e1736495beb35b40baacf52d21837deaa41 Mon Sep 17 00:00:00 2001 From: Tom Hochstein Date: Thu, 26 Jul 2018 14:07:22 -0500 Subject: [PATCH] alsa-state: Add support for splitting ESAI device Split one ESAI device into two virtual devices, one 6 channel and one 2 channel. Signed-off-by: Tom Hochstein Signed-off-by: Otavio Salvador --- .../alsa-state/alsa-state/imx/asound.conf | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/recipes-bsp/alsa-state/alsa-state/imx/asound.conf b/recipes-bsp/alsa-state/alsa-state/imx/asound.conf index 37cb76f8..0084f4a0 100644 --- a/recipes-bsp/alsa-state/alsa-state/imx/asound.conf +++ b/recipes-bsp/alsa-state/alsa-state/imx/asound.conf @@ -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 +} -- 2.40.1