-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASUS RoG Strix Z790-F: No SPDIF Sound output #350
Comments
I'm having a similar issue on a Z790-A Board. Sound of for HDMI and Bluetooth but not for SPDIF |
I am experiencing the same with an Asus Rog Maximus Z790 Hero on Ubuntu 22.04. It seems like both our boards have the USB Audio card. @andromedarion is yours also an Asus board with USB audio, perhaps you can add the inxi data ( inxi:
alsamixer: pavucontrol @Nightwing0815 Perhaps you can also add screenshots from pavucontrol and alsamixer as additional information to narrow down the issue. |
@somejavadev of course I can, here we go:
How can I check, if I'm using all drivers for the Board?
THX in advance, ToM |
My dmesg logs are fairly clean:
|
For the devs, here's an output of alsa-info script |
USB ID 0b05:1a52 is covered in UCM:
You should select HiFi + S/PDIF Output . If you don't see HiFi, you are probably using legacy pa/pw profile which does not cover the s/pdif output for this device. Check if you have UCM configuration files installed. Moving to alsa-ucm-conf. |
Note that this entry was added in version 1.2.10. |
That would explain why it's not working on Ubuntu 23.04, which is using 1.2.6.3. brett@brett-home:~/Downloads$ apt-cache policy alsa-ucm-conf
alsa-ucm-conf:
Installed: 1.2.6.3-1ubuntu9.1
Candidate: 1.2.6.3-1ubuntu9.1
Version table:
*** 1.2.6.3-1ubuntu9.1 500
500 http://no.archive.ubuntu.com/ubuntu lunar-updates/main amd64 Packages
500 http://no.archive.ubuntu.com/ubuntu lunar-updates/main i386 Packages
100 /var/lib/dpkg/status
1.2.6.3-1ubuntu8 500
500 http://no.archive.ubuntu.com/ubuntu lunar/main amd64 Packages
500 http://no.archive.ubuntu.com/ubuntu lunar/main i386 Packages
brett@brett-home:~/Downloads$ lsusb | grep '0b05:1a52'
Bus 001 Device 002: ID 0b05:1a52 ASUSTek Computer, Inc. USB Audio
brett@brett-home:~/Downloads$ grep -rI '0b05:1a52' /usr/share/alsa/
brett@brett-home:~/Downloads$ sudo inxi --audio --machine --system | grep Z790 # Note: Z790-F not Z790-E
Mobo: ASUSTeK model: ROG STRIX Z790-F GAMING WIFI v: Rev 1.xx Can we just add that entry into one of the files under |
1.2.6 is almost two years old. I would recommend to use alsa-lib 1.2.8+ for latest configs. |
According to https://packages.ubuntu.com/search?searchon=sourcenames&keywords=alsa-lib, the binary packages for Ubuntu 23.04 (lunar) are using 1.2.8 for libasound2, but the package for alsa-ucm-conf seems somewhat behind. This could then be a packaging issue for Ubuntu, maybe? |
OK. I did a release upgrade to Ubuntu 23.10 (
|
Thank you both for your effort, but I've got one question: Whats the right way to update the libs and ucm with linuxmint, which is based on 22.04? Just deleting files and extract the new ones seems not right, am I right? ToM |
@Nightwing0815 did you manage to update yours? |
@somejavadev sadly: no I don't know, which files i have to overwrite, or which packages are to update ignoring dependencies... |
@Nightwing0815 not as yet, looking at building alsa locally but not sure if that would resolve the issue. I am on ubuntu 22.04. @perexg or @BrettRyland do you perhaps have an idea on the best approach here and which steps to take? I loaded Fedora 38 but it also seems to have the same issue. |
You could upgrade ubuntu to the devel-release version like I did with |
@BrettRyland I have LinuxMint 21.2 (latest release) and i want to stay with mint, so is there a solution to only upgrade the whole alsa libs and configs, without updating operating system? |
For Ubuntu, it was a matter of upgrading libasound2 and alsa-ucm-conf (plus whatever dependencies) to version 1.2.9 from versions 1.2.8 and 1.2.6 respectively. I don't know how LinuxMint's package versions are related to Ubuntu's, but if you can get those upgraded to more recent versions such that $ grep '0b05:1a52' /usr/share/alsa/ucm2/USB-Audio/USB-Audio.conf
# 0b05:1a52 ASUS ROG Strix Z790-E Gaming Wifi then I think it ought to work. |
Thanks @BrettRyland I have installed from source the following (Ubuntu LTS 22.04): alsa-lib Install dependencies: sudo apt install build-essential libfuse2 automake libtool apt-file libglib2.0-dev-bin gettext libncurses5-dev git libglib2.0-dev-bin gir1.2-gtk-2.0 libgtk2.0-dev libglib2.0-dev libfltk1.3-dev libfltk1.3 Configure git config:
Compile Install Alsa Lib
Compile Install alsa-utils
Install alsa-ucm-conf
I can see my alasa-mixer (v1.2.10) have been successfully updated: I don't see the HiFi options in pavucontrol (version 5.0) Although I am not entirely sure my libasound2 has been updated/installed correctly, is there a way to verify this? I have tried
I can confirm the config is available by:
|
I don't know, sorry. It worked for me (albeit with the above mentioned caveats). I presume you have rebooted since then? |
No problem at all, let me check upgrading the kernel and see if it makes a difference. What I did notice is if I run:
The usb listed is off by one:
|
@BrettRyland thanks but unfortunately no luck this side. I updated the kernel and rebuilt the libraries without any luck. I could verify that the latest libs which I built are being loaded via |
@BrettRyland I get segmention fault error while compiling, even with oem kernel 6.5.0, so I'm not able to update ... |
Update: I managed to get it to work although not perfectly or entirely. I followed these steps #350 (comment). Then it seems like the wrong sync was being used. I tested it by playing around with (It would be possible that the below work without even compiling to the latest version):
plughw:1,2 was the one working for me. Manually calling For some reason adding It seems that my HDMI sound on my ATI 7900XT Graphics card keeps defaulting to the sync to use for some reason. for now I have added a function in my .bashrc which I run once my PC is started
I still think the ucm2 configs are not being loaded since none of the HiFi profiles are shown.
I am not entirely sure how the loading of the profiles work but it might be the regex in the in the USB-Audio.conf not picking up mine specifically. Mine is the rog-maximus-z790 USB Audio card: Realtek ALC4080/ALC4082 |
@somejavadev your pacmd load-module command was the only solution I've found so far to get SPDIF out on my Z790 Hero. The new USB Audio output device in pavucontrol works great. Thank you! |
Is there any progress on this for the Edit: note, the receiver is a Logitech Z-5500 and uses the "PLII Movie" effect. Previously (with pulseaudio instead of pipewire), I was able to passthrough the audio stream directly to the receiver which would then decode it properly. Edit 2: while playing $ mpv DTS\ 5.1.wav --loop
(+) Audio --aid=1 (dts 6ch 44100Hz)
AO: [pipewire] 44100Hz 5.1 6ch floatp I notice that the running sink only has 2 channels, despite the 5.1 profile being selected: $ pactl list sinks | grep 'audio.position\|device.profile.name\|Name\|State'
State: RUNNING
Name: alsa_output.usb-Generic_USB_Audio-00.HiFi_5_1__hw_Audio_2__sink
audio.position = "FL,FR"
device.profile.name = "HiFi 5+1: hw:Audio,2: sink"
State: SUSPENDED
Name: alsa_output.usb-Generic_USB_Audio-00.HiFi_5_1__hw_Audio_1__sink
audio.position = "FL,FR"
device.profile.name = "HiFi 5+1: hw:Audio,1: sink"
State: SUSPENDED
Name: alsa_output.usb-Generic_USB_Audio-00.HiFi_5_1__hw_Audio__sink
audio.position = "FL,FR,RL,RR,FC,LFE"
device.profile.name = "HiFi 5+1: hw:Audio: sink" The one with all 6 channels is the analogue out, which has the channels mixed up (it should be "FL,FR,FC,LFE,RL,RR"). The second one is headphones (I think). Is there some way to get the first one to use all 6 channels and to fix the order of the last one? |
Link: #350 (comment) Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Obviously, I had luck today with compiling, and with that command, I can hear a sound from my soundsystem: How can i tell pipewire, to use this hardware? ToM |
@Nightwing0815 : Could you show me |
@perexg : sure:
Command
ToM |
You should select the right soundcard for the alsaucm command: alsa-ucm-conf/ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf Lines 76 to 83 in a0856af
|
@perexg Sorry for that, but with your command, it won't change:
Let me attach the alsa-info script, I think, this will help you a lot: click me softly ToM |
The card number is assigned dynamically and I just collected the number from your previous posts. Use |
|
As discussed many times here. You are using old version of alsa-lib package. I cannot help you. |
I just compiled the 1.2.10 version, is there a newer one? |
But it's not installed in your system. 1.2.8+ should be fine. |
Okay thank you very much. I think, I need to wait til may, when linuxmint will use the ubuntu 24.04 base, am I right? ToM |
@perexg got a hint in mint-forums for a workaround I've got now SPDIF working, only on 2 front channels, no profile available, no pcm. But it's a huge progress! Here's my new output from command
ToM |
Thanks for this update. I'm closing this bug, because things seem to be fixed. The support for ubuntu/debian with old libraries is really pain. The Syntax changes are not recommended, because other USB hardware variants are using newer configuration syntax, so you can screw things for other USB hardware. |
Should I open a new issue for the misconfiguration that I reported above then? apt-cache policy alsa-utils
amixer -c 1 info
alsaucm -c hw:1 dump text
|
For S/PDIF device: The audio server should take UCM devices named as SPDIF (or SPDIF1/SPDIF2 etc.) as digital outputs and look for IEC958 controls to set the pass-through mode. It's not UCM thing. You should ask sound server developers to add proper support for the S/PDIF pass-through mode. For channel positions (analog device): ALSA API has PCM channel mapping extension. For USB devices, the positions should be described in USB descriptors. Thus the driver is responsible to pass correct positions to applications. You may check |
Ok, thanks. For anyone coming across this later, creating the following config for wireplumber fixed my channel positions issue: ~/.config/wireplumber/main.lua.d/51-ASUS-RoG-Strix-Z790-F.lua
where the |
Could you report this to pipewire ? UCM devices should have |
OK, reported here 3801. |
@perexg : I'm a bit confused on why the OP did not have the necessary components for libasound 1.2.10 after installing it manually and the ALSA info reporting 1.2.10 for the version of ALSA lib. I was going to tell the OP to try upgrading libasound through PPA, but I wasn't sure if that would work since the user built and installed alsa-lib locally. https://launchpad.net/~dtl131/+archive/ubuntu/mediahacks2?field.series_filter=jammy |
Hey guys,
what Can I do to get my optical toslink output ( pcm signal undecoded ) working?
Here are an inxi report of my system:
Thanks in advance,
ToM
The text was updated successfully, but these errors were encountered: