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

Commit 55339093 authored by Phani Kumar Uppalapati's avatar Phani Kumar Uppalapati Committed by Matt Wagantall
Browse files

misc: qcom: qdsp6v2: Do not truncate the buf address



Truncating the buffer address would cause unmap failure
and hence next session playback would fail eventually.
Do not truncate the buffer address which is needed for
the memory unmap.

CRs-Fixed: 814704, 814699
Change-Id: I3382062de6e515b66750c45a6daf78362cbd772f
Signed-off-by: default avatarPhani Kumar Uppalapati <phaniu@codeaurora.org>
parent 7b05b92b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (C) 2008 Google, Inc.
 * Copyright (C) 2008 HTC Corporation
 * Copyright (c) 2009-2014, The Linux Foundation. All rights reserved.
 * Copyright (c) 2009-2015, The Linux Foundation. All rights reserved.
 *
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
@@ -991,7 +991,7 @@ static int audio_aio_ion_remove(struct q6audio_aio *audio,
			pr_debug("%s[%p]:remove region fd %d vaddr %p\n",
				__func__, audio, info->fd, info->vaddr);
			rc = q6asm_memory_unmap(audio->ac,
						(uint32_t) region->paddr, IN);
						region->paddr, IN);
			if (rc < 0)
				pr_err("%s[%p]: memory unmap failed\n",
					__func__, audio);