alsa: various improvements

Remove some magic constants that are not needed anymore with the
headroom.
Clamp the error to some reasonable value so that we don't adjust the
rate too much but still apply all of the correction calculated by the
dll.
Remove the bandwidth adjustment.
Also update the matching and resample fields when we reassign the
node to a new driver. This could cause the new follower to not activate
the adaptive resampler and get out of sync.
This commit is contained in:
Wim Taymans 2021-03-03 15:40:10 +01:00
parent c8804c3d6d
commit 8981e11c53
2 changed files with 40 additions and 31 deletions

View file

@ -173,9 +173,9 @@ struct state {
uint64_t base_time;
uint64_t underrun;
double safety;
struct spa_dll dll;
double max_error;
};
int