OSDN Git Service

ASoC: topology: Make manifest backward compatible from ABI v4
authorMengdong Lin <mengdong.lin@linux.intel.com>
Tue, 11 Oct 2016 06:36:42 +0000 (14:36 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 28 Oct 2016 18:59:40 +0000 (19:59 +0100)
commit583958fa2e522139a5fe8b039069e31502c20d31
treefeb98317866c660f234cff5d6b98203af8c3d810
parentd2e3cb85a9c5824fab237ee4577250d0c76969fe
ASoC: topology: Make manifest backward compatible from ABI v4

This patch adds support for old version 4 of manifest.

Topology ABI v5 added new fields to manifest while user space may still
uses v4. So kernel will check the ABI version by comparing the object
size. If user space uses v4 of manifest, kernel will create a latest
version of manifest from the old one, and use the new one internally and
free it later.

Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-topology.c