[PATCH v2 0/3] ASoC: nau8822: add MCLK support

From: Andrejs Cainikovs
Date: Thu Jun 13 2024 - 04:48:16 EST


From: Andrejs Cainikovs <andrejs.cainikovs@xxxxxxxxxxx>

This change adds local MCLK handling, which would cover a case when a
reference audio clock is present in a system, but is not allowed to be
changed, see [1].

[1]: https://lore.kernel.org/all/ZfBdxrzX3EnPuGOn@xxxxxxxxxxxxxxxxxxxxxxxx/

v1:
- https://lore.kernel.org/all/20240409121719.337709-1-andrejs.cainikovs@xxxxxxxxx/

v2:
- Fixes the issue of unbalanced clock enable and disable which resulted
in a negative clock reference count. This triggered "already disabled"
warning when the system was suspended.

Andrejs Cainikovs (3):
ASoC: nau8822: move nau8822_set_dai_sysclk()
ASoC: nau8822: set NAU8822_REFIMP_80K only once
ASoC: nau8822: add MCLK support

sound/soc/codecs/nau8822.c | 76 +++++++++++++++++++++++++++++---------
sound/soc/codecs/nau8822.h | 1 +
2 files changed, 60 insertions(+), 17 deletions(-)

--
2.34.1