mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2025-06-30 23:07:51 +02:00
lib: enable standby mode of e4k and r820t on exit
Since the R820T is a power hog and gets quite hot, this makes sense, especially when being battery- powered. Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
@ -880,6 +880,19 @@ int e4k_dc_offset_gen_table(struct e4k_state *e4k)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* Standby */
|
||||
|
||||
/*! \brief Enable/disable standby mode
|
||||
*/
|
||||
int e4k_standby(struct e4k_state *e4k, int enable)
|
||||
{
|
||||
e4k_reg_set_mask(e4k, E4K_REG_MASTER1, E4K_MASTER1_NORM_STBY,
|
||||
enable ? 0 : E4K_MASTER1_NORM_STBY);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* Initialization */
|
||||
|
||||
|
Reference in New Issue
Block a user