Skip to content

Commit f970a77

Browse files
keyonjiebroonie
authored andcommitted
ASoC: SOF: add comp_ext to struct snd_sof_widget
Add member comp_ext to struct snd_sof_widget, which will be used for topology extended tokens parsing. Signed-off-by: Keyon Jie <yang.jie@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Link: https://lore.kernel.org/r/20200904132744.1699575-3-kai.vehmanen@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 43fbb08 commit f970a77

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

‎include/sound/sof/topology.h‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ struct sof_ipc_comp {
8787
*/
8888
#define SOF_BUF_UNDERRUN_PERMITTED BIT(1)
8989

90+
/* the UUID size in bytes, shared between FW and host */
91+
#define SOF_UUID_SIZE 16
92+
9093
/* create new component buffer - SOF_IPC_TPLG_BUFFER_NEW */
9194
struct sof_ipc_buffer {
9295
struct sof_ipc_comp comp;
@@ -300,4 +303,9 @@ enum sof_event_types {
300303
SOF_KEYWORD_DETECT_DAPM_EVENT,
301304
};
302305

306+
/* extended data struct for UUID components */
307+
struct sof_ipc_comp_ext {
308+
uint8_t uuid[SOF_UUID_SIZE];
309+
} __packed;
310+
303311
#endif

‎sound/soc/sof/sof-audio.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ struct snd_sof_widget {
8989
struct snd_soc_dapm_widget *widget;
9090
struct list_head list; /* list in sdev widget list */
9191

92+
/* extended data for UUID components */
93+
struct sof_ipc_comp_ext comp_ext;
94+
9295
void *private; /* core does not touch this */
9396
};
9497

0 commit comments

Comments
 (0)