[SOLVED] (sort of) Asus X670E-E not playing sound properly through SPDIF

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
unsoldier
Level 1
Level 1
Posts: 8
Joined: Fri Mar 15, 2024 1:41 pm

[SOLVED] (sort of) Asus X670E-E not playing sound properly through SPDIF

Post by unsoldier »

Hi all, I've been trying to get SPDIF working properly the way it was working with my previous Win10 computer. I have tried just about everything I found online over the last two days but nothing seems to work. To start troubleshooting with help from you fine folks, I have reinstalled LM 21.3 and only done updates and applied the newest kernel so that I have a fresh place to start from.

System is LM 21.3 x64 Cinnamon.

Hardware setup is Asus X670E-E with a TOSLINK to an Onkyo receiver. The TOSLINK cable and Onkyo receiver are verified to be working via a Win10 system (which was a different PC, that I still have access to if needed) but that was obviously using a proprietary driver.

LM's Sound app shows a "Digital Output (S/PDIF) USB Audio" device but I can only select Digital Stereo (IEC958) Output. Using the test sound does not produce any sound through my front LR speakers.

AlsaMixer v1.2.6 shows the device with PCM Front, PCM Rear, PCM Center, PCM Woofer, PCM Side, PCM 1, and PCM 2 (which has no volume slider). The channels are not muted.


mintreport output:

Code: Select all

System:
  Kernel: 6.5.0-25-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 6.0.4 tk: GTK 3.24.33
    wm: muffin vt: 7 dm: LightDM 1.30.0 Distro: Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: ROG STRIX X670E-E GAMING WIFI v: Rev 1.xx serial: <superuser required>
    UEFI: American Megatrends v: 1905 date: 02/05/2024
CPU:
  Info: 8-core model: AMD Ryzen 7 7800X3D bits: 64 type: MT MCP smt: enabled arch: Zen 3 rev: 2
    cache: L1: 512 KiB L2: 8 MiB L3: 96 MiB
  Speed (MHz): avg: 1634 high: 4870 min/max: 400/5050 cores: 1: 3892 2: 4870 3: 400 4: 400
    5: 3197 6: 3590 7: 400 8: 400 9: 400 10: 400 11: 400 12: 3244 13: 3355 14: 400 15: 400 16: 400
    bogomips: 134149
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD vendor: ASUSTeK driver: amdgpu v: kernel pcie: speed: 16 GT/s lanes: 16 ports:
    active: DP-1 empty: DP-2,DP-3,HDMI-A-1 bus-ID: 03:00.0 chip-ID: 1002:744c class-ID: 0300
  Device-2: AMD vendor: ASUSTeK driver: amdgpu v: kernel pcie: speed: 16 GT/s lanes: 16 ports:
    active: none empty: DP-4,HDMI-A-2 bus-ID: 14:00.0 chip-ID: 1002:164e class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati
    unloaded: fbdev,modesetting,radeon,vesa gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 5120x1440 s-dpi: 96 s-size: 1354x381mm (53.3x15.0") s-diag: 1407mm (55.4")
  Monitor-1: DisplayPort-0 mapped: DP-1 model: Samsung Odyssey G95SC serial: <filter>
    res: 5120x1440 dpi: 122 size: 1070x600mm (42.1x23.6") diag: 1227mm (48.3") modes: max: 5120x1440
    min: 640x480
  OpenGL: renderer: GFX1100 (gfx1100 LLVM 15.0.7 DRM 3.54 6.5.0-25-generic)
    v: 4.6 Mesa 23.2.1-1ubuntu3.1~22.04.2 direct render: Yes
Audio:
  Device-1: AMD driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16 bus-ID: 03:00.1
    chip-ID: 1002:ab30 class-ID: 0403
  Device-2: AMD vendor: ASUSTeK driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 14:00.1 chip-ID: 1002:1640 class-ID: 0403
  Device-3: ASUSTek USB Audio type: USB driver: hid-generic,snd-usb-audio,usbhid bus-ID: 3-6:3
    chip-ID: 0b05:1a52 class-ID: 0300
  Sound Server-1: ALSA v: k6.5.0-25-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Wi-Fi 6 AX210/AX211/AX411 160MHz driver: iwlwifi v: kernel pcie: speed: 5 GT/s
    lanes: 1 bus-ID: 0a:00.0 chip-ID: 8086:2725 class-ID: 0280
  IF: wlp10s0 state: down mac: <filter>
  Device-2: Intel Ethernet I225-V vendor: ASUSTeK driver: igc v: kernel pcie: speed: 5 GT/s
    lanes: 1 port: N/A bus-ID: 0b:00.0 chip-ID: 8086:15f3 class-ID: 0200
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Intel AX210 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-9:3 chip-ID: 8087:0032
    class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter>
  Device-2: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) type: USB driver: btusb v: 0.8
    bus-ID: 3-5.1:4 chip-ID: 0a12:0001 class-ID: e001
  Report: ID: hci1 rfk-id: 1 state: up address: <filter> bt-v: 2.1 lmp-v: 4.0 sub-v: 22bb
    hci-v: 4.0 rev: 22bb
