alsa: rework batch handling a bit

By default, use a 512 period for batch and use 512 headroom
Add a property to disable special batch handling.
This commit is contained in:
Wim Taymans 2021-01-21 17:10:48 +01:00
parent af092a9a7e
commit 73896bfa83
5 changed files with 28 additions and 31 deletions

View file

@ -117,6 +117,7 @@ struct state {
unsigned int default_rate;
struct channel_map default_pos;
unsigned int disable_mmap;
unsigned int disable_batch;
snd_pcm_uframes_t buffer_frames;
snd_pcm_uframes_t period_frames;