Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03880a00 authored by Gopikrishnaiah Anandan's avatar Gopikrishnaiah Anandan
Browse files

ASoC: msm: qdsp6v2: Release IPA mapping



When DSP has a SMMU associated with it, audio driver will allocate
(KVA)kernel virtual address and (IPA)intermediate physical
address.When freeing memory audio driver should release IPA and KVA
mappings. Change fixes the issue where IPA mapping was not released.

Change-Id: I4df40e9ceb26baae2c30df596bacdb9cfd48f4c2
CRs-fixed: 600938
Signed-off-by: default avatarGopikrishnaiah Anandan <agopik@codeaurora.org>
parent 5f4d31f2
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2013, The Linux Foundation. All rights reserved.
 * Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -397,7 +397,9 @@ err:
int msm_audio_ion_free_legacy(struct ion_client *client,
			      struct ion_handle *handle)
{
	/* To add condition for SMMU enabled */
	if (msm_audio_ion_data.smmu_enabled)
		ion_unmap_iommu(client, handle,
		msm_audio_ion_data.domain_id, 0);
	ion_unmap_kernel(client, handle);

	ion_free(client, handle);