OSDN Git Service

ASoC: SOF: topology: stop parsing when all tokens have been found
authorJaska Uimonen <jaska.uimonen@linux.intel.com>
Wed, 15 Apr 2020 20:28:15 +0000 (15:28 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 15 Apr 2020 23:23:18 +0000 (00:23 +0100)
commitf228a5b1703871632adb0918774386409cef05c5
tree4043a710f7cf00d8b68616c60df3b9b65e6004c4
parent18aaab64fbb121e5879f74a46903bcfd30bf660b
ASoC: SOF: topology: stop parsing when all tokens have been found

Optimize the parsing so that it will stop after all required tokens
have been found as there is no reason to continue after that.

Signed-off-by: Jaska Uimonen <jaska.uimonen@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20200415202816.934-24-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/topology.c