ASoC: cs42l42: Separate ASP config from PLL config
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Fri, 27 Jan 2023 16:51:07 +0000 (16:51 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 31 Jan 2023 12:10:48 +0000 (12:10 +0000)
commit7209d5ebb34aff3fbdd504c7deeb9b74df632086
tree8634272bc7824677031b9a2fc6e08cc02bbe8591
parent17cb563baef9c4f2d244035a95e361dd673941fa
ASoC: cs42l42: Separate ASP config from PLL config

Setup of the ASP (audio serial port) was being done as a side-effect of
cs42l42_pll_config() and forces a restriction on the ratio of sample_rate
to bit_clock that is invalid for Soundwire.

Move the ASP setup into a dedicated function.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20230127165111.3010960-5-sbinding@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l42.c
sound/soc/codecs/cs42l42.h