From nobody Wed Oct 02 11:24:23 2024 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XJXWs1HB3z5YP0N for ; Wed, 02 Oct 2024 11:24:25 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XJXWs0f5fz4QJ0; Wed, 2 Oct 2024 11:24:25 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727868265; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZTNiOrkJxascpaOUgHevXisV7tiFarlE6KfYJPATZLY=; b=uPkPjnxeYtXwYzBTF/4/WgHBO79ayQDh6WjZd2AakhU4Pcl/7jR9qUlzhSMEUfwhx+6elI v7bJatD0RUZN/FvtLKTtcdAcNCg6bJC/IUKDAWsY/tpmJZT5cunjMpigHW6hSg6JXosSLs sWS022y39dDIX3gwT4N9sbRvuyJolZZgDNcRPAGYpFH86uWQZjDyN2+SW1x77XOfhxXBHM nPe4ycZJ4Y/k5fP8UyUf32jDhY4ibAe3hGtmyWEcLTV6NI3WVFWJms/e1Y/Y+nQA8Xp0Bu RaocCcGXLS7hnnInDff57Hdo2givoSVJkWFh/YBWsa+TzwopzEH85pSfAsDLsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727868265; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZTNiOrkJxascpaOUgHevXisV7tiFarlE6KfYJPATZLY=; b=WJ4mT4CdNUtV83Uc+wQ098kB5RXGNJs9CxpKSX6uUc+o/AG/a29PF/5YHGw0W0hTj8KXUP I99Ut/3PQ7aYetLCIQ8R102m2C7kYgROrLWgcl/frkAqNd2jOzz9S5QasKX9aC3c29oNze JDxOpW8S7PDhKDppZXbN4OTpLga/GmWJy0nax8INvGYRXenXVyBclOvIKTQQYAD/r3SWgw fNOVQparUBZpUkZo4Htxfgp58FLwk8d3Ko/Kvvb8aXOVbJC0dZcxdCJ9p9o1MLeRUKxteW ADwgDgvd70806ZjYX6bez7nNwwftoLke+NSUBvS38o6hbv8HpGq/SrJevm/ASQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727868265; a=rsa-sha256; cv=none; b=UDPywRS92P5Y0amh7SBV/RLGMUnSo78CxhPWy6au8M6b1c4Csx4rLFg3PgzVcno2945ihZ TcjXYGQ39qR28Mwaq86G96dYqAT19gauRb+9lGHAKx7I9JRnBzAiI4U7/swdCeOir+PNAt PBjENGVbGCKAkuVJcJAOdlor2qWvRWcIOIKq8kpDTl4DNe2fJv6/G0xAGKSB9WSCuwIbir oQFHmh3yY64va55UcBf7PYBafRSDQnu79cj3YvljJ5UoiC3A+zkXjIr+heSJ33rDI1hBfX X/JuhU/TCGq34SWvd9+KYKjErF/aQK6ncZ98XvKkqppzvrr6m7U2QMZtX2F2Hg== Received: from ltc.des.dev (unknown [IPv6:2a01:e0a:386:9c20:922e:16ff:fef1:acef]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: des) by smtp.freebsd.org (Postfix) with ESMTPSA id 4XJXWr6g32zJ03; Wed, 2 Oct 2024 11:24:24 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id 728C8BEF6A; Wed, 02 Oct 2024 13:24:23 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Alban Hertroys Cc: freebsd-stable@freebsd.org Subject: Re: uaudio device re-attach and persisting dev.pcm.$pcm.bitperfect sysctl In-Reply-To: (Alban Hertroys's message of "Sun, 29 Sep 2024 12:09:24 +0200") References: User-Agent: Gnus/5.13 (Gnus v5.13) Date: Wed, 02 Oct 2024 13:24:23 +0200 Message-ID: <86ploiwxw8.fsf@ltc.des.dev> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Alban Hertroys 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