Fix onboard audio: apply ALSA UCM HiFi verb before Pd start
Validate and Test / validate-patches (push) Failing after 13s

- Add alsaucm -c hw:0 set _verb HiFi to start-synth.sh (onboard mode)
- Add UCM verb to install.sh
- Add UCM verb to justfile fix-ucm recipe
- Without this, the DSP audio routing is not configured and no sound
  reaches the headphone output
This commit is contained in:
2026-06-24 17:31:00 -07:00
parent 191c70fd18
commit d4856804ff
3 changed files with 45 additions and 2 deletions
+8
View File
@@ -64,6 +64,14 @@ fi
if [ "$MODE" = "onboard" ] || [ "$MODE" = "i2s" ]; then
info "Mode: Onboard audio (PMIC headphone / line out on JMISC)"
AUDIO_OPTS=(-audiooutdev 0 -inchannels 0 -outchannels 1)
# Apply ALSA UCM HiFi verb to configure DSP routing (required for audio)
if command -v alsaucm &>/dev/null; then
alsaucm -c hw:0 set _verb HiFi 2>/dev/null && \
info " UCM HiFi verb applied" || \
info " UCM HiFi verb failed"
else
info " alsaucm not found — skipping UCM config"
fi
fi
if [ "$MODE" = "loopback" ]; then