mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
Merge "dsp: q6voice: Handle mutex lock-unlock"
This commit is contained in:
commit
ba72ce6dab
1 changed files with 3 additions and 2 deletions
|
|
@ -6898,6 +6898,7 @@ int voc_set_device_config(uint32_t session_id, uint8_t path_dir,
|
|||
struct media_format_info *finfo)
|
||||
{
|
||||
struct voice_data *v = voice_get_session(session_id);
|
||||
int ret = 0;
|
||||
|
||||
if (v == NULL) {
|
||||
pr_err("%s: Invalid session_id 0x%x\n", __func__, session_id);
|
||||
|
|
@ -6929,12 +6930,12 @@ int voc_set_device_config(uint32_t session_id, uint8_t path_dir,
|
|||
break;
|
||||
default:
|
||||
pr_err("%s: Invalid path_dir %d\n", __func__, path_dir);
|
||||
return -EINVAL;
|
||||
ret = -EINVAL;
|
||||
}
|
||||
|
||||
mutex_unlock(&v->lock);
|
||||
|
||||
return 0;
|
||||
return ret;
|
||||
}
|
||||
EXPORT_SYMBOL(voc_set_device_config);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue