Created attachment 264866 [details] pciconf.txt I recently acquired a Lenovo V15 G4 laptop (an AMD laptop) and although headphone output works fine, speaker output does not. After some digging the speaker was labeled as "disconnected" and thus never had audio routed to it. Adding this to /boot/device.hints fixed it: ``` hint.hdaa.1.nid20.config="as=1 seq=0 device=speakers" hint.hdaa.1.nid33.config="as=1 seq=15 device=Headphones" ``` but I figure it'd be nice to have the mux work properly out of the box. I'm not the first person with this problem either! See https://forums.freebsd.org/threads/lenovo-ideapad-3i-realtek-alc257-without-sound-and-mic.93980/ who ended up with the same answer.
Created attachment 264867 [details] dmesg-boot.txt
Created attachment 264868 [details] pinmux - no speaker audio, no headphone connected
Created attachment 264869 [details] pinmux - audio works with headphone attached in
Created attachment 264870 [details] pinmux - audio works with speakers (and yes headphones too), after the hints
Created attachment 265133 [details] initial patch Does this fix the issue? Make sure you have the hints removed.
Bump.
(In reply to Christos Margiolis from comment #6) yup! tested and works great. please land!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=5f624d923db0f2fb33990948cffdc24da44deaa8 commit 5f624d923db0f2fb33990948cffdc24da44deaa8 Author: Christos Margiolis <christos@FreeBSD.org> AuthorDate: 2025-11-17 16:09:18 +0000 Commit: Christos Margiolis <christos@FreeBSD.org> CommitDate: 2025-11-17 16:09:18 +0000 snd_hda: Patch Lenovo V15 PR: 290496 Tested by: adrian Sponsored by: The FreeBSD Foundation MFC after: 1 week sys/dev/sound/pci/hda/hdaa_patches.c | 3 ++- sys/dev/sound/pci/hda/hdac.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-)
A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=4991bb6a5c45b518df9b1a265c4f6f8c17ea4493 commit 4991bb6a5c45b518df9b1a265c4f6f8c17ea4493 Author: Christos Margiolis <christos@FreeBSD.org> AuthorDate: 2025-11-17 16:09:18 +0000 Commit: Christos Margiolis <christos@FreeBSD.org> CommitDate: 2025-11-24 12:25:19 +0000 snd_hda: Patch Lenovo V15 PR: 290496 Tested by: adrian Sponsored by: The FreeBSD Foundation MFC after: 1 week (cherry picked from commit 5f624d923db0f2fb33990948cffdc24da44deaa8) sys/dev/sound/pci/hda/hdaa_patches.c | 3 ++- sys/dev/sound/pci/hda/hdac.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-)