]> code.ossystems Code Review - meta-freescale.git/commitdiff
alsa-state: Fix HDMI for i.MX 8M
authorTom Hochstein <tom.hochstein@nxp.com>
Thu, 26 Jul 2018 19:23:10 +0000 (14:23 -0500)
committerOtavio Salvador <otavio@ossystems.com.br>
Sat, 8 Sep 2018 04:48:18 +0000 (01:48 -0300)
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@nxp.com>
recipes-bsp/alsa-state/alsa-state/imx/asound.conf

index 0f9d0c85083ae341fb8638c148a7454f8c1b80ac..c511018e9c3bcfb300eb6414c913432ebc02adfa 100644 (file)
@@ -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
+}