Bug 1216577

Summary: No sound (Dummy Output) using Intel 100 Series/C230 (ESB2(HDA)/snd-hda-intel)
Product: [openSUSE] PUBLIC SUSE Linux Enterprise Desktop 15 SP5 Reporter: Carlo Orghol <orghol>
Component: SoundAssignee: Takashi Iwai <tiwai>
Status: RESOLVED FIXED QA Contact:
Severity: Normal    
Priority: P5 - None CC: orghol
Version: unspecifiedFlags: tiwai: needinfo? (orghol)
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Leap 15.5   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: demsg output after reboot
Alsa info after having /etc/modprobe.d/50-sound.conf deleted

Description Carlo Orghol 2023-10-25 18:29:20 UTC
see output:

inxi -Aa
Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio vendor: ASRock
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a170
    class-ID: 0403
  Device-2: Razer USA Kiyo X driver: snd-usb-audio,uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-6:3 chip-ID: 1532:0e06
    class-ID: 0102 serial: 01.00.00
  API: ALSA v: k5.14.21-150500.55.31-default status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.12 status: off tools: jack_control
  Server-2: PipeWire v: 0.3.64 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active
    tools: pactl,pw-cat,pw-cli,wpctl

grep -i snd /etc/modprobe.d/*
/etc/modprobe.d/50-sound.conf:options snd slots=snd-hda-intel
/etc/modprobe.d/50-sound.conf:alias snd-card-0 snd-hda-intel

pactl list sinks
Sink #48
        State: SUSPENDED
        Name: auto_null
        Description: Dummy Output
        Driver: PipeWire
        Sample Specification: float32le 2ch 48000Hz
        Channel Map: front-left,front-right
        Owner Module: 4294967295
        Mute: no
        Volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
                balance 0,00
        Base Volume: 65536 / 100% / 0,00 dB
        Monitor Source: auto_null.monitor
        Latency: 0 usec, configured 0 usec
        Flags: DECIBEL_VOLUME LATENCY 
        Properties:
                node.name = "auto_null"
                device.description = "Dummy Output"
                audio.rate = "48000"
                audio.channels = "2"
                audio.position = "FL,FR"
                media.class = "Audio/Sink"
                factory.name = "support.null-audio-sink"
                node.virtual = "true"
                monitor.channel-volumes = "true"
                factory.id = "18"
                clock.quantum-limit = "8192"
                client.id = "47"
                node.driver = "true"
                factory.mode = "merge"
                audio.adapt.follower = ""
                library.name = "audioconvert/libspa-audioconvert"
                object.id = "48"
                object.serial = "48"
        Formats:
                pcm

sudo journalctl -b | egrep -i "snd|firm"
[sudo] Passwort für root: 
Okt 25 10:26:14 linux-bszt kernel: DMAR: [Firmware Bug]: No firmware reserved region can cover this RMRR [0x000000007f800000-0x000000008fffffff], contact BIOS vendor for fixes
Okt 25 10:26:14 linux-bszt kernel: DMAR: [Firmware Bug]: Your BIOS is broken; bad RMRR [0x000000007f800000-0x000000008fffffff]
Okt 25 10:26:14 linux-bszt kernel: ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
Okt 25 10:26:14 linux-bszt systemd-modules-load[181]: Inserted module 'snd_hda_intel'
Okt 25 10:26:14 linux-bszt kernel: i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/skl_dmc_ver1_27.bin (v1.27)
Okt 25 10:26:14 linux-bszt kernel: snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
Okt 25 10:26:15 linux-bszt kernel: snd_hda_intel 0000:00:1f.3: Cannot probe codecs, giving up
Okt 25 10:26:17 linux-bszt kernel: usbcore: registered new interface driver snd-usb-audio
Okt 25 10:29:34 linux-bszt iscsiadm[1670]: iscsiadm: Could not get list of targets from firmware. (err 21)
Okt 25 10:31:05 linux-bszt systemd[1]: Startup finished in 32min 43.831s (firmware) + 9.702s (loader) + 1.039s (kernel) + 2.163s (initrd) + 4min 48.868s (userspace) = 37min 45.606s.
Okt 25 12:35:52 linux-bszt kernel: [Firmware Bug]: TSC ADJUST differs: CPU0 0 --> -2514126690. Restoring
Okt 25 15:01:10 linux-bszt kernel: [Firmware Bug]: TSC ADJUST differs: CPU0 0 --> -2509547333. Restoring
Okt 25 18:31:36 linux-bszt kernel: [Firmware Bug]: TSC ADJUST differs: CPU0 0 --> -2651748936. Restoring
Okt 25 19:44:58 linux-bszt kernel: [Firmware Bug]: TSC ADJUST differs: CPU0 0 --> -2514438599. Restoring

lsof /dev/snd/*
lsof: WARNING: can't stat() tracefs file system /sys/kernel/debug/tracing
      Output information may be incomplete.
COMMAND    PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
pipewire  3090 xxxxxx   45u   CHR  116,1      0t0  430 /dev/snd/seq
pipewire  3090 xxxxxx   46u   CHR  116,1      0t0  430 /dev/snd/seq
wireplumb 3091 xxxxxx   27u   CHR  116,3      0t0  702 /dev/snd/controlC2

systemctl --user list-units|egrep -i "wire|pulse|jack"
  pipewire-pulse.service                                                                   loaded active running PipeWire PulseAudio
  pipewire.service                                                                         loaded active running PipeWire Multimedia Service
  wireplumber.service                                                                      loaded active running Multimedia Service Session Manager
  pipewire-pulse.socket                                                                    loaded active running PipeWire PulseAudio
  pipewire.socket                                                                          loaded active running PipeWire Multimedia System Socket

/usr/sbin/hwinfo --sound
13: PCI 1f.3: 0403 Audio device                                 
  [Created at pci.386]
  Unique ID: nS1_.X3IjhGzvKcF
  SysFS ID: /devices/pci0000:00/0000:00:1f.3
  SysFS BusID: 0000:00:1f.3
  Hardware Class: sound
  Model: "Intel 100 Series/C230 Series Chipset Family HD Audio Controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0xa170 "100 Series/C230 Series Chipset Family HD Audio Controller"
  SubVendor: pci 0x1849 "ASRock Incorporation"
  SubDevice: pci 0x1283 
  Revision: 0x31
  Driver: "snd_hda_intel"
  Driver Modules: "snd_hda_intel"
  Memory Range: 0xdf140000-0xdf143fff (rw,non-prefetchable)
  Memory Range: 0xdf120000-0xdf12ffff (rw,non-prefetchable)
  IRQ: 125 (98 events)
  Module Alias: "pci:v00008086d0000A170sv00001849sd00001283bc04sc03i00"
  Driver Info #0:
    Driver Status: snd_hda_intel is active
    Driver Activation Cmd: "modprobe snd_hda_intel"
  Config Status: cfg=yes, avail=yes, need=no, active=unknown
Comment 1 Takashi Iwai 2023-10-26 13:17:44 UTC
Please superfluous config, /etc/modprobe.d/50-sound.conf, and reboot.  Run alsa-info.sh as root with --no-upload option, and attach the output file (don't paste) to Bugzilla.
Comment 2 Takashi Iwai 2023-10-26 13:18:16 UTC
Also, please give the dmesg output after the fresh boot, too.
Comment 3 Carlo Orghol 2023-10-28 17:29:55 UTC
Created attachment 870499 [details]
demsg output after reboot
Comment 4 Carlo Orghol 2023-10-28 17:32:02 UTC
Created attachment 870500 [details]
Alsa info after having /etc/modprobe.d/50-sound.conf deleted
Comment 5 Takashi Iwai 2023-11-02 12:32:30 UTC
Judging from the log:
[    2.027570] snd_hda_intel 0000:00:1f.3: Cannot probe codecs, giving up

the sound driver got loaded way too early, likely in initrd.
Please check the output of lsinitrd (run as root), and verify whether it contains snd-hda-intel module in lib/modules/*.

If yes, it must have been included wrongly by some extra configuration, and you need to figure out.  Typically, it's listed in /usr/lib/modules-loaded.d/* or /etc/modules-loaded.d/*.
Comment 6 Carlo Orghol 2023-11-02 14:50:40 UTC
lsinitrd|grep snd-hda-intel
-rw-r--r--   1 root     root        38593 Oct  6 09:36 lib/modules/5.14.21-150500.55.31-default/kernel/sound/pci/hda/snd-hda-intel.ko.zst

ls /etc/modules-load.d/*
/etc/modules-load.d/yast.conf

ls /usr/lib/modules-load.d/*
/usr/lib/modules-load.d/multipath.conf  /usr/lib/modules-load.d/sg.conf

The problem occurred ~2 months back after a regular patch or update.
I always use standard and do not modify in these areas.
Upgrade from 15.4 to 15.5 didn't solve the issue.
Comment 7 Takashi Iwai 2023-11-02 15:07:09 UTC
(In reply to Carlo Orghol from comment #6)
> lsinitrd|grep snd-hda-intel
> -rw-r--r--   1 root     root        38593 Oct  6 09:36
> lib/modules/5.14.21-150500.55.31-default/kernel/sound/pci/hda/snd-hda-intel.
> ko.zst

So this causes the problem.

> ls /etc/modules-load.d/*
> /etc/modules-load.d/yast.conf

And what does this file contain?  If it's loading snd-hda-intel, try to remove this file, rebuild initrd (e.g. run "dracut -f" as root), and retest.
Comment 8 Carlo Orghol 2023-11-02 19:44:04 UTC
Performed the recommended steps >> SUCCESS
Audio is working again.

Thanks for your support.