]> git.alsa-project.org Git - alsa-lib.git/commitdiff
conf/cards: add VC4-HDMI card
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 2 Mar 2017 10:49:33 +0000 (11:49 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 20 Mar 2017 11:05:36 +0000 (12:05 +0100)
Add a conf file for the VC4-HDMI sound card.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Tested-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/conf/cards/Makefile.am
src/conf/cards/aliases.conf
src/conf/cards/vc4-hdmi.conf [new file with mode: 0644]

index e8b530e80a8f2e7f31dcc72bd657c2f5a108c3a6..00999f0186d6616d8c87ad2d876868471fc0634c 100644 (file)
@@ -51,6 +51,7 @@ cfg_files = aliases.conf \
        TRID4DWAVENX.conf \
        USB-Audio.conf \
        YMF744.conf \
+       vc4-hdmi.conf \
        VIA686A.conf \
        VIA8233.conf \
        VIA8233A.conf \
index 60f9d26974fd0ba2cf2eda8d60d5caa2ef5a6078..18a920f41e46adea340640e0bcc82de82190d62c 100644 (file)
@@ -56,6 +56,7 @@ AV200 cards.CMI8788
 CMI8786 cards.CMI8788
 CMI8787 cards.CMI8788
 pistachio cards.pistachio-card
+VC4-HDMI cards.vc4-hdmi
 
 <confdir:pcm/default.conf>
 <confdir:pcm/dmix.conf>
diff --git a/src/conf/cards/vc4-hdmi.conf b/src/conf/cards/vc4-hdmi.conf
new file mode 100644 (file)
index 0000000..027804a
--- /dev/null
@@ -0,0 +1,64 @@
+#
+# Configuration for the VC4-HDMI sound card using software IEC958
+# subframe conversion
+#
+
+<confdir:pcm/front.conf>
+
+vc4-hdmi.pcm.front.0 {
+       @args [ CARD ]
+       @args.CARD {
+               type string
+       }
+       type hw
+       card $CARD
+}
+
+# default with dmix
+vc4-hdmi.pcm.default {
+       @args [ CARD ]
+       @args.CARD {
+               type string
+       }
+       type asym
+       playback.pcm {
+               type plug
+               slave.pcm {
+                       @func concat
+                       strings [ "dmix:" $CARD ]
+               }
+       }
+}
+
+<confdir:pcm/iec958.conf>
+
+vc4-hdmi.pcm.iec958.0 {
+       @args [ CARD AES0 AES1 AES2 AES3 ]
+       @args.CARD {
+               type string
+       }
+       @args.AES0 {
+               type integer
+       }
+       @args.AES1 {
+               type integer
+       }
+       @args.AES2 {
+               type integer
+       }
+       @args.AES3 {
+               type integer
+       }
+       type iec958
+       slave {
+               format IEC958_SUBFRAME_LE
+               pcm {
+                       type plug
+                       slave.pcm {
+                               type hw
+                               card $CARD
+                       }
+               }
+       }
+       status [ $AES0 $AES1 $AES2 $AES3 ]
+}