aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/zl10353.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/frontends/zl10353.c')
-rw-r--r--drivers/media/dvb/frontends/zl10353.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/dvb/frontends/zl10353.c b/drivers/media/dvb/frontends/zl10353.c
index ac7237891374..82946cd517f5 100644
--- a/drivers/media/dvb/frontends/zl10353.c
+++ b/drivers/media/dvb/frontends/zl10353.c
@@ -525,7 +525,7 @@ static int zl10353_read_snr(struct dvb_frontend *fe, u16 *snr)
525 zl10353_dump_regs(fe); 525 zl10353_dump_regs(fe);
526 526
527 _snr = zl10353_read_register(state, SNR); 527 _snr = zl10353_read_register(state, SNR);
528 *snr = (_snr << 8) | _snr; 528 *snr = 10 * _snr / 8;
529 529
530 return 0; 530 return 0;
531} 531}
@@ -559,7 +559,6 @@ static int zl10353_init(struct dvb_frontend *fe)
559{ 559{
560 struct zl10353_state *state = fe->demodulator_priv; 560 struct zl10353_state *state = fe->demodulator_priv;
561 u8 zl10353_reset_attach[6] = { 0x50, 0x03, 0x64, 0x46, 0x15, 0x0F }; 561 u8 zl10353_reset_attach[6] = { 0x50, 0x03, 0x64, 0x46, 0x15, 0x0F };
562 int rc = 0;
563 562
564 if (debug_regs) 563 if (debug_regs)
565 zl10353_dump_regs(fe); 564 zl10353_dump_regs(fe);
@@ -573,7 +572,7 @@ static int zl10353_init(struct dvb_frontend *fe)
573 /* Do a "hard" reset if not already done */ 572 /* Do a "hard" reset if not already done */
574 if (zl10353_read_register(state, 0x50) != zl10353_reset_attach[1] || 573 if (zl10353_read_register(state, 0x50) != zl10353_reset_attach[1] ||
575 zl10353_read_register(state, 0x51) != zl10353_reset_attach[2]) { 574 zl10353_read_register(state, 0x51) != zl10353_reset_attach[2]) {
576 rc = zl10353_write(fe, zl10353_reset_attach, 575 zl10353_write(fe, zl10353_reset_attach,
577 sizeof(zl10353_reset_attach)); 576 sizeof(zl10353_reset_attach));
578 if (debug_regs) 577 if (debug_regs)
579 zl10353_dump_regs(fe); 578 zl10353_dump_regs(fe);