[alsa-devel] [PATCH - IOPLUG DRAIN 0/2]

Wischer, Timo (ADITG/ESB) twischer at de.adit-jv.com
Thu Mar 29 08:39:36 CEST 2018


> For the non-blocking mode, it's not supposed that drain() is called
> multiple times.  Instead, it should do the loop of snd_pcm_wait(), and
> status check, as ioplug_drain_vai_poll() actually does.

I fear the repeat call to snd_pcm_wait() when draining is active would end up in 100% CPU load as long as draining is not done because snd_pcm_wait() would immediate return due to the fact that avail > min_avail at the end of draining.

I have not tested it but I could also not find a line which would ignore the avail > min_avail short circuit of snd_pcm_wait().

Best regards

Timo


More information about the Alsa-devel mailing list