Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72ee264c authored by Sudheer Papothi's avatar Sudheer Papothi
Browse files

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: default avatarSudheer Papothi <spapothi@codeaurora.org>
parent 49ac33f0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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 {
+8 −0
Original line number Diff line number Diff line
@@ -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",