]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ASoC: wm8978: Adjust clock indices so that simple card works
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 7 Nov 2016 13:08:20 +0000 (14:08 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 9 Nov 2016 14:01:39 +0000 (14:01 +0000)
Using simple-card with the wm8978 doesn't work because simple card calls
set_sysclk on the clock index 0, which is not the MCLK in the WM8978.

Adjust the clock definition so that the clock 0 is the MCLK.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8978.h

index 6ae43495b7cf922f171b4afc77b83c3b78ad5754..0dcf6868dff65065044e4ff633e8e51b08cb7e31 100644 (file)
@@ -78,8 +78,8 @@ enum wm8978_clk_id {
 };
 
 enum wm8978_sysclk_src {
+       WM8978_MCLK = 0,
        WM8978_PLL,
-       WM8978_MCLK
 };
 
 #endif /* __WM8978_H__ */