]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: nau8822: Add operation for internal PLL off and on
authorHui Wang <hui.wang@canonical.com>
Mon, 30 May 2022 04:01:50 +0000 (12:01 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 1 Jun 2022 10:24:09 +0000 (12:24 +0200)
commitaeca8a3295022bcec46697f16e098140423d8463
tree935dbf1ed9d4db7596128fd8fc0d2973b00ea3fe
parentab0925ab728163b854ea17da09e299254a86076e
ASoC: nau8822: Add operation for internal PLL off and on

We tried to enable the audio on an imx6sx EVB with the codec nau8822,
after setting the internal PLL fractional parameters, the audio still
couldn't work and the there was no sdma irq at all.

After checking with the section "8.1.1 Phase Locked Loop (PLL) Design
Example" of "NAU88C22 Datasheet Rev 0.6", we found we need to
turn off the PLL before programming fractional parameters and turn on
the PLL after programming.

After this change, the audio driver could record and play sound and
the sdma's irq is triggered when playing or recording.

Cc: David Lin <ctlin0@nuvoton.com>
Cc: John Hsu <kchsu0@nuvoton.com>
Cc: Seven Li <wtli@nuvoton.com>
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Link: https://lore.kernel.org/r/20220530040151.95221-2-hui.wang@canonical.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/nau8822.c
sound/soc/codecs/nau8822.h