You are not logged in.

#1 2024-05-19 15:54:19

tchici
Member
Registered: 2020-03-29
Posts: 21

No Audio From Front-Panel ALC4080 MSI MPG Z790I EDGE WIFI

Edit: This motherboard has a red connector on the back which also works as
audio output. I am having no problems with that, so if you are having trouble,
try using that port. The issue is about the front-panel connector having no
output by default. This probably requires some alsa configuration.

Hi.

When I first boot, front-panel audio does not work until I run

pacmd load-module module-alsa-sink device=hw:Audio,1 control='PCM',1

to make the audio work (if I am using PulseAudio).

How can I have this done automatically, and how do I do this if I am using
PipeWire?

Output of lsusb:

$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 005: ID 0db0:62a4 Micro Star International USB Audio
Bus 001 Device 008: ID 1462:7e03 Micro Star International MYSTIC LIGHT
Bus 001 Device 009: ID 8087:0033 Intel Corp. AX211 Bluetooth
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

And it is in

$ grep '0db0:62a4' /usr/share/alsa/ucm2/USB-Audio/USB-Audio.conf
                # 0db0:62a4 MSI MPG Z790I Edge WiFi

under "If.realtek-alc4080", so I guess that looks correct.

Finally, some lspci output

$ sudo lspci -vvv -s 00:1f.3
00:1f.3 Audio device: Intel Corporation Raptor Lake High Definition Audio Controller (rev 11)
        DeviceName: Onboard - Sound
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7e03
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 32, Cache Line Size: 64 bytes
        Interrupt: pin B routed to IRQ 170
        IOMMU group: 12
        Region 0: Memory at 6412120000 (64-bit, non-prefetchable) [size=16K]
        Region 4: Memory at 6412000000 (64-bit, non-prefetchable) [size=1M]
        Capabilities: [50] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA PME(D0-,D1-,D2-,D3hot+,D3cold+)
                Status: D3 NoSoftRst+ PME-Enable+ DSel=0 DScale=0 PME-
        Capabilities: [80] Vendor Specific Information: Len=14 <?>
        Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
                Address: 00000000fee00818  Data: 0000
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel, snd_soc_avs, snd_sof_pci_intel_tgl

What do I need to do to get this to work automatically or at least what is the
equivalent command for PipeWire?

Thanks.

Last edited by tchici (2024-05-26 15:36:11)

Offline

#2 2024-05-21 03:43:24

spiffeeroo
Member
Registered: 2021-04-23
Posts: 22

Re: No Audio From Front-Panel ALC4080 MSI MPG Z790I EDGE WIFI

Do you have alsa-utils installed? After installation of alsa-utils, by default, it should keep track of settings at /var/lib/alsa/asound.state.

Offline

#3 2024-05-21 09:51:45

tchici
Member
Registered: 2020-03-29
Posts: 21

Re: No Audio From Front-Panel ALC4080 MSI MPG Z790I EDGE WIFI

Thanks for the reply.

Yes I do have alsa-utils installed:

$ pacman -Qe | grep alsa
alsa-utils 1.2.11-1
pulseaudio-alsa 1:1.2.7.1-2
$ systemctl list-units | grep alsa
  alsa-restore.service                                                                                    loaded active exited    Save/Restore Sound Card State

Offline

#4 2024-05-21 23:23:07

spiffeeroo
Member
Registered: 2021-04-23
Posts: 22

Re: No Audio From Front-Panel ALC4080 MSI MPG Z790I EDGE WIFI

You can read this to migrate to Pipewire from Pulseaudio:
https://gitlab.freedesktop.org/pipewire … #modules-1

Pipewire (and pipewire-pulse) does not have pacmd, but you can still use "pactl" to load the module. I understand you are using this hack because the sink is not automatically being created by pulseaudio for some reason. I also have ALC4080 but on an MSI X650 Tomahawk Wifi motherboard, but the sink profile is created properly on mine after the recent alsa-ucm-conf update. I am using pipewire by the way. To configure on pipewire, you would use wpctl or pw-cli (more difficult to use).

Can you show output of "alsaucm listcards"?

Offline

#5 2024-05-22 07:44:26

tchici
Member
Registered: 2020-03-29
Posts: 21

Re: No Audio From Front-Panel ALC4080 MSI MPG Z790I EDGE WIFI

$ alsaucm listcards
  0: hw:1
    Generic USB Audio at usb-0000:00:14.0-9, high speed

On PulseAudio, I originally only have "USB Audio Analog Stereo", then, running

pactl load-module module-alsa-sink device=hw:Audio,1 control='PCM',1

I get just "USB Audio"  which has working audio output (in addition to the "USB
Audio Analog Stereo").

After installing PipeWire, I originally only have "USB Audio Analog Stereo"
which does not work. After running the same command as above, I get "ALSA Sink
on hw:Audio,1" which works (after fiddling around with alsamixer).

Thank you. I can at least use PipeWire now.. But I just realized I do not know
if the audio input works with this hack. I don't need it right now and I do not
have any device that I can use as a mic through that audio jack, so oh well...

I'm still open to trying things to properly fix this issue and have it all work
automagically.

Offline

#6 2024-05-26 14:07:29

tchici
Member
Registered: 2020-03-29
Posts: 21

Re: No Audio From Front-Panel ALC4080 MSI MPG Z790I EDGE WIFI

I just found out there is a audio connector on the motherboard itself.. It has
a red color (rather than the standard green) so I just ignored it initially.

Anyway, the default "USB Audio" is outputting from there without any other
changes.

For the front-panel, I need to load the PCM thing and unmute it in alsamixer.

So if I ever feel motivated enough, I guess I need to do some alsa
configuration to map devices or something...

Offline

#7 2024-05-26 14:48:37

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,008

Re: No Audio From Front-Panel ALC4080 MSI MPG Z790I EDGE WIFI

https://www.cgdirector.com/motherboard- … explained/

Looks like it may be a "high power" output that has more drive capability than does a standard line out.
Please be sure to edit your first post and edit the title by prepending [SOLVED]


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#8 2024-05-26 15:33:20

tchici
Member
Registered: 2020-03-29
Posts: 21

Re: No Audio From Front-Panel ALC4080 MSI MPG Z790I EDGE WIFI

Thanks for the info.

The reason I did not mark this as solved is because the original issue is about
front-panel audio. I will eventually get to that (hopefully). But I am not that
motivated currently because I don't really use this as a desktop so I don't
care about the audio... But I will someday get to it and make a post addressing
that issue here when I do.

I guess I will update the original post to make this more clear.

Offline

#9 2024-05-26 15:47:55

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,008

Re: No Audio From Front-Panel ALC4080 MSI MPG Z790I EDGE WIFI

Nope, it was me not reading the first post again.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB