|
Bugzilla – Full Text Bug Listing |
| Summary: | PulseAudio device advertises sample rates which cannot actually be used | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Tumbleweed | Reporter: | Hadrien Grasland <grasland> |
| Component: | Sound | Assignee: | Takashi Iwai <tiwai> |
| Status: | RESOLVED UPSTREAM | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Minor | ||
| Priority: | P5 - None | ||
| Version: | Current | ||
| Target Milestone: | --- | ||
| Hardware: | x86-64 | ||
| OS: | openSUSE Tumbleweed | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Hadrien Grasland
2024-02-14 08:53:18 UTC
After closer investigation, this problem only appears when pulseaudio is configured to use a default-sample-rate of 96000 (I configured that a while ago). If default-sample-rate is 44100, then for some strange reason all hardware-supported sample rates become available on both the hw:2,0 and default/pulse devices. I have no idea why setting pulseaudio's default-sample-rate to a non-default value breaks hardware support for other sample rates, but well, at least for other affected people this provides a workaround... I can't say exactly unless getting the hardware details, but it's possible that there can be some hardware restriction about the sample rate setup for your USB-audio device, e.g. full-duplex is only with reduced rates or limited to certain sample formats. The kernel driver applies such restrictions dynamically, but for the application side, it's hard to know everything (basically it can do only trial-and-error with different configs). That said, leaving the default to the lower value should fix your case. I can provide any hardware detail you need. What would you want, an `lsusb -v` of the audio interface? A tarball of the readable pseudofiles in /proc/asound? In any case, this issue has indeed become a lot less pressing for me now that I have a workaround and am convinced that this will only affect people with unusual pulseaudio/hardware configurations. I'm demoting the issue's severity accordingly. Back in the day, I set pulseaudio's default-sample-rate because this was seemingly the only way to get a full 96kHz audio input & processing workflow. Since then I've switched to using JACK for most of my advanced audio processing needs (which has its own sample rate control), and pulseaudio has gained avoid-resampling mode which allows apps to pick the audio sample rate when they are the only ones using the device, so tweaking default-sample-rate is a lot less useful that it has been in the past. What still puzzles me and seems worth fixing, however, is the fact that in certain hardware+pulseaudio configurations, the pulseaudio ALSA device exposes sampling rates that it cannot handle (not even via resampling). This is particularly problematic with apps like MuseScore 4 that have minimalistic audio output options, and do not allow you to pick the audio output device and sample rate: if these apps pick the wrong settings, then they won't be able to emit sound at all... The resampling should happen in PA. I suspect it's rather the driver that doesn't work with the given rate under certain situations. But the fact that the driver declines the parameter is the correct and expected behavior; it's a result of the hardware restriction. So, there is some room for improvement in PA side. But if you want to continue tracking that, I'd suggest rather to open an upstream issue. It's no downstream problem, after all. Other than that, we may close as WORKSFORME. If you are convinced that this is not SUSE-specific (either a pulse issue or an ALSA driver/hardware issue), then indeed the best course of action is to close this report and take it to the pulseaudio issue tracker next. |