diff options
author | Manu Abraham <manu@linuxtv.org> | 2009-04-09 03:24:53 +0400 |
---|---|---|
committer | Manu Abraham <manu@linuxtv.org> | 2009-04-09 03:24:53 +0400 |
commit | a4d648b94c25506bd0bfa3665c4481d1be4924bd (patch) | |
tree | 550163f0d5690bbc3fda42971a7e3a0ddb8f3bb9 /linux/drivers | |
parent | c3403e5da51196983e3245ef276ee773ed2e9877 (diff) | |
download | mediapointer-dvb-s2-a4d648b94c25506bd0bfa3665c4481d1be4924bd.tar.gz mediapointer-dvb-s2-a4d648b94c25506bd0bfa3665c4481d1be4924bd.tar.bz2 |
Code simplification
From: Manu Abraham <abraham.manu@gmail.com>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/dvb/frontends/stv090x.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/linux/drivers/media/dvb/frontends/stv090x.c b/linux/drivers/media/dvb/frontends/stv090x.c index 17f8d7e41..2044288a3 100644 --- a/linux/drivers/media/dvb/frontends/stv090x.c +++ b/linux/drivers/media/dvb/frontends/stv090x.c @@ -3136,19 +3136,16 @@ static enum stv090x_signal_state stv090x_get_sig_params(struct stv090x_state *st static u32 stv090x_get_tmgoffst(struct stv090x_state *state, u32 srate) { s32 offst_tmg; - s32 pow2; offst_tmg = STV090x_READ_DEMOD(state, TMGREG2) << 16; offst_tmg |= STV090x_READ_DEMOD(state, TMGREG1) << 8; offst_tmg |= STV090x_READ_DEMOD(state, TMGREG0); - pow2 = 1 << 24; - offst_tmg = comp2(offst_tmg, 24); /* 2's complement */ if (!offst_tmg) offst_tmg = 1; - offst_tmg = ((s32) srate * 10) / (pow2 / offst_tmg); + offst_tmg = ((s32) srate * 10) / ((s32) 0x1000000 / offst_tmg); offst_tmg /= 320; return offst_tmg; |