atv_demod: fix frequency closer when channel searching [1/1]

PD#TV-6452, PD#TV-6643, PD#TV-6144

Problem:
fix frequency closer when channel searching.

Solution:
1.fix frequency closer when channel searching.
2.Frequency offset cause errors in CVBS or audio recognition.

Verify:
Verified by x301

Change-Id: Ieab13a5b5d8d901cfc61ea09e5e47eb9e938bf34
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
This commit is contained in:
nengwen.chen
2019-06-06 17:35:19 +08:00
committed by Tao Zeng
parent 5ff88f14fe
commit 150b354ece

View File

@@ -800,8 +800,8 @@ static int atvdemod_fe_afc_closer(struct v4l2_frontend *v4l2_fe, int minafcfreq,
struct v4l2_analog_parameters *p = &v4l2_fe->params;
struct analog_parameters params;
struct atv_demod_priv *priv = fe->analog_demod_priv;
int afc = 0;
__u32 set_freq;
int afc = 100;
__u32 set_freq = 0;
int count = 25;
int lock_cnt = 0;
static int freq_success;