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

Commit 1e2d8b21 authored by Bhalchandra Gajare's avatar Bhalchandra Gajare Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: wcd-dsp-mgr: add argument to the interrupt handler callback



Currently, when manager driver interrupt handler callback is called,
there is no way for the caller to provide any data information along
with the type of interrupt. Change adds argument to the interrupt
handler so that callers can use this to pass agreed data when an
interrupt occurs.

Change-Id: I1c049227875a802491e21998c13c0bcd8eab7de6
Signed-off-by: default avatarBhalchandra Gajare <gajare@codeaurora.org>
parent 057bdafd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ struct wdsp_mgr_ops {
	struct device *(*get_dev_for_cmpnt)(struct device *wdsp_dev,
					    enum wdsp_cmpnt_type type);
	int (*intr_handler)(struct device *wdsp_dev,
			      enum wdsp_intr intr);
			      enum wdsp_intr intr, void *arg);
	int (*vote_for_dsp)(struct device *wdsp_dev, bool vote);
	int (*suspend)(struct device *wdsp_dev);
	int (*resume)(struct device *wdsp_dev);
+1 −1
Original line number Diff line number Diff line
@@ -479,7 +479,7 @@ static struct device *wdsp_get_dev_for_cmpnt(struct device *wdsp_dev,
}

static int wdsp_intr_handler(struct device *wdsp_dev,
			     enum wdsp_intr intr)
			     enum wdsp_intr intr, void *arg)
{
	struct wdsp_mgr_priv *wdsp;
	int ret;
+2 −1
Original line number Diff line number Diff line
@@ -553,7 +553,8 @@ static irqreturn_t wcd_cntl_ipc_irq(int irq, void *data)

	if (cntl->m_dev && cntl->m_ops &&
	    cntl->m_ops->intr_handler)
		ret = cntl->m_ops->intr_handler(cntl->m_dev, WDSP_IPC1_INTR);
		ret = cntl->m_ops->intr_handler(cntl->m_dev, WDSP_IPC1_INTR,
						NULL);
	else
		ret = -EINVAL;