Merge "asoc: codec: Add surge reset routine for wcd939x"
Este commit está contenido en:

cometido por
Gerrit - the friendly Code Review server

commit
eff813c736
@@ -1319,6 +1319,14 @@ static void wcd939x_mbhc_bcs_enable(struct wcd_mbhc *mbhc,
|
||||
wcd939x_disable_bcs_before_slow_insert(mbhc->component, true);
|
||||
}
|
||||
|
||||
static void wcd939x_surge_reset_routine(struct wcd_mbhc *mbhc)
|
||||
{
|
||||
struct wcd939x_priv *wcd939x = snd_soc_component_get_drvdata(mbhc->component);
|
||||
|
||||
regcache_mark_dirty(wcd939x->regmap);
|
||||
regcache_sync(wcd939x->regmap);
|
||||
}
|
||||
|
||||
static const struct wcd_mbhc_cb mbhc_cb = {
|
||||
.request_irq = wcd939x_mbhc_request_irq,
|
||||
.irq_control = wcd939x_mbhc_irq_control,
|
||||
@@ -1344,6 +1352,7 @@ static const struct wcd_mbhc_cb mbhc_cb = {
|
||||
.mbhc_moisture_polling_ctrl = wcd939x_mbhc_moisture_polling_ctrl,
|
||||
.mbhc_moisture_detect_en = wcd939x_mbhc_moisture_detect_en,
|
||||
.bcs_enable = wcd939x_mbhc_bcs_enable,
|
||||
.surge_reset_routine = wcd939x_surge_reset_routine,
|
||||
};
|
||||
|
||||
static int wcd939x_get_hph_type(struct snd_kcontrol *kcontrol,
|
||||
|
Referencia en una nueva incidencia
Block a user