Enable iec958/hooks for RPI latest kernel update 49/285449/2 accepted/tizen/base/20221216.133724 accepted/tizen/base/20221218.221145 accepted/tizen/base/20221219.233409 accepted/tizen/base/dev/20230602.080956
authorSeungbae Shin <seungbae.shin@samsung.com>
Tue, 13 Dec 2022 05:22:09 +0000 (14:22 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Tue, 13 Dec 2022 07:50:42 +0000 (16:50 +0900)
Also add card configuration (vc4-hdmi.conf) to support HDMI

[Version] 1.0.29-6
[Issue Type] Update

Change-Id: I3f19eaca1e2218d24e72c42f5edd4c52888dd4da

packaging/alsa-lib.spec
src/conf/cards/Makefile.am
src/conf/cards/vc4-hdmi.conf [new file with mode: 0644]

index 1fd43d68d52c678f2af8b0a291efa0b71f4076ee..bf480888a9c8ca3d46a3c630a0655471c4ec936f 100644 (file)
@@ -1,6 +1,6 @@
 Name:           alsa-lib
 Version:        1.0.29
-Release:        5
+Release:        6
 License:        LGPL-2.1+
 Summary:        The Advanced Linux Sound Architecture (ALSA) library
 Url:            http://www.alsa-project.org/
@@ -43,7 +43,7 @@ cp %{SOURCE1001} .
     --disable-alisp \
     --disable-python \
     --with-gnu-ld \
-    --with-pcm-plugins=rate,route,linear,plug,dmix,dsnoop,asym,mmap,ioplug,null,empty,softvol \
+    --with-pcm-plugins=rate,route,linear,plug,dmix,dsnoop,asym,mmap,ioplug,null,empty,softvol,iec958,hooks \
     --with-ucmdir=%{confdir}/ucm
 
 make %{?_smp_mflags}
index 008d399fdc3407c57d1798be31cde0770375d1ad..f01812a84e1eccf9bcb6d7b9420125a562260356 100644 (file)
@@ -49,6 +49,7 @@ cfg_files = aliases.conf \
        TRID4DWAVENX.conf \
        USB-Audio.conf \
        YMF744.conf \
+       vc4-hdmi.conf \
        VIA686A.conf \
        VIA8233.conf \
        VIA8233A.conf \
diff --git a/src/conf/cards/vc4-hdmi.conf b/src/conf/cards/vc4-hdmi.conf
new file mode 100644 (file)
index 0000000..9900c23
--- /dev/null
@@ -0,0 +1,70 @@
+#
+# Configuration for the VC4-HDMI sound card using software IEC958
+# subframe conversion
+#
+
+<confdir:pcm/hdmi.conf>
+vc4-hdmi.pcm.hdmi.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 hooks
+                       slave.pcm {
+                               type hw
+                               card $CARD
+                               device 0
+                       }
+                       hooks.0 {
+                               type ctl_elems
+                               hook_args [
+                               {
+                                       name "IEC958 Playback Default"
+                                       interface PCM
+                                       optional true
+                                       lock true
+                                       preserve true
+                                       value [ $AES0 $AES1 $AES2 $AES3 ]
+                               }
+                               ]
+                       }
+               }
+       }
+       status [ $AES0 $AES1 $AES2 $AES3 ]
+}
+
+# default with plug
+vc4-hdmi.pcm.default {
+       @args [ CARD ]
+       @args.CARD {
+               type string
+       }
+       type plug
+       slave.pcm {
+               type softvol
+               slave.pcm {
+                       @func concat
+                       strings [ "hdmi:" $CARD ]
+               }
+               control {
+                       name "PCM Playback Volume"
+                       card $CARD
+               }
+       }
+}