ASoC: rouleur: Update hph registers based on foundry id
Rouleur has different hph settings for different foundry id. Read foundry id and update hph settings so as to provide same settings to end user. Change-Id: I114047226462ab95e0c93271c3d6099f15af2343 Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
This commit is contained in:
@@ -88,6 +88,8 @@ struct rouleur_priv {
|
||||
struct notifier_block psy_nb;
|
||||
struct work_struct soc_eval_work;
|
||||
bool low_soc;
|
||||
int foundry_id_reg;
|
||||
int foundry_id;
|
||||
};
|
||||
|
||||
struct rouleur_micbias_setting {
|
||||
@@ -105,6 +107,7 @@ struct rouleur_pdata {
|
||||
struct cdc_regulator *regulator;
|
||||
int num_supplies;
|
||||
int reset_reg;
|
||||
int foundry_id_reg;
|
||||
};
|
||||
|
||||
struct wcd_ctrl_platform_data {
|
||||
@@ -135,6 +138,8 @@ enum {
|
||||
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 */
|
||||
WCD_BOLERO_EVT_HPHL_HD2_ENABLE, /* to enable hd2 config for hphl */
|
||||
WCD_BOLERO_EVT_HPHR_HD2_ENABLE, /* to enable hd2 config for hphr */
|
||||
};
|
||||
|
||||
enum {
|
||||
|
Reference in New Issue
Block a user