From: Elinor Montmasson <elinor.montmasson@xxxxxxxxxxxxxxxxxxxx> Unset DAPM routes when using the dummy codec. The dummy codec doesn't provide DAPM widgets per design, as it doesn't represent any real hardware. Thus the default DAPM audio routes do not work because there is no Playback or Capture DAPM widget. Signed-off-by: Elinor Montmasson <elinor.montmasson@xxxxxxxxxxxxxxxxxxxx> Co-authored-by: Philip-Dylan Gleonec <philip-dylan.gleonec@xxxxxxxxxxxxxxxxxxxx> --- sound/soc/fsl/fsl-asoc-card.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c index d210147aebfe..5ef26ae512de 100644 --- a/sound/soc/fsl/fsl-asoc-card.c +++ b/sound/soc/fsl/fsl-asoc-card.c @@ -712,6 +712,8 @@ static int fsl_asoc_card_probe(struct platform_device *pdev) } else if (of_device_is_compatible(np, "fsl,imx-audio-dummy-codec")) { codec_dai_name = "snd-soc-dummy-dai"; priv->dai_fmt |= SND_SOC_DAIFMT_CBC_CFC; + priv->card.dapm_routes = NULL; + priv->card.num_dapm_routes = 0; } else { dev_err(&pdev->dev, "unknown Device Tree compatible\n"); ret = -EINVAL; -- 2.25.1