diff options
author | Viorel Suman <viorel.suman@nxp.com> | 2017-11-07 15:39:49 +0200 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2019-11-25 15:50:16 +0800 |
commit | 15e719871519d8acd8b111d29df004f4038bc854 (patch) | |
tree | 175e3ef585aa5fff56b2a49e9ebdfd94584d664d /sound/soc/fsl/imx-cs42888.c | |
parent | 0f032170590cda97acaf4df656f7053728f6e2ca (diff) |
MLK-16742-4: ASoC: imx-cs42888: fix DAPM routes
ASRC DAPM routes not needed when ASRC node is not specified.
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Diffstat (limited to 'sound/soc/fsl/imx-cs42888.c')
-rw-r--r-- | sound/soc/fsl/imx-cs42888.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/fsl/imx-cs42888.c b/sound/soc/fsl/imx-cs42888.c index 9613ac93e4a9..6539aa662c24 100644 --- a/sound/soc/fsl/imx-cs42888.c +++ b/sound/soc/fsl/imx-cs42888.c @@ -213,10 +213,10 @@ static const struct snd_soc_dapm_route audio_map[] = { {"AIN1R", NULL, "Line In Jack"}, {"AIN2L", NULL, "Line In Jack"}, {"AIN2R", NULL, "Line In Jack"}, - {"CPU-Playback", NULL, "ASRC-Playback"}, {"Playback", NULL, "CPU-Playback"},/* dai route for be and fe */ - {"ASRC-Capture", NULL, "CPU-Capture"}, {"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, @@ -332,6 +332,8 @@ static int imx_cs42888_probe(struct platform_device *pdev) imx_cs42888_dai[0].cpu_dai_name = dev_name(&esai_pdev->dev); imx_cs42888_dai[0].platform_of_node = esai_np; snd_soc_card_imx_cs42888.num_links = 1; + snd_soc_card_imx_cs42888.num_dapm_routes = + ARRAY_SIZE(audio_map) - 2; } else { imx_cs42888_dai[0].codec_of_node = codec_np; imx_cs42888_dai[0].cpu_dai_name = dev_name(&esai_pdev->dev); |