Working sound setup for raspis

This commit is contained in:
Martin Bauer
2020-05-10 15:25:38 +02:00
parent caf6232dfb
commit d8c9a491d1
40 changed files with 815 additions and 43 deletions

View File

@@ -1,7 +1,4 @@
- name: restart sshd
service:
name: sshd
state: restarted
---
- name: reboot
reboot:

View File

@@ -0,0 +1,3 @@
---
dependencies:
- role: pi-alsasetup

View File

@@ -0,0 +1,13 @@
---
- name: Deactivate normal audio
lineinfile:
path: /boot/config.txt
regexp: "^#?dtparam=audio=on"
line: "#dtparam=audio=on"
notify: reboot
- name: Activate Hifiberry
lineinfile:
path: /boot/config.txt
regexp: "^#?dtoverlay=hifiberry-amp"
line: "dtoverlay=hifiberry-amp"
notify: reboot