aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-dapm.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-09-21 13:19:14 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-09-22 12:24:40 -0400
commite56235e099d7290a2331b984a79f75bbe0865fe8 (patch)
tree7fdd1e4603b12a56502242f32e02c1d97fe23231 /sound/soc/soc-dapm.c
parent7aefb086c15fc44066e705e479d012d46476d8c5 (diff)
ASoC: Add another DAPM stat for neighbour checks
The number of times we look at a potentially connected neighbour is just as important as the number of times we actually recurse into looking at that neighbour so also collect that statistic. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r--sound/soc/soc-dapm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 84d1d799a0df..6cac04595ccd 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -677,6 +677,8 @@ static int is_connected_output_ep(struct snd_soc_dapm_widget *widget)
677 } 677 }
678 678
679 list_for_each_entry(path, &widget->sinks, list_source) { 679 list_for_each_entry(path, &widget->sinks, list_source) {
680 DAPM_UPDATE_STAT(widget, neighbour_checks);
681
680 if (path->weak) 682 if (path->weak)
681 continue; 683 continue;
682 684
@@ -732,6 +734,8 @@ static int is_connected_input_ep(struct snd_soc_dapm_widget *widget)
732 } 734 }
733 735
734 list_for_each_entry(path, &widget->sources, list_sink) { 736 list_for_each_entry(path, &widget->sources, list_sink) {
737 DAPM_UPDATE_STAT(widget, neighbour_checks);
738
735 if (path->weak) 739 if (path->weak)
736 continue; 740 continue;
737 741