diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-10-02 05:43:37 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-10-02 05:48:15 -0400 |
commit | b4559ace2ca8c88666584279f582b998c6591fb0 (patch) | |
tree | 91f534b88a1cd4f219a049b69103b841deddf74c | |
parent | 03a6727995df6dbef6e0054761e75ecc68b3a6d2 (diff) |
[media] ts2020: keep 1.06 MHz as default value for frequency_div
Changeset 9e8da9e8 added a parameter to specify the frequency
divisor, used by the driver. However, not all places are passing
this parameter. So, preserve the previous default, to avoid breaking
the existing drivers.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r-- | drivers/media/dvb-frontends/ts2020.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/ts2020.c b/drivers/media/dvb-frontends/ts2020.c index 678f13ac4503..9aba044dabed 100644 --- a/drivers/media/dvb-frontends/ts2020.c +++ b/drivers/media/dvb-frontends/ts2020.c | |||
@@ -344,6 +344,9 @@ struct dvb_frontend *ts2020_attach(struct dvb_frontend *fe, | |||
344 | priv->frequency_div = config->frequency_div; | 344 | priv->frequency_div = config->frequency_div; |
345 | fe->tuner_priv = priv; | 345 | fe->tuner_priv = priv; |
346 | 346 | ||
347 | if (!priv->frequency_div) | ||
348 | priv->frequency_div = 1060000; | ||
349 | |||
347 | /* Wake Up the tuner */ | 350 | /* Wake Up the tuner */ |
348 | if ((0x03 & ts2020_readreg(fe, 0x00)) == 0x00) { | 351 | if ((0x03 & ts2020_readreg(fe, 0x00)) == 0x00) { |
349 | ts2020_writereg(fe, 0x00, 0x01); | 352 | ts2020_writereg(fe, 0x00, 0x01); |