Re: sndiod fallback trouble

2016-02-29 Thread Mihai Popescu
> ... but i see no simple & obvious solution that doesn't break current common > use-cases Maybe I'm wrong, but hotplugd comes to my mind. Isn't it possible to run some script(s) at plug/unplug events associated with that USB DAC in order to reconfigure sndiod. Again, I never used hotplugd, but

Re: sndiod fallback trouble

2016-02-28 Thread Alexandre Ratchov
On Sat, Feb 27, 2016 at 01:41:15PM -0500, Michael Reed wrote: > On 02/27/16 04:15, Alexandre Ratchov wrote: > >A nicer approach would be to handle this in sndiod by allowing > >sub-devices (aka -s options) to change their device (aka -f > >option). The advantage of doing it in sndiod is that

Re: sndiod fallback trouble

2016-02-28 Thread Alexandre Ratchov
On Sat, Feb 27, 2016 at 10:32:30AM +0100, Matej Nanut wrote: > On 27 February 2016 at 10:15, Alexandre Ratchov wrote: > > One option would to patch libsndio to try more devices (how many?). > > I've also noticed this issue and have hacked libsndio to try snd/0 and > snd/1 first,

Re: sndiod fallback trouble

2016-02-27 Thread Michael Reed
On 02/27/16 04:15, Alexandre Ratchov wrote: A nicer approach would be to handle this in sndiod by allowing sub-devices (aka -s options) to change their device (aka -f option). The advantage of doing it in sndiod is that later this could happen dynamically (ex. unplug usb cable and programs

Re: sndiod fallback trouble

2016-02-27 Thread Matej Nanut
On 27 February 2016 at 10:15, Alexandre Ratchov wrote: > One option would to patch libsndio to try more devices (how many?). I've also noticed this issue and have hacked libsndio to try snd/0 and snd/1 first, which is basically the same as your suggestion. > A nicer approach

Re: sndiod fallback trouble

2016-02-27 Thread Alexandre Ratchov
On Fri, Feb 26, 2016 at 07:18:06PM -0500, Michael Reed wrote: > Hello, > > I use OpenBSD on my laptop to listen to music, using an external DAC > (USB) at home and built-in audio elsewhere. > > In rc.conf.local I have > > # see http://thread.gmane.org/gmane.os.openbsd.misc/213373/focus=213377

sndiod fallback trouble

2016-02-26 Thread Michael Reed
Hello, I use OpenBSD on my laptop to listen to music, using an external DAC (USB) at home and built-in audio elsewhere. In rc.conf.local I have # see http://thread.gmane.org/gmane.os.openbsd.misc/213373/focus=213377 sndiod_flags=-m play -f rsnd/1 -f rsnd/0 with the intention of using