Prechádzať zdrojové kódy

asoc: wcd938x: wakeup device during headset detection

Use soundwire device wakeup API to wakeup soundwire master
during headset plug detection.

Change-Id: Icddd558df382146bb2989926d2e92e627b5a844f
Signed-off-by: Sudheer Papothi <[email protected]>
Sudheer Papothi 5 rokov pred
rodič
commit
6a9cb8b6bd
1 zmenil súbory, kde vykonal 5 pridanie a 0 odobranie
  1. 5 0
      asoc/codecs/wcd938x/wcd938x-mbhc.c

+ 5 - 0
asoc/codecs/wcd938x/wcd938x-mbhc.c

@@ -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;
 }