]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: topology: refine and log the header in the correct pass
authorKeyon Jie <yang.jie@linux.intel.com>
Wed, 27 May 2020 02:28:00 +0000 (10:28 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 29 May 2020 12:06:41 +0000 (13:06 +0100)
commit0688e30b6fb37bf71f698662bc7b7d662339328d
tree813649fbaf11c8899e9c941f8500d5ceb34a6b4a
parent51c4a0bc2a15c79b8253f182d1b0a1aea43a3f1b
ASoC: topology: refine and log the header in the correct pass

The check (tplg->pass == le32_to_cpu(hdr->type)) makes no sense as it is
comparing two different enums, refine the element loading functions, and
log the information when the header is being parsed in the corresponding
parsing pass.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Tested-by: Vamshi Kerishna Gopal <vamshi.krishna.gopal@intel.com>
Tested-by: Cezary Rojewski <cezary.rojewski@intel.com>
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20200527022801.336264-2-yang.jie@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-topology.c