diff options
author | Andreas Regel <andreas.regel@gmx.de> | 2009-11-13 16:15:27 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:41:29 -0500 |
commit | b671a8d4b68626142a9a34da59c55396d2cf0ce9 (patch) | |
tree | fbfa33f6852a8106edbc110a14d2a29b4b2f8d33 /drivers | |
parent | dbeb7dbf867dc976c66332e6f2c3e24bf87df258 (diff) |
V4L/DVB (13354): stv090x: fixes some typos like wrong register or variable names
Signed-off-by: Andreas Regel <andreas.regel@gmx.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb/frontends/stv090x.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/dvb/frontends/stv090x.c b/drivers/media/dvb/frontends/stv090x.c index e74419b682d3..fe03bac5b2e4 100644 --- a/drivers/media/dvb/frontends/stv090x.c +++ b/drivers/media/dvb/frontends/stv090x.c | |||
@@ -825,7 +825,7 @@ static int stv090x_set_min_srate(struct stv090x_state *state, u32 clk, u32 srate | |||
825 | sym /= (state->mclk >> 7); | 825 | sym /= (state->mclk >> 7); |
826 | } | 826 | } |
827 | 827 | ||
828 | if (STV090x_WRITE_DEMOD(state, SFRLOW1, ((sym >> 8) & 0xff)) < 0) /* MSB */ | 828 | if (STV090x_WRITE_DEMOD(state, SFRLOW1, ((sym >> 8) & 0x7f)) < 0) /* MSB */ |
829 | goto err; | 829 | goto err; |
830 | if (STV090x_WRITE_DEMOD(state, SFRLOW0, (sym & 0xff)) < 0) /* LSB */ | 830 | if (STV090x_WRITE_DEMOD(state, SFRLOW0, (sym & 0xff)) < 0) /* LSB */ |
831 | goto err; | 831 | goto err; |
@@ -1317,7 +1317,7 @@ static int stv090x_start_search(struct stv090x_state *state) | |||
1317 | goto err; | 1317 | goto err; |
1318 | if (STV090x_WRITE_DEMOD(state, CFRUP1, 0x0f) < 0) | 1318 | if (STV090x_WRITE_DEMOD(state, CFRUP1, 0x0f) < 0) |
1319 | goto err; | 1319 | goto err; |
1320 | if (STV090x_WRITE_DEMOD(state, CFRUP1, 0xff) < 0) | 1320 | if (STV090x_WRITE_DEMOD(state, CFRUP0, 0xff) < 0) |
1321 | goto err; | 1321 | goto err; |
1322 | if (STV090x_WRITE_DEMOD(state, CFRLOW1, 0xf0) < 0) | 1322 | if (STV090x_WRITE_DEMOD(state, CFRLOW1, 0xf0) < 0) |
1323 | goto err; | 1323 | goto err; |
@@ -1371,7 +1371,7 @@ static int stv090x_start_search(struct stv090x_state *state) | |||
1371 | 1371 | ||
1372 | if (STV090x_WRITE_DEMOD(state, CFRUP1, MSB(freq)) < 0) | 1372 | if (STV090x_WRITE_DEMOD(state, CFRUP1, MSB(freq)) < 0) |
1373 | goto err; | 1373 | goto err; |
1374 | if (STV090x_WRITE_DEMOD(state, CFRUP1, LSB(freq)) < 0) | 1374 | if (STV090x_WRITE_DEMOD(state, CFRUP0, LSB(freq)) < 0) |
1375 | goto err; | 1375 | goto err; |
1376 | 1376 | ||
1377 | freq *= -1; | 1377 | freq *= -1; |
@@ -1525,7 +1525,7 @@ static int stv090x_get_agc2_min_level(struct stv090x_state *state) | |||
1525 | else | 1525 | else |
1526 | freq_init = freq_init - (freq_step * i); | 1526 | freq_init = freq_init - (freq_step * i); |
1527 | 1527 | ||
1528 | dir = -1; | 1528 | dir *= -1; |
1529 | 1529 | ||
1530 | if (STV090x_WRITE_DEMOD(state, DMDISTATE, 0x5c) < 0) /* Demod RESET */ | 1530 | if (STV090x_WRITE_DEMOD(state, DMDISTATE, 0x5c) < 0) /* Demod RESET */ |
1531 | goto err; | 1531 | goto err; |
@@ -2425,7 +2425,7 @@ static s32 stv090x_get_car_freq(struct stv090x_state *state, u32 mclk) | |||
2425 | 2425 | ||
2426 | derot = (int_1 * int_2) + | 2426 | derot = (int_1 * int_2) + |
2427 | ((int_1 * tmp_2) >> 12) + | 2427 | ((int_1 * tmp_2) >> 12) + |
2428 | ((int_1 * tmp_1) >> 12); | 2428 | ((int_2 * tmp_1) >> 12); |
2429 | 2429 | ||
2430 | return derot; | 2430 | return derot; |
2431 | } | 2431 | } |
@@ -2732,7 +2732,7 @@ static int stv090x_optimize_track(struct stv090x_state *state) | |||
2732 | switch (state->delsys) { | 2732 | switch (state->delsys) { |
2733 | case STV090x_DVBS1: | 2733 | case STV090x_DVBS1: |
2734 | case STV090x_DSS: | 2734 | case STV090x_DSS: |
2735 | if (state->algo == STV090x_SEARCH_AUTO) { | 2735 | if (state->search_mode == STV090x_SEARCH_AUTO) { |
2736 | reg = STV090x_READ_DEMOD(state, DMDCFGMD); | 2736 | reg = STV090x_READ_DEMOD(state, DMDCFGMD); |
2737 | STV090x_SETFIELD_Px(reg, DVBS1_ENABLE_FIELD, 1); | 2737 | STV090x_SETFIELD_Px(reg, DVBS1_ENABLE_FIELD, 1); |
2738 | STV090x_SETFIELD_Px(reg, DVBS2_ENABLE_FIELD, 0); | 2738 | STV090x_SETFIELD_Px(reg, DVBS2_ENABLE_FIELD, 0); |