mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
asoc: fix lsm_event_handler function type
Bug: 79254874 Bug: 67506682 Change-Id: I520634c3b55580004c38174bcf10513cf5f4fd3f Signed-off-by: Sami Tolvanen <samitolvanen@google.com> Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
This commit is contained in:
parent
0bf1f57c59
commit
6572b9d0e5
1 changed files with 3 additions and 3 deletions
|
|
@ -196,7 +196,7 @@ static int lsm_lab_buffer_sanity(struct lsm_priv *prtd,
|
|||
}
|
||||
|
||||
static void lsm_event_handler(uint32_t opcode, uint32_t token,
|
||||
void *payload, void *priv)
|
||||
uint32_t *payload, void *priv)
|
||||
{
|
||||
unsigned long flags;
|
||||
struct lsm_priv *prtd = priv;
|
||||
|
|
@ -219,7 +219,7 @@ static void lsm_event_handler(uint32_t opcode, uint32_t token,
|
|||
switch (opcode) {
|
||||
case LSM_DATA_EVENT_READ_DONE: {
|
||||
int rc;
|
||||
struct lsm_cmd_read_done *read_done = payload;
|
||||
struct lsm_cmd_read_done *read_done = (struct lsm_cmd_read_done *)payload;
|
||||
int buf_index = 0;
|
||||
|
||||
if (prtd->lsm_client->session != token ||
|
||||
|
|
@ -2204,7 +2204,7 @@ static int msm_lsm_open(struct snd_pcm_substream *substream)
|
|||
pr_info("%s: constraint for buffer bytes step ret = %d\n",
|
||||
__func__, ret);
|
||||
prtd->lsm_client = q6lsm_client_alloc(
|
||||
(lsm_app_cb)lsm_event_handler, prtd);
|
||||
lsm_event_handler, prtd);
|
||||
if (!prtd->lsm_client) {
|
||||
pr_err("%s: Could not allocate memory\n", __func__);
|
||||
kfree(prtd);
|
||||
|
|
|
|||
Loading…
Reference in a new issue