clock rate fixed at 44100 since 5.19 update
- PipeWire version (
pipewire --version
): 0.3.56 - Distribution and distribution version (
PRETTY_NAME
from/etc/os-release
): arch linux - Desktop Environment: openbox
- Kernel version (
uname -r
): 5.19.2-linux
Description of Problem: Pre 5.19, the default clock rate was respected in .config/pipewire/pipewire.conf. Since 5.19, although pw-top and pw-metatdata indicates the clock rate is correctly set, the device (Pro device / jack) can only be used at 44100 Hz.
How Reproducible:
On a 5.18 kernel (linux, linux-zen, linux-lqx)
Found "settings" metadata 30
update: id:0 key:'log.level' value:'2' type:''
update: id:0 key:'clock.rate' value:'96000' type:''
update: id:0 key:'clock.allowed-rates' value:'[ 96000 ]' type:''
update: id:0 key:'clock.quantum' value:'512' type:''
update: id:0 key:'clock.min-quantum' value:'16' type:''
update: id:0 key:'clock.max-quantum' value:'2048' type:''
update: id:0 key:'clock.force-quantum' value:'256' type:''
update: id:0 key:'clock.force-rate' value:'0' type:''
]$ cat /proc/asound/Pro73026703/pcm0p/sub0/hw_params
access: RW_INTERLEAVED
format: S24_3LE
subformat: STD
channels: 2
rate: 96000 (96000/1)
period_size: 256
buffer_size: 2048
[mervin@jb95 ~]$
$ pw-metadata -n settings
Found "settings" metadata 30
update: id:0 key:'log.level' value:'2' type:''
update: id:0 key:'clock.rate' value:'96000' type:''
update: id:0 key:'clock.allowed-rates' value:'[ 96000 ]' type:''
update: id:0 key:'clock.quantum' value:'512' type:''
update: id:0 key:'clock.min-quantum' value:'16' type:''
update: id:0 key:'clock.max-quantum' value:'2048' type:''
update: id:0 key:'clock.force-quantum' value:'256' type:''
update: id:0 key:'clock.force-rate' value:'0' type:''
$ cat /proc/asound/Pro73026703/pcm0p/sub0/hw_params
access: RW_INTERLEAVED
format: S24_3LE
subformat: STD
channels: 2
rate: 96000 (96000/1)
period_size: 256
buffer_size: 2048
[mervin@jb95 ~]$
5.19 kernel (rate vale: 96000, but device runs at 44100 and camilladsp will only start at 44100)
$ pw-metadata -n settings
Found "settings" metadata 30
update: id:0 key:'log.level' value:'2' type:''
update: id:0 key:'clock.rate' value:'96000' type:''
update: id:0 key:'clock.allowed-rates' value:'[ 96000 ]' type:''
update: id:0 key:'clock.quantum' value:'512' type:''
update: id:0 key:'clock.min-quantum' value:'16' type:''
update: id:0 key:'clock.max-quantum' value:'2048' type:''
update: id:0 key:'clock.force-quantum' value:'256' type:''
update: id:0 key:'clock.force-rate' value:'0' type:''
[mervin@jb95 pipewire]$ cat /proc/asound/Pro73026703/pcm0p/sub0/hw_params
access: MMAP_INTERLEAVED
format: S24_3LE
subformat: STD
channels: 12
rate: 44100 (44100/1)
period_size: 128
buffer_size: 32768
$
I send all audio into a pulse sink, then from the sink monitor into the Pro output or camilladsp -> Pro output. Result is same. In the case of camilladsp, it complains that clock rate is not supported, since I configure it as 96000. Changing it to 44100 allows it to work. This is incorrect behaviour, and was not the case pre 5.19. pw-dump.log Note that the settings as seen in pw-metadata and pw-top show 96000. But the device runs at 44100 only on 5.19 kernel.
Steps to Reproduce:
- Use 5.19.x kernel