diff options
author | Devin Heitmueller <dheitmueller@kernellabs.com> | 2011-07-24 16:23:09 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 16:56:05 -0400 |
commit | d749fb663ef3b891ca5f30650ec2089ec945ce07 (patch) | |
tree | d204c3af951dc39b8a77804e180fe358a0fcde6b | |
parent | de99d5328c6d54694471da28711a05adec708c3b (diff) |
[media] au8522: set signal field to 100% when signal present
The signal state field in G_TUNER is typically scaled from 0-100%. Since we
don't know the signal level, we really would prefer the field to contain 100%
than 1/256, which in many utilities (such as v4l2-ctl) rounds to 0% even when
a signal is actually present.
This patch makes the behavior consistent with other drivers.
Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/dvb/frontends/au8522_decoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/au8522_decoder.c b/drivers/media/dvb/frontends/au8522_decoder.c index b537891a4cc9..2b248c12f404 100644 --- a/drivers/media/dvb/frontends/au8522_decoder.c +++ b/drivers/media/dvb/frontends/au8522_decoder.c | |||
@@ -692,7 +692,7 @@ static int au8522_g_tuner(struct v4l2_subdev *sd, struct v4l2_tuner *vt) | |||
692 | /* Interrogate the decoder to see if we are getting a real signal */ | 692 | /* Interrogate the decoder to see if we are getting a real signal */ |
693 | lock_status = au8522_readreg(state, 0x00); | 693 | lock_status = au8522_readreg(state, 0x00); |
694 | if (lock_status == 0xa2) | 694 | if (lock_status == 0xa2) |
695 | vt->signal = 0x01; | 695 | vt->signal = 0xffff; |
696 | else | 696 | else |
697 | vt->signal = 0x00; | 697 | vt->signal = 0x00; |
698 | 698 | ||