Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73156
b: refs/heads/master
c: 7cccccc
h: refs/heads/master
v: v3
  • Loading branch information
Hartmut Birr authored and Mauro Carvalho Chehab committed Nov 4, 2007
1 parent 21de6c2 commit 9476506
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3de0e18b3a5860a296bcff3d94400f3b30b02c86
refs/heads/master: 7cccccc33aa9ab7171ca05c0b59c62912509b23e
4 changes: 4 additions & 0 deletions trunk/drivers/media/dvb/frontends/tda10021.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,11 @@ static int tda10021_read_signal_strength(struct dvb_frontend* fe, u16* strength)
{
struct tda10021_state* state = fe->demodulator_priv;

u8 config = tda10021_readreg(state, 0x02);
u8 gain = tda10021_readreg(state, 0x17);
if (config & 0x02)
/* the agc value is inverted */
gain = ~gain;
*strength = (gain << 8) | gain;

return 0;
Expand Down

0 comments on commit 9476506

Please sign in to comment.