Skip to content

Commit

Permalink
ASoC: SOF: Wire up buffer flags
Browse files Browse the repository at this point in the history
Buffer flags have been in firmware for ages but were never fully
implemented in the topology/kernel system. This commit finishes off the
implementation.

Signed-off-by: Curtis Malainey <[email protected]>
  • Loading branch information
cujomalainey authored and plbossart committed Nov 29, 2023
1 parent 09eda31 commit 641c593
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/uapi/sound/sof/tokens.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
/* buffers */
#define SOF_TKN_BUF_SIZE 100
#define SOF_TKN_BUF_CAPS 101
#define SOF_TKN_BUF_FLAGS 102

/* DAI */
/* Token retired with ABI 3.2, do not use for new capabilities
Expand Down
2 changes: 2 additions & 0 deletions sound/soc/sof/ipc3-topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ static const struct sof_topology_token buffer_tokens[] = {
offsetof(struct sof_ipc_buffer, size)},
{SOF_TKN_BUF_CAPS, SND_SOC_TPLG_TUPLE_TYPE_WORD, get_token_u32,
offsetof(struct sof_ipc_buffer, caps)},
{SOF_TKN_BUF_FLAGS, SND_SOC_TPLG_TUPLE_TYPE_WORD, get_token_u32,
offsetof(struct sof_ipc_buffer, flags)},
};

/* DAI */
Expand Down

0 comments on commit 641c593

Please sign in to comment.