alsa: rework the state sync code

Make one function to sync the state with the realtime thread.
This commit is contained in:
Wim Taymans 2023-09-18 14:46:56 +02:00
parent 86f1d14b72
commit c51f6ccbd7
2 changed files with 40 additions and 64 deletions

View file

@ -203,6 +203,7 @@ struct state {
unsigned int multi_rate:1;
unsigned int htimestamp:1;
unsigned int is_pro:1;
unsigned int sources_added:1;
uint64_t iec958_codecs;