OSDN Git Service

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)
commit82ed7418736ded9c24529987d5aa9a39c185e4e9
tree813649fbaf11c8899e9c941f8500d5ceb34a6b4a
parent4a0434502191347ba8f99468f2fb2cdddc20d381
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