diff mbox

[18/22] topology: ABI - Update manifest to ABI v5

Message ID ff88fb770eec5bd9fd2f3a8909e46c66c0d51ac9.1477549962.git.mengdong.lin@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

mengdong.lin@linux.intel.com Oct. 27, 2016, 7:14 a.m. UTC
From: Mengdong Lin <mengdong.lin@linux.intel.com>

Add the following fields to manifest:
- a count of physical DAIs. Later patches will add new ABI types for
  physical DAIs.
- some reserved fields for future extenstion.

Pump ABI version to 5.

Kerel will handle this ABI update in a backward compatible way, via patch
'ASoC: topology: Make manifest backward compatible from ABI v4'.

Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
diff mbox

Patch

diff --git a/include/sound/asoc.h b/include/sound/asoc.h
index 9dd4d53..5169153 100644
--- a/include/sound/asoc.h
+++ b/include/sound/asoc.h
@@ -79,7 +79,8 @@ 
 #define SND_SOC_TPLG_NUM_TEXTS		16
 
 /* ABI version */
-#define SND_SOC_TPLG_ABI_VERSION	0x4
+#define SND_SOC_TPLG_ABI_VERSION	0x5	/* current version */
+#define SND_SOC_TPLG_ABI_VERSION_MIN	0x4	/* oldest version supported */
 
 /* Max size of TLV data */
 #define SND_SOC_TPLG_TLV_SIZE		32
@@ -333,6 +334,8 @@  struct snd_soc_tplg_manifest {
 	__le32 graph_elems;	/* number of graph elements */
 	__le32 pcm_elems;	/* number of PCM elements */
 	__le32 dai_link_elems;	/* number of DAI link elements */
+	__le32 dai_elems;	/* number of physical DAI elements */
+	__le32 reserved[20];	/* reserved for new ABI element types */
 	struct snd_soc_tplg_private priv;
 } __attribute__((packed));