mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2025-01-13 19:57:18 +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(R828_IMR_done_flag==FALSE)
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
//write initial reg
|
//write initial reg
|
||||||
if(R828_InitReg(pTuner) != RT_Success)
|
if(R828_InitReg(pTuner) != RT_Success)
|
||||||
return RT_Fail;
|
return RT_Fail;
|
||||||
|
#endif
|
||||||
//Do Xtal check
|
//Do Xtal check
|
||||||
if((Rafael_Chip==R820T) || (Rafael_Chip==R828S) || (Rafael_Chip==R820C))
|
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_flag[i] = FALSE;
|
||||||
R828_Fil_Cal_code[i] = 0;
|
R828_Fil_Cal_code[i] = 0;
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
//start imr cal.
|
//start imr cal.
|
||||||
if(R828_InitReg(pTuner) != RT_Success) //write initial reg before doing cal
|
if(R828_InitReg(pTuner) != RT_Success) //write initial reg before doing cal
|
||||||
return RT_Fail;
|
return RT_Fail;
|
||||||
@ -1046,6 +1046,7 @@ R828_ErrCode R828_Init(void *pTuner)
|
|||||||
return RT_Fail;
|
return RT_Fail;
|
||||||
|
|
||||||
R828_IMR_done_flag = TRUE;
|
R828_IMR_done_flag = TRUE;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
//write initial reg
|
//write initial reg
|
||||||
|
Loading…
Reference in New Issue
Block a user