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:
Steve Markgraf
2013-01-16 01:43:45 +01:00
parent 3087e7acde
commit 84f0a9084b
4 changed files with 22 additions and 4 deletions

View File

@ -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 */