mirror of https://github.com/thesofproject/sof.git
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:
parent
0b537cba4d
commit
8bcfd6fa20
|
@ -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 */
|
||||
/*****************************************************************************/
|
||||
|
|
Loading…
Reference in New Issue