alsa-pcm: use full period size in IRQ mode

We can simply wake up every period and check the timers there is no need
to tweak the period size.
This commit is contained in:
Wim Taymans 2023-03-29 11:29:43 +02:00
parent aa0d9c5b41
commit dc5aa21c87

View file

@ -1576,7 +1576,8 @@ int spa_alsa_set_format(struct state *state, struct spa_audio_info *fmt, uint32_
* the period smaller and add one period of headroom. Limit the
* period size to our default so that we don't create too much
* headroom. */
period_size = SPA_MIN(period_size, DEFAULT_PERIOD) / 2;
if (!state->disable_tsched)
period_size = SPA_MIN(period_size, DEFAULT_PERIOD) / 2;
spa_log_info(state->log, "%s: batch mode, period_size:%ld",
state->props.device, period_size);
} else {