Compare commits
2 commits
ada18336e3
...
c8a5b8ab79
Author | SHA1 | Date | |
---|---|---|---|
c8a5b8ab79 | |||
8b54989191 |
|
@ -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"
|
||||
|
|
26
ansible/files/51-qcom-sdm845.conf
Normal file
26
ansible/files/51-qcom-sdm845.conf
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
Loading…
Reference in a new issue