Index: 1.2.8/Makefile
===================================================================
--- 1.2.8/Makefile (revision 208)
+++ 1.2.8/Makefile (revision 209)
@@ -235,6 +235,13 @@
@cp -a $(CURDIR)/conf/asound.conf.alsa $(ALSA_LIB_PKG)/etc/asound.conf.new
@cp -a $(CURDIR)/conf/asound.conf.pulse $(ALSA_LIB_PKG)/etc/asound.conf.pulse
@chmod 644 $(ALSA_LIB_PKG)/etc/asound.conf.new $(ALSA_LIB_PKG)/etc/asound.conf.pulse
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK358X_GLIBC)),)
+ # ======= Install HDMI-OUT card =======
+ @cp -a $(CURDIR)/cards/HDMI-OUT.conf $(ALSA_LIB_PKG)/usr/share/alsa/cards/
+ @( cd $(ALSA_LIB_PKG)/usr/share/alsa/cards ; \
+ sed -i '/^VC4-HDMI cards.vc4-hdmi/a rockchip-hdmi0 cards.HDMI-OUT' aliases.conf ; \
+ )
+endif
# ======= remove toolchain path from target libtool *.la files =======
@( cd $(ALSA_LIB_PKG)/usr/lib$(LIBSUFFIX) ; \
sed -i "s,$(TARGET_DEST_DIR),,g" libasound.la libatopology.la ; \
Index: 1.2.8/cards/HDMI-OUT.conf
===================================================================
--- 1.2.8/cards/HDMI-OUT.conf (nonexistent)
+++ 1.2.8/cards/HDMI-OUT.conf (revision 209)
@@ -0,0 +1,32 @@
+#
+# configuration for HDMI connection which just expose the audio out device
+#
+
+<confdir:pcm/hdmi.conf>
+
+HDMI-OUT.pcm.hdmi.0 {
+ @args [ CARD DEVICE CTLINDEX AES0 AES1 AES2 AES3 ]
+ @args.CARD {
+ type string
+ }
+ @args.DEVICE {
+ type integer
+ }
+ @args.CTLINDEX {
+ type integer
+ }
+ @args.AES0 {
+ type integer
+ }
+ @args.AES1 {
+ type integer
+ }
+ @args.AES2 {
+ type integer
+ }
+ @args.AES3 {
+ type integer
+ }
+ type hw
+ card $CARD
+}