dsp: update MSM Audio ION wrappers to align with upstream
Between Linux-4.9 and Linux-4.14, upstream has updated the ION APIs significantly to make ION ready to bring out of staging folder. This has changed the way ION and dma_buf APIs used to work together for allocating, mapping and deallocating ION buffers. Update MSM Audio ION wrapper functions used by audio drivers to reflect these ION API changes as per upstream ION. Change-Id: I63097e147a397aa3a538f69ac88b6fb10871c3dc Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2017 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2013-2018, 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
|
||||
@@ -33,8 +33,7 @@ struct lsm_sound_model {
|
||||
void *data;
|
||||
size_t size; /* size of buffer */
|
||||
uint32_t actual_size; /* actual number of bytes read by DSP */
|
||||
struct ion_handle *handle;
|
||||
struct ion_client *client;
|
||||
struct dma_buf *dma_buf;
|
||||
uint32_t mem_map_handle;
|
||||
};
|
||||
|
||||
@@ -48,8 +47,7 @@ struct lsm_lab_buffer {
|
||||
dma_addr_t phys;
|
||||
void *data;
|
||||
size_t size;
|
||||
struct ion_handle *handle;
|
||||
struct ion_client *client;
|
||||
struct dma_buf *dma_buf;
|
||||
uint32_t mem_map_handle;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user