mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: start playback right away in IRQ mode
This commit is contained in:
parent
354836075d
commit
b16b80601d
1 changed files with 6 additions and 2 deletions
|
|
@ -2756,9 +2756,13 @@ int spa_alsa_start(struct state *state)
|
||||||
state->alsa_recovering = false;
|
state->alsa_recovering = false;
|
||||||
state->alsa_started = false;
|
state->alsa_started = false;
|
||||||
|
|
||||||
/* start capture now, playback will start after first write */
|
/* start capture now, playback will start after first write. Without tsched, we start
|
||||||
if (state->stream == SND_PCM_STREAM_PLAYBACK)
|
* right away so that the fds become active in poll right away. */
|
||||||
|
if (state->stream == SND_PCM_STREAM_PLAYBACK) {
|
||||||
spa_alsa_silence(state, state->start_delay + state->threshold + state->headroom);
|
spa_alsa_silence(state, state->start_delay + state->threshold + state->headroom);
|
||||||
|
if (state->disable_tsched)
|
||||||
|
do_start(state);
|
||||||
|
}
|
||||||
else if ((err = do_start(state)) < 0)
|
else if ((err = do_start(state)) < 0)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue