]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: nau8822: Don't reconfigure PLL to the same values
authorMark Brown <broonie@kernel.org>
Fri, 3 Jun 2022 10:35:30 +0000 (12:35 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 6 Jun 2022 11:38:41 +0000 (12:38 +0100)
commit86bf6f4a7a2e1518fad4ec0bbac0f085cf64bae4
tree0a3255f2c977d0cf1dfde281ff0ba80fa80e0d92
parent3abac231f8f8b9d7e58e8c59742450f5d2a4a7e6
ASoC: nau8822: Don't reconfigure PLL to the same values

When we configure the PLL record the input and output frequency, then if we
get asked to configure the same values again just skip reprogramming the
hardware. This makes things a bit easier to use for machine drivers since
it means they don't need to keep track of if they've programmed the PLL
so much.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220603103530.3844527-1-broonie@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/nau8822.c
sound/soc/codecs/nau8822.h