summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/tda18271-fe.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/dvb/frontends/tda18271-fe.c')
-rw-r--r--linux/drivers/media/dvb/frontends/tda18271-fe.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda18271-fe.c b/linux/drivers/media/dvb/frontends/tda18271-fe.c
index ef4263e37..c3cef57e8 100644
--- a/linux/drivers/media/dvb/frontends/tda18271-fe.c
+++ b/linux/drivers/media/dvb/frontends/tda18271-fe.c
@@ -799,8 +799,8 @@ static int tda18271_set_params(struct dvb_frontend *fe,
struct tda18271_priv *priv = fe->tuner_priv;
struct tda18271_std_map *std_map = &priv->std;
u8 std;
- u32 bw, sgIF = 0;
- u32 freq = params->frequency;
+ u16 sgIF;
+ u32 bw, freq = params->frequency;
BUG_ON(!priv->tune);
@@ -854,7 +854,7 @@ static int tda18271_set_params(struct dvb_frontend *fe,
return -EINVAL;
}
- return priv->tune(fe, sgIF, freq, bw, std);
+ return priv->tune(fe, sgIF * 1000, freq, bw, std);
}
static int tda18271_set_analog_params(struct dvb_frontend *fe,
@@ -864,7 +864,8 @@ static int tda18271_set_analog_params(struct dvb_frontend *fe,
struct tda18271_std_map *std_map = &priv->std;
char *mode;
u8 std;
- u32 sgIF, freq = params->frequency * 62500;
+ u16 sgIF;
+ u32 freq = params->frequency * 62500;
BUG_ON(!priv->tune);
@@ -910,7 +911,7 @@ static int tda18271_set_analog_params(struct dvb_frontend *fe,
#endif
tda_dbg("setting tda18271 to system %s\n", mode);
- return priv->tune(fe, sgIF, freq, 0, std);
+ return priv->tune(fe, sgIF * 1000, freq, 0, std);
}
static int tda18271_release(struct dvb_frontend *fe)