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:

committad av
Meng Wang

förälder
6abd2debae
incheckning
b6dda1e6be
@@ -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;
|
||||
}
|
||||
|
||||
|
Referens i nytt ärende
Block a user