mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
SoC: soundwire: Add support to register for event listener
Add support to register/deregister for event listener to listen to headset interrupt events during low power island mode. Change-Id: I9d05261003ef9e4783e03b3acb529c864c07cbec Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
This commit is contained in:
parent
49ac33f0a1
commit
72ee264c0c
2 changed files with 10 additions and 0 deletions
|
|
@ -22,6 +22,8 @@ enum {
|
|||
SWR_REGISTER_WAKE_IRQ,
|
||||
SWR_SET_PORT_MAP,
|
||||
SWR_REQ_CLK_SWITCH,
|
||||
SWR_REGISTER_WAKEUP,
|
||||
SWR_DEREGISTER_WAKEUP,
|
||||
};
|
||||
|
||||
struct swr_mstr_port {
|
||||
|
|
|
|||
|
|
@ -2871,6 +2871,14 @@ int swrm_wcd_notify(struct platform_device *pdev, u32 id, void *data)
|
|||
mutex_unlock(&swrm->mlock);
|
||||
}
|
||||
break;
|
||||
case SWR_REGISTER_WAKEUP:
|
||||
msm_aud_evt_blocking_notifier_call_chain(
|
||||
SWR_WAKE_IRQ_REGISTER, (void *)swrm);
|
||||
break;
|
||||
case SWR_DEREGISTER_WAKEUP:
|
||||
msm_aud_evt_blocking_notifier_call_chain(
|
||||
SWR_WAKE_IRQ_DEREGISTER, (void *)swrm);
|
||||
break;
|
||||
case SWR_SET_PORT_MAP:
|
||||
if (!data) {
|
||||
dev_err(swrm->dev, "%s: data is NULL for id=%d\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue