* [PATCH] ASoC: wm8962: Adjust clk definitions so that simple card can work
@ 2016-03-27 21:36 Fabio Estevam
2016-03-28 9:32 ` Charles Keepax
2016-03-29 17:08 ` Applied "ASoC: wm8962: Adjust clk definitions so that simple card can work" to the asoc tree Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Fabio Estevam @ 2016-03-27 21:36 UTC (permalink / raw)
To: broonie; +Cc: Fabio Estevam, alsa-devel, ckeepax
From: Fabio Estevam <fabio.estevam@nxp.com>
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>
---
sound/soc/codecs/wm8962.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/wm8962.h b/sound/soc/codecs/wm8962.h
index 910aafd..e63a318 100644
--- a/sound/soc/codecs/wm8962.h
+++ b/sound/soc/codecs/wm8962.h
@@ -16,9 +16,9 @@
#include <asm/types.h>
#include <sound/soc.h>
-#define WM8962_SYSCLK_MCLK 1
-#define WM8962_SYSCLK_FLL 2
-#define WM8962_SYSCLK_PLL3 3
+#define WM8962_SYSCLK_MCLK 0
+#define WM8962_SYSCLK_FLL 1
+#define WM8962_SYSCLK_PLL3 2
#define WM8962_FLL 1
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: wm8962: Adjust clk definitions so that simple card can work
2016-03-27 21:36 [PATCH] ASoC: wm8962: Adjust clk definitions so that simple card can work Fabio Estevam
@ 2016-03-28 9:32 ` Charles Keepax
2016-03-29 17:08 ` Applied "ASoC: wm8962: Adjust clk definitions so that simple card can work" to the asoc tree Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Charles Keepax @ 2016-03-28 9:32 UTC (permalink / raw)
To: Fabio Estevam; +Cc: Fabio Estevam, alsa-devel, broonie
On Sun, Mar 27, 2016 at 06:36:13PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@nxp.com>
>
> 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>
Thanks,
Charles
^ permalink raw reply [flat|nested] 3+ messages in thread
* Applied "ASoC: wm8962: Adjust clk definitions so that simple card can work" to the asoc tree
2016-03-27 21:36 [PATCH] ASoC: wm8962: Adjust clk definitions so that simple card can work Fabio Estevam
2016-03-28 9:32 ` Charles Keepax
@ 2016-03-29 17:08 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2016-03-29 17:08 UTC (permalink / raw)
To: Fabio Estevam, Charles Keepax, Mark Brown; +Cc: alsa-devel
The patch
ASoC: wm8962: Adjust clk definitions so that simple card can work
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
>From 937e92dc50231bb41294262abf56d2bdddc4d38c Mon Sep 17 00:00:00 2001
From: Fabio Estevam <fabio.estevam@nxp.com>
Date: Sun, 27 Mar 2016 18:36:13 -0300
Subject: [PATCH] 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>
---
sound/soc/codecs/wm8962.h | 6 +++---
1 file 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 @@
#include <asm/types.h>
#include <sound/soc.h>
-#define WM8962_SYSCLK_MCLK 1
-#define WM8962_SYSCLK_FLL 2
-#define WM8962_SYSCLK_PLL3 3
+#define WM8962_SYSCLK_MCLK 0
+#define WM8962_SYSCLK_FLL 1
+#define WM8962_SYSCLK_PLL3 2
#define WM8962_FLL 1
--
2.8.0.rc3
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-03-29 17:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-27 21:36 [PATCH] ASoC: wm8962: Adjust clk definitions so that simple card can work Fabio Estevam
2016-03-28 9:32 ` Charles Keepax
2016-03-29 17:08 ` Applied "ASoC: wm8962: Adjust clk definitions so that simple card can work" to the asoc tree Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox