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

Commit 5dbe8b2c authored by Banajit Goswami's avatar Banajit Goswami
Browse files

soc: qdsp6v2: update function to access dmabuf from fd



The function name for accessing dmabuf from a file descriptor (fd)
has been modified. Use the new function to access the dmabuf by
passing fd.

Change-Id: I037da38ec32d2b16ae44b23f0159d1200e67e69b
Signed-off-by: default avatarBanajit Goswami <bgoswami@codeaurora.org>
parent 0fd7f0a5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -207,7 +207,7 @@ int msm_audio_ion_import(const char *name, struct ion_client **client,
	/* name should be audio_acdb_client or Audio_Dec_Client,
	 * bufsz should be 0 and fd shouldn't be 0 as of now
	 */
	*handle = ion_import_dma_buf(*client, fd);
	*handle = ion_import_dma_buf_fd(*client, fd);
	pr_debug("%s: DMA Buf name=%s, fd=%d handle=%pK\n", __func__,
							name, fd, *handle);
	if (IS_ERR_OR_NULL((void *) (*handle))) {
@@ -403,7 +403,7 @@ int msm_audio_ion_import_legacy(const char *name, struct ion_client *client,
	 * name should be audio_acdb_client or Audio_Dec_Client,
	 * bufsz should be 0 and fd shouldn't be 0 as of now
	 */
	*handle = ion_import_dma_buf(client, fd);
	*handle = ion_import_dma_buf_fd(client, fd);
	pr_debug("%s: DMA Buf name=%s, fd=%d handle=%pK\n", __func__,
							name, fd, *handle);
	if (IS_ERR_OR_NULL((void *)(*handle))) {