add workaround: wireplumber config, makes the speaker (louder one) work

This commit is contained in:
erebion 2024-08-25 17:19:11 +02:00
parent 8b54989191
commit 4f39cf6b4a
3 changed files with 46 additions and 1 deletions

View file

@ -114,7 +114,6 @@ For those I will remove the workarounds once the changes are in the Mobian repo
### This Does Not Work Yet (Soon™)
- GPS
- Speaker (the loud one, the other one for calls works... this means that you cannot annoy others with loud music yet, sorry :p)
- USB host mode (no Kernel support yet, but apparently this is being worked on)
- Verified Boot (first need to do research)

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
}
}
}
]