You are not logged in.

#1 2021-12-21 09:08:54

deathangle908
Member
From: Ukraine
Registered: 2013-10-16
Posts: 52
Website

[SOLVED] Asus z690-p: onboard soundcard (Realtek) is not in ALSA mixer

Asus z690-p: onboard soundcard (Realtek) is not in ALSA mixer:

Software:

Archlinux (everything up to date) + KDE + Pulseaudio

Hardware

  • i9-12900k

  • Asus z690-p (Realtek 7.1 Surround Sound High Definition Audio CODEC). I have 1 optic output +5 x 3.5 jack on backside on my desktop. And as usual microphone audio jack + audio output 3.5 at front side.

  • nvidia-gtx-1080

  • USB microphone HyperX with audio output. This audio output actually works if I connect my audio system in it. But I still need onboard audio

  • My 2.0 sound system is connected to back side of onboard audio 3.5 green jack


System info:

I added these flags:

: cat /etc/modprobe.d/alsa-base.conf 
options snd-hda-intel enable_msi=1
options snd-intel-dspcfg dsp_driver=1
blacklist snd_sok_skl

As you see Intel HD PCH is not shown my my card list, neither in alsamixer

: aplay -l

card 0: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
...
  Subdevice #7: subdevice #7
card 0: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
...
  Subdevice #7: subdevice #7
card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0..3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: Quadcast [HyperX Quadcast], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

But it's present on devices:

lspci -k

01:00.1 Audio device: NVIDIA Corporation GP104 High Definition Audio Controller (rev a1)
...
00:1f.3 Audio device: Intel Corporation Device 7ad0 (rev 11)
        DeviceName: Onboard - Sound
        Subsystem: ASUSTeK Computer Inc. Device 8814
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl
...

snd_hda_intel driver is loaded w/o any errors:

 dmesg |grep snd
[    2.941148] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[    2.941330] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002)
[    2.941365] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[    8.599682] usbcore: registered new interface driver snd-usb-audio
[   12.584126] snd_hda_intel 0000:01:00.1: IRQ timing workaround is activated for card #2. Suggest a bigger bdl_pos_adj.

And it detected my onboard audiocard `00:1f.3` (which has optic and 5x3.5 jacks btw)

: sudo journalctl -b | grep 00:1f.3
Dec 21 10:40:30 desktop kernel: pci 0000:00:1f.3: [8086:7ad0] type 00 class 0x040300
Dec 21 10:40:30 desktop kernel: pci 0000:00:1f.3: reg 0x10: [mem 0x6015218000-0x601521bfff 64bit]
Dec 21 10:40:30 desktop kernel: pci 0000:00:1f.3: reg 0x20: [mem 0x6015000000-0x60150fffff 64bit]
Dec 21 10:40:30 desktop kernel: pci 0000:00:1f.3: PME# supported from D3hot D3cold
Dec 21 10:40:31 desktop kernel: snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)

I have these packages installed

: pacman -Qs alsa
local/alsa-card-profiles 
local/alsa-lib
local/alsa-plugins
local/alsa-topology-conf 
local/alsa-ucm-conf
local/alsa-utils
local/lib32-alsa-lib
local/lib32-alsa-plugins 
local/pulseaudio-alsa
local/zita-alsa-pcmi
local/sof-firmware

And these kernel modules loaded:

