[Bug 286418] Realtek ALC1220 not found on boot from power off

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 28 Apr 2025 15:44:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286418

            Bug ID: 286418
           Summary: Realtek ALC1220 not found on boot from power off
           Product: Base System
           Version: 14.2-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: michael@galassi.us

Created attachment 259953
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=259953&action=edit
/var/run/dmesg.boot when audio device is found and configured

When I power up my PC, the realtek alc1220 device is not found.  If I reboot it
the device is always found on first try.
The workaround is:

# cat /etc/rc.local
#!/bin/sh
grep -qi realtek /dev/sndstat
rc=$?
if [ ${rc} -eq 0 ]; then
    cp /var/run/dmesg.boot /var/tmp/dmesg.boot.audio
else
    cp /var/run/dmesg.boot /var/tmp/dmesg.boot.noaudio
    reboot
fi

100% of the time a power up takes two boots.  Rebooting (shutdown -r now or
reboot) does not incur this problem.  I'll attach /var/run/dmesg.boot for both
the audio found and audio not found cases.  This started happening about 2
months ago.  This system is a gigabyte x870 motherboard with 96G of memory and
an AMD 9900x CPU.  It identifies as:

# uname -a
FreeBSD tms.home.galassi.us 14.3-PRERELEASE FreeBSD 14.3-PRERELEASE
stable/14-n271202-b90ff465675a GENERIC amd64
# cd /usr/src; git status
On branch stable/14
Your branch is up to date with 'origin/stable/14'.

nothing to commit, working tree clean

-- 
You are receiving this mail because:
You are the assignee for the bug.