Skip to content

Commit 546e129

Browse files
committed
component: module_adapter: Add EOS flags to module_processing_data struct
To facilitate the End Of Stream handling in processing modules add two flags: eos_reached: when set, the processing module reached EOS by processing all data. EOS can happen when the pipeline have expect_eos flag set, indicating that EOS is going to happen eos_notification_sent: if the module uses notification to host, this flag can be used make sure to not flood with IPCs Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent 1a81a1c commit 546e129

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • src/include/sof/audio/module_adapter/module

src/include/sof/audio/module_adapter/module/generic.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ struct module_processing_data {
172172
uint32_t produced; /**< Specifies how much data the module produced in its last task.*/
173173
uint32_t consumed; /**< Specified how much data the module consumed in its last task */
174174
uint32_t init_done; /**< Specifies if the module initialization is finished */
175+
bool eos_reached; /**< End of stream processing is reached */
176+
bool eos_notification_sent; /**< EOS notification is sent to host */
175177
void *in_buff; /**< A pointer to module input buffer. */
176178
void *out_buff; /**< A pointer to module output buffer. */
177179
};

0 commit comments

Comments
 (0)