atv_demod: Fix ATV audio output noise when switching channels to play [1/1]
authornengwen.chen <nengwen.chen@amlogic.com>
Mon, 11 Mar 2019 06:00:31 +0000 (14:00 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 14 Mar 2019 11:26:49 +0000 (03:26 -0800)
commitd61c99769363495962441dc38c2d3bdbbb1704f0
tree3ab4e0d2684d13ba61603d910697d0d0d4e50798
parentf72576851318cb45879092389033f77f5e916aac
atv_demod: Fix ATV audio output noise when switching channels to play [1/1]

PD#SWPL-2297, PD#SWPL-5450, PD#TV-2311

Problem:
Fix ATV audio output noise when switching channels to play.

Solution:
1.Add the judgment of SNR to prevent the weak signal
  from entering the OV mode.
2.Wait for the signal to be completely stable before OV detection.
3.OV detection is turned off by default,
  and will be turned on again when non-standard signals are encountered.
4.The OV detection moves from afc timer to monitor.
5.Optimize detection of A2/FM.
6.atv demod ver: V2.08.

Verify:
verified by x301

Change-Id: I3064230472ce51e1192a2d08ef6cc6f4ba10abaa
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
drivers/amlogic/atv_demod/atv_demod_afc.c
drivers/amlogic/atv_demod/atv_demod_debug.c
drivers/amlogic/atv_demod/atv_demod_driver.c
drivers/amlogic/atv_demod/atv_demod_monitor.c
drivers/amlogic/atv_demod/atv_demod_monitor.h
drivers/amlogic/atv_demod/atvauddemod_func.c
drivers/amlogic/atv_demod/atvdemod_func.c