[meta-freescale] [PATCH v2 29/43] alsa-state: Fix HDMI for i.MX 8M

Tom Hochstein tom.hochstein at nxp.com
Mon Aug 6 13:04:06 PDT 2018


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 <tom.hochstein at nxp.com>
---
 recipes-bsp/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 0f9d0c8..c511018 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.7.4



More information about the meta-freescale mailing list