ASoC: Intel: sof-rt5682: setup pll_id only when needed
authorBrent Lu <brent.lu@intel.com>
Fri, 26 Apr 2024 15:25:27 +0000 (10:25 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 29 Apr 2024 14:49:19 +0000 (23:49 +0900)
commitb5aaf6a56dcafc2aeefdc7da1f9f86fa5cfa8df7
treef9152f0fd571605cc1d8f8f37d5ab98e82752358
parent76f33e2f93d63eaac93458fdfde3a505b8e73fa2
ASoC: Intel: sof-rt5682: setup pll_id only when needed

The variable 'pll_id' is needed only when we use snd_soc_dai_set_pll()
to setup PLL. Move the code segment to improve some readability.

Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Brent Lu <brent.lu@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20240426152529.38345-22-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_rt5682.c