Bug 215123

Summary: Behringer UMC404HD usb device samplerate issues
Product: Drivers Reporter: Wim Taymans (wim.taymans)
Component: Sound(ALSA)Assignee: Jaroslav Kysela (perex)
Status: RESOLVED PATCH_ALREADY_AVAILABLE    
Severity: normal CC: tiwai
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 5.14 Subsystem:
Regression: No Bisected commit-id:
Attachments: output of alsa-info.sh

Description Wim Taymans 2021-11-23 15:21:45 UTC
Created attachment 299687 [details]
output of alsa-info.sh

The Behringer UMC404HD usb card requires the samplerate of all PCM to be the same and should restrict the configuration space for user-space accordingly.

1) open a playback PCM at 48KHz
2) open a capture PCM at 44.1KHz
3) pitch of playback PCM changes

The available sample rates reported to userspace when opening the capture PCM in this scenario, should be limited to 48KHz.
Comment 1 Takashi Iwai 2021-11-23 17:20:08 UTC
Could you try 5.16-rc1?
Comment 2 Wim Taymans 2021-11-24 16:10:09 UTC
I tried with 5.16-rc2 on fedora and can no longer reproduce this problem. It looks like when a playback stream is opened at 48KHz it is no longer possible to open a capture stream at a different samplerate.
Comment 3 Wim Taymans 2021-11-24 16:45:35 UTC
Good stuff, 5.16-rc1 also gives me steady 3.4ms roundtrip latency with a 16 sample buffer size on PipeWire (down from 4.7ms). It's now on par with JACK. awesome work.
Comment 4 Takashi Iwai 2021-12-01 09:24:06 UTC
FWIW, I asked Greg to cherry-pick all relevant fixes from 5.16 to 5.15.x stable tree.  It'll be available in near future in 5.15.x stable release.