Commit bd79a8d
committed
ipc: ipc4: Centralize component list and perf data initialization
Move the initialization of `bsource_list`, `bsink_list`, and performance
tracking telemetry data from `comp_new_ipc4()` directly into
`ipc4_add_comp_dev()`.
This refactoring centralizes core component setup logic deeper into the
device addition routine, allowing it to be directly leveraged by mock
component setups (like the Zephyr usermode IPC pipeline tests). This
ensures manual test components correctly initialize their data structures
via core infrastructure APIs instead of relying on redundant manual list
tracking, promoting better API safety and reusability.
As a result, `ipc4_add_comp_dev()` is now defined in `component_ext.h`
as a globally accessible symbol, dropping its static scope.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>1 parent 82e5e63 commit bd79a8d
2 files changed
Lines changed: 17 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | 187 | | |
205 | 188 | | |
206 | 189 | | |
| |||
1245 | 1228 | | |
1246 | 1229 | | |
1247 | 1230 | | |
1248 | | - | |
| 1231 | + | |
1249 | 1232 | | |
1250 | 1233 | | |
1251 | 1234 | | |
1252 | 1235 | | |
1253 | 1236 | | |
1254 | 1237 | | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
1255 | 1252 | | |
1256 | 1253 | | |
1257 | 1254 | | |
| |||
0 commit comments