ASoC: nau8822: add MCLK support

This change adds MCLK clock handling directly within driver.
When used in combination with simple-audio-card, and mclk-fs is set,
simple-audio-card will change MCLK frequency before configuring PLL.
In some cases, however, MCLK reference clock should be static (see [1]),
which means it needs to be moved away from simple-audio-card.

[1]: https://lore.kernel.org/all/ZfBdxrzX3EnPuGOn@ediswmail9.ad.cirrus.com/

Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
Link: https://msgid.link/r/20240613084652.13113-4-andrejs.cainikovs@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Andrejs Cainikovs 2024-06-13 10:46:52 +02:00 • committed by Mark Brown
commit 93f12a7568
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0
2 changed files with 45 additions and 4 deletions