diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2024-11-12 05:39:44 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-11-12 16:08:31 +0300 |
commit | add2332795a648b62fd52356001287c015a59e80 (patch) | |
tree | 8973291d7fde17ae74f53948f8e750e6454e9f73 /tools/perf/scripts/python/stackcollapse.py | |
parent | c853e96308c58f9a06fcf393bcfe0eabdb72ca9c (diff) | |
download | linux-add2332795a648b62fd52356001287c015a59e80.tar.xz |
ASoC: simple-card-utils: care simple_util_dai for dummy DAI
Simple Card Utils has simple_util_dai which is paired to snd_soc_dai,
and assmus that CPU/Codec DAI and its paired simple_util_dai are same
order for CPU/Codec
simple_util_dai[0] <--> snd_soc_dai[0]
simple_util_dai[1] <--> snd_soc_dai[1]
...
So, it is using same index in for_each loop.
(X) gets simple_util_dai
(Y) gets snd_soc_dai
(Y) for_each_rtd_cpu_dais(.., i, ..) {
(X)(A) udai = simple_props_to_dai_cpu(.., i);
}
(X) for_each_prop_dai_cpu(.., i, ...) {
(Y) dai = snd_soc_rtd_to_cpu(.., i);
...
}
But current Simple Card Utils didn't have simple_util_dai for
dummy DAI. So above (A) will get NULL pointer in such case.
This patch cares simple_util_dai for dummy DAI.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87msi5maz3.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions