module_interface: Introduce 2 new structures

Introduce 2 new structures to represent the input and output stream
buffers. These will be passed as inputs to the process API.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This commit is contained in:
Ranjani Sridharan 2022-01-11 09:44:11 -08:00 committed by Liam Girdwood
parent 0b537cba4d
commit 8bcfd6fa20
1 changed files with 22 additions and 0 deletions

View File

@ -92,6 +92,28 @@ enum module_processing_mode {
MODULE_PROCESSING_BYPASS,
};
/**
* \struct input_stream_buffer
* \brief Input stream buffer
*/
struct input_stream_buffer {
void *data; /* data stream buffer */
uint32_t size; /* size of data in the buffer */
uint32_t consumed; /* number of bytes consumed by the module */
/* Indicates end of stream condition has occurred on the input stream */
bool end_of_stream;
};
/**
* \struct output_stream_buffer
* \brief Output stream buffer
*/
struct output_stream_buffer {
void *data; /* data stream buffer */
uint32_t size; /* size of data in the buffer */
};
/*****************************************************************************/
/* Module generic data types */
/*****************************************************************************/