From eae763788ceb2e009ff0a0f2be2c478663dd3032 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 22 Jun 2021 01:23:57 -0400 Subject: [PATCH] Fixes to file copying. Added more files to hopefully get sound working. --- build/build-stormux.sh | 2 + files/boot/config.txt | 1 + files/var/lib/alsa/asound.state | 79 +++++++++++++++++++++++++++++++++ 3 files changed, 82 insertions(+) create mode 100644 files/var/lib/alsa/asound.state diff --git a/build/build-stormux.sh b/build/build-stormux.sh index 3762d71..f59454d 100755 --- a/build/build-stormux.sh +++ b/build/build-stormux.sh @@ -177,7 +177,9 @@ systemctl enable cronie.service fenrirscreenreader.service EOF # Copy override files into place. +cp -rv ../files/boot/* /mnt/boot cp -rv ../files/etc/* /mnt/etc +cp -rv ../files/var/* /mnt/var # Exiting calls the cleanup function to unmount. exit 0 diff --git a/files/boot/config.txt b/files/boot/config.txt index 5571e95..5e5d31e 100755 --- a/files/boot/config.txt +++ b/files/boot/config.txt @@ -3,4 +3,5 @@ #dtoverlay=vc4-kms-v3d initramfs initramfs-linux.img followkernel dtparam=audio=on +hdmi_drive=2 diff --git a/files/var/lib/alsa/asound.state b/files/var/lib/alsa/asound.state new file mode 100644 index 0000000..d128b82 --- /dev/null +++ b/files/var/lib/alsa/asound.state @@ -0,0 +1,79 @@ +state.ALSA { + control.1 { + iface MIXER + name 'PCM Playback Volume' + value -197 + comment { + access 'read write' + type INTEGER + count 1 + range '-10239 - 400' + dbmin -9999999 + dbmax 400 + dbvalue.0 -197 + } + } + control.2 { + iface MIXER + name 'PCM Playback Switch' + value true + comment { + access 'read write' + type BOOLEAN + count 1 + } + } + control.3 { + iface MIXER + name 'PCM Playback Route' + value 1 + comment { + access 'read write' + type INTEGER + count 1 + range '0 - 2' + } + } + control.4 { + iface PCM + name 'IEC958 Playback Default' + value '0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' + comment { + access 'read write' + type IEC958 + count 1 + } + } + control.5 { + iface PCM + name 'IEC958 Playback Con Mask' + value '0200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' + comment { + access read + type IEC958 + count 1 + } + } + control.6 { + iface PCM + name 'IEC958 Playback PCM Stream' + value '0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' + comment { + access 'read write inactive' + type IEC958 + count 1 + } + } +} +state.vc4hdmi { + control.1 { + iface PCM + name ELD + value '100008006a10000100000000000000000469fd22415355532056533232380917070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' + comment { + access 'read volatile' + type BYTES + count 128 + } + } +}