Files
ansible/roles/pi_hifiberry_amp/tasks/main.yml
Martin Bauer 6b9b50ef2e Get sound, the screen and emoji working on musicdolphin's Pi 5
- HiFiBerry: the plain hifiberry-dacplus overlay makes the Pi the I2S clock consumer,
  which the Pi 5's controller refuses (snd_soc_dai_set_fmt -22). The card never probed,
  so every softvol_* device was dead: squeezelite crash-looped and the backend and
  shairport played into nothing. hifiberry-dacplus-std has the Pi drive the clocks.
  pi_hifiberry_amp now matches any dtoverlay=hifiberry-* line, so changing the overlay
  replaces the old one instead of adding a second.
- X: with two DRM devices (v3d, vc4) Xorg gave up with "Cannot run in framebuffer
  mode", and the kiosk looped on a blank screen. 99-vc4.conf points it at vc4, the
  display controller; rendering still goes to V3D (glxinfo: V3D 7.1, accelerated).
- The front-end's icons are emoji in the markup. The Lite image has no emoji font, so
  they rendered as empty boxes: install fonts-noto-color-emoji.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 21:21:47 +02:00

26 lines
1.1 KiB
YAML

---
- name: Deactivate normal audio
ansible.builtin.lineinfile:
path: /boot/config.txt
regexp: "^#?dtparam=audio=on"
line: "#dtparam=audio=on"
notify: Reboot after HiFiBerry boot config change
- name: Activate Hifiberry
ansible.builtin.lineinfile:
path: /boot/firmware/config.txt
# Any hifiberry overlay, not just the one this used to set: otherwise changing
# hifiberry_overlay appends a second dtoverlay line and leaves the old one active.
regexp: "^#?dtoverlay=hifiberry-"
line: "dtoverlay={{ hifiberry_overlay }}"
notify: Reboot after HiFiBerry boot config change
- name: Lift the Pi 5's USB current cap when the HiFiBerry board powers it
# A Pi 5 fed over the GPIO header has no USB-C power negotiation, so it assumes a
# weak supply and limits USB ports to 600mA. Unknown to a Pi 4, which ignores it.
ansible.builtin.lineinfile:
path: /boot/firmware/config.txt
regexp: "^#?usb_max_current_enable="
line: "usb_max_current_enable=1"
insertafter: EOF
when: hifiberry_powers_pi
notify: Reboot after HiFiBerry boot config change