Commit 5566c822 authored by Alessandro Rubini's avatar Alessandro Rubini

softpll-unify: set pi->y like wr-switch-sw does

The commit is part of the effort in unifying softpll with
wr-switch-sw, and later remove the duplicated code there.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 34f51da8
......@@ -45,6 +45,7 @@ int pi_update(spll_pi_t *pi, int x)
void pi_init(spll_pi_t *pi)
{
pi->integrator = 0;
pi->y = pi->bias;
}
/* Lock detector state machine. Takes an error sample (y) and checks
......
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