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

Commit 8ff9993f authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "SoC: soundwire: Add support to register for event listener"

parents 23104da2 72ee264c
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -22,6 +22,8 @@ enum {
	SWR_REGISTER_WAKE_IRQ,
	SWR_REGISTER_WAKE_IRQ,
	SWR_SET_PORT_MAP,
	SWR_SET_PORT_MAP,
	SWR_REQ_CLK_SWITCH,
	SWR_REQ_CLK_SWITCH,
	SWR_REGISTER_WAKEUP,
	SWR_DEREGISTER_WAKEUP,
};
};


struct swr_mstr_port {
struct swr_mstr_port {
+8 −0
Original line number Original line Diff line number Diff line
@@ -2881,6 +2881,14 @@ int swrm_wcd_notify(struct platform_device *pdev, u32 id, void *data)
			mutex_unlock(&swrm->mlock);
			mutex_unlock(&swrm->mlock);
		}
		}
		break;
		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:
	case SWR_SET_PORT_MAP:
		if (!data) {
		if (!data) {
			dev_err(swrm->dev, "%s: data is NULL for id=%d\n",
			dev_err(swrm->dev, "%s: data is NULL for id=%d\n",