this post was submitted on 20 Aug 2023
30 points (100.0% liked)

Linux

47969 readers
1016 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Using KDE plasma, Archlinux, Pipewire, Focusrite 2i2 3rd Gen

Audio from built-in audio and via GPU into display speakers all works fine but audio through my Focusrite is badly distorted, like it is running at super-low quality.

I've spent most of today trying to work out how to make pipewire use the right bit/sample rates. It. This should be a basic GUI feature, and certainly shouldn't need to sudo edit cryptic files to configure this stuff. I use Reaper and I'll need to change bit / sample rates from time to time, so having to make with config files is just nuts. This should be a basic function available in the control panel (Like windows has had for decades). / rant

Anyway, I genuinely want to fix this problem and would really like a GUI tool for it, but a working config edit will do at this point. I can' also make a script to tweak it on demand I suppose.

There is a video that suggests building a new kernel driver for it, which is even more nuts for something so basic.

top 13 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 1 year ago (1 children)

Hey,

I'm on mobile so I don't have a detailed answer at this time but I had the exact same distorted audio issue. I even thought it may be a lemon 2i2 and got a FR Clarette to replace it.

I could not find a fix with Pipewire but fixed it by uninstalling it for Pulseaudio. Sounds like a step backwards but it now works perfectly

[–] [email protected] -4 points 1 year ago* (last edited 1 year ago)
[–] [email protected] 3 points 1 year ago (1 children)

This sounds very much like the problems I had recently with two different brand new interfaces, trying to connect over USB-C. Fortunately they were both bundled with a C-to-A USB cable, which had them both working perfectly.

Over USB-C it was disto city, like when a cable is half-unplugged. I thought maybe it was something to do with the type of USB-C ports my laptop has (one is thunderbolt, one is dual-C / thunderbolt). What sort of cable are you using?

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

Interesting. I'm not using USB C but it is in a 3.2 port so so maybe switching to a 3.0 port will help. I'll give it a go.

Edit: Nope didn't work.

[–] [email protected] 1 points 1 year ago

Ah well it was worth a try.

I'm guessing then it's a sample rate issue, unfortunately I don't use Linux so don't think I can be of much help there. I know I've had issue before where the interface and windows were both set to a different rate (44.1 / 48) and it caused all sorts of serious sound issues. Hope you figure it out, when I can't figure out an issue with my music setup it drives me nuts!

[–] [email protected] 2 points 1 year ago (1 children)

I have had issues before with the 2i2 on Linux, where it seemed that no matter the setting in software, the hardware would always sample at a set 44.1kHz. So, with software thinking it was sampling at one rate, the playback would always be at the wrong speed. Doesnt sound like the the same as your issue of distorted audio, but yes, clearly there is something lacking in the kernel drivers for the 2i2!

Wish I could offer a fix but I have used it so sporadically thay I just tolerated my single choice for sample rate.

[–] [email protected] 1 points 1 year ago (1 children)

I'll try using 44.1 and see what happens. Though I'd like to be ablet to change it 96khz as well sometimes.

[–] [email protected] 1 points 1 year ago

This could indeed be a samplerate mismatch between applications and os. At least that's a thing in Windows If you want to use 96khz, make sure all the running applications + Linux uses it.

[–] [email protected] 1 points 1 year ago (1 children)

It's the audio actually clipping from the amplitude being too loud, like distortion on a guitar?

If you're able, you should an example and share it. I am guessing that you're experiencing buffer underruns, and you're recognizing it as something else.

This might help: https://wiki.archlinux.org/title/PulseAudio/Troubleshooting

[–] [email protected] 1 points 1 year ago (1 children)

Not like a guitar distortion. More like robotic low quality sound.

[–] [email protected] 3 points 1 year ago (1 children)

"Robotic low quality" sounds like buffer underruns. Any audio example, even from a cell phone held up to speakers, will be fine to help troubleshoot this.

[–] [email protected] 1 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago

Since this sounds so consistent, I don't think that this is from buffer underruns. It sounds like the frequency of your interface and the frequency that is being sent by your computer are different. Try changing them around and see if you can get it to work that way.