From 0c3c356d19ce39655dc9f94c94d68d2ab16d2152 Mon Sep 17 00:00:00 2001 From: Steve Markgraf Date: Sun, 9 Sep 2012 17:45:00 +0200 Subject: [PATCH] tuner_r820t: don't perform IMR calibration on init This takes simply too much time (almost 3 seconds) and doesn't really seem to make any difference for our use case. Signed-off-by: Steve Markgraf --- src/tuner_r820t.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tuner_r820t.c b/src/tuner_r820t.c index 17fc594..d1a5e64 100644 --- a/src/tuner_r820t.c +++ b/src/tuner_r820t.c @@ -981,11 +981,11 @@ R828_ErrCode R828_Init(void *pTuner) if(R828_IMR_done_flag==FALSE) { - +#if 0 //write initial reg if(R828_InitReg(pTuner) != RT_Success) return RT_Fail; - +#endif //Do Xtal check if((Rafael_Chip==R820T) || (Rafael_Chip==R828S) || (Rafael_Chip==R820C)) { @@ -1022,7 +1022,7 @@ R828_ErrCode R828_Init(void *pTuner) R828_Fil_Cal_flag[i] = FALSE; R828_Fil_Cal_code[i] = 0; } - +#if 0 //start imr cal. if(R828_InitReg(pTuner) != RT_Success) //write initial reg before doing cal return RT_Fail; @@ -1046,6 +1046,7 @@ R828_ErrCode R828_Init(void *pTuner) return RT_Fail; R828_IMR_done_flag = TRUE; +#endif } //write initial reg