Files
mu300-linux/docs
Abdurrahman Kaan DikeçandClaude Opus 5 cceff98ef2 audio: MCDT was switched off, and where the stall actually is
BIT_MCDT_EN (bit 12 of MODULE_EB0_STS at 0x64900000) was clear, so
check_agcp_mcdt_clock() returned false and every MCDT register access was
skipped - setup included, since mcdt_reg_read/raw_write/update all return early
without touching the hardware. "mcdt_dac_dma_enable ... mcdt_dma_ap_channel=1"
still prints, which is what makes it look healthy. Nothing in the audio drivers
ever writes that bit; they only read it.

I had written the "agcp mcdt clocl not available" message off as a teardown
artifact because that is where it first appears - after agdsp_access_disable()
drops the power domain. It was telling the truth. Setting the bit while the
domain is powered silences it and it persists. This matters for the voice path,
which runs through MCDT; normal playback does not, and its trace has no MCDT
lines at all.

Also records where media playback actually stops, with the measurements rather
than the guesses: the DMA advances once by 160 frames - exactly the burst:160
the driver programs - and then stops, with both sprd_dma interrupt counters at
zero throughout. Around that, the trigger path runs in full, the codec DAC and
its clocks are powered, and the DSP answers. Dynamic debug on the four audio
modules is what makes it visible and is the first thing to turn on when picking
this up. The device-type, mute, volume, codec-output, Virt Output Switch and
agdsp_access_en controls were all tried and change nothing.

With a warning attached: two experiments here took the board down hard enough
that slot B lost its trial and LK rolled back to Android.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Z17MBkdHmZPvNPNSLxcHk
2026-09-21 22:31:51 +03:00
..