Commit 3e74fdd
committed
ASoC: SOF: topology: skip feature topologies without matching BE DAI links
Before loading a user-specified feature topology, verify that the
card has a matching BE DAI link. Feature topologies extend specific
codec function types (amp, jack, mic) and reference widgets that
only exist when the corresponding BE DAI links are present.
Without this check, loading an amplifier feature topology on a card
without SmartAmp DAI links would fail with -EINVAL due to missing
route endpoints, killing the entire card probe.
This is needed for multi-card configurations where cards are split
by function type, but also provides a safety net in single-card
mode when feature topologies don't match the hardware.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>1 parent 3ef4c73 commit 3e74fdd
1 file changed
Lines changed: 59 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2516 | 2516 | | |
2517 | 2517 | | |
2518 | 2518 | | |
| 2519 | + | |
| 2520 | + | |
| 2521 | + | |
| 2522 | + | |
| 2523 | + | |
| 2524 | + | |
| 2525 | + | |
| 2526 | + | |
| 2527 | + | |
| 2528 | + | |
| 2529 | + | |
| 2530 | + | |
| 2531 | + | |
| 2532 | + | |
| 2533 | + | |
| 2534 | + | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
| 2551 | + | |
| 2552 | + | |
| 2553 | + | |
| 2554 | + | |
| 2555 | + | |
| 2556 | + | |
| 2557 | + | |
| 2558 | + | |
| 2559 | + | |
2519 | 2560 | | |
2520 | 2561 | | |
2521 | 2562 | | |
| |||
2612 | 2653 | | |
2613 | 2654 | | |
2614 | 2655 | | |
2615 | | - | |
| 2656 | + | |
| 2657 | + | |
| 2658 | + | |
| 2659 | + | |
| 2660 | + | |
| 2661 | + | |
2616 | 2662 | | |
2617 | | - | |
2618 | | - | |
2619 | | - | |
| 2663 | + | |
| 2664 | + | |
| 2665 | + | |
| 2666 | + | |
| 2667 | + | |
| 2668 | + | |
| 2669 | + | |
| 2670 | + | |
| 2671 | + | |
| 2672 | + | |
| 2673 | + | |
| 2674 | + | |
2620 | 2675 | | |
2621 | 2676 | | |
2622 | 2677 | | |
| |||
0 commit comments