diff options
author | Viorel Suman <viorel.suman@nxp.com> | 2019-07-12 14:16:12 +0300 |
---|---|---|
committer | Viorel Suman <viorel.suman@nxp.com> | 2019-07-12 14:29:24 +0300 |
commit | 16d7a38888d306abbcb3aa8d10a2f90b29eab47f (patch) | |
tree | 2892ab557ab52d2a9d407fd38861138dc9e03fec /sound | |
parent | 647790c331722d21413bef8a3ed48707ffe12524 (diff) |
MLK-22244-3: ASoC: imx-wm8524: remove capture DAPM routes.
Remove capture DAPM routes since WM8524 DAC is playback only.
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviwed-by: Daniel Baluta <daniel.baluta@nxp.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/fsl/imx-wm8524.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/soc/fsl/imx-wm8524.c b/sound/soc/fsl/imx-wm8524.c index a35b90e94f17..b94053d87f69 100644 --- a/sound/soc/fsl/imx-wm8524.c +++ b/sound/soc/fsl/imx-wm8524.c @@ -75,9 +75,7 @@ static struct snd_soc_ops imx_hifi_ops = { static const struct snd_soc_dapm_route audio_map[] = { {"Playback", NULL, "CPU-Playback"}, - {"CPU-Capture", NULL, "Capture"}, {"CPU-Playback", NULL, "ASRC-Playback"}, - {"ASRC-Capture", NULL, "CPU-Capture"}, }; static int be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, @@ -193,7 +191,7 @@ static int imx_wm8524_probe(struct platform_device *pdev) priv->card.num_dapm_widgets = ARRAY_SIZE(imx_wm8524_dapm_widgets); priv->card.dai_link = priv->dai; priv->card.dapm_routes = audio_map; - priv->card.num_dapm_routes = 2; + priv->card.num_dapm_routes = 1; /*if there is no asrc controller, we only enable one device*/ if (asrc_pdev) { @@ -220,7 +218,7 @@ static int imx_wm8524_probe(struct platform_device *pdev) priv->dai[2].be_hw_params_fixup = be_hw_params_fixup, priv->card.num_links = 3; priv->card.dai_link = &priv->dai[0]; - priv->card.num_dapm_routes += 2; + priv->card.num_dapm_routes += 1; ret = of_property_read_u32(asrc_np, "fsl,asrc-rate", &priv->asrc_rate); |