No sound from optical port (S/PDIF out - Realtek ALC 4080) with MSI MAG X570S Edge Max Wifi Mother Board

Description
Still fairly new to Linux so help with my problem would be greatly appreciated. I bought a new motherboard (MSI MAG X570S Edge Max Wifi) and I am having trouble getting my optical output to work in Manjaro. I confirmed the sound to work in Windows 10. Also, no sound in Linux Mint 20.

Think there might be a port routing problem in the OS. Looks like the digital output shows up in my sound settings as “Digital Output (S/PDIF) USB Audio.” Not sure if this is correct.

More Details:
Kernal: 5.19.1-3
DE: Cinnamon / XFCE
CPU: AMD Ryzen 7 5800X (16) @ 3.800GHz
GPU: NVIDIA GeForce RTX 3070

Terminal Info:
inxi -Aa -

Audio:
  Device-1: NVIDIA GA104 High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel bus-ID: 1-2:3 v: kernel pcie: chip-ID: 0db0:151f
    gen: 4 class-ID: 0300 speed: 16 GT/s lanes: 16 bus-ID: 2d:00.1
    chip-ID: 10de:228b class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 2f:00.4 chip-ID: 1022:1487 class-ID: 0403
  Device-3: Micro Star USB Audio type: USB
    driver: hid-generic,snd-usb-audio,usbhid
  Sound Server-1: ALSA v: k5.19.1-3-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.21 running: no
  Sound Server-3: PulseAudio v: 16.1 running: yes
  Sound Server-4: PipeWire v: 0.3.56 running: yes

lspci -

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Starship/Matisse IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:05.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:07.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:07.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 7
01:00.0 Non-Volatile memory controller: Phison Electronics Corporation E16 PCIe4 NVMe Controller (rev 01)
20:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse Switch Upstream
21:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge
21:01.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge
21:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge
21:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge
21:08.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge
21:09.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge
21:0a.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge
22:00.0 Non-Volatile memory controller: Micron/Crucial Technology P2 NVMe PCIe SSD (rev 01)
23:00.0 Non-Volatile memory controller: Sandisk Corp WD Blue SN550 NVMe SSD (rev 01)
27:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)
28:00.0 Network controller: Intel Corporation Wi-Fi 6 AX210/AX211/AX411 160MHz (rev 1a)
2a:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP
2a:00.1 USB controller: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller
2a:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller
2b:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)
2c:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)
2d:00.0 VGA compatible controller: NVIDIA Corporation GA104 [GeForce RTX 3070] (rev a1)
2d:00.1 Audio device: NVIDIA Corporation GA104 High Definition Audio Controller (rev a1)
2e:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Function
2f:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP
2f:00.1 Encryption controller: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Cryptographic Coprocessor PSPCPP
2f:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller
2f:00.4 Audio device: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller

since you mentioned windows:
secure boot needs to be disabled in bios
fast boot needs to be disabled in bios - you may not have this option
fast startup needs to be disabled in windows
and check audio, if it it doesnt work:

install a different kernel - 5.19.1 - from system settings/kernel, or via command:
sudo mhwd-kernel -i linux519
reboot and select it in grub menu/advanced options;
and see if it helped; if not, install sof-firmware:
sudo pacman -S sof-firmware
reboot and check

Please post more information about audio devices recognised in ALSA

sudo alsa-info.sh --upload

X570 motherboards have an unusual onboard audio codec Realtek ALC4080 that does appear to be a USB device (Device 3: in system data)

The Realtek ALC4080 on the new Intel boards demystified and the differences to the ALC1220 | Insider | igor'sLAB
The ALC4080 is a single-chip, multi-channel USB audio codec that embeds a USB 2.0 controller with a high-performance audio codec. For USB audio, it supports a standard HID-class USB audio device designed for PC motherboards and multi-channel audio systems/devices

2 similar models of MSI motherboard have been reported to alsa-project for kernel patches recently
MPG X570S EDGE MAX WIFI compatibility · Issue #172 · alsa-project/alsa-ucm-conf · GitHub
MSI MAG X570S TOMAHAWK MAX WIFI - microphone + front audio panel not working · Issue #186 · alsa-project/alsa-ucm-conf · GitHub

Thanks for quick reply. I had to disable secure boot and fast boot just to get Manjaro to load properly. I am already running 5.19.1 kernel but I tried 5.18 kernel with Linux Mint and got the same result.

Thanks for the quick reply. I’ll read through the links you posted and see what I can find out.

http://alsa-project.org/db/?f=e153982c902db89f412bd422e83cd7ec74cf1275

did you installed sof-firmware and rebooted?

I did. No luck

checked the links provided by nikgnomic, it is a known bug, and you have to wait till its fixed …

ALSA data shows onboard audio device has the same hardware ID [1462:ed53] as this bug report:

MPG X570S EDGE MAX WIFI compatibility · Issue #172 · alsa-project/alsa-ucm-conf · GitHub

31:00.4 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller [1022:1487]
	Subsystem: Micro-Star International Co., Ltd. [MSI] Starship/Matisse HD Audio Controller [1462:ed53]

But the Motherboard on the other system has a later Firmware Version: 1.31

I suggest you update motherboard BIOS to latest version available from manufacturer
Firmware update might include better support for onboard audio
https://www.msi.com/Motherboard/MPG-X570S-EDGE-MAX-WIFI/support

@brahma
please see this post explaining why sof-firmware is not needed for AMD desktop systems

1 Like

In my setup I had to enable spdif in the asus bios first.

Thanks for the feedback. I have updated my bios to the newest recommended on MSI’s website (version 7D53v13). I did also install a sound card firmware update from MSI.

I did not find an option for enable spdif in my bios settings. I tried to disable HD sound but that just made the on board sound unrecognizable to my OS.

Still no resolution. Might need to wait till this issue gets resolved: MPG X570S EDGE MAX WIFI compatibility · Issue #172 · alsa-project/alsa-ucm-conf · GitHub.

this comment from the issue report suggests a possible workaround

when aplay and arecord dettect this interfaces:

I try change manualy in the /etc/pulse/default.pa and works but not by default in applications

Please post more information about ALSA playback devices

aplay -l

and this to show PulseAudio modules

pactl list modules short

Looks like someone fixed this issue. At MPG X570S EDGE MAX WIFI compatibility · Issue #172 · alsa-project/alsa-ucm-conf · GitHub, perexg posted a fix. I went into my USB-Audio.conf file and made the same changes and I was able to get audio from the Optical output.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.