Loading asoc/msm-pcm-q6-noirq.c +14 −0 Original line number Diff line number Diff line Loading @@ -153,6 +153,8 @@ static const struct soc_enum msm_pcm_fe_topology_enum[] = { static void event_handler(uint32_t opcode, uint32_t token, uint32_t *payload, void *priv) { struct msm_audio *prtd = priv; struct snd_pcm_substream *substream; uint32_t *ptrmem = (uint32_t *)payload; switch (opcode) { Loading @@ -171,6 +173,18 @@ static void event_handler(uint32_t opcode, break; } break; case RESET_EVENTS: if (!prtd || !prtd->substream) { pr_err("%s: prtd or substream is NULL\n", __func__); return; } substream = prtd->substream; if (!substream->runtime || !substream->runtime->status) { pr_err("%s: runtime or runtime->status is NULL\n", __func__); return; } substream->runtime->status->state = SNDRV_PCM_STATE_DISCONNECTED; break; default: pr_debug("Not Supported Event opcode[0x%x]\n", opcode); break; Loading Loading
asoc/msm-pcm-q6-noirq.c +14 −0 Original line number Diff line number Diff line Loading @@ -153,6 +153,8 @@ static const struct soc_enum msm_pcm_fe_topology_enum[] = { static void event_handler(uint32_t opcode, uint32_t token, uint32_t *payload, void *priv) { struct msm_audio *prtd = priv; struct snd_pcm_substream *substream; uint32_t *ptrmem = (uint32_t *)payload; switch (opcode) { Loading @@ -171,6 +173,18 @@ static void event_handler(uint32_t opcode, break; } break; case RESET_EVENTS: if (!prtd || !prtd->substream) { pr_err("%s: prtd or substream is NULL\n", __func__); return; } substream = prtd->substream; if (!substream->runtime || !substream->runtime->status) { pr_err("%s: runtime or runtime->status is NULL\n", __func__); return; } substream->runtime->status->state = SNDRV_PCM_STATE_DISCONNECTED; break; default: pr_debug("Not Supported Event opcode[0x%x]\n", opcode); break; Loading