Drives:
  Local Storage: total: 25.47 TiB used: 14.13 GiB (0.1%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 990 PRO 4TB size: 3.64 TiB speed: 63.2 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: 4B2QJXD7 temp: 45.9 C scheme: GPT
  ID-2: /dev/nvme1n1 vendor: Samsung model: SSD 990 PRO 4TB size: 3.64 TiB speed: 63.2 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: 4B2QJXD7 temp: 40.9 C scheme: GPT
  ID-3: /dev/sda vendor: Seagate model: ST20000VE002-3G9101 size: 18.19 TiB speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: EV01
Partition:
  ID-1: / size: 3.58 TiB used: 14.09 GiB (0.4%) fs: ext4 dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 511 MiB used: 40.8 MiB (8.0%) fs: vfat dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 12 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-7:2 info: Valve Wireless Steam Controller type: Keyboard,HID
    driver: hid-steam,usbhid interfaces: 5 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 28de:1142
    class-ID: 0300
  Device-2: 1-9:3 info: Intel AX210 Bluetooth type: Bluetooth driver: btusb interfaces: 2
    rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0032 class-ID: e001
  Hub-2: 2-0:1 info: Super-speed hub ports: 5 rev: 3.1 speed: 20 Gb/s chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-3: 3-0:1 info: Hi-speed hub with single TT ports: 12 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-4: 3-5:2 info: Genesys Logic Hub ports: 4 rev: 2.1 speed: 480 Mb/s chip-ID: 05e3:0610
    class-ID: 0900
  Device-1: 3-5.1:4 info: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) type: Bluetooth
    driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s chip-ID: 0a12:0001 class-ID: e001
  Device-2: 3-5.3:5 info: Microsoft Wireless XBox Controller Dongle type: <vendor specific>
    driver: N/A interfaces: 1 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 045e:02e6
    class-ID: 0000 serial: <filter>
  Device-3: 3-6:3 info: ASUSTek USB Audio type: Audio,HID
    driver: hid-generic,snd-usb-audio,usbhid interfaces: 8 rev: 2.0 speed: 480 Mb/s power: 100mA
    chip-ID: 0b05:1a52 class-ID: 0300
  Device-4: 3-7:6 info: ASUSTek AURA LED Controller type: HID driver: hid-generic,usbhid
    interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 16mA chip-ID: 0b05:19af class-ID: 0300
    serial: <filter>
  Hub-5: 4-0:1 info: Super-speed hub ports: 5 rev: 3.1 speed: 20 Gb/s chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-6: 4-5:2 info: Genesys Logic USB3.2 Hub ports: 4 rev: 3.2 speed: 10 Gb/s
    chip-ID: 05e3:0625 class-ID: 0900
  Hub-7: 5-0:1 info: Hi-speed hub with single TT ports: 2 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-8: 6-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-9: 7-0:1 info: Hi-speed hub with single TT ports: 2 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-10: 7-2:2 info: VIA Labs VL812 Hub ports: 4 rev: 2.1 speed: 480 Mb/s chip-ID: 2109:2812
    class-ID: 0900
  Device-1: 7-2.2:3 info: Microsoft Natural Ergonomic Keyboard 4000 V1.0 type: Keyboard,HID
    driver: microsoft,usbhid interfaces: 2 rev: 2.0 speed: 1.5 Mb/s power: 100mA chip-ID: 045e:00db
    class-ID: 0300
  Hub-11: 7-2.3:4 info: VIA Labs VL812 Hub ports: 4 rev: 2.1 speed: 480 Mb/s chip-ID: 2109:2812
    class-ID: 0900
  Device-1: 7-2.3.4:5 info: Logitech G502 Proteus Spectrum Optical Mouse type: Mouse,HID
    driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 300mA chip-ID: 046d:c332
    class-ID: 0300 serial: <filter>
  Hub-12: 8-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-13: 8-2:2 info: VIA Labs VL812 Hub ports: 4 rev: 3.0 speed: 5 Gb/s chip-ID: 2109:0812
    class-ID: 0900
  Hub-14: 8-2.3:3 info: VIA Labs VL812 Hub ports: 4 rev: 3.0 speed: 5 Gb/s chip-ID: 2109:0812
    class-ID: 0900
  Hub-15: 9-0:1 info: Hi-speed hub with single TT ports: 1 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-16: 10-0:1 info: Linux Foundation 3.0 root hub ports: N/A rev: 3.0 speed: 5 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: N/A mobo: N/A
  Fan Speeds (RPM): N/A
  GPU: device: amdgpu temp: 47.0 C device: amdgpu temp: 43.0 C mem: 51.0 C fan: 0 watts: 16.00
