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: Bhalchandra Gajare <gajare@codeaurora.org>
This commit is contained in:
parent
057bdafd97
commit
1e2d8b2132
3 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue