30 Sep
2013
30 Sep
'13
4:13 p.m.
Raymond Yau wrote:
To test this I opened a pcm and set no period wakeups, played a few samples and then called drain, which hung indefinitely. Using a USB headset with a max period size of 128k but only 15ms of the buffer filled, having the drain time shorter without losing samples makes a blocking call feasible.
Do you mean that you tested on a patched version of USB audio driver since only three drivers support SNDRV_PCM_INFO_NO_PERIOD_WAKEUP
The flag is ignored if not supported.
In this test, the important part was the large period size.
Regards, Clemens