]> git.alsa-project.org Git - alsa-lib.git/commitdiff
topology: ABI - Update manifest and pump ABI version to 5
authorMengdong Lin <mengdong.lin@linux.intel.com>
Wed, 16 Nov 2016 06:42:15 +0000 (14:42 +0800)
committerTakashi Iwai <tiwai@suse.de>
Tue, 22 Nov 2016 06:50:25 +0000 (07:50 +0100)
Pump ABI version to 5.

To support physical DAIs and furture extension, add the following fields
to manifest:
- the count of physical DAIs. Later patches will add new ABI types for
  physical DAIs.
- some reserved fields for new ABI objects in the future.

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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/asoc.h

index 039ef3e6b5afbf681ef3b23bd4f80752b665de94..e14843b582a111d92bc0ce20e384f355a2393b4c 100644 (file)
@@ -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
@@ -331,6 +332,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));