]> Git Repo - linux.git/commitdiff
ASoC: wm8960: Make automatic the default clocking mode
authorMark Brown <[email protected]>
Mon, 31 Jul 2023 10:47:03 +0000 (11:47 +0100)
committerMark Brown <[email protected]>
Mon, 31 Jul 2023 15:12:47 +0000 (16:12 +0100)
The wm8960 driver supports an automatic clocking mode which will use the
MCLK directly where possible and fall back to the PLL if there is no
suitable configuration directly using the MCLK.  Clock 0 will be used by
the generic cards when configuring things, currently this is a MCLK only
mode but using AUTO mode would be more functional.  Since the driver
still prefers to use MCLK directly where possible there should be no
negative impact on systems which are able to use MCLK directly.

As far as I can see nothing is using the system clock as part of the
ABI, the only reference I can see to a mode in a machine driver is the
Freescale i.MX card which uses the automatic mode with an explicit in
kernel call using the constant so will be unaffected.

Acked-by: Charles Keepax <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
sound/soc/codecs/wm8960.h

index 63ba6c03c4883874e3990f242502c43b580295e7..e8ff33b188e9939ebec72d250e01cf30651f087e 100644 (file)
@@ -77,9 +77,9 @@
 #define WM8960_SYSCLK_DIV_1            (0 << 1)
 #define WM8960_SYSCLK_DIV_2            (2 << 1)
 
-#define WM8960_SYSCLK_MCLK             (0 << 0)
+#define WM8960_SYSCLK_AUTO             (0 << 0)
 #define WM8960_SYSCLK_PLL              (1 << 0)
-#define WM8960_SYSCLK_AUTO             (2 << 0)
+#define WM8960_SYSCLK_MCLK             (2 << 0)
 
 #define WM8960_DAC_DIV_1               (0 << 3)
 #define WM8960_DAC_DIV_1_5             (1 << 3)
This page took 0.059584 seconds and 4 git commands to generate.