mirror of https://github.com/thesofproject/sof.git
pipeline: move parts of the pipeline API to pipeline.h
struct pipeline_task and pipeline_task_get() belong to the pipeline API, not to the scheduler API. Move them to pipeline.h Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
parent
03b24ba660
commit
32b213f271
|
@ -12,6 +12,7 @@
|
||||||
#include <sof/lib/mailbox.h>
|
#include <sof/lib/mailbox.h>
|
||||||
#include <sof/lib/memory.h>
|
#include <sof/lib/memory.h>
|
||||||
#include <sof/list.h>
|
#include <sof/list.h>
|
||||||
|
#include <sof/schedule/task.h>
|
||||||
#include <sof/sof.h>
|
#include <sof/sof.h>
|
||||||
#include <sof/spinlock.h>
|
#include <sof/spinlock.h>
|
||||||
#include <sof/audio/pipeline-trace.h>
|
#include <sof/audio/pipeline-trace.h>
|
||||||
|
@ -25,7 +26,6 @@ struct comp_buffer;
|
||||||
struct comp_dev;
|
struct comp_dev;
|
||||||
struct ipc;
|
struct ipc;
|
||||||
struct ipc_msg;
|
struct ipc_msg;
|
||||||
struct task;
|
|
||||||
|
|
||||||
/* Pipeline status to stop execution of current path */
|
/* Pipeline status to stop execution of current path */
|
||||||
#define PPL_STATUS_PATH_STOP 1
|
#define PPL_STATUS_PATH_STOP 1
|
||||||
|
@ -108,6 +108,15 @@ struct pipeline_data {
|
||||||
uint32_t delay_ms; /* between PRE_{START,RELEASE} and {START,RELEASE} */
|
uint32_t delay_ms; /* between PRE_{START,RELEASE} and {START,RELEASE} */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** \brief Task type registered by pipelines. */
|
||||||
|
struct pipeline_task {
|
||||||
|
struct task task; /**< parent structure */
|
||||||
|
bool registrable; /**< should task be registered on irq */
|
||||||
|
struct comp_dev *sched_comp; /**< pipeline scheduling component */
|
||||||
|
};
|
||||||
|
|
||||||
|
#define pipeline_task_get(t) container_of(t, struct pipeline_task, task)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Pipeline Graph APIs
|
* Pipeline Graph APIs
|
||||||
*
|
*
|
||||||
|
|
|
@ -75,14 +75,6 @@ struct task {
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/** \brief Task type registered by pipelines. */
|
|
||||||
struct pipeline_task {
|
|
||||||
struct task task; /**< parent structure */
|
|
||||||
bool registrable; /**< should task be registered on irq */
|
|
||||||
struct comp_dev *sched_comp; /**< pipeline scheduling component */
|
|
||||||
};
|
|
||||||
|
|
||||||
#define pipeline_task_get(t) container_of(t, struct pipeline_task, task)
|
|
||||||
|
|
||||||
static inline enum task_state task_run(struct task *task)
|
static inline enum task_state task_run(struct task *task)
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
// Tomasz Lauda <tomasz.lauda@linux.intel.com>
|
// Tomasz Lauda <tomasz.lauda@linux.intel.com>
|
||||||
|
|
||||||
#include <sof/atomic.h>
|
#include <sof/atomic.h>
|
||||||
|
#include <sof/audio/pipeline.h>
|
||||||
#include <sof/common.h>
|
#include <sof/common.h>
|
||||||
#include <sof/drivers/interrupt.h>
|
#include <sof/drivers/interrupt.h>
|
||||||
#include <sof/drivers/timer.h>
|
#include <sof/drivers/timer.h>
|
||||||
|
|
Loading…
Reference in New Issue