From: Maxime Ripard Date: Mon, 7 Nov 2016 13:08:20 +0000 (+0100) Subject: ASoC: wm8978: Adjust clock indices so that simple card works X-Git-Tag: v5.4.17~9479^2~3^2~1^4 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=fbd972d7f4a60677f6fbe558dc23e4029dc2d45d;p=arm%2Flinux.git ASoC: wm8978: Adjust clock indices so that simple card works 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 Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm8978.h b/sound/soc/codecs/wm8978.h index 6ae43495b7cf..0dcf6868dff6 100644 --- a/sound/soc/codecs/wm8978.h +++ b/sound/soc/codecs/wm8978.h @@ -78,8 +78,8 @@ enum wm8978_clk_id { }; enum wm8978_sysclk_src { + WM8978_MCLK = 0, WM8978_PLL, - WM8978_MCLK }; #endif /* __WM8978_H__ */