Commit a182fd8f authored by Michael Büsch's avatar Michael Büsch Committed by Mauro Carvalho Chehab

[media] fc0011: Reduce number of retries

Now that i2c transfers are fixed, 3 retries are enough.
Signed-off-by: default avatarMichael Buesch <m@bues.ch>
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent de2bec5e
...@@ -314,7 +314,7 @@ static int fc0011_set_params(struct dvb_frontend *fe) ...@@ -314,7 +314,7 @@ static int fc0011_set_params(struct dvb_frontend *fe)
if (err) if (err)
return err; return err;
vco_retries = 0; vco_retries = 0;
while (!(vco_cal & FC11_VCOCAL_OK) && vco_retries < 6) { while (!(vco_cal & FC11_VCOCAL_OK) && vco_retries < 3) {
/* Reset the tuner and try again */ /* Reset the tuner and try again */
err = fe->callback(priv->i2c, DVB_FRONTEND_COMPONENT_TUNER, err = fe->callback(priv->i2c, DVB_FRONTEND_COMPONENT_TUNER,
FC0011_FE_CALLBACK_RESET, priv->addr); FC0011_FE_CALLBACK_RESET, priv->addr);
......
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