Merge "ASoC: wcd_cpe_services: Process detection events in SEND state"
This commit is contained in:
commit
947004a614
1 changed files with 13 additions and 0 deletions
|
@ -845,6 +845,7 @@ static void cpe_process_irq_int(u32 irq,
|
||||||
struct cpe_send_msg *m;
|
struct cpe_send_msg *m;
|
||||||
u8 size = 0;
|
u8 size = 0;
|
||||||
bool err_irq = false;
|
bool err_irq = false;
|
||||||
|
struct cmi_hdr *hdr;
|
||||||
|
|
||||||
pr_debug("%s: irq = %u\n", __func__, irq);
|
pr_debug("%s: irq = %u\n", __func__, irq);
|
||||||
|
|
||||||
|
@ -911,6 +912,18 @@ static void cpe_process_irq_int(u32 irq,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CPE_STATE_SENDING_MSG:
|
case CPE_STATE_SENDING_MSG:
|
||||||
|
hdr = CMI_GET_HEADER(t_info->tgt->outbox);
|
||||||
|
if (CMI_GET_OPCODE(t_info->tgt->outbox) ==
|
||||||
|
CPE_LSM_SESSION_EVENT_DETECTION_STATUS_V2) {
|
||||||
|
pr_debug("%s: session_id: %u, state: %d,%d, event received\n",
|
||||||
|
__func__, CMI_HDR_GET_SESSION_ID(hdr),
|
||||||
|
t_info->state, t_info->substate);
|
||||||
|
temp_node.command = CPE_CMD_PROC_INCOMING_MSG;
|
||||||
|
temp_node.data = NULL;
|
||||||
|
t_info->cpe_process_command(&temp_node);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
m = (struct cpe_send_msg *)t_info->pending;
|
m = (struct cpe_send_msg *)t_info->pending;
|
||||||
|
|
||||||
switch (t_info->substate) {
|
switch (t_info->substate) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue