From nobody Sun Oct 06 08:55:27 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 4XLx292ZFSz5YWXB for ; Sun, 06 Oct 2024 08:55:29 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 4XLx2925XDz4cnN; Sun, 6 Oct 2024 08:55:29 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728204929; 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=N4wWk7iP5xmOUlELqDwWrUygdX/xT5YCwgj1yGfMzoY=; b=wmH5DIguWjoIUkYfFyFk65HmGtIMjzr3413WOhyDSAjYHU2iI98lj1ZiYHZqXQ6Gd6sSrG qqqoPlaqbaD6WgqhrSIeNIMFx0FNgyto/vkwMJAhZ1oYDqDQ9ZxXNEMHai3C2c7V0uw/3D /fwEJKSYxVn9xYGPfMNDg3x9x9l/McAFZAUm5Etph049uy04O97FGDSIe6Z6eRdntjn8sl jm5qV7iol2TGJbAikouGk0t8fssiVqpC67ruogJx5IO6I3MKNjQJ2wi/sRyVDj5dT/IPOY AiAC5hQ72vO9FdaDdX/IUNFzXOqjCIayM9EiDe7+0gZVBZ9vGGrSyzVKyCYjgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728204929; 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=N4wWk7iP5xmOUlELqDwWrUygdX/xT5YCwgj1yGfMzoY=; b=SH5XTBc6jWeHFaaL9dw75iX2gEEBgweDa3Gsz0bdgbc7xxRoPQc8YXlfRgWm7L8EI0x4eU xWOgcxxDw6eCJKIx4G0F0KZNd9y0Za9/d4DxXq0Gb4OzhDqMTiqso+62j1DXBK3hD21Jtd n79HVmb42hQ4giNfTwSex4A57i/05osNT6pxzYDL3B74plgzxq2F4cIXW1rnELLjgZXXJI RwQtVWxyrZHnVkzEkLEKuNOz9L4MuqPo1YIIhSA/1StGazLqgDKGvlNU3dVE6Q56BtupdH j0QyBaXAB5nKyJuLesb/YBVqX6QgT7qtb8VF0oNAgGtnIutxcAn6qqq+Fx9aSQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728204929; a=rsa-sha256; cv=none; b=Gje6JK5DtYrBosEyhx0+dbpkWBs848rj/DtsQQ6DmFPqWpNFp+RjqOkYjtZRvCbXzwyhcA CVcN1dpn8LBqan4rw+4sdPWtys07TK1dm4thP5o2fGRzHqQ2a6DS+cCgfQiroKuU8jfhI5 II/rEnnxtU0eUqOaV4Y7YWMjSVtBFKKmUu3n+bkdVetiCQc9S4J0PLgfsQbtjthkNduHNQ xqlUOcqQZ8kRLdzMAyit94pr0b6haO5H+Y4P37NwrdGZMK8+q9sEbJ+RlmNjPQMLw63bNk S8+dcNvVWSqOnqoUC1GOwLxnNqwN53SFAlwtR7rmz2sbhWk9BSlxjDbrAX2Vfg== Received: from ltc.des.dev (unknown [91.174.26.112]) (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 4XLx290sLqzFYN; Sun, 6 Oct 2024 08:55:29 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id 3913DBF52D; Sun, 06 Oct 2024 10:55:27 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Alban Hertroys Cc: Christos Margiolis , freebsd-stable@freebsd.org Subject: Re: uaudio device re-attach and persisting dev.pcm.$pcm.bitperfect sysctl In-Reply-To: <8F8158B8-4D78-4A17-90B7-659ECB9988B5@gmail.com> (Alban Hertroys's message of "Sat, 5 Oct 2024 14:01:23 +0200") References: <86ploiwxw8.fsf@ltc.des.dev> <8745F9FB-9CC1-476C-9445-DC0A7A76165F@gmail.com> <8F8158B8-4D78-4A17-90B7-659ECB9988B5@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Sun, 06 Oct 2024 10:55:27 +0200 Message-ID: <86v7y5vce8.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: > Originally I tried checking for the device using: > test "`sysctl -n dev.pcm.${PCM}.%desc`" =3D 'Topping D90SE=E2=80=99 > , but that statement seems to require the double-quotes for test to > accept it, which conflict with the double-quotes of the action > string. I couldn=E2=80=99t find a way to escape those inner quotes. So th= at=E2=80=99s > another issue I ran into, although approaches to use the USB attach > event for matching the dsp device to the usb device are clearly > superior to reading out a sysctl that=E2=80=99s an effect of it. You realize you can just put everything in a shell script which devd invokes, right? DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org