|
@@ -444,11 +444,12 @@ int msm_audio_get_phy_addr(int fd, dma_addr_t *paddr, size_t *pa_len)
|
|
|
}
|
|
|
EXPORT_SYMBOL(msm_audio_get_phy_addr);
|
|
|
|
|
|
-int msm_audio_set_hyp_assign(int fd, bool assign)
|
|
|
+static int msm_audio_set_hyp_assign(int fd, bool assign)
|
|
|
{
|
|
|
struct msm_audio_fd_data *msm_audio_fd_data = NULL;
|
|
|
int status = -EINVAL;
|
|
|
pr_debug("%s, fd %d\n", __func__, fd);
|
|
|
+
|
|
|
mutex_lock(&(msm_audio_ion_fd_list.list_mutex));
|
|
|
list_for_each_entry(msm_audio_fd_data,
|
|
|
&msm_audio_ion_fd_list.fd_list, list) {
|
|
@@ -577,7 +578,8 @@ static int msm_audio_ion_free(struct dma_buf *dma_buf, struct msm_audio_ion_priv
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-int msm_audio_hyp_unassign(struct msm_audio_fd_data *msm_audio_fd_data) {
|
|
|
+static int msm_audio_hyp_unassign(struct msm_audio_fd_data *msm_audio_fd_data)
|
|
|
+{
|
|
|
int ret = 0;
|
|
|
int dest_perms_unmap[1] = {PERM_READ | PERM_WRITE | PERM_EXEC};
|
|
|
int source_vm_unmap[3] = {VMID_LPASS, VMID_ADSP_HEAP, VMID_HLOS};
|