So, most Linux desktops use either PulseAudio or Pipewire to manage audio devices. ALSA is there, but seldom used directly.
There is a linux audio troubleshooting script that you should find, download, run and post the results from so the audio gurus can see the issues and make recommendations. Please don't make people ask 10 times for all the different information that script already provides. I don't know where the script is, not exactly, but I'd google for those terms. It is probably a github project or there might be a sticky post with the link in the Multimedia subforum here.
BTW, I have a Ryzen 5600G and don't have any issues with the audio on that machine. I'm not using 22.04. Still on 20.04, but here's the audio output for the system ... with some unrelated things (blackmagic card and KVM HDMI/USB switch) removed.
Code:
$ inxi -Axx
Audio:
...
Device-2: AMD vendor: ASUSTeK driver: snd_hda_intel
v: kernel bus ID: 09:00.1 chip ID: 1002:1637
Device-3: AMD Family 17h HD Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel bus ID: 09:00.6
chip ID: 1022:15e3
Sound Server: ALSA v: k5.15.0-101-generic
Code:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Generic_1 [HD-Audio Generic], device 0: ALC1220 Analog [ALC1220 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Generic_1 [HD-Audio Generic], device 1: ALC1220 Digital [ALC1220 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
I actually use the front audio plug on the system to connect to 2 speakers via analog connections. I don't use digital or HDMI audio on the system at all.
With another nearly identical computer, audio is still analog, but to a 5.1 surround sound speaker system.
My guess, being someone that hasn't had to do much related to sound on these systems is that the incorrect driver got loaded or that pulseaudio isn't setup correctly to use the audio output that you have connected to speakers. Running the pavucontrol tool (it may need to be installed), will provide lots of access to audio settings, assuming the drivers loaded are fine.
BTW, it would be really helpful if you included the command used when you post output, with all options. Don't make us guess.
Bookmarks