alsa: handle batch devices

For batch devices that are not usb devices, lower the period and
add an extra period of heardoom to avoid xruns.

See !330
This commit is contained in:
Wim Taymans 2020-12-11 17:38:27 +01:00
parent 6bc8ab18dc
commit d71259a02c
2 changed files with 28 additions and 4 deletions

View file

@ -142,6 +142,7 @@ struct state {
int timerfd;
uint32_t threshold;
uint32_t last_threshold;
uint32_t headroom;
uint32_t duration;
uint32_t last_duration;