Commit 77e3eca
committed
fix(hw): broaden assert_rx_capture_valid candidate matching
bq's ADRV9371+ZC706 design exposes neither ``axi-ad9371-rx-hpc``
nor ``axi-ad9371-rx-obs-hpc`` (the adjacent IIO-device-present
assertion in that test uses a permissive
``any("9371" in n or "adrv9" in n.lower())`` pattern precisely
because the buffered-frontend name varies by design).
When none of the explicit ``device_candidates`` match, fall back
to the first IIO device on the context that advertises at least
one non-output scan channel. Every buffered AXI ADC frontend
registers one, so this recovers cleanly without needing per-board
name plumbing. Assertion failures now also print the full list
of present devices, so any remaining mismatch is obvious at a
glance.1 parent cce2f53 commit 77e3eca
1 file changed
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
570 | 586 | | |
571 | | - | |
| 587 | + | |
| 588 | + | |
572 | 589 | | |
573 | 590 | | |
574 | 591 | | |
575 | | - | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
576 | 595 | | |
577 | 596 | | |
578 | 597 | | |
| |||
0 commit comments