summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-pcm.c
diff options
context:
space:
mode:
authorLiam Girdwood <liam.r.girdwood@linux.intel.com>2018-03-14 16:43:51 -0400
committerMark Brown <broonie@kernel.org>2018-03-19 03:07:15 -0400
commit3c1464658ec642309453db33364e82291d98acc2 (patch)
tree2501000e6594546d7db3ebb5c45617aa8b1432da /sound/soc/soc-pcm.c
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff)
ASoC: pcm: improve debug output for DPCM BE searching.
Improve the DPCM BE search debug output to make it easier to debug issues in topologies. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-pcm.c')
-rw-r--r--sound/soc/soc-pcm.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index 084125463d10..68d9dc930096 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -1392,12 +1392,18 @@ static struct snd_soc_pcm_runtime *dpcm_get_be(struct snd_soc_card *card,
1392 struct snd_soc_pcm_runtime *be; 1392 struct snd_soc_pcm_runtime *be;
1393 int i; 1393 int i;
1394 1394
1395 dev_dbg(card->dev, "ASoC: find BE for widget %s\n", widget->name);
1396
1395 if (stream == SNDRV_PCM_STREAM_PLAYBACK) { 1397 if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
1396 list_for_each_entry(be, &card->rtd_list, list) { 1398 list_for_each_entry(be, &card->rtd_list, list) {
1397 1399
1398 if (!be->dai_link->no_pcm) 1400 if (!be->dai_link->no_pcm)
1399 continue; 1401 continue;
1400 1402
1403 dev_dbg(card->dev, "ASoC: try BE : %s\n",
1404 be->cpu_dai->playback_widget ?
1405 be->cpu_dai->playback_widget->name : "(not set)");
1406
1401 if (be->cpu_dai->playback_widget == widget) 1407 if (be->cpu_dai->playback_widget == widget)
1402 return be; 1408 return be;
1403 1409
@@ -1414,6 +1420,10 @@ static struct snd_soc_pcm_runtime *dpcm_get_be(struct snd_soc_card *card,
1414 if (!be->dai_link->no_pcm) 1420 if (!be->dai_link->no_pcm)
1415 continue; 1421 continue;
1416 1422
1423 dev_dbg(card->dev, "ASoC: try BE %s\n",
1424 be->cpu_dai->capture_widget ?
1425 be->cpu_dai->capture_widget->name : "(not set)");
1426
1417 if (be->cpu_dai->capture_widget == widget) 1427 if (be->cpu_dai->capture_widget == widget)
1418 return be; 1428 return be;
1419 1429
@@ -1425,6 +1435,7 @@ static struct snd_soc_pcm_runtime *dpcm_get_be(struct snd_soc_card *card,
1425 } 1435 }
1426 } 1436 }
1427 1437
1438 /* dai link name and stream name set correctly ? */
1428 dev_err(card->dev, "ASoC: can't get %s BE for %s\n", 1439 dev_err(card->dev, "ASoC: can't get %s BE for %s\n",
1429 stream ? "capture" : "playback", widget->name); 1440 stream ? "capture" : "playback", widget->name);
1430 return NULL; 1441 return NULL;