alsa: rework source a little in the case of slave

When we are slaved, read as much data as we have available and return
this from process.
This commit is contained in:
Wim Taymans 2019-04-11 16:44:07 +02:00
parent 8b1e5fedc9
commit 715594c6ef
4 changed files with 124 additions and 100 deletions

View file

@ -647,6 +647,9 @@ static int impl_node_process(struct spa_node *node)
io->buffer_id = SPA_ID_INVALID;
}
if (spa_list_is_empty(&this->ready))
spa_alsa_read(this, 0);
if (spa_list_is_empty(&this->ready))
return SPA_STATUS_OK;