Skip to content

Commit 3d91dfc

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 dbb13a4 commit 3d91dfc

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
@@ -171,6 +171,8 @@ struct module_processing_data {
171171
uint32_t produced; /**< Specifies how much data the module produced in its last task.*/
172172
uint32_t consumed; /**< Specified how much data the module consumed in its last task */
173173
uint32_t init_done; /**< Specifies if the module initialization is finished */
174+
bool eos_reached; /**< End of stream processing is reached */
175+
bool eos_notification_sent; /**< EOS notification is sent to host */
174176
void *in_buff; /**< A pointer to module input buffer. */
175177
void *out_buff; /**< A pointer to module output buffer. */
176178
};

0 commit comments

Comments
 (0)