You are not logged in.

#1 2022-05-17 18:43:28

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,578
Website

[SOLVED] No HDMI sound device after linux 5.16 -> 5.17

I recently lost my sound device after an upgrade and reboot.  Specifically, aplay -L returns only the null device:

$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)

Downgrading just the kernel from the 5.17 line to 5.16.9 restores the HDMI output device as seen in aplay below:

$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, HDMI 0
    HDMI Audio Output
hdmi:CARD=PCH,DEV=1
    HDA Intel PCH, HDMI 1
    HDMI Audio Output
hdmi:CARD=PCH,DEV=2
    HDA Intel PCH, HDMI 2
    HDMI Audio Output
hdmi:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 3
    HDMI Audio Output
hdmi:CARD=PCH,DEV=4
    HDA Intel PCH, HDMI 4
    HDMI Audio Output

The problematic aplay output in the first code block was from booting 5.17.7 which 5.17.7 was installed:

$ uname -a
Linux beearch 5.17.7-arch1-2 #1 SMP PREEMPT Sun, 15 May 2022 05:00:14 +0000 x86_64 GNU/Linux

$ pacman -Q linux
linux 5.17.7.arch1-2

Just after booting each kernel I've captured the output of dmesg for the problematic 5.17 and dmesg for the functional 5.16 for comparison.  I also have journals from each of these boots which can be pastebinned on request.

Grepping the dmesg outputs for 'snd' yeilds the following differences:

$ grep snd dmesg.log  # 5.17 kernel with no HDMI output detected
[    2.337632] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[    2.751430] snd_soc_skl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100

$ grep snd dmesg_old.log  # 5.16 properly functioning w/ HDMI output available
[    2.037450] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[    2.038279] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[    2.182147] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    2.270068] snd_hda_codec_hdmi hdaudioC0D2: Monitor plugged-in, Failed to power up codec ret=[-13]

I don't see anything in the context around the above lines that appears relevant, but I'm not well versed in reading dmesg output.

While I don't really understand the purpose of it, I've tried installing "sof-firmware" as well as "alsa-firmware" as these were listed as required in some hardware-specific wiki pages, but this had no apparent affect (and these packages have since been removed again).

There are no modules loaded in the old functional kernel that are not loaded in the new kernel, but there are a handful that are loaded in the new kernel but not in the older one:

$ comm -3 modules_old.log modules.log 
	btmtk
	iwlmei
	nvme
	nvme_core
	snd_soc_dmic
	snd_soc_hdac_hdmi
	snd_soc_intel_hda_dsp_common
	snd_soc_skl_hda_dsp

Several of these are sound modules, but I'd suspect that the difference is due to changes in the kernel in sound handling.  But just the same I'll try removing these modules momentarily to see if there's any effect (edit: tried rmmod'ing these and there was no change in aplay output).

Last edited by Trilby (2022-05-18 14:32:00)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#2 2022-05-17 19:10:23

Maniaxx
Member
Registered: 2014-05-14
Posts: 738

Re: [SOLVED] No HDMI sound device after linux 5.16 -> 5.17

Looks interesting:

[    3.306556] sof-audio-pci-intel-cnl 0000:00:1f.3: Direct firmware load for intel/sof/sof-cnl.ri failed with error -2
[    3.306564] sof-audio-pci-intel-cnl 0000:00:1f.3: error: sof firmware file is missing, you might need to
[    3.306567] sof-audio-pci-intel-cnl 0000:00:1f.3:        download it from https://github.com/thesofproject/sof-bin/
[    3.306570] sof-audio-pci-intel-cnl 0000:00:1f.3: error: failed to load DSP firmware -2
[    3.307405] sof-audio-pci-intel-cnl 0000:00:1f.3: error: sof_probe_work failed err: -2

Last edited by Maniaxx (2022-05-17 19:10:46)


sys2064

Offline

#3 2022-05-17 19:46:08

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,578
Website

Re: [SOLVED] No HDMI sound device after linux 5.16 -> 5.17

Those messages dissapear when sof-firmware is installed, but this has no impact on the underlying problem.  I don't believe "SOF" is related to normal device audio output but rather for audio signal processing.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2022-05-17 20:20:03

Maniaxx
Member
Registered: 2014-05-14
Posts: 738

Re: [SOLVED] No HDMI sound device after linux 5.16 -> 5.17


sys2064

Offline

#5 2022-05-17 21:16:48

seth
Member
Registered: 2012-09-03
Posts: 51,945

Re: [SOLVED] No HDMI sound device after linux 5.16 -> 5.17

If that doesn't work, try "snd_intel_dspcfg.dsp_driver=1" to disable SOF

Offline

#6 2022-05-18 14:31:42

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,578
Website

Re: [SOLVED] No HDMI sound device after linux 5.16 -> 5.17

I tried the kernel parameter first as the wiki link is for getting sof to work on hardware that requires it - my hardware shouldn't require it (as it's worked fine for a while without it).  Adding snd_intel_dspcfg.dsp_driver=1 worked and sound is back on 5.17.7.  But seth, if you have links to any further information about what this parameter is for (or why it may suddenly be needed on my system with the 5.17 kernels) that'd be appreciated.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2022-05-18 14:43:54

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,844

Re: [SOLVED] No HDMI sound device after linux 5.16 -> 5.17

It will disable SOF and switch back to HDA. That can sometimes happen if your vid:pid combination got marked for SoF support in the kernel but it is incomplete (might require new firmware release, or your device happens to share these with HW that does actually require SOF), with that parameter you tell the audio subsystem to fall back to HDA in favor of SOF (as in, switch back to the HDA codecs that it used to use)

Last edited by V1del (2022-05-18 14:45:19)

Online

#8 2022-05-18 14:52:09

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,578
Website

Re: [SOLVED] No HDMI sound device after linux 5.16 -> 5.17

Thanks.  It sounds like that is the right long term solution then as it looks like the hardware was being detected differently by the new kernels resulting in the failure.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB