Skip to content

Commit 50b55fd

Browse files
keyonjiebroonie
authored andcommitted
ASoC: SOF: use the sof_ipc_comp reserved bytes for extended data
Use the 32bit reserved member of the struct sof_ipc_comp as the extended data length, this will help to minimize the ABI change for adding new extended data to the struct sof_ipc_comp, usually only minor ABI version bump needed for every update with this new solution. 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-6-kai.vehmanen@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 929e427 commit 50b55fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/sound/sof/topology.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ struct sof_ipc_comp {
5757
uint32_t pipeline_id;
5858
uint32_t core;
5959

60-
/* reserved for future use */
61-
uint32_t reserved[1];
60+
/* extended data length, 0 if no extended data */
61+
uint32_t ext_data_length;
6262
} __packed;
6363

6464
/*

0 commit comments

Comments
 (0)