Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80846a5c authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[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: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 69832578
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;