diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 8614a9264e82..b3dadd64c2f7 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -2025,7 +2026,7 @@ int soc_dpcm_runtime_update(struct snd_soc_dapm_widget *widget) paths = fe_path_get(fe, SNDRV_PCM_STREAM_PLAYBACK, &list); if (paths < 0) { - dev_warn(fe->dev, "%s no valid %s route from source to sink\n", + pr_warn_ratelimited("%s no valid %s route from source to sink\n", fe->dai_link->name, "playback"); WARN_ON(1); ret = paths; @@ -2055,7 +2056,7 @@ capture: paths = fe_path_get(fe, SNDRV_PCM_STREAM_CAPTURE, &list); if (paths < 0) { - dev_warn(fe->dev, "%s no valid %s route from source to sink\n", + pr_warn_ratelimited("%s no valid %s route from source to sink\n", fe->dai_link->name, "capture"); ret = paths; goto out; @@ -2431,7 +2432,7 @@ int soc_dpcm_fe_dai_open(struct snd_pcm_substream *fe_substream) fe->dpcm[stream].runtime = fe_substream->runtime; if (fe_path_get(fe, stream, &list) <= 0) { - dev_warn(fe->dev, "asoc: %s no valid %s route from source to sink\n", + pr_warn_ratelimited("asoc: %s no valid %s route from source to sink\n", fe->dai_link->name, stream ? "capture" : "playback"); return -EINVAL; }