[alsa-devel] [RFC] ALSA: Reduce delay for a blocking pcm_drain.

Clemens Ladisch clemens at ladisch.de
Mon Sep 30 16:13:38 CEST 2013


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


More information about the Alsa-devel mailing list