Re: [PATCH v2] ASoC: wm8904: fix runtime warning

From: Lars-Peter Clausen
Date: Tue Jan 13 2015 - 04:47:17 EST


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" },


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/