Skip to content

Commit

Permalink
ASoC: wm8731: Adjust clk definitions so that simple card can work
Browse files Browse the repository at this point in the history
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

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Jörg Krause authored and Mark Brown committed Jan 10, 2017
1 parent a5de5b7 commit dfa5def
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/wm8731.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit dfa5def

Please sign in to comment.