mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
Merge "dsp: use dma handle as default input in hab export"
This commit is contained in:
commit
7aba75ecb9
1 changed files with 4 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue