summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/imx-wm8524.c
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2019-10-30 17:36:42 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:51:00 +0800
commitd60cc6c5e3d269e57ff69101e0204f931e3c331f (patch)
tree0c39d2f6eaf0a68115738ce60dffa091081f91a1 /sound/soc/fsl/imx-wm8524.c
parent40414785a784e3a4c6dafe6d2aba7c68fe5a5dcd (diff)
ASoC: imx-wm8524: remove unused audio route
The Capture route is not needed by wm8524 Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Diffstat (limited to 'sound/soc/fsl/imx-wm8524.c')
-rw-r--r--sound/soc/fsl/imx-wm8524.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/soc/fsl/imx-wm8524.c b/sound/soc/fsl/imx-wm8524.c
index f788a580b54b..6d2f1e840b8e 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,
@@ -205,7 +203,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) {
@@ -246,7 +244,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);