ASoC: SOF: Wire up buffer flags
authorCurtis Malainey <cujomalainey@chromium.org>
Mon, 4 Dec 2023 21:47:13 +0000 (15:47 -0600)
committerMark Brown <broonie@kernel.org>
Mon, 4 Dec 2023 21:49:22 +0000 (21:49 +0000)
Buffer flags have been in firmware for ages but were never fully
implemented in the topology/kernel system. This commit finishes off the
implementation.

Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20231204214713.208951-5-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/uapi/sound/sof/tokens.h
sound/soc/sof/ipc3-topology.c

index 0fb39780f9bdeaeb85dd2921a22676f763611c7d..ee5708934614da6e5706eef52ac84b513f6c6017 100644 (file)
@@ -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
index 7a4932c152a9dd641d2222e8af36e28e5ff88f43..a8e0054cb8a6f64fa37664065ce5950cab486228 100644 (file)
@@ -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 */