Commit 8c6c365b authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

softpll: starting ptracker should clear its' state

parent b6ec8446
...@@ -27,6 +27,13 @@ static void ptracker_init(struct spll_ptracker_state *s, int id_a, int id_b, int ...@@ -27,6 +27,13 @@ static void ptracker_init(struct spll_ptracker_state *s, int id_a, int id_b, int
static void ptracker_start(struct spll_ptracker_state *s) static void ptracker_start(struct spll_ptracker_state *s)
{ {
s->tag_a = s->tag_b = -1;
s->ready = 0;
s->acc = 0;
s->avg_count = 0;
s->sample_n= 0;
s->preserve_sign = 0;
spll_enable_tagger(s->id_a, 1); spll_enable_tagger(s->id_a, 1);
spll_enable_tagger(s->id_b, 1); spll_enable_tagger(s->id_b, 1);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment