• Nicolin Chen's avatar
    ASoC: fsl-asoc-card: Don't add DAPM routes for ASRC if it doesn't exist · 089dfaf7
    Nicolin Chen authored
    There are a pair of warnings when ASRC is absent in the DTB:
      fsl-asoc-card sound: ASoC: no source widget found for ASRC-Playback
      fsl-asoc-card sound: ASoC: Failed to add route ASRC-Playback -> direct -> CPU-Playback
      fsl-asoc-card sound: ASoC: no sink widget found for ASRC-Capture
      fsl-asoc-card sound: ASoC: Failed to add route CPU-Capture -> direct -> ASRC-Capture
    
    This is because the driver is still trying to add DAPM routes for ASRC
    even if it doesn't exist on that platform.
    
    The warnings are harmless but it might be annoying. So this patch drops
    the DAPM routes of ASRC when it's absent in the DAI link.
    Signed-off-by: default avatarNicolin Chen <nicolinc@nvidia.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    089dfaf7
fsl-asoc-card.c 19.8 KB