From 79793e7d9650b9edab32cb544f1e9e228940e665 Mon Sep 17 00:00:00 2001 From: "nengwen.chen" Date: Mon, 25 Feb 2019 10:26:58 +0800 Subject: [PATCH] atv_demod: Tuner crashes easily when fast finetune [1/1] PD#SWPL-4421 Problem: Tuner crashes easily when fast fine tune Solution: Delay afc work to prevent tuner crash Verify: verified by x301 Change-Id: I011f7c3f71a30f95a9b7aa371d5fabe71f249051 Signed-off-by: nengwen.chen --- drivers/amlogic/atv_demod/atv_demod_afc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/amlogic/atv_demod/atv_demod_afc.c b/drivers/amlogic/atv_demod/atv_demod_afc.c index 6e0f3b437c40..b2ffce0018b0 100644 --- a/drivers/amlogic/atv_demod/atv_demod_afc.c +++ b/drivers/amlogic/atv_demod/atv_demod_afc.c @@ -264,6 +264,7 @@ static void atv_demod_afc_enable(struct atv_demod_afc *afc) afc->offset = 0; afc->no_sig_cnt = 0; afc->pre_step = 0; + afc->timer_delay_cnt = 20; afc->status = AFC_LOCK_STATUS_NULL; add_timer(&afc->timer); afc->state = true; -- 2.34.1