Files
courier-emu/docs/54921.pdf
T
Cryan209andClaude Opus 5 6ab71cbcea The dial tone reaches the C52 and is thrown away with it 31 ms later
Checked the premise before building the consume path. The DSP does not receive
the dial tone. The audio path now reports a peak at each hop, which locates the
break exactly:

    line_rx_peak       7986   the exchange handed the bridge this
    codec_in_peak      7986   this reached _queue_line_audio
    codec_handed_peak     0   this reached the C52 that is still running
    codec_rx_peak         0   this is what the C52 itself ever saw

    non-zero audio last handed at   instruction 47,026,207
    core rebuilt at                 instruction 47,162,901
    handed since that rebuild       none, ever

The tone is generated, converted and queued correctly, and then the bridge
builds a fresh NativeC5x at the call boundary 136,694 instructions later and the
queued audio goes with it. No non-zero sample is handed to the C52 again for the
rest of the run, so the supervisor waits out its timer against silence and
answers NO DIAL TONE truthfully.

An earlier finding here established that rebuilding costs the program nothing,
since the supervisor re-downloads the resident either way. Still true, and not
the whole account: the receive queue is not re-sent by anybody. On the board the
line does not stop while the DSP resets - the tone is still on the wire when it
comes back - so discarding samples in flight is not what the hardware does.

Two things ruled out along the way. The core's own codec_rx_peak cannot answer
this and reading it as an answer is a trap I fell into first: it lives in the
core, so a rebuild zeroes it whether or not the tone arrived. Only a peak kept
bridge-side and compared against the rebuild's instruction separates "the DSP
heard nothing" from "the DSP that heard it no longer exists". And the resampler
is not at fault: 263 conversions in the run, none empty, and a standalone
9600->7200 conversion of a 350+440 Hz tone returns a full-amplitude block.

So the mailbox consume path is NOT built here, because it would carry a report
the DSP has no way to originate. The order is: keep the receive queue across the
rebuild or stop rebuilding, then find whether the resident detects the tone,
then build the path that carries what it found.

44 tests green.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-09 11:10:43 +12:00

637 KiB