[media] [BUG] it913x-fe fix typo error making SNR levels unstable
authorMalcolm Priestley <tvboxspy@gmail.com>
Tue, 10 Jan 2012 22:45:31 +0000 (19:45 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 11 Jan 2012 01:44:05 +0000 (23:44 -0200)
Fix error where SNR unstable and jumps levels.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/it913x-fe.c

index 7290801eac63b2d2edb38bf25624e8cda349c25b..ccc36bf2deb403b3a7e769963e0659004d34f75d 100644 (file)
@@ -525,7 +525,7 @@ static int it913x_fe_read_snr(struct dvb_frontend *fe, u16 *snr)
 
        ret = it913x_read_reg(state, 0x2c, reg, sizeof(reg));
 
-       snr_val = (u32)(reg[2] << 16) | (reg[1] < 8) | reg[0];
+       snr_val = (u32)(reg[2] << 16) | (reg[1] << 8) | reg[0];
 
        ret |= it913x_read_reg(state, 0xf78b, reg, 1);
        if (reg[0])