Merge "dsp: use dma handle as default input in hab export"

This commit is contained in:
qctecmdr 2020-03-25 09:38:22 -07:00 • committed by Gerrit - the friendly Code Review server
commit 7aba75ecb9

View file

@ -306,7 +306,6 @@ static int msm_audio_ion_smmu_map(void *handle,
struct msm_audio_smmu_vm_map_cmd_rsp cmd_rsp;
struct msm_audio_alloc_data *alloc_data = NULL;
unsigned long delay = jiffies + (HZ / 2);
void *vaddr;
*len = ((struct dma_buf*)handle)->size;
@ -315,14 +314,13 @@ static int msm_audio_ion_smmu_map(void *handle,
list) {
if (alloc_data->handle == handle) {
found = true;
vaddr = alloc_data->vaddr;
/* Export the buffer to physical VM */
rc = habmm_export(msm_audio_ion_hab_handle, vaddr, *len,
&export_id, 0);
rc = habmm_export(msm_audio_ion_hab_handle, handle, *len,
&export_id, HABMM_EXPIMP_FLAGS_DMABUF);
if (rc) {
pr_err("%s: habmm_export failed vaddr = %pK, len = %zd, rc = %d\n",
__func__, vaddr, *len, rc);
pr_err("%s: habmm_export failed handle = %pK, len = %zd, rc = %d\n",
__func__, handle, *len, rc);
goto err;
}