clock.allowed-rates and clock.force-rate not working
- PipeWire version (
pipewire --version
): 0.3.48 - Distribution and distribution version (
PRETTY_NAME
from/etc/os-release
): Ubuntu 20.04.4 LTS - Desktop Environment: Regolith Linux
- Kernel version (
uname -r
): 5.4.0-104-generic
Description of Problem:
Trying to change the sample rate for my Schiit ES9028 DAC using clock.allowed-rates
or clock.force-rate
does not work. Changing default.clock.rate
does work.
How Reproducible:
Always.
Steps to Reproduce:
- Stage local pipewire.conf such that
diff /usr/share/pipewire/pipewire.conf ~/.config/pipewire/pipewire.conf
30c30
< #default.clock.allowed-rates = [ 48000 ]
---
> default.clock.allowed-rates = [ 48000 96000 ]
- Restart
pipewire{,-pulse}.{socket,service}
, verify that the setting is read,
pw-metadata -n settings
Found "settings" metadata 30
update: id:0 key:'log.level' value:'2' type:''
update: id:0 key:'clock.rate' value:'48000' type:''
update: id:0 key:'clock.allowed-rates' value:'[ 48000, 96000 ]' type:''
...
- Start VLC and play a 96kHz file. See that the sample rate is not adjusted
cat /proc/asound/card1/pcm0p/sub0/hw_params
access: MMAP_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 48000 (48000/1)
period_size: 512
buffer_size: 131072
I also tried pw-metadata -n settings 0 clock.force-rate 96000
and the result is the same: 48kHz. Setting default.clock.rate
to 96kHz in pipewire.conf
works as expected.
Expected Results:
Adjusting the sample rate using clock.allowed-rates
or clock.force-rate
should work.