Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: soc-core.c: remove useless dev_dbg()

soc-core.c is using dev_dbg(), but some of them are useless.
It indicates many dev_dbg() at snd_soc_runtime_get_dai_fmt(),
but all of them are just noise, almost no meanings.

dev_dbg() on soc_probe_link_dais() indicates dai link and its
loop order, but it is just noise, no information.

dev_dbg() on snd_soc_register_dai() is duplicated.

This patch cleanup these.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87ttyy64cy.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Kuninori Morimoto and committed by
Mark Brown
6a534cfc 4740479e

-13
-13
sound/soc/soc-core.c
··· 1033 1033 { 1034 1034 struct snd_soc_dai_link *dai_link = rtd->dai_link; 1035 1035 struct snd_soc_dai *dai, *not_used; 1036 - struct device *dev = rtd->dev; 1037 1036 u64 pos, possible_fmt; 1038 1037 unsigned int mask = 0, dai_fmt = 0; 1039 1038 int i, j, priority, pri, until; ··· 1074 1075 */ 1075 1076 until = snd_soc_dai_get_fmt_max_priority(rtd); 1076 1077 for (priority = 1; priority <= until; priority++) { 1077 - 1078 - dev_dbg(dev, "priority = %d\n", priority); 1079 1078 for_each_rtd_dais(rtd, j, not_used) { 1080 1079 1081 1080 possible_fmt = ULLONG_MAX; ··· 1082 1085 1083 1086 pri = (j >= i) ? priority : priority - 1; 1084 1087 fmt = snd_soc_dai_get_fmt(dai, pri); 1085 - dev_dbg(dev, "%s: (pri, fmt) = (%d, %016llX)\n", dai->name, pri, fmt); 1086 1088 possible_fmt &= fmt; 1087 1089 } 1088 1090 if (possible_fmt) ··· 1091 1095 /* Not Found */ 1092 1096 return; 1093 1097 found: 1094 - dev_dbg(dev, "found auto selected format: %016llX\n", possible_fmt); 1095 - 1096 1098 /* 1097 1099 * convert POSSIBLE_DAIFMT to DAIFMT 1098 1100 * ··· 1451 1457 1452 1458 for_each_comp_order(order) { 1453 1459 for_each_card_rtds(card, rtd) { 1454 - 1455 - dev_dbg(card->dev, 1456 - "ASoC: probe %s dai link %d late %d\n", 1457 - card->name, rtd->num, order); 1458 - 1459 1460 /* probe all rtd connected DAIs in good order */ 1460 1461 ret = snd_soc_pcm_dai_probe(rtd, order); 1461 1462 if (ret) ··· 2409 2420 { 2410 2421 struct device *dev = component->dev; 2411 2422 struct snd_soc_dai *dai; 2412 - 2413 - dev_dbg(dev, "ASoC: dynamically register DAI %s\n", dev_name(dev)); 2414 2423 2415 2424 lockdep_assert_held(&client_mutex); 2416 2425