Date: Sun, 06 Oct 2024 10:55:27 +0200 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org> To: Alban Hertroys <haramrae@gmail.com> Cc: Christos Margiolis <christos@freebsd.org>, freebsd-stable@freebsd.org Subject: Re: uaudio device re-attach and persisting dev.pcm.$pcm.bitperfect sysctl Message-ID: <86v7y5vce8.fsf@ltc.des.dev> In-Reply-To: <8F8158B8-4D78-4A17-90B7-659ECB9988B5@gmail.com> (Alban Hertroys's message of "Sat, 5 Oct 2024 14:01:23 %2B0200") References: <F61ECC96-6FCB-4A4E-9EEC-8D6AF31A8A62@gmail.com> <86ploiwxw8.fsf@ltc.des.dev> <8745F9FB-9CC1-476C-9445-DC0A7A76165F@gmail.com> <fgpuue37atkszq5hbty2ec47c47nd3dpokrdhl4g4b3qlh4po2@luayn4ocxtpw> <8F8158B8-4D78-4A17-90B7-659ECB9988B5@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Alban Hertroys <haramrae@gmail.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86v7y5vce8.fsf>