ASoC: intel: sof_sdw: Prepare for configuration without a jack
PATCH v2 1/1 ASoC: intel: sof_sdw: Prepare for configuration without a jack
In certain setups of cs42l43 UAJ function may be removed from ACPI and physically unconnected. Prepare a driver for that configuration by setting a system clock in the speaker path too.
---
Changes in v2:
- Fixed error return on snd_soc_dapm_add_routes()
--- sound/soc/sdw_utils/soc_sdw_cs42l43.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
sound/soc/sdw_utils/soc_sdw_cs42l43.c +9 -1
@@ -107,6 +107,7 @@ EXPORT_SYMBOL_NS(asoc_sdw_cs42l43_hs_rtd_init, "SND_SOC_SDW_UTILS");int asoc_sdw_cs42l43_spk_rtd_init (struct snd_soc_pcm_runtime *rtd,struct snd_soc_dai *dai) { +struct snd_soc_component *component =snd_soc_rtd_to_codec (rtd,0 )->component;struct snd_soc_card *card = rtd->card;struct snd_soc_dapm_context *dapm =snd_soc_card_to_dapm (card);struct asoc_sdw_mc_private *ctx =snd_soc_card_get_drvdata (card);
@@ -131,8 +132,15 @@ int asoc_sdw_cs42l43_spk_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_so ret =snd_soc_dapm_add_routes (dapm, cs42l43_spk_map,ARRAY_SIZE (cs42l43_spk_map)); -if (ret) +if (ret) {dev_err (card->dev,"cs42l43 speaker map addition failed: %d\n" , ret); +return ret; + } + + ret =snd_soc_component_set_sysclk (component,CS42L43_SYSCLK ,CS42L43_SYSCLK_SDW , +0 ,SND_SOC_CLOCK_IN ); +if (ret) +dev_err (card->dev,"Failed to set sysclk: %d\n" , ret);return ret; }
--
2.48.1
Mark Brown
maintainerQuoted 1 line · Maciej Strozek
ASoC: intel:
sof_sdw: Prepare for configuration without a jack
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.1
Thanks!
[1/1] ASoC: intel: sof_sdw: Prepare for configuration without a jack
https://git.kernel.org/broonie/sound/c/d733fb463834
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark