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

Commit 8ed2ab17 authored by Sathish Ambley's avatar Sathish Ambley
Browse files

msm: ADSPRPC: Use CMA for modem DSP allocations



Use CMA device node for all buffer allocations shared with
modem DSP.

Change-Id: Ia367f4b190a2e43fe9875cc0620923ec936d615e
Acked-by: default avatarHimateja Reddy <hmreddy@qti.qualcomm.com>
Signed-off-by: default avatarSathish Ambley <sathishambley@codeaurora.org>
parent 2af5d1b0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
 * Copyright (c) 2012-2017, 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
@@ -1741,7 +1741,7 @@ static int fastrpc_session_alloc(struct fastrpc_channel_ctx *chan, int *session)
		chan->session[0].dev = me->dev;
		break;
	case SMD_APPS_MODEM:
		VERIFY(err, me->dev != NULL);
		VERIFY(err, me->modem_cma_dev != NULL);
		if (err)
			goto bail;
		chan->session[0].dev = me->modem_cma_dev;