mirror of
https://github.com/dikeckaan/mu300-linux.git
synced 2026-12-06 08:03:36 +00:00
kernel/patches/mcdt-enable-clock.patch: check_agcp_mcdt_clock() reads BIT_MCDT_EN and, when it is clear, every MCDT accessor returns early without touching the hardware - so MCDT gets configured into a void while setup still looks like it worked. Nothing in the driver set writes that bit. Since the driver already holds the regmap and knows the bit, have it enable the block it is about to program. The write only happens when the bit is clear and the result is read back, so a controller that genuinely cannot be enabled still reports false. mu300-audio-dsp gains a "profiles" command. The kernel takes the DSP parameters through request_firmware(), so tools/vbc-profile's output in /lib/firmware is all it needs, and the select value matters: (mode << 24) | (param_id << 16) | dsp_case does nothing visible with param_id 0, but with 0x5e - what a working device of this family carries - the mode is copied into the DSP's shared memory at sprd,shmaddr-dsp-vbc. The mode numbers are call scenes (Handset, Handsfree, Headset, BTHS, ... each NB/WB/SWB/FB/VOIP); there is no media mode in there at all, which is worth knowing before chasing media playback through them. FINDINGS records the reference comparison. A ZTE MU5358 registers the same sprdphone-sc2730 card and does carry call audio; between idle and an active call exactly 18 of its controls move, all routing and output. Applying the same shape here - every S_*_CODEC switch at once, the codec output tree, agdsp_access_en - changes nothing. Neither the F50's own Android nor a U30 Air (same ums9620) has any audio to compare against, but the U30 Air does carry the native UMS9620 parameter XMLs, which are a better source than the community's donor copies. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017Z17MBkdHmZPvNPNSLxcHk