mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
topology: Add API to set a vendor specific version number
This vendor-specific version number is optional. It will be written to the 'version' field of each block header of the binary toplogy data file. The vendor driver can check this number for further processing in kernel. The topology ABI version number is still stored in the 'abi' field of block headers. Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Reviewed-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
c82417650a
commit
8b0a5310bf
3 changed files with 18 additions and 3 deletions
|
|
@ -690,6 +690,14 @@ int snd_tplg_build(snd_tplg_t *tplg, const char *outfile);
|
|||
*/
|
||||
int snd_tplg_set_manifest_data(snd_tplg_t *tplg, const void *data, int len);
|
||||
|
||||
/**
|
||||
* \brief Set an optional vendor specific version number.
|
||||
* \param tplg Topology instance.
|
||||
* \param version Vendor specific version number.
|
||||
* \return Zero on success, otherwise a negative error code
|
||||
*/
|
||||
int snd_tplg_set_version(snd_tplg_t *tplg, unsigned int version);
|
||||
|
||||
/* \} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue