Compare commits

..

2 commits

Author SHA1 Message Date
erebion c8a5b8ab79 add workaround: wireplumber config, makes the speaker (louder one) work 2024-08-25 17:19:11 +02:00
erebion 8b54989191 update status of project 2024-08-25 17:18:27 +02:00
2 changed files with 46 additions and 0 deletions

View file

@ -33,6 +33,26 @@
args:
chdir: /usr/share/alsa
### Wireplumber Config ###
- name: "Copy Wireplumber Config"
ansible.builtin.copy:
src: 51-qcom-sdm845.conf
dest: "/usr/share/wireplumber/wireplumber.conf.d/51-qcom-sdm845.conf"
owner: root
group: root
mode: u+rw
force: true
register: wireplumber_config
- name: "Restart Wireplumber on config change"
ansible.builtin.systemd_service:
name: wireplumber.service
state: restarted
scope: user
become_user: "{{ ansible_env.SUDO_USER }}"
when: wireplumber_config.changed
### Remove Remnants Of Previous Playbook Versions ###
- name: "Deactivate systemd unit if it exists, ignore errors if it does not"

View file

@ -0,0 +1,26 @@
monitor.alsa.rules = [
{
matches = [
{
# Matches all sources
node.name = "~alsa_input.*"
},
{
# Matches all sinks
node.name = "~alsa_output.*"
}
]
actions = {
update-props = {
audio.format = "S16LE"
audio.rate = 48000
api.alsa.period-size = 4096
api.alsa.period-num = 6
api.alsa.headroom = 512,
# session.suspend-timeout-seconds = 0
# dither.method = "wannamaker3", # add dither of desired shape
# dither.noise = 2, # add additional bits of noise
}
}
}
]