asoc: wcd937x: use swr device wakeup api

Use device wakeup api exposed by soundwire to
vote and unvote for soundwire master for mbhc
operations.

Change-Id: Id83c8d3fb2eb351133790f69af56e4981bcac543
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
This commit is contained in:
Ramprasad Katkam
2018-10-23 18:25:30 +05:30
committad av Meng Wang
förälder 6abd2debae
incheckning b6dda1e6be
3 ändrade filer med 25 tillägg och 2 borttagningar

Visa fil

@@ -240,6 +240,10 @@ static void wcd937x_mbhc_program_btn_thr(struct snd_soc_component *component,
static bool wcd937x_mbhc_lock_sleep(struct wcd_mbhc *mbhc, bool lock)
{
struct snd_soc_component *component = mbhc->component;
struct wcd937x_priv *wcd937x = dev_get_drvdata(component->dev);
wcd937x->wakeup((void*)wcd937x, lock);
return true;
}