Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Dec 2020 05:48:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 251727] [sound] [snd_hda] After update to r368166 no sound recording with internal microphone
Message-ID:  <bug-251727-227-7qdLqODjfh@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-251727-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-251727-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251727

--- Comment #8 from Matthias Apitz <guru@unixarea.de> ---
(In reply to Sean Bruno from comment #7)
moving the seetings to /etc/sysctl.conf sets them now correctly:

[root@c720-r368166 /home/guru]# grep dev.hdaa. /etc/sysctl.conf
dev.hdaa.0.init_clear=1
dev.hdaa.1.init_clear=1
[root@c720-r368166 /home/guru]# sysctl dev.hdaa.0.init_clear
dev.hdaa.0.init_clear: 1
[root@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.

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-251727-227-7qdLqODjfh>