Skip to content

Commit

Permalink
[media] [BUG] it913x-fe fix typo error making SNR levels unstable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Malcolm Priestley authored and Mauro Carvalho Chehab committed Jan 11, 2012
1 parent c147f61 commit 9544e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb/frontends/it913x-fe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 9544e8a

Please sign in to comment.