lsmod |grep snd
: lsmod |grep snd
snd_usb_audio         385024  0
snd_usbmidi_lib        45056  1 snd_usb_audio
snd_rawmidi            53248  1 snd_usbmidi_lib
snd_seq_device         16384  1 snd_rawmidi
snd_sof_pci_intel_tgl    16384  0
snd_sof_intel_hda_common   131072  1 snd_sof_pci_intel_tgl
soundwire_intel        53248  1 snd_sof_intel_hda_common
snd_sof_intel_hda      20480  1 snd_sof_intel_hda_common
snd_sof_pci            20480  2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_sof_xtensa_dsp     20480  1 snd_sof_intel_hda_common
snd_sof               200704  2 snd_sof_pci,snd_sof_intel_hda_common
snd_soc_hdac_hda       28672  1 snd_sof_intel_hda_common
snd_hda_ext_core       36864  3 snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd_soc_acpi_intel_match    57344  2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_soc_acpi           16384  2 snd_soc_acpi_intel_match,snd_sof_intel_hda_common
ledtrig_audio          16384  1 snd_sof
snd_soc_core          393216  4 soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hda
snd_compress           28672  1 snd_soc_core
ac97_bus               16384  1 snd_soc_core
snd_pcm_dmaengine      16384  1 snd_soc_core
snd_hda_codec_hdmi     81920  1
snd_hda_intel          61440  2
snd_intel_dspcfg       32768  2 snd_hda_intel,snd_sof_intel_hda_common
snd_intel_sdw_acpi     20480  2 snd_sof_intel_hda_common,snd_intel_dspcfg
snd_hda_codec         184320  3 snd_hda_codec_hdmi,snd_hda_intel,snd_soc_hdac_hda
snd_hda_core          118784  7 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd_hwdep              16384  2 snd_usb_audio,snd_hda_codec
snd_aloop              36864  2
snd_pcm               163840  12 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_compress,snd_soc_core,snd_aloop,snd_hda_core,snd_pcm_dmaengine
snd_timer              49152  2 snd_aloop,snd_pcm
snd                   126976  21 snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_timer,snd_compress,snd_soc_core,snd_aloop,snd_pcm,snd_rawmidi
soundcore              16384  1 snd
mc                     65536  2 videodev,snd_usb_audio

I believe I have everything installed correctly. Since I have another motherboard AsRock z370 + i7 8700k, I just put ssd with my OS there and booted from it. AsRock z370 also have an onboard audio which is shown as Intel HDA in alsamixer and works. So the issue seems to be on hardware level.

Last edited by deathangle908 (2021-12-23 15:24:05)

Offline

#2 2021-12-21 09:55:59

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,223

Re: [SOLVED] Asus z690-p: onboard soundcard (Realtek) is not in ALSA mixer

That's a sof card and trying to force the older snd-hda-intel potentially dropped with later kernel versions. Remove your alsa-base.conf otherwise sof-firmware can't be invoked.

Last edited by V1del (2021-12-21 09:56:56)

Offline

#3 2021-12-21 11:33:10

deathangle908
Member
From: Ukraine
Registered: 2013-10-16
Posts: 52
Website

Re: [SOLVED] Asus z690-p: onboard soundcard (Realtek) is not in ALSA mixer

V1del wrote:

That's a sof card and trying to force the older snd-hda-intel potentially dropped with later kernel versions. Remove your alsa-base.conf otherwise sof-firmware can't be invoked.

It doesn't work without alsa conf either. I created alsa conf specifically for it

Offline

#4 2021-12-21 11:35:43

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,223

Re: [SOLVED] Asus z690-p: onboard soundcard (Realtek) is not in ALSA mixer

And what was the dmesg without? Setting dsp_driver=1 is a crutch workaround, if it doesn't work with either you need to test newer kernels or newer sof-firmware versions and/or report bugs to the sof-firmware upstream project.

Offline

#5 2021-12-21 22:59:01

deathangle908
Member
From: Ukraine
Registered: 2013-10-16
Posts: 52
Website

Re: [SOLVED] Asus z690-p: onboard soundcard (Realtek) is not in ALSA mixer

V1del wrote:

And what was the dmesg without? Setting dsp_driver=1 is a crutch workaround, if it doesn't work with either you need to test newer kernels or newer sof-firmware versions and/or report bugs to the sof-firmware upstream project.

No flags at all to kernel modules:

: sudo dmesg |grep -ie audio -ie sound -ie snd
[    0.223655] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    2.747745] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[    2.747916] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002)
[    2.747948] snd_hda_intel 0000:01:00.1: Disabling MSI
[    2.747951] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[    2.922971] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card2/input3
[    2.922989] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card2/input4
[    2.923000] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card2/input5
[    2.923013] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card2/input6
[    8.678610] usbcore: registered new interface driver snd-usb-audio
[   12.626598] snd_hda_intel 0000:01:00.1: IRQ timing workaround is activated for card #2. Suggest a bigger bdl_pos_adj.

without drivers it uses :

00:1f.3 Audio device: Intel Corporation Device 7ad0 (rev 11)
        DeviceName: Onboard - Sound
        Subsystem: ASUSTeK Computer Inc. Device 8814
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl

Last edited by deathangle908 (2021-12-21 23:02:15)

Offline

#6 2021-12-22 08:34:52

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,223

