Ryzen HD Audio ALG892 recording workarounds on Linux

When you record a piece of audio on an AMD Ryzen desktop with Realtek ALG892 codec running any distro of GNU/Linux, you’ll find the audio distorted, high-pitch.

To workaround the problem:
Record with bitrate higher than 48000 (default 44100).

For PulseAudio users, resampling must be disabled to keep the rate.

Edit /etc/pulse/daemon.conf, append:

resample-method = src-sinc-best-quality
default-sample-format = s16le
default-sample-rate = 88200
avoid-resampling = yes

Edit /etc/pulse/default.pa, change
load-module module-udev-detect
load-module module-udev-detect use_ucm=0 tsched=0

And restart PulseAudio.

P.S. Hardware and Software Configuration

  • CPU: Ryzen 1700
  • Mainboard: MSI B350m Mortar, with Realtek ALG892 integrated.
  • OS: AOSC OS 6.0.0 “Fsck”, kernel 5.3.8
  • PulseAudio: 12.2-rebootstrapped

"Idling", carelessness, and initiative in the FLOSS community

The Pull Request of my contribution task, which implemented Discourse SSO’s profile background picture support, hasn’t been merged these weeks.

20+ days without any comment, I didn’t check nor do anything about the PR during that period. Ultimately, on May 5th I found it by accident that I’m sending an PR with master branch merged instead of rebased against. There was, long time before, already a notice by techAPJ about this mistake I made. After I fixed that, ZogStriP, a Discourse team member, pointed out another carelessness of mine, a piece of code repeated twice when I was making the rebase.

I now recognize that it’s a good manner to read development documentations and guidelines carefully, and then follow them. Although it is also important to communicate with other developers on my own initiative, beforehand understanding of contributing requirements will really save time. And I should prepare myself with developing tools like git.


I have been accepted by Outreachy to work on the Discourse project. I feel honoured for that, willing to do my best during the internship.

Built with hexo, this site will be used for technical articles in English and especially for things related to Discourse.

I am poor in English (and also in Ruby hah), so feel free to correct my lexical or grammatic problems.