ASoC: topology: remove the redundant pass checks
authorKeyon Jie <yang.jie@linux.intel.com>
Wed, 27 May 2020 02:28:01 +0000 (10:28 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 29 May 2020 12:06:41 +0000 (13:06 +0100)
commitc2cbd0a7194d05be501fe2cb48bcd10ff468aa87
tree6605733c7de706a91f6ad13f1da1825a9e2f9f25
parent82ed7418736ded9c24529987d5aa9a39c185e4e9
ASoC: topology: remove the redundant pass checks

As we have check the 'pass' in the soc_elem_pass_load(), so no need to
check it again in each specific elem_load function, at the same time,
the tplg->pos will be reset to the next header base when the pass is
mismatched, so the increasing of the tplg->pos in these cases made no
sense. Here remove all of them.

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-3-yang.jie@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-topology.c