alsa: refactor read and write functions

Separate the sync logic from the read/write functions so that we can use
it in the wakeup logic as well.
This commit is contained in:
Wim Taymans 2023-09-15 12:21:18 +02:00
parent cc1d980f0a
commit c6745ed0d0
2 changed files with 116 additions and 100 deletions

View file

@ -147,6 +147,7 @@ struct state {
uint32_t rate_denom;
uint32_t delay;
uint32_t read_size;
uint32_t max_read;
uint64_t port_info_all;
struct spa_port_info port_info;