* [PATCH v2] ASoC: wm8904: fix runtime warning
@ 2015-01-13 9:34 Bo Shen
2015-01-13 9:47 ` Lars-Peter Clausen
0 siblings, 1 reply; 2+ messages in thread
From: Bo Shen @ 2015-01-13 9:34 UTC (permalink / raw)
To: linux-arm-kernel
Correct the path name for mux to get rid of the following warning:
--->8---
wm8904 1-001a: Control not supported for path ADCL -> [Left] -> AIFOUTL
wm8904 1-001a: ASoC: no dapm match for ADCL --> Left --> AIFOUTL
wm8904 1-001a: ASoC: Failed to add route ADCL -> Left -> AIFOUTL
wm8904 1-001a: Control not supported for path ADCR -> [Right] -> AIFOUTL
wm8904 1-001a: ASoC: no dapm match for ADCR --> Right --> AIFOUTL
wm8904 1-001a: ASoC: Failed to add route ADCR -> Right -> AIFOUTL
wm8904 1-001a: Control not supported for path ADCL -> [Left] -> AIFOUTR
wm8904 1-001a: ASoC: no dapm match for ADCL --> Left --> AIFOUTR
wm8904 1-001a: ASoC: Failed to add route ADCL -> Left -> AIFOUTR
wm8904 1-001a: Control not supported for path ADCR -> [Right] -> AIFOUTR
wm8904 1-001a: ASoC: no dapm match for ADCR --> Right --> AIFOUTR
wm8904 1-001a: ASoC: Failed to add route ADCR -> Right -> AIFOUTR
wm8904 1-001a: Control not supported for path AIFINR -> [Right] -> DACL
wm8904 1-001a: ASoC: no dapm match for AIFINR --> Right --> DACL
wm8904 1-001a: ASoC: Failed to add route AIFINR -> Right -> DACL
wm8904 1-001a: Control not supported for path AIFINL -> [Left] -> DACL
wm8904 1-001a: ASoC: no dapm match for AIFINL --> Left --> DACL
wm8904 1-001a: ASoC: Failed to add route AIFINL -> Left -> DACL
wm8904 1-001a: Control not supported for path AIFINR -> [Right] -> DACR
wm8904 1-001a: ASoC: no dapm match for AIFINR --> Right --> DACR
wm8904 1-001a: ASoC: Failed to add route AIFINR -> Right -> DACR
wm8904 1-001a: Control not supported for path AIFINL -> [Left] -> DACR
wm8904 1-001a: ASoC: no dapm match for AIFINL --> Left --> DACR
wm8904 1-001a: ASoC: Failed to add route AIFINL -> Left -> DACR
---8<---
Signed-off-by: Bo Shen <voice.shen@atmel.com>
---
Changes in v2:
- Correct the mux path name.
- Route the mux to the pins.
sound/soc/codecs/wm8904.c | 25 +++++++++++++++++--------
1 file changed, 17 insertions(+), 8 deletions(-)
diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c
index 4d2d2b1..110d0e6 100644
--- a/sound/soc/codecs/wm8904.c
+++ b/sound/soc/codecs/wm8904.c
@@ -1076,10 +1076,13 @@ static const struct snd_soc_dapm_route adc_intercon[] = {
{ "Right Capture PGA", NULL, "Right Capture Mux" },
{ "Right Capture PGA", NULL, "Right Capture Inverting Mux" },
- { "AIFOUTL", "Left", "ADCL" },
- { "AIFOUTL", "Right", "ADCR" },
- { "AIFOUTR", "Left", "ADCL" },
- { "AIFOUTR", "Right", "ADCR" },
+ { "AIFOUTL Mux", "Left", "ADCL" },
+ { "AIFOUTL Mux", "Right", "ADCR" },
+ { "AIFOUTR Mux", "Left", "ADCL" },
+ { "AIFOUTR Mux", "Right", "ADCR" },
+
+ { "AIFOUTL", NULL, "AIFOUTL Mux" },
+ { "AIFOUTR", NULL, "AIFOUTR Mux" },
{ "ADCL", NULL, "CLK_DSP" },
{ "ADCL", NULL, "Left Capture PGA" },
@@ -1089,14 +1092,20 @@ static const struct snd_soc_dapm_route adc_intercon[] = {
};
static const struct snd_soc_dapm_route dac_intercon[] = {
- { "DACL", "Right", "AIFINR" },
- { "DACL", "Left", "AIFINL" },
+ { "DACL", NULL, "AIFINL" },
+ { "DACL", NULL, "AIFINR" },
{ "DACL", NULL, "CLK_DSP" },
- { "DACR", "Right", "AIFINR" },
- { "DACR", "Left", "AIFINL" },
+ { "DACR", NULL, "AIFINL" },
+ { "DACR", NULL, "AIFINR" },
{ "DACR", NULL, "CLK_DSP" },
+ { "DACL Mux", "Left", "DACL" },
+ { "DACL Mux", "Right", "DACR" },
+
+ { "DACR Mux", "Left", "DACL" },
+ { "DACR Mux", "Right", "DACR" },
+
{ "Charge pump", NULL, "SYSCLK" },
{ "Headphone Output", NULL, "HPL PGA" },
--
2.1.0.24.g4109c28
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH v2] ASoC: wm8904: fix runtime warning
2015-01-13 9:34 [PATCH v2] ASoC: wm8904: fix runtime warning Bo Shen
@ 2015-01-13 9:47 ` Lars-Peter Clausen
0 siblings, 0 replies; 2+ messages in thread
From: Lars-Peter Clausen @ 2015-01-13 9:47 UTC (permalink / raw)
To: linux-arm-kernel
On 01/13/2015 10:34 AM, Bo Shen wrote:
[...]
>
> - { "AIFOUTL", "Left", "ADCL" },
> - { "AIFOUTL", "Right", "ADCR" },
> - { "AIFOUTR", "Left", "ADCL" },
> - { "AIFOUTR", "Right", "ADCR" },
> + { "AIFOUTL Mux", "Left", "ADCL" },
> + { "AIFOUTL Mux", "Right", "ADCR" },
> + { "AIFOUTR Mux", "Left", "ADCL" },
> + { "AIFOUTR Mux", "Right", "ADCR" },
> +
> + { "AIFOUTL", NULL, "AIFOUTL Mux" },
> + { "AIFOUTR", NULL, "AIFOUTR Mux" },
>
This looks ok.
> { "ADCL", NULL, "CLK_DSP" },
> { "ADCL", NULL, "Left Capture PGA" },
> @@ -1089,14 +1092,20 @@ static const struct snd_soc_dapm_route adc_intercon[] = {
> };
>
> static const struct snd_soc_dapm_route dac_intercon[] = {
> - { "DACL", "Right", "AIFINR" },
> - { "DACL", "Left", "AIFINL" },
> + { "DACL", NULL, "AIFINL" },
> + { "DACL", NULL, "AIFINR" },
> { "DACL", NULL, "CLK_DSP" },
>
> - { "DACR", "Right", "AIFINR" },
> - { "DACR", "Left", "AIFINL" },
> + { "DACR", NULL, "AIFINL" },
> + { "DACR", NULL, "AIFINR" },
> { "DACR", NULL, "CLK_DSP" },
>
> + { "DACL Mux", "Left", "DACL" },
> + { "DACL Mux", "Right", "DACR" },
> +
> + { "DACR Mux", "Left", "DACL" },
> + { "DACR Mux", "Right", "DACR" },
> +
But this should probably be
> + { "DACL Mux", "Left", "AIFINL" },
> + { "DACL Mux", "Right", "AIFINR" },
> +
> + { "DACR Mux", "Left", "AIFINL" },
> + { "DACR Mux", "Right", "AIFINR" },
> +
> + { "DACL", NULL, "DACL Mux" },
> + { "DACR", NULL, "DACR Mux" },
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-13 9:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-13 9:34 [PATCH v2] ASoC: wm8904: fix runtime warning Bo Shen
2015-01-13 9:47 ` Lars-Peter Clausen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).