Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: SOF: Wire up buffer flags

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>

authored by

Curtis Malainey and committed by
Mark Brown
ebd12b2c 8ec56af3

+3
+1
include/uapi/sound/sof/tokens.h
··· 35 35 /* buffers */ 36 36 #define SOF_TKN_BUF_SIZE 100 37 37 #define SOF_TKN_BUF_CAPS 101 38 + #define SOF_TKN_BUF_FLAGS 102 38 39 39 40 /* DAI */ 40 41 /* Token retired with ABI 3.2, do not use for new capabilities
+2
sound/soc/sof/ipc3-topology.c
··· 72 72 offsetof(struct sof_ipc_buffer, size)}, 73 73 {SOF_TKN_BUF_CAPS, SND_SOC_TPLG_TUPLE_TYPE_WORD, get_token_u32, 74 74 offsetof(struct sof_ipc_buffer, caps)}, 75 + {SOF_TKN_BUF_FLAGS, SND_SOC_TPLG_TUPLE_TYPE_WORD, get_token_u32, 76 + offsetof(struct sof_ipc_buffer, flags)}, 75 77 }; 76 78 77 79 /* DAI */