]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit58d4a29b731370932efa1f53760d937abf3576b7
treefeb98317866c660f234cff5d6b98203af8c3d810
parent534a30edbe878b6c52f0c9edd327a085d2734a2a
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