PD#SWPL-14610
Problem:
121.25MHz PAL-M Recognized to NTSC-M
Solution:
add reinit tvafe function for atv demod rescan
Verify:
x301
Change-Id: I8d303374f3e1e6e3c84e81d4332735b6687df01b
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
{
tvafe_pr_info("%s: %d\n", __func__, mode);
tvafe_mode = mode;
+ reinit_scan = true;
return 0;
}
static bool scene_colorful_old;
static int lock_cnt;
static bool ntsc50_en;
+bool reinit_scan;
static int cdto_adj_th = TVAFE_CVD2_CDTO_ADJ_TH;
module_param(cdto_adj_th, int, 0664);
tvafe_cvd2_search_video_mode(cvd2, mem);
/* init if no signal input */
- if (cvd2->hw.no_sig) {
+ if (cvd2->hw.no_sig || reinit_scan) {
+ reinit_scan = false;
ret = true;
tvafe_cvd2_reinit(cvd2);
} else {
extern void tvafe_cvd2_non_std_config(struct tvafe_cvd2_s *cvd2);
extern bool tvafe_snow_function_flag;
+extern bool reinit_scan;
extern unsigned int try_fmt_max_atv;
extern unsigned int try_fmt_max_av;