]> 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>
Mon, 6 Jun 2022 12:08:51 +0000 (13:08 +0100)
commit3929ead38d61abe6c5302adce1d490f5c041d4b3
tree719af2ff9dbff1c9366405db99419543a831b5ae
parentf2906aa863381afb0015a9eb7fefad885d4e5a56
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