mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
dsp: Update clk status when DSP returns error
When DSP returns error in clock or vote request commands, update the clock status variable properly to bail out from error scenarios. Change-Id: Ib50e9e33b03fd77255b8719c125612686ea11b00 Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org> Signed-off-by: Meng Wang <mengw@codeaurora.org>
This commit is contained in:
parent
29eea04338
commit
3f85e825de
1 changed files with 2 additions and 1 deletions
|
|
@ -783,8 +783,9 @@ static int32_t afe_callback(struct apr_client_data *data, void *priv)
|
|||
break;
|
||||
case AFE_CMD_REMOTE_LPASS_CORE_HW_VOTE_REQUEST:
|
||||
case AFE_CMD_REMOTE_LPASS_CORE_HW_DEVOTE_REQUEST:
|
||||
atomic_set(&this_afe.clk_state, 0);
|
||||
if (payload[1] != 0)
|
||||
atomic_set(&this_afe.clk_state,
|
||||
atomic_set(&this_afe.clk_status,
|
||||
payload[1]);
|
||||
wake_up(&this_afe.lpass_core_hw_wait);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue