Re: uaudio device re-attach and persisting dev.pcm.$pcm.bitperfect sysctl
Date: Sun, 06 Oct 2024 08:55:27 UTC
Alban Hertroys <haramrae@gmail.com> writes: > Originally I tried checking for the device using: > test "`sysctl -n dev.pcm.${PCM}.%desc`" = 'Topping D90SE’ > , 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’t find a way to escape those inner quotes. So that’s > 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’s an effect of it. You realize you can just put everything in a shell script which devd invokes, right? DES -- Dag-Erling Smørgrav - des@FreeBSD.org