mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2024-12-25 18:38:29 +01:00
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 <steve@steve-m.de>
This commit is contained in:
parent
9f3f44e03b
commit
0c3c356d19
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user