ASoC: rouleur: Change hph and ear gain according to soc capacity
Register to power supply framework to get soc capacity. Reduce ear and hph gain for reduced voltage to optimize power consumption. Also set LD22 voltage to lower value for low SoC. Change-Id: I94de9341b8c7307128d3cd41c7398c31d57fa685 Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
b2ab0d8947
commit
48029da3fe
@@ -85,6 +85,9 @@ struct rouleur_priv {
|
||||
struct mutex main_bias_lock;
|
||||
bool dev_up;
|
||||
bool usbc_hs_status;
|
||||
struct notifier_block psy_nb;
|
||||
struct work_struct soc_eval_work;
|
||||
bool low_soc;
|
||||
};
|
||||
|
||||
struct rouleur_micbias_setting {
|
||||
@@ -131,6 +134,7 @@ enum {
|
||||
WCD_BOLERO_EVT_IMPED_FALSE, /* for imped false */
|
||||
WCD_BOLERO_EVT_RX_COMPANDER_SOFT_RST,
|
||||
WCD_BOLERO_EVT_BCS_CLK_OFF,
|
||||
WCD_BOLERO_EVT_RX_PA_GAIN_UPDATE, /* To reduce PA gain for low SoC */
|
||||
};
|
||||
|
||||
enum {
|
||||
|
Reference in New Issue
Block a user