ASoC: Intel: Skylake: fix swapped order of function arguments dir and pin_index
authorColin Ian King <colin.king@canonical.com>
Wed, 20 Sep 2017 13:01:25 +0000 (14:01 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 25 Sep 2017 15:43:32 +0000 (16:43 +0100)
commit2b79b15c258a90c216efc14f0a5d4b88b4b2494d
treee48ab323b45de03bfdd3351f2a378aea69bced69
parent948c5e192eaeef5bd8b479135ea83d1f97d78bb8
ASoC: Intel: Skylake: fix swapped order of function arguments dir and pin_index

The call to slk_tplg_fill_res_tkn is passing dir and pin_index in the
wrong order, they need to be in pin_index, dir order to match the function
slk_tplg_fill_res_tkn  correctly.

Detected by CoveritScan, CID#1454992 ("Arguments in wrong order")

Fixes: f6fa56e22559 ("ASoC: Intel: Skylake: Parse and update module config structure")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-By: Vinod Koul <vinod.koul@intel.com>
Tested-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-topology.c