ASoC: nau8822: Add operation for internal PLL off and on
Hui Wang authored
[ Upstream commit aeca8a32

 ]

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: default avatarHui Wang <hui.wang@canonical.com>
Link: https://lore.kernel.org/r/20220530040151.95221-2-hui.wang@canonical.com

Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
1b54c006
Name Last commit Last update
Documentation x86/speculation/mmio: Add sysfs reporting for Processor MMIO Stale Data
LICENSES LICENSES/deprecated: add Zlib license text
arch powerpc/kasan: Silence KASAN warnings in __get_wchan()
block block: fix bio_clone_blkg_association() to associate with proper blkcg_gq
certs certs: Trigger creation of RSA module signing key if it's not an RSA key
crypto crypto: cryptd - Protect per-CPU resource by disabling BH.
drivers x86/speculation/mmio: Add sysfs reporting for Processor MMIO Stale Data
fs nfsd: Replace use of rwsem with errseq_t
include x86/speculation/mmio: Add sysfs reporting for Processor MMIO Stale Data
init Kconfig: Add option for asm goto w/ tied outputs to workaround clang-13 bug
ipc ipc/mqueue: use get_tree_nodev() in mqueue_get_tree()
kernel bpf: Fix incorrect memory charge cost calculation in stack_map_alloc()
lib nodemask: Fix return values to be unsigned
mm hugetlb: fix huge_pmd_unshare address update
net tcp: fix tcp_mtup_probe_success vs wrong snd_cwnd
samples samples/bpf, xdpsock: Fix race when running for fix duration of time
scripts scripts/gdb: change kernel config dumping method
security ima: remove the IMA_TEMPLATE Kconfig option
sound ASoC: nau8822: Add operation for internal PLL off and on
tools KVM: x86/speculation: Disable Fill buffer clear within guests
usr usr/include/Makefile: add linux/nfc.h to the compile-test coverage
virt KVM: Prevent module exit until all VMs are freed
.clang-format Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl
.gitattributes .gitattributes: use 'dts' diff driver for dts files
.gitignore kbuild: generate Module.symvers only when vmlinux exists
.mailmap mailmap: add two more addresses of Uwe Kleine-König
COPYING COPYING: state that all contributions really are covered by this file
CREDITS MAINTAINERS: Move Jason Cooper to CREDITS
Kbuild kbuild: rename hostprogs-y/always to hostprogs/always-y
Kconfig kbuild: ensure full rebuild when the compiler is updated
MAINTAINERS MAINTAINERS: add git tree for random.c
Makefile Linux 5.10.123
README Drop all 00-INDEX files from Documentation/
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.