diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2008-01-02 23:17:45 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:04:37 -0500 |
commit | 2ba65d517b91ebb30f4f2a88f1e1beeabd8d8ee6 (patch) | |
tree | b19f9930f28914d4a0cf23e9e72cea87872001db /drivers/media/dvb/frontends/tda18271-fe.c | |
parent | f21e0d7f0513e743b14df3197fdeeb9a9b7edbb2 (diff) |
V4L/DVB (6963): tda18271: store IF frequency in a u16 instead of u32
Store IF Frequency in a u16 instead of a u32. Multiply by 1000 before use.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends/tda18271-fe.c')
-rw-r--r-- | drivers/media/dvb/frontends/tda18271-fe.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/media/dvb/frontends/tda18271-fe.c b/drivers/media/dvb/frontends/tda18271-fe.c index b17ab4ace08..a02d6404f75 100644 --- a/drivers/media/dvb/frontends/tda18271-fe.c +++ b/drivers/media/dvb/frontends/tda18271-fe.c | |||
@@ -770,8 +770,8 @@ static int tda18271_set_params(struct dvb_frontend *fe, | |||
770 | struct tda18271_priv *priv = fe->tuner_priv; | 770 | struct tda18271_priv *priv = fe->tuner_priv; |
771 | struct tda18271_std_map *std_map = &priv->std; | 771 | struct tda18271_std_map *std_map = &priv->std; |
772 | u8 std; | 772 | u8 std; |
773 | u32 bw, sgIF = 0; | 773 | u16 sgIF; |
774 | u32 freq = params->frequency; | 774 | u32 bw, freq = params->frequency; |
775 | 775 | ||
776 | BUG_ON(!priv->tune); | 776 | BUG_ON(!priv->tune); |
777 | 777 | ||
@@ -825,7 +825,7 @@ static int tda18271_set_params(struct dvb_frontend *fe, | |||
825 | return -EINVAL; | 825 | return -EINVAL; |
826 | } | 826 | } |
827 | 827 | ||
828 | return priv->tune(fe, sgIF, freq, bw, std); | 828 | return priv->tune(fe, sgIF * 1000, freq, bw, std); |
829 | } | 829 | } |
830 | 830 | ||
831 | static int tda18271_set_analog_params(struct dvb_frontend *fe, | 831 | static int tda18271_set_analog_params(struct dvb_frontend *fe, |
@@ -835,7 +835,8 @@ static int tda18271_set_analog_params(struct dvb_frontend *fe, | |||
835 | struct tda18271_std_map *std_map = &priv->std; | 835 | struct tda18271_std_map *std_map = &priv->std; |
836 | char *mode; | 836 | char *mode; |
837 | u8 std; | 837 | u8 std; |
838 | u32 sgIF, freq = params->frequency * 62500; | 838 | u16 sgIF; |
839 | u32 freq = params->frequency * 62500; | ||
839 | 840 | ||
840 | BUG_ON(!priv->tune); | 841 | BUG_ON(!priv->tune); |
841 | 842 | ||
@@ -877,7 +878,7 @@ static int tda18271_set_analog_params(struct dvb_frontend *fe, | |||
877 | 878 | ||
878 | tda_dbg("setting tda18271 to system %s\n", mode); | 879 | tda_dbg("setting tda18271 to system %s\n", mode); |
879 | 880 | ||
880 | return priv->tune(fe, sgIF, freq, 0, std); | 881 | return priv->tune(fe, sgIF * 1000, freq, 0, std); |
881 | } | 882 | } |
882 | 883 | ||
883 | static int tda18271_release(struct dvb_frontend *fe) | 884 | static int tda18271_release(struct dvb_frontend *fe) |