aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2016-03-27 17:36:13 -0400
committerMark Brown <broonie@kernel.org>2016-03-29 13:05:24 -0400
commit937e92dc50231bb41294262abf56d2bdddc4d38c (patch)
tree444b0017493f5c480ba6ead02bcc9093f8963d2f
parent8bfa934e10d99b524bfe80b793e235b9188a7b58 (diff)
ASoC: wm8962: Adjust clk definitions so that simple card can work
When trying to use simple card with wm8962 the following probe error happens: wm8962 0-001a: simple-card: set_sysclk error asoc-simple-card sound: ASoC: failed to init 202c000.ssi-wm8962: -22 asoc-simple-card sound: ASoC: failed to instantiate card -22 asoc-simple-card: probe of sound failed with error -22 In simple-card.c the snd_soc_dai_set_sysclk() function is called with clk_id as 0, which is an invalid clock for wm8962. Adjust the clocks source definitions in wm8962.h so that the simple card driver can work successfully. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/wm8962.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm8962.h b/sound/soc/codecs/wm8962.h
index 910aafd09d21..e63a318a3015 100644
--- a/sound/soc/codecs/wm8962.h
+++ b/sound/soc/codecs/wm8962.h
@@ -16,9 +16,9 @@
16#include <asm/types.h> 16#include <asm/types.h>
17#include <sound/soc.h> 17#include <sound/soc.h>
18 18
19#define WM8962_SYSCLK_MCLK 1 19#define WM8962_SYSCLK_MCLK 0
20#define WM8962_SYSCLK_FLL 2 20#define WM8962_SYSCLK_FLL 1
21#define WM8962_SYSCLK_PLL3 3 21#define WM8962_SYSCLK_PLL3 2
22 22
23#define WM8962_FLL 1 23#define WM8962_FLL 1
24 24