Use soundwire device wakeup API to wakeup soundwire master during headset plug detection. Change-Id: Icddd558df382146bb2989926d2e92e627b5a844f Signed-off-by: Sudheer Papothi <[email protected]>
@@ -239,6 +239,11 @@ static void wcd938x_mbhc_program_btn_thr(struct snd_soc_component *component,
static bool wcd938x_mbhc_lock_sleep(struct wcd_mbhc *mbhc, bool lock)
{
+ struct snd_soc_component *component = mbhc->component;
+ struct wcd938x_priv *wcd938x = dev_get_drvdata(component->dev);
+
+ wcd938x->wakeup((void*)wcd938x, lock);
return true;
}