mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
Merge "dsp: update error handling for Doa Tracking Monitor"
This commit is contained in:
commit
7bf19b93d3
1 changed files with 9 additions and 7 deletions
16
dsp/q6afe.c
16
dsp/q6afe.c
|
|
@ -345,6 +345,14 @@ static void doa_tracking_mon_afe_cb_handler(uint32_t opcode, uint32_t *payload,
|
|||
size_t expected_size =
|
||||
sizeof(u32) + sizeof(struct doa_tracking_mon_param);
|
||||
|
||||
if (payload[0]) {
|
||||
atomic_set(&this_afe.status, payload[0]);
|
||||
atomic_set(&this_afe.state, 0);
|
||||
pr_err("%s: doa_tracking_mon_resp status: %d payload size %d\n",
|
||||
__func__, payload[0], payload_size);
|
||||
return;
|
||||
}
|
||||
|
||||
switch (opcode) {
|
||||
case AFE_PORT_CMDRSP_GET_PARAM_V2:
|
||||
expected_size += sizeof(struct param_hdr_v1);
|
||||
|
|
@ -378,13 +386,7 @@ static void doa_tracking_mon_afe_cb_handler(uint32_t opcode, uint32_t *payload,
|
|||
return;
|
||||
}
|
||||
|
||||
if (!this_afe.doa_tracking_mon_resp.status) {
|
||||
atomic_set(&this_afe.state, 0);
|
||||
} else {
|
||||
pr_debug("%s: doa_tracking_mon_resp status: %d\n", __func__,
|
||||
this_afe.doa_tracking_mon_resp.status);
|
||||
atomic_set(&this_afe.state, -1);
|
||||
}
|
||||
atomic_set(&this_afe.state, 0);
|
||||
}
|
||||
|
||||
static int32_t sp_make_afe_callback(uint32_t opcode, uint32_t *payload,
|
||||
|
|
|
|||
Loading…
Reference in a new issue