News for hackers. Stuff that matters.
Re:RDRAND on AMD Ryzen 9 5900X is flakey by Avamander on Monday January 11, 2021 @02:53PM (#25735403)
> It does not "misbehave", when I use the same applications with ALSA, but whatever.

I mean RDRAND is a great example here, if you never use it, you never encounter these bugs. It's not impossible that PulseAudio tries to play higher quality audio or simply uses the device differently.

> I hope, that this particular group never ends up working on network hardware.

I'd kinda love it, probably quite a few fun hardware bugs will be found.

Re:RDRAND on AMD Ryzen 9 5900X is flakey by vetinari on Monday January 11, 2021 @04:33PM (#25737514)
> It's not impossible that PulseAudio tries to play higher quality audio or simply uses the device differently.

Pulseaudio mixes sound from several applications, unlike Alsa. Alsa just configures your soundcard for that one stream, Pulseaudio has no such luxury.

In order to mix relatively small buffers (because latency), it needs to do timing. If your soundcard has problem with timing (and many do!), you will get crackling. The good news is, that the problem with timing can be only at specific frequencies; in the past, I had a computer with Nvidia Ion and it did this with 44,1kHz audio. With 48kHz, everything was OK. So fixing the output at 48kHz by forcing Pulse to mix at this frequency fixed the crackling.

Re:RDRAND on AMD Ryzen 9 5900X is flakey by frankling_ on Monday January 11, 2021 @08:07PM (#25740893)
Alsa has had software mixing via dmix since 2003.

https://www.alsa-project.org/wiki/Main_Page_News

Re:RDRAND on AMD Ryzen 9 5900X is flakey by vetinari on Monday January 11, 2021 @09:00PM (#25741312)
Yes, and it was off by default, because it had even bigger problems than PA.
Re:RDRAND on AMD Ryzen 9 5900X is flakey by frankling_ on Tuesday January 12, 2021 @06:40AM (#25745524)
I'll skip the usual list of personal anecdotes about PA failing in surprising ways I've never seen in 15+ years of using Alsa, but I will say that since a few applications have started depending on it, "apt-get purge pulseaudio" seems to always be in my shell history.
Re:RDRAND on AMD Ryzen 9 5900X is flakey by vetinari on Tuesday January 12, 2021 @07:02AM (#25745711)
You know, that by doing that, you are trading short term gain for long term pain?

Dmix for alsa was buggy, because just like PA, it didn't know about quirks of the hardware out in the field. And it stayed buggy, because nobody used it in return. Yes, PA was forced on users, but in the result the quirks were found, implemented and today, we all are better off. I didn't have any problem with PA since 2012 or so, but quite enjoyed the features it brought to the desktop.

Re:RDRAND on AMD Ryzen 9 5900X is flakey by Dylan16807 on Monday January 11, 2021 @03:02PM (#25735587)
I'm reminded of this story about hidden network card bugs. Working in a bunch of tests doesn't mean something is correct, especially when it's complex.

https://devblogs.microsoft.com/oldnewthing/20050512-48/?p=35...