Repos:
  Packages: apt: 2178
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http: //packages.linuxmint.com virginia main upstream import backport
    2: deb http: //archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http: //archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
Info:
  Processes: 418 Uptime: 9m wakeups: 0 Memory: 30.56 GiB used: 2.9 GiB (9.5%) Init: systemd v: 249
  runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12 Client: Unknown python3.10 client inxi: 3.3.13
aplay -l output:

Code: Select all

**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Audio [USB Audio], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Audio [USB Audio], device 1: USB Audio [USB Audio #1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Audio [USB Audio], device 2: USB Audio [USB Audio #2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Audio [USB Audio], device 3: USB Audio [USB Audio #3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Both of the following commands output "Front Center" from the center channel, but the word "Front" is cut off and I only hear the end of the word. The word "Center" is normal and clear each time. None of the other devices on card 2 produce any sound with this command. It seems strange to me that two different devices on the card output to the center channel. Is that a clue? Also, if I run these commands several times, eventually the sound stops coming out of the center speaker, which seems odd as well.

Code: Select all

aplay -D plughw:2,2 /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
aplay -D plughw:2,3 /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
I tried adding the above devices with "pacmd load-module module-alsa-sink device=hw:2,2" (or 2,3) but the virtual sound devices that appear don't work either, and have no options for Output profile.

I tried several other packages and various hacks I found on the web but to avoid confusing the issue (and because I don't remember them all) I won't list them here. I figured it's best to reset the OS and get some help from the experts.

Any and all suggestions are appreciated!
Last edited by unsoldier on Mon Apr 01, 2024 8:38 pm, edited 1 time in total.
seasons
Level 4
Level 4
Posts: 373
Joined: Fri Nov 17, 2023 5:00 pm

Re: Asus X670E-E not playing sound properly through SPDIF

Post by seasons »

unsoldier
Level 1
Level 1
Posts: 8
Joined: Fri Mar 15, 2024 1:41 pm

Re: Asus X670E-E not playing sound properly through SPDIF

Post by unsoldier »

Thanks, I updated the USB-Audio.conf using these command from the documentation:

Code: Select all

curl -L -o alsa-ucm-conf.tar.gz https://github.com/alsa-project/alsa-ucm-conf/archive/refs/heads/master.tar.gz
tar xvzf alsa-ucm-conf.tar.gz -C /usr/share/alsa --strip-components=1 --wildcards "*/ucm" "*/ucm2"
Then I reloaded pulseaudio and alsa.

I do see the new updates in the .conf now, but it didn't change anything with my SPDIF functionality (still broken, still no sound from front channels when testing). It did fix the crackling that was playing when did the audio test through HDMI though, so that's an improvement!

Is there something I can check to see if alsa is actually choosing the realtek-alc4080 profile?
seasons
Level 4
Level 4
Posts: 373
Joined: Fri Nov 17, 2023 5:00 pm

Re: Asus X670E-E not playing sound properly through SPDIF

Post by seasons »

Can you give the "alsaucm dump text" output like in the linked post? To see the card number:

Code: Select all

alsaucm listcards
Also, double-check everything in alsamixer. Make sure S/PDIF is on "OO" and not muted "MM".
unsoldier
Level 1
Level 1
Posts: 8
Joined: Fri Mar 15, 2024 1:41 pm

Re: Asus X670E-E not playing sound properly through SPDIF

Post by unsoldier »

I saw a syntax error when doing the dump text and after re-reading the linked post I realized I hadn't changed the syntax from 6 to 4. After doing that, the SPDIF device in Sound now shows "n/a" under Output profile, which is new. I can also get sound from the front left and right channels for the first time! Progress!

Here is the output for the dump text:

Code: Select all

x@x:/usr/share/alsa/ucm2/USB-Audio$ alsaucm -c hw:1 dump text
ALSA lib parser.c:1866:(parse_master_section) unknown field 0�0} in master section
ALSA lib parser.c:937:(parse_sequence) error: sequence command 'disdevall' is ignored
Verb.HiFi {
	Device.Speaker {
		Comment Speakers
		Values {
			CaptureCTL "_ucm0001.hw:Audio"
			JackControl "Speaker - Output Jack"
			PlaybackCTL "_ucm0001.hw:Audio"
			PlaybackChannels 2
			PlaybackMixerElem PCM,0
			PlaybackPCM "_ucm0001.hw:Audio"
			PlaybackPriority 200
			TQ HiFi
		}
	}
	Device.Headphones {
		Comment "Front Headphones"
		Values {
			CaptureCTL "_ucm0001.hw:Audio"
			JackControl "Headphone - Output Jack"
			PlaybackCTL "_ucm0001.hw:Audio"
			PlaybackMixerElem PCM,1
			PlaybackPCM "_ucm0001.hw:Audio,1"
			PlaybackPriority 300
			TQ HiFi
		}
	}
	Device.SPDIF {
		Comment "S/PDIF Output"
		Values {
			CaptureCTL "_ucm0001.hw:Audio"
			PlaybackCTL "_ucm0001.hw:Audio"
			PlaybackMixerElem PCM,2
			PlaybackPCM "_ucm0001.hw:Audio,2"
			PlaybackPriority 100
			TQ HiFi
		}
	}
	Device.Line1 {
		Comment "Line Input"
		Values {
			CaptureCTL "_ucm0001.hw:Audio"
			CaptureMixerElem Line,0
			CapturePCM "_ucm0001.hw:Audio,1"
			CapturePriority 100
			JackControl "Line - Input Jack"
			PlaybackCTL "_ucm0001.hw:Audio"
			TQ HiFi
		}
	}
	Device.Mic1 {
		Comment Microphone
		Values {
			CaptureCTL "_ucm0001.hw:Audio"
			CaptureMixerElem Mic,0
			CapturePCM "_ucm0001.hw:Audio,2"
			CapturePriority 300
			JackControl "Mic - Input Jack"
			PlaybackCTL "_ucm0001.hw:Audio"
			TQ HiFi
		}
	}
}
alsaucm listcards returns "list is empty".

I verified in alsamixer that nothing is muted.

Thank you for your help so far!
unsoldier
Level 1
Level 1
Posts: 8
Joined: Fri Mar 15, 2024 1:41 pm

Re: Asus X670E-E not playing sound properly through SPDIF

Post by unsoldier »

Still haven't had any luck getting any proper profiles to show up on my SPDIF audio device. I think I need something to convert the signal to AC3 before sending to the receiver, but I'm not sure how to configure the profiles.

Right now I can see the audio device, and I can get it to play sound from the front left and right channels. The profiles for the device only list "n/a" and "Off" though.

Anybody have any other suggestions?
unsoldier
Level 1
Level 1
Posts: 8
Joined: Fri Mar 15, 2024 1:41 pm

Re: Asus X670E-E not playing sound properly through SPDIF

Post by unsoldier »

Anybody out there have any suggestions for what I might try next? I have sound from the L/R channels with SPDIF but can't get a profile to appear on the audio device that allows for 5.1.
unsoldier
Level 1
Level 1
Posts: 8
Joined: Fri Mar 15, 2024 1:41 pm

Re: Asus X670E-E not playing sound properly through SPDIF

Post by unsoldier »

I think I'm zeroing in on the problem. I disabled pulse from loading UCM profiles by following these instructions on the Arch Wiki:

https://wiki.archlinux.org/title/PulseA ... %22HiFi%22

That gave me completely functional stereo sound through SPDIF, even in music and video players. That's a first.

Going back to the alsaucm config file I think it is simply not being parsed correctly. I can see that my device (0b05:1a52) is in the USB-Audio.conf file:

Code: Select all

If.realtek-alc4080 {

	Condition {
		Type RegexMatch
		String "${CardComponents}"
		# 0414:a00e Gigabyte Z590 Aorus Pro AX
		# 0414:a010 Gigabyte Z590 Vision G Intel
		# 0414:a011 Gigabyte Z690 AORUS ULTRA
		# 0414:a012 Gigabyte Z690 AERO G DDR4
		# 0414:a014 Gigabyte Z690I AORUS ULTRA DDR4
		# 0b05:1984 ASUS Pro WS WRX80E-SAGE SE WIFI
		# 0b05:1996 ASUS on multiple boards (including ASUS ROG Maximus XIII)
		# 0b05:1999 ASUS ROG Strix Z590-A Gaming WiFi
		# 0b05:1a16 ASUS ROG Strix B660-F Gaming WiFi
		# 0b05:1a20 ASUS ROG STRIX Z690-I Gaming Wifi
		# 0b05:1a27 ALC4082 on ASUS ROG Maximus Z690 Hero
		# 0b05:1a52 ASUS ROG Strix X670E-F & Z790-E Gaming Wifi
		# 0b05:1a53 ALC4082 on ASUS ROG Crosshair X670E Extreme
		# 0b05:1a5c ASUS ROG Strix B650E-I Gaming WiFi
		# 0b05:1a97 ASUS ROG Maximus Z790 Apex Encore
		# 0b05:1af1 ASUS ROG Strix Z790-A Gaming Wifi II
		# 0db0:005a MSI MPG Z690 CARBON WIFI
		# 0db0:124b MSI MEG Z690 ACE
		# 0db0:151f MSI X570S EDGE MAX WIFI
		# 0db0:1feb MSI Edge Wifi Z690
		# 0db0:3130 MSI PRO X670-P WIFI
		# 0db0:36e7 MSI MAG B650I Edge WiFi
		# 0db0:419c MSI MPG X570S Carbon Max Wifi
		# 0db0:422d MSI Mag B650 Tomahawk Wifi
		# 0db0:4240 MSI MAG Z590 Tomahawk Wifi
		# 0db0:62a4 MSI MPG Z790I Edge WiFi
		# 0db0:6c09 MSI MPG Z790 Carbon Wifi
		# 0db0:6cc9 MSI MPG Z590 Gaming Plus
		# 0db0:70d3 MSI MPG B650 Carbon Wifi
		# 0db0:7696 MSI MAG B650M Mortar Wifi
		# 0db0:82c7 MSI MEG Z690I Unify
		# 0db0:8af7 MSI MPG Z590 Gaming Force
		# 0db0:961e MSI MEG X670E ACE
		# 0db0:a073 MSI MAG X570S Torpedo Max
		# 0db0:a228 MSI MPG Z590M GAMING EDGE WIFI
		# 0db0:a47c MSI MEG X570S Ace Max
		# 0db0:a74b MSI MPG Z790 Edge Wifi
		# 0db0:b202 MSI MAG Z690 Tomahawk Wifi
		# 0db0:d1d7 MSI PRO Z790-A WIFI
		# 0db0:d6e7 MSI MPG X670E Carbon Wifi
		# 26ce:0a06 ASRock X670E/Z790 Taichi
		# 26ce:0a08 ASRock Z790 PG-ITX/TB4
		Regex "USB((0414:a0(0e|1[0124]))|(0b05:(19(84|9[69])|1a(16|2[07]|5[23c]|97|f1)))|(0db0:(005a|124b|151f|1feb|3130|36e7|419c|422d|4240|62a4|6c[0c]9|70d3|7696|82c7|8af7|961e|a(073|228|47c|74b)|b202|d1d7|d6e7))|(26ce:0a0[68]))"
	}
	True.Define.ProfileName "Realtek/ALC4080"
}
However if I run alsaucm listcards it says the list is empty. Does that mean what I think it means - that alsaucm is unable to figure out my card? I did have to update the ucm config files and change the header to Syntax 4, but I don't know if it's still reading the file correctly because I'm on alsaucm version 1.2.6 and I don't know enough to know if I can even update it with Mint. This is what I get when I try to verify the ucm config:

Code: Select all

alsaucm -c hw:1 dump text

ALSA lib parser.c:1866:(parse_master_section) unknown field 0���} in master section
ALSA lib parser.c:937:(parse_sequence) error: sequence command 'disdevall' is ignored
Verb.HiFi {
	Device.Speaker {
		Comment Speakers
		Values {
			CaptureCTL "_ucm0001.hw:Audio"
			JackControl "Speaker - Output Jack"
			PlaybackCTL "_ucm0001.hw:Audio"
			PlaybackChannels 2
			PlaybackMixerElem PCM,0
			PlaybackPCM "_ucm0001.hw:Audio"
			PlaybackPriority 200
			TQ HiFi
		}
	}
	Device.Headphones {
		Comment "Front Headphones"
		Values {
			CaptureCTL "_ucm0001.hw:Audio"
			JackControl "Headphone - Output Jack"
			PlaybackCTL "_ucm0001.hw:Audio"
			PlaybackMixerElem PCM,1
			PlaybackPCM "_ucm0001.hw:Audio,1"
			PlaybackPriority 300
			TQ HiFi
		}
	}
	Device.SPDIF {
		Comment "S/PDIF Output"
		Values {
			CaptureCTL "_ucm0001.hw:Audio"
			PlaybackCTL "_ucm0001.hw:Audio"
			PlaybackMixerElem PCM,2
			PlaybackPCM "_ucm0001.hw:Audio,2"
			PlaybackPriority 100
			TQ HiFi
		}
	}
	Device.Line1 {
		Comment "Line Input"
		Values {
			CaptureCTL "_ucm0001.hw:Audio"
			CaptureMixerElem Line,0
			CapturePCM "_ucm0001.hw:Audio,1"
			CapturePriority 100
			JackControl "Line - Input Jack"
			PlaybackCTL "_ucm0001.hw:Audio"
			TQ HiFi
		}
	}
	Device.Mic1 {
		Comment Microphone
		Values {
			CaptureCTL "_ucm0001.hw:Audio"
			CaptureMixerElem Mic,0
			CapturePCM "_ucm0001.hw:Audio,2"
			CapturePriority 300
			JackControl "Mic - Input Jack"
			PlaybackCTL "_ucm0001.hw:Audio"
			TQ HiFi
		}
	}
}
According to the ALC4080.conf I should have options for 2.0, 5.1, and 7.1, but none of that shows up in pavucontrol - I just see "n/a" which I believe means it's defaulting to 2 channel stereo because it can't figure out the profiles.

Is there a way to update alsaucm on Mint 21.3 so it can parse the version 6 ucm config files properly? Or does anything else jump out at anyone as to why I'm not getting the correct profiles? I've read every post on here I can find with people getting these ASUS X670E motherboards working with 5.1 audio but I just can't find the missing link on my system.
unsoldier
Level 1
Level 1
Posts: 8
Joined: Fri Mar 15, 2024 1:41 pm

Re: Asus X670E-E not playing sound properly through SPDIF

Post by unsoldier »

After doing some more searching I found this which is a long list of people with the same problem I have:

https://github.com/alsa-project/alsa-uc ... issues/350

TL;DR - I think I'm screwed until the next version of Mint comes out. I'm not comfortable manually updating alsa on Mint 21.3 since I saw several warnings on various posts that it's not advisable.

I'm going to try to find a different distribution with the newest version of alsa on it and see if that makes any difference. Meanwhile if anyone does have any suggestions on a relatively safe method to try updating my alsa version on Mint 21.3, I'm willing to give it a go. I do have Timeshift set up so I can always undo if it goes sideways.
unsoldier
Level 1
Level 1
Posts: 8
Joined: Fri Mar 15, 2024 1:41 pm

Re: Asus X670E-E not playing sound properly through SPDIF

Post by unsoldier »

I think my last post nailed it. I booted up the current stable of Manjaro and all the HiFi 2.0/5.1/7.1 profiles are there for the SPDIF device, and 5.1 works like a champ over TOSLINK So I think the current version of alsalib on Mint 21.3 just doesn't work with these ASUS motherboards' ALC4080 chips. I hope this struggle helps someone else, at least to realize that the problem isn't their hardware!

Probably going to distro hop now since I need this to work properly and I don't want to wait for the next version of Mint, but damn this was a nice OS to get me acclimated to Linux as a daily driver. Other than the problems with audio, it was pretty painless!
seasons
Level 4
Level 4
Posts: 373
Joined: Fri Nov 17, 2023 5:00 pm

Re: [SOLVED] (sort of) Asus X670E-E not playing sound properly through SPDIF

Post by seasons »

For you or anyone brave enough to try updated alsa libs that should allow you to use "Syntax 6" (whatever that is) in the ucm files:
https://launchpad.net/~dtl131/+archive/ ... lter=jammy
Post Reply

Return to “Sound”