[Bug 251727] [sound] [snd_hda] After update to r368166 no sound recording with internal microphone
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Dec 17 05:48:33 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251727
--- Comment #8 from Matthias Apitz <guru at unixarea.de> ---
(In reply to Sean Bruno from comment #7)
moving the seetings to /etc/sysctl.conf sets them now correctly:
[root at c720-r368166 /home/guru]# grep dev.hdaa. /etc/sysctl.conf
dev.hdaa.0.init_clear=1
dev.hdaa.1.init_clear=1
[root at c720-r368166 /home/guru]# sysctl dev.hdaa.0.init_clear
dev.hdaa.0.init_clear: 1
[root at c720-r368166 /home/guru]# sysctl dev.hdaa.1.init_clear
dev.hdaa.1.init_clear: 1
but this has nothing todo with the clearing of the BIOS values, which is done
(or not done) during the attach phase when the kernel boots up; as you see the
value devinfo->init_clear in hdaa.c is checked *before* the root gets mounted
(and /etc/sysctl.conf could have any affect):
# egrep 'DEBUG|Root mount' /var/log/messages
Dec 17 06:35:31 c720-r368166 kernel: hdaa0: DEBUG hdaa.c:
hdaa_audio_prepare_pin_ctrl() has devinfo->init_clear as: 0
Dec 17 06:35:31 c720-r368166 kernel: hdaa0: DEBUG hdaa.c: hdaa_attach() calls
SYSCTL_ADD_INT() macro for init_clear
Dec 17 06:35:31 c720-r368166 kernel: hdaa1: DEBUG hdaa.c:
hdaa_audio_prepare_pin_ctrl() has devinfo->init_clear as: 0
Dec 17 06:35:31 c720-r368166 kernel: hdaa1: DEBUG hdaa.c: hdaa_attach() calls
SYSCTL_ADD_INT() macro for init_clear
Dec 17 06:35:31 c720-r368166 kernel: Root mount waiting for: usbus0 usbus1 CAM
Dec 17 06:35:31 c720-r368166 kernel: Root mount waiting for: usbus0 usbus1 CAM
Dec 17 06:35:31 c720-r368166 kernel: Root mount waiting for: CAM
this can not be configured from sysctl.conf;
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list