alsa: set the driver rate in the clock io

Rename some variables to make it clear that we are dealing with the rate
and duration of the driver.
Set the driver rate in the clock instead of the target_rate, which we
might have rejected.
This commit is contained in:
Wim Taymans 2023-09-20 11:32:34 +02:00
parent 20db9e2d70
commit a56ed47c5e
2 changed files with 25 additions and 23 deletions

View file

@ -153,7 +153,6 @@ struct state {
size_t frame_size;
size_t frame_scale;
int blocks;
uint32_t rate_denom;
uint32_t delay;
uint32_t read_size;
uint32_t max_read;
@ -195,7 +194,9 @@ struct state {
uint32_t max_delay;
uint32_t htimestamp_error;
uint32_t duration;
struct spa_fraction driver_rate;
uint32_t driver_duration;
unsigned int alsa_started:1;
unsigned int alsa_sync:1;
unsigned int alsa_sync_warning:1;