From aa5ae4f65e034e2866c1c69d98823603367681bc Mon Sep 17 00:00:00 2001 From: Tom Hochstein Date: Thu, 26 Jul 2018 14:23:10 -0500 Subject: [PATCH] alsa-state: Fix HDMI for i.MX 8M Channel mapping on HDMI was incorrect for 4 and 8 channels. Create a PCM device so alsa-lib will remap in user space. Signed-off-by: Tom Hochstein --- .../alsa-state/alsa-state/imx/asound.conf | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/recipes-bsp/alsa-state/alsa-state/imx/asound.conf b/recipes-bsp/alsa-state/alsa-state/imx/asound.conf index 0f9d0c85..c511018e 100644 --- a/recipes-bsp/alsa-state/alsa-state/imx/asound.conf +++ b/recipes-bsp/alsa-state/alsa-state/imx/asound.conf @@ -427,3 +427,33 @@ pcm.sai1to4{ bindings.2 1 bindings.3 9 } + +pcm.cdnhdmi4ch { + type dshare + slave { + pcm "hw:3,0" + channels 4 + } + ipc_key 5144458 + bindings.0 0 + bindings.1 2 + bindings.2 1 + bindings.3 3 +} + +pcm.cdnhdmi8ch { + type dshare + slave { + pcm "hw:3,0" + channels 8 + } + ipc_key 5144458 + bindings.0 0 + bindings.1 4 + bindings.2 1 + bindings.3 5 + bindings.4 2 + bindings.5 6 + bindings.6 3 + bindings.7 7 +} -- 2.40.1