ASoC: Intel: sof_cs42l42: use helper function to get bclk frequency
authorBrent Lu <brent.lu@intel.com>
Fri, 25 Jun 2021 20:50:42 +0000 (15:50 -0500)
committerMark Brown <broonie@kernel.org>
Sun, 11 Jul 2021 22:48:31 +0000 (23:48 +0100)
commit837ad6da36ba765d9ff8120c93dd243b9200957e
tree21e8138d14ff87b50b7e848665c4de1350f02ffa
parentbc619cfc6278c87b4e310f9db9f45abc263220e8
ASoC: Intel: sof_cs42l42: use helper function to get bclk frequency

Use sof_dai_get_bclk() function to get bclk frequency instead of a
hard-coded magic number depending on configuration in topology.

Reviewed-by: Bard Liao <bard.liao@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/20210625205042.65181-5-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_cs42l42.c