]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ASoC: adau: Factor out shared PLL configuration code
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 9 Jun 2016 17:39:06 +0000 (19:39 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 9 Jun 2016 17:41:41 +0000 (18:41 +0100)
commit0eadaa9ce2aacdcc3cf050d98c25aacabadc557f
tree38406a7e68dd3dcefe132e6583904e35ff652af0
parent1a695a905c18548062509178b98bc91e67510864
ASoC: adau: Factor out shared PLL configuration code

Multiple devices from the ADAU family share the same PLL structure and
configuration register layout. Introduce a new helper module that can be
used to calculated the PLL configuration registers based on a specified
input frequency and the desired output frequency of the PLL.

The ADAU1761/ADAU1781 and ADAU1373 drivers are updated to make use of this
new helper module. But future drivers for additional devices from the ADAU
family are also expected to make use of it.

In anticipation of sharing more infrastructure code between different
devices from the ADAU family the new module is called adau-utils.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/Kconfig
sound/soc/codecs/Makefile
sound/soc/codecs/adau-utils.c [new file with mode: 0644]
sound/soc/codecs/adau-utils.h [new file with mode: 0644]
sound/soc/codecs/adau1373.c
sound/soc/codecs/adau17x1.c