List of PLAYBACK Hardware Devices

Note to self:

-------------------
Thu Mar 24 23:58:51 [bash:5.0.17 jobs:0 error:0 time:0]
jj5@charm:/home/jj5
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: Audio [USB Audio], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Audio [USB Audio], device 1: USB Audio [USB Audio #1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Audio [USB Audio], device 2: USB Audio [USB Audio #2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Audio [USB Audio], device 3: USB Audio [USB Audio #3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
-------------------

Stuttering audio on Ubuntu on Asus ROG Strix Z690-F Motherboard

My new computer ‘charm‘ wasn’t playing audio, there was just some incomprehensible and quiet static coming out of the speakers (I was testing with this). I ran this search and found this and ran this:

# apt install libavcodec-dev

Then I edited /etc/modprobe.d/alsa-base.conf and added:

# 2022-03-24 jj5 - SEE: https://askubuntu.com/a/1059492
options snd-hda-intel position_fix=1

And I edited /etc/pulse/default.pa and changed:

# 2022-03-24 jj5 - NEW:
load-module module-udev-detect tsched=1
# 2022-03-24 jj5 - OLD:
#load-module module-udev-detect

And I edited /etc/pulse/daemon.conf and added this at the end:

; 2022-03-24 jj5 - SEE: https://ubuntuforums.org/showthread.php?t=766860&p=4816308#post4816308
default-sample-rate = 48000
default-fragments = 8
default-fragment-size-msec = 10

I also read this and ran this:

# apt install inxi
# inxi -SMA
# apt-get install --reinstall alsa-base pulseaudio
$ mv ~/.config/pulse ~/.config/pulse.bak

Then after a reboot or two (and enabling USB Audio in BIOS) it started working! Probably didn’t need most of that, but I’m happy to have a solution.