Commit 7f991f1
committed
fix(test): apply AD9081 rx/tx JESD modes per side in system-hw test
AD9081 uses different jesd204b link modes for its ADC (RX, jtx) and
DAC (TX, jrx) paths — the per-side MODE_TABLE in
adidt.devices.converters.ad9081 maps `(10, "jesd204b")` → L=4 for
RX and `(9, "jesd204b")` → L=4 for TX, with no entry for the
opposite side.
The System-hw test called
`fmc.converter.set_jesd204_mode(cfg["rx_mode"], cfg["rx_class"])`,
which applies rx_mode=10 to *both* sides. The DAC's MODE_TABLE
lookup then missed, its framing parameters stayed at defaults (L=0),
and the kernel driver aborted at
`adi_ad9081_device_startup_tx_or_nco_test` with
`jesd_param->jesd_l == 0` → `Failed to initialize: -14`.
Set each side with its own solver-derived mode:
fmc.converter.adc.set_jesd204_mode(cfg["rx_mode"], cfg["rx_class"])
fmc.converter.dac.set_jesd204_mode(cfg["tx_mode"], cfg["tx_class"])
`cfg["tx_mode"]` was already being populated by `_solve_ad9081_config`;
it was just being discarded at the apply step.1 parent dfb51e1 commit 7f991f1
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
121 | 131 | | |
122 | 132 | | |
123 | 133 | | |
| |||
0 commit comments