Re: [SOLVED] Asus z690-p: onboard soundcard (Realtek) is not in ALSA mixer

It shouldn't still be using snd_hda_intel`and that's strange

sudo dmesg | grep -iE 'snd|sof'
systool -vm snd_hda_intel
systool -vm snd_intel_dspcfg

Offline

#7 2021-12-22 08:47:37

deathangle908
Member
From: Ukraine
Registered: 2013-10-16
Posts: 52
Website

Re: [SOLVED] Asus z690-p: onboard soundcard (Realtek) is not in ALSA mixer

V1del wrote:

It shouldn't still be using snd_hda_intel`and that's strange

sudo dmesg | grep -iE 'snd|sof'
systool -vm snd_hda_intel
systool -vm snd_intel_dspcfg

sudo dmesg | grep -iE 'snd|sof'

[    0.354112] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.387222] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    0.387223] software IO TLB: mapped [mem 0x0000000066530000-0x000000006a530000] (64MB)
[    2.869185] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[    2.869378] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002)
[    2.869415] snd_hda_intel 0000:01:00.1: Disabling MSI
[    2.869418] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[    8.640309] usbcore: registered new interface driver snd-usb-audio
[   12.552018] snd_hda_intel 0000:01:00.1: IRQ timing workaround is activated for card #2. Suggest a bigger bdl_pos_adj.

systool -vm snd_hda_intel

Module = "snd_hda_intel"

  Attributes:
    coresize            = "61440"
    initsize            = "0"
    initstate           = "live"
    refcnt              = "1"
    srcversion          = "B1DF896A0FF7A9949DDBE95"
    taint               = ""
    uevent              = <store method only>

  Parameters:
    align_buffer_size   = "-1"
    bdl_pos_adj         = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
    beep_mode           = "N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N"
    dmic_detect         = "Y"
    enable_msi          = "-1"
    enable              = "Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y"
    id                  = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
    index               = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
    jackpoll_ms         = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
    model               = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
    patch               = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
    pm_blacklist        = "Y"
    position_fix        = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
    power_save          = "1"
    power_save_controller= "Y"
    probe_mask          = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
    probe_only          = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
    single_cmd          = "-1"
    snoop               = "-1"

  Sections:

systool -vm snd_intel_dspcfg

Module = "snd_intel_dspcfg"

  Attributes:
    coresize            = "32768"
    initsize            = "0"
    initstate           = "live"
    refcnt              = "2"
    srcversion          = "ABD13A458CC19ED34298A5A"
    taint               = ""
    uevent              = <store method only>

  Parameters:
    dsp_driver          = "0"

  Sections:

systool -vm snd_sof_pci_intel_tgl

Module = "snd_sof_pci_intel_tgl"

  Attributes:
    coresize            = "16384"
    initsize            = "0"
    initstate           = "live"
    refcnt              = "0"
    srcversion          = "BD18FE141FAC972E39746A5"
    taint               = ""
    uevent              = <store method only>

  Sections:

Offline

#8 2021-12-22 11:36:22

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,223

Re: [SOLVED] Asus z690-p: onboard soundcard (Realtek) is not in ALSA mixer

So things look default again and it still is using snd_hda_intel and not sof and still not giving you a device. The loopbacks you have in your opening post are from where? If that's droidcam and it forces index=0 it might grab the real device that would be allocated away, however and least from snd_hda_intel's perspective all the index values are -1 which means it should be picking an alternate index.

Offline

#9 2021-12-23 15:23:01

deathangle908
Member
From: Ukraine
Registered: 2013-10-16
Posts: 52
Website

Re: [SOLVED] Asus z690-p: onboard soundcard (Realtek) is not in ALSA mixer

V1del wrote:

So things look default again and it still is using snd_hda_intel and not sof and still not giving you a device. The loopbacks you have in your opening post are from where? If that's droidcam and it forces index=0 it might grab the real device that would be allocated away, however and least from snd_hda_intel's perspective all the index values are -1 which means it should be picking an alternate index.

Ok I found the issue, I noticed that udev is consuming 100% cpu, and I wasn't able to kill it. And also I got 2 monitors freezed that were connected to integrated videocard. so I just pull the cables from motherboard, and yeah, my sound card is shown in alsa and also there's no process that east 100% cpu...

Offline

Board footer

Powered by FluxBB