Commit 9c00d76
committed
ASoC: SOF: sof-audio: Traverse paths with virtual widgets
Today, we use virtual widgets in topology to represent aggregated DAI's
in the graph. So, when walking the list of DAPM widgets, when we
encounter a virtual widget, we end the walk there. Modify the logic to
allow walking past the virtual widgets without handling them during
prepare/unprepare/setup/free. This will be useful for the hostless
pipelines that use the virtual widget as the start of the playback
pipeline. For example, in the case of a tone generator playback
pipeline, we could have
virtual widget (type input) -> tone generator -> gain -> BE DAI
The virtual widget exists only to establish a FE <-> BE connection for
DPCM. So while walking the list of widgets, skip the virtual widget and
move on so that the tone generator and all of the other widgets
downstream can be handled.
But in order for this to work with the current use of virtual widgets to
represent aggregated DAI's, we also need to skip the aggregated DAI's
from being handled during prepare/unprepare/free/setup. Add a new helper
function to determine if a DAI widget is an aggregated DAI and skip past
the widget when walking the list of connected DAPM widgets.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>1 parent e2f07ee commit 9c00d76
2 files changed
+40
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2773 | 2773 | | |
2774 | 2774 | | |
2775 | 2775 | | |
2776 | | - | |
| 2776 | + | |
2777 | 2777 | | |
2778 | | - | |
| 2778 | + | |
2779 | 2779 | | |
2780 | 2780 | | |
2781 | 2781 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
16 | 31 | | |
17 | 32 | | |
18 | 33 | | |
| |||
399 | 414 | | |
400 | 415 | | |
401 | 416 | | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | 417 | | |
406 | | - | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
407 | 424 | | |
408 | 425 | | |
409 | 426 | | |
| |||
440 | 457 | | |
441 | 458 | | |
442 | 459 | | |
443 | | - | |
| 460 | + | |
444 | 461 | | |
445 | 462 | | |
446 | 463 | | |
| |||
449 | 466 | | |
450 | 467 | | |
451 | 468 | | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
452 | 473 | | |
453 | 474 | | |
454 | 475 | | |
| |||
493 | 514 | | |
494 | 515 | | |
495 | 516 | | |
| 517 | + | |
496 | 518 | | |
497 | 519 | | |
498 | 520 | | |
499 | 521 | | |
500 | 522 | | |
501 | | - | |
| 523 | + | |
502 | 524 | | |
503 | | - | |
504 | | - | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
505 | 530 | | |
506 | 531 | | |
507 | 532 | | |
| |||
540 | 565 | | |
541 | 566 | | |
542 | 567 | | |
543 | | - | |
| 568 | + | |
544 | 569 | | |
545 | 570 | | |
546 | 571 | | |
547 | 572 | | |
548 | | - | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
549 | 577 | | |
550 | 578 | | |
551 | 579 | | |
| |||
0 commit comments