[Sound-open-firmware] [PATCH 1/2] ipc: update uapi to add enumerated type for buffer

Keyon Jie yang.jie at linux.intel.com
Tue Jan 30 08:29:28 CET 2018


Add enum sof_buffer_type which can be used to specify the expected
allocated region of the buffer, e.g. general heap, DMA heap.

Signed-off-by: Keyon Jie <yang.jie at linux.intel.com>
---
 src/include/uapi/ipc.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/include/uapi/ipc.h b/src/include/uapi/ipc.h
index 7123c8e..467616e 100644
--- a/src/include/uapi/ipc.h
+++ b/src/include/uapi/ipc.h
@@ -540,10 +540,17 @@ struct sof_ipc_comp {
  * Component Buffers
  */
 
+/* types of buffer */
+enum sof_buffer_type {
+	SOF_BUFF_GENERAL = 0,
+	SOF_BUFF_DMA = 1, /* dma buffer */
+};
+
 /* create new component buffer - SOF_IPC_TPLG_BUFFER_NEW */
 struct sof_ipc_buffer {
 	struct sof_ipc_comp comp;
 	uint32_t size;		/* buffer size in bytes */
+	enum sof_buffer_type type;  /* buffer type */
 } __attribute__((packed));
 
 
-- 
2.11.0



More information about the Sound-open-firmware mailing list