summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends
diff options
context:
space:
mode:
authorMauro Carvalho Chehab2013-10-02 11:43:37 +0200
committerMauro Carvalho Chehab2013-10-02 11:48:15 +0200
commitb4559ace2ca8c88666584279f582b998c6591fb0 (patch)
tree91f534b88a1cd4f219a049b69103b841deddf74c /drivers/media/dvb-frontends
parent[media] media: dvb-frontends: ts2020: Added in a option for frequency divider... (diff)
downloadkernel-qcow2-linux-b4559ace2ca8c88666584279f582b998c6591fb0.tar.gz
kernel-qcow2-linux-b4559ace2ca8c88666584279f582b998c6591fb0.tar.xz
kernel-qcow2-linux-b4559ace2ca8c88666584279f582b998c6591fb0.zip
[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>
Diffstat (limited to 'drivers/media/dvb-frontends')
-rw-r--r--drivers/media/dvb-frontends/ts2020.c3
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,
priv->frequency_div = config->frequency_div;
fe->tuner_priv = priv;
+ if (!priv->frequency_div)
+ priv->frequency_div = 1060000;
+
/* Wake Up the tuner */
if ((0x03 & ts2020_readreg(fe, 0x00)) == 0x00) {
ts2020_writereg(fe, 0x00, 0x01);