Skip to contentSkip to conversation

ASoC: wm8731: Adjust clk definitions so that simple card can work

PATCH New Jörg Krause 1 participant 1 message Jan 8, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: wm8731: Adjust clk definitions so that simple card can work

When trying to use simple card with wm8962 the following probe error happens:

wm8731 0-001a: simple-card: set_sysclk error

In simple-card.c the snd_soc_dai_set_sysclk() function is called with clk_id as 0, which is an invalid clock for wm8731.

Adjust the clocks source definitions in wm8731.h so that the simple card driver can work successfully

---
 sound/soc/codecs/wm8731.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/wm8731.h +1 -1
index e9c0c76ab73b..c7c6f15b0e42 100644
@@ -31,8 +31,8 @@
 
 #define WM8731_CACHEREGNUM 	10
 
+#define WM8731_SYSCLK_MCLK 0
 #define WM8731_SYSCLK_XTAL 1
-#define WM8731_SYSCLK_MCLK 2
 
 #define WM8731_DAI		0
 
Signature · 6 lines
2.11.0

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel