pipeline: move mailbox metadata lookup table from header.

The pipeline position metadata lookup table is only used by the graph
code so move it there.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
Liam Girdwood 2021-03-29 12:06:03 +01:00 committed by Liam Girdwood
parent b15ce3cb26
commit bcff695554
2 changed files with 10 additions and 8 deletions

View File

@ -29,6 +29,16 @@ DECLARE_SOF_RT_UUID("pipe", pipe_uuid, 0x4e934adb, 0xb0ec, 0x4d33,
DECLARE_TR_CTX(pipe_tr, SOF_UUID(pipe_uuid), LOG_LEVEL_INFO);
/* number of pipeline stream metadata objects we export in mailbox */
#define PPL_POSN_OFFSETS \
(MAILBOX_STREAM_SIZE / sizeof(struct sof_ipc_stream_posn))
/* lookup table to determine busy/free pipeline metadata objects */
struct pipeline_posn {
bool posn_offset[PPL_POSN_OFFSETS]; /**< available offsets */
spinlock_t lock; /**< lock mechanism */
};
/* the pipeline position lookup table */
static SHARED_DATA struct pipeline_posn pipeline_posn;
/**

View File

@ -41,9 +41,6 @@ struct task;
#define PPL_DIR_DOWNSTREAM 0
#define PPL_DIR_UPSTREAM 1
#define PPL_POSN_OFFSETS \
(MAILBOX_STREAM_SIZE / sizeof(struct sof_ipc_stream_posn))
/*
* Audio pipeline.
*/
@ -98,11 +95,6 @@ struct pipeline_data {
int cmd;
};
struct pipeline_posn {
bool posn_offset[PPL_POSN_OFFSETS]; /**< available offsets */
spinlock_t lock; /**< lock mechanism */
};
/**
* \brief Initializes pipeline position structure.
* \param[in,out] sof Pointer to sof structure.