diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-03-10 08:18:31 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-03-11 07:37:20 -0300 |
commit | 80846a5c2f6650c903e6fa0708030cb6ba1124c8 (patch) | |
tree | 79bf8777fe9a62fb2155c95f010aa0ef186d0a08 | |
parent | 6983257813dcc052cb46639f28ac77f46ec7350f (diff) |
[media] drx-j: Fix detection of no signal
When the signal is 7, it means that no signal was received.
Value experimentally measured.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r-- | drivers/media/dvb-frontends/drx39xyj/drxj.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/drx39xyj/drxj.c b/drivers/media/dvb-frontends/drx39xyj/drxj.c index 9958277dd94..8098d87cda0 100644 --- a/drivers/media/dvb-frontends/drx39xyj/drxj.c +++ b/drivers/media/dvb-frontends/drx39xyj/drxj.c @@ -9420,6 +9420,9 @@ static int get_sig_strength(struct drx_demod_instance *demod, u16 *sig_strength) *sig_strength = (20 * if_gain / if_agc_sns); } + if (*sig_strength <= 7) + *sig_strength = 0; + return 0; rw_error: return -EIO; |