Date: Wed, 02 Oct 2024 13:24:23 +0200 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org> To: Alban Hertroys <haramrae@gmail.com> Cc: freebsd-stable@freebsd.org Subject: Re: uaudio device re-attach and persisting dev.pcm.$pcm.bitperfect sysctl Message-ID: <86ploiwxw8.fsf@ltc.des.dev> In-Reply-To: <F61ECC96-6FCB-4A4E-9EEC-8D6AF31A8A62@gmail.com> (Alban Hertroys's message of "Sun, 29 Sep 2024 12:09:24 %2B0200") References: <F61ECC96-6FCB-4A4E-9EEC-8D6AF31A8A62@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Alban Hertroys <haramrae@gmail.com> writes: > I have a number of sysctl=E2=80=99s in /etc/sysctl.conf to tune my audio = output: > > hw.snd.default_unit=3D2 > hw.snd.maxautovchans=3D0 > dev.pcm.2.play.vchans=3D0 > dev.pcm.2.bitperfect=3D1 This only works by accident because your DSP happens to be switched on and attached to pcm2 when sysctl.conf is processed during boot. If you boot your machine with the DSP switched off or unplugged, you will see errors during boot because these sysctl nodes do not exist until the DSP is turned on and the driver attaches to it. You need to set up devd to run the correct sysctl commands (with the correct device unit numbers, don't assume your DSP is always pcm2!) when your DSP is attached. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86ploiwxw8.fsf>