Commit dd5bc2f
committed
ipc4: uaol: add ipc4_find_all_dma_configs_tlvs_only()
This adds yet another function to parse DMA config supplied by the host.
Unfortunately, we now have three functions for this purpose.
Unlike the existing ipc4_find_dma_config(),
ipc4_find_all_dma_configs_tlvs_only() can find multiple DMA configs.
For example, a UAOL copier may use two DMA channels: one for the audio
USB endpoint and one for the feedback USB endpoint.
ipc4_find_all_dma_configs_tlvs_only() can only work when all data in
data_buffer is in TLV format; unfortunately, this is not always the case
with IPC4 for all gateway types. Therefore, the existing
ipc4_find_dma_config() is still needed as it can skip non-TLV blob data
at the beginning of data_buffer.
The other function, ipc4_find_dma_config_multiple(), works differently:
it searches for DMA config for a given ALH stream ID in ALH multi-gateway
case. Hence, this third function -- ipc4_find_all_dma_configs_tlvs_only()
-- is added to the family.
Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>1 parent a2f2fe5 commit dd5bc2f
3 files changed
Lines changed: 46 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
| 330 | + | |
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1299 | 1299 | | |
1300 | 1300 | | |
1301 | 1301 | | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
1302 | 1345 | | |
1303 | 1346 | | |
1304 | 1347 | | |
| |||
0 commit comments