aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/stv090x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/frontends/stv090x.c')
-rw-r--r--drivers/media/dvb/frontends/stv090x.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/dvb/frontends/stv090x.c b/drivers/media/dvb/frontends/stv090x.c
index 41d0f0a6655d..52d8712411e5 100644
--- a/drivers/media/dvb/frontends/stv090x.c
+++ b/drivers/media/dvb/frontends/stv090x.c
@@ -1424,7 +1424,7 @@ static int stv090x_start_search(struct stv090x_state *state)
1424 if (STV090x_WRITE_DEMOD(state, CFRLOW0, 0x00) < 0) 1424 if (STV090x_WRITE_DEMOD(state, CFRLOW0, 0x00) < 0)
1425 goto err; 1425 goto err;
1426 1426
1427 /*enlarge the timing bandwith for Low SR*/ 1427 /*enlarge the timing bandwidth for Low SR*/
1428 if (STV090x_WRITE_DEMOD(state, RTCS2, 0x68) < 0) 1428 if (STV090x_WRITE_DEMOD(state, RTCS2, 0x68) < 0)
1429 goto err; 1429 goto err;
1430 } else { 1430 } else {
@@ -1432,17 +1432,17 @@ static int stv090x_start_search(struct stv090x_state *state)
1432 Set The carrier search up and low to auto mode */ 1432 Set The carrier search up and low to auto mode */
1433 if (STV090x_WRITE_DEMOD(state, CARCFG, 0xc4) < 0) 1433 if (STV090x_WRITE_DEMOD(state, CARCFG, 0xc4) < 0)
1434 goto err; 1434 goto err;
1435 /*reduce the timing bandwith for high SR*/ 1435 /*reduce the timing bandwidth for high SR*/
1436 if (STV090x_WRITE_DEMOD(state, RTCS2, 0x44) < 0) 1436 if (STV090x_WRITE_DEMOD(state, RTCS2, 0x44) < 0)
1437 goto err; 1437 goto err;
1438 } 1438 }
1439 } else { 1439 } else {
1440 /* >= Cut 3 */ 1440 /* >= Cut 3 */
1441 if (state->srate <= 5000000) { 1441 if (state->srate <= 5000000) {
1442 /* enlarge the timing bandwith for Low SR */ 1442 /* enlarge the timing bandwidth for Low SR */
1443 STV090x_WRITE_DEMOD(state, RTCS2, 0x68); 1443 STV090x_WRITE_DEMOD(state, RTCS2, 0x68);
1444 } else { 1444 } else {
1445 /* reduce timing bandwith for high SR */ 1445 /* reduce timing bandwidth for high SR */
1446 STV090x_WRITE_DEMOD(state, RTCS2, 0x44); 1446 STV090x_WRITE_DEMOD(state, RTCS2, 0x44);
1447 } 1447 }
1448 1448
@@ -2482,7 +2482,7 @@ static int stv090x_sw_algo(struct stv090x_state *state)
2482 dvbs2_fly_wheel = STV090x_GETFIELD_Px(reg, FLYWHEEL_CPT_FIELD); 2482 dvbs2_fly_wheel = STV090x_GETFIELD_Px(reg, FLYWHEEL_CPT_FIELD);
2483 } 2483 }
2484 if (dvbs2_fly_wheel < 0xd) { 2484 if (dvbs2_fly_wheel < 0xd) {
2485 /*FALSE lock, The demod is loosing lock */ 2485 /*FALSE lock, The demod is losing lock */
2486 lock = 0; 2486 lock = 0;
2487 if (trials < 2) { 2487 if (trials < 2) {
2488 if (state->internal->dev_ver >= 0x20) { 2488 if (state->internal->dev_ver >= 0x20) {
@@ -3202,7 +3202,7 @@ static enum stv090x_signal_state stv090x_algo(struct stv090x_state *state)
3202 goto err; 3202 goto err;
3203 if (STV090x_WRITE_DEMOD(state, CORRELMANT, 0x70) < 0) 3203 if (STV090x_WRITE_DEMOD(state, CORRELMANT, 0x70) < 0)
3204 goto err; 3204 goto err;
3205 if (stv090x_set_srate(state, 1000000) < 0) /* inital srate = 1Msps */ 3205 if (stv090x_set_srate(state, 1000000) < 0) /* initial srate = 1Msps */
3206 goto err; 3206 goto err;
3207 } else { 3207 } else {
3208 /* known srate */ 3208 /* known srate */