diff options
| author | Kuninori Morimoto <[email protected]> | 2024-11-12 02:39:44 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2024-11-12 13:08:31 +0000 |
| commit | add2332795a648b62fd52356001287c015a59e80 (patch) | |
| tree | 8973291d7fde17ae74f53948f8e750e6454e9f73 /drivers/usb/cdns3/cdns3-ti.c | |
| parent | ASoC: test-component: Support continuous rates for test component (diff) | |
| download | kernel-add2332795a648b62fd52356001287c015a59e80.tar.gz kernel-add2332795a648b62fd52356001287c015a59e80.zip | |
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 <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions
