mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 04:42:04 -04:00
dsp: voice_mhi: use modified mhi sync/put api
MHI APIs have been updated to support LPM. Move to newer API to make use of device LPM. Change-Id: I53bd3dff1b66d064091f21eb5f2a36ee77f965ed Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
This commit is contained in:
parent
ac479df607
commit
40c749da4c
1 changed files with 3 additions and 2 deletions
|
|
@ -228,7 +228,8 @@ int voice_mhi_start(void)
|
|||
goto done;
|
||||
}
|
||||
if (voice_mhi_lcl.vote_count == 0) {
|
||||
ret = mhi_device_get_sync(voice_mhi_lcl.mhi_dev);
|
||||
ret = mhi_device_get_sync(voice_mhi_lcl.mhi_dev,
|
||||
MHI_VOTE_DEVICE);
|
||||
if (ret) {
|
||||
pr_err("%s: mhi_device_get_sync failed\n",
|
||||
__func__);
|
||||
|
|
@ -269,7 +270,7 @@ int voice_mhi_end(void)
|
|||
}
|
||||
|
||||
if (voice_mhi_lcl.vote_count == 1)
|
||||
mhi_device_put(voice_mhi_lcl.mhi_dev);
|
||||
mhi_device_put(voice_mhi_lcl.mhi_dev, MHI_VOTE_DEVICE);
|
||||
voice_mhi_lcl.vote_count--;
|
||||
}
|
||||
mutex_unlock(&voice_mhi_lcl.mutex);
|
||||
|
|
|
|||
Loading…
Reference in a new issue