From e4f81babdb1b58ffce19a7a687a3878bf04923f9 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Tue, 18 Feb 2020 13:40:31 +0100 Subject: [PATCH] RPi: add fixed alsa card conf for vc4-hdmi Signed-off-by: Matthias Reichl --- .../usr/share/alsa/cards/vc4-hdmi.conf | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 projects/RPi/filesystem/usr/share/alsa/cards/vc4-hdmi.conf diff --git a/projects/RPi/filesystem/usr/share/alsa/cards/vc4-hdmi.conf b/projects/RPi/filesystem/usr/share/alsa/cards/vc4-hdmi.conf new file mode 100644 index 0000000000..0db45f1010 --- /dev/null +++ b/projects/RPi/filesystem/usr/share/alsa/cards/vc4-hdmi.conf @@ -0,0 +1,67 @@ +# Configuration for the VC4-HDMI sound card using software IEC958 +# subframe conversion + + +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" + 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 + } + } +}