mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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:
parent
aa0d9c5b41
commit
dc5aa21c87
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue