mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
alsa: always read/write follower samples
Ignore errors such as -EAGAIN, just write what we have. See #3565
This commit is contained in:
parent
15e14946fb
commit
a8636b04cb
1 changed files with 2 additions and 6 deletions
|
|
@ -2557,11 +2557,9 @@ again:
|
||||||
|
|
||||||
int spa_alsa_write(struct state *state)
|
int spa_alsa_write(struct state *state)
|
||||||
{
|
{
|
||||||
int res = 0;
|
|
||||||
if (state->following && state->rt.driver == NULL) {
|
if (state->following && state->rt.driver == NULL) {
|
||||||
uint64_t current_time = state->position->clock.nsec;
|
uint64_t current_time = state->position->clock.nsec;
|
||||||
if ((res = alsa_write_sync(state, current_time)) < 0)
|
alsa_write_sync(state, current_time);
|
||||||
return res;
|
|
||||||
}
|
}
|
||||||
return alsa_write_frames(state);
|
return alsa_write_frames(state);
|
||||||
}
|
}
|
||||||
|
|
@ -2771,11 +2769,9 @@ static int alsa_read_frames(struct state *state)
|
||||||
|
|
||||||
int spa_alsa_read(struct state *state)
|
int spa_alsa_read(struct state *state)
|
||||||
{
|
{
|
||||||
int res;
|
|
||||||
if (state->following && state->rt.driver == NULL) {
|
if (state->following && state->rt.driver == NULL) {
|
||||||
uint64_t current_time = state->position->clock.nsec;
|
uint64_t current_time = state->position->clock.nsec;
|
||||||
if ((res = alsa_read_sync(state, current_time)) < 0)
|
alsa_read_sync(state, current_time);
|
||||||
return res;
|
|
||||||
}
|
}
|
||||||
return alsa_read_frames(state);
|
return alsa_read_frames(state);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue