static dev_t di_devno;
static struct class *di_clsp;
-static const char version_s[] = "2018-12-04a";
+static const char version_s[] = "2018-12-07a";
static int bypass_state = 1;
static int bypass_all;
void adaptive_cue_adjust(unsigned int frame_diff, unsigned int field_diff)
{
struct CUE_PARM_s *pcue_parm = nr_param.pcue_parm;
+ unsigned int mask1, mask2;
+
+ if (is_meson_tl1_cpu()) {
+ /*value from VLSI(yanling.liu) 2018-12-07: */
+ mask1 = 0x50332;
+ mask2 = 0x00054357;
+ } else { /*ori value*/
+ mask1 = 0x50323;
+ mask2 = 0x00054375;
+ }
if (frame_diff > pcue_parm->glb_mot_framethr) {
pcue_parm->frame_count = pcue_parm->frame_count > 0 ?
/* for clockfuliness clip */
if (pcue_parm->field_count >
(pcue_parm->glb_mot_fieldnum - 6)) {
- Wr(NR2_CUE_MODE, 0x50323|(Rd(NR2_CUE_MODE)&0xc00));
+ Wr(NR2_CUE_MODE, mask1|(Rd(NR2_CUE_MODE)&0xc00));
Wr(NR2_CUE_CON_MOT_TH, 0x03010e01);
} else {
- Wr(NR2_CUE_MODE, 0x00054375|(Rd(NR2_CUE_MODE)&0xc00));
+ Wr(NR2_CUE_MODE, mask2|(Rd(NR2_CUE_MODE)&0xc00));
Wr(NR2_CUE_CON_MOT_TH, 0xa03c8c3c);
}
}