From a2a43e578f9c706e873425260e177691d2baa92d Mon Sep 17 00:00:00 2001 From: Siva Mahadevan Date: Wed, 7 Jan 2026 11:23:42 -0500 Subject: [PATCH] Probe for sndctl (BSD) See sndctl(8) on FreeBSD: https://man.freebsd.org/cgi/man.cgi?query=sndctl&sektion=8&n=1 --- hw-probe.pl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/hw-probe.pl b/hw-probe.pl index f934ae3..543b027 100644 --- a/hw-probe.pl +++ b/hw-probe.pl @@ -4344,6 +4344,21 @@ () writeLog($LOG_DIR."/modstat", $Modstat); } } + + my $Sndctl = ""; + + if($Opt{"FixProbe"}) { + $Sndctl = readFile($FixProbe_Logs."/sndctl"); + } + elsif(enabledLog("sndctl") and checkCmd("sndctl")) + { + listProbe("logs", "sndctl"); + $Sndctl = runCmd("ls /dev/dsp* | xargs -n1 sndctl -v -f 2>/dev/null"); + + if($Opt{"HWLogs"}) { + writeLog($LOG_DIR."/sndctl", $Sndctl); + } + } my $Sndstat = ""; @@ -17787,6 +17802,7 @@ ($$) "shasum", "smartctl", "smartctl_megaraid", + "sndctl", "sndstat", "sysctl", "usbconfig",