mirror of
https://github.com/dikeckaan/mu300-linux.git
synced 2026-12-05 08:02:40 +00:00
Two patches and a config line, which between them remove the one thing standing between this device and call audio: audio-mem-mgr describes the DSP completely and has no memory-region, so audio_mem has nothing to give sprd_audcp_boot and the image can never be written. of-reserved-mem-add is the counterpart of the of-reserved-mem-skip patch already in the tree - where that one drops reservations the device tree asks for, this one adds ranges it forgot. CONFIG_OF_RESERVED_MEM_ADD, or reserved_mem_add= on the command line, takes base,size pairs in memparse syntax. audio-mem-fixed-region gives audio_mem four module parameters standing in for memory-region 0 and 1. At zero it reads the device tree exactly as before, so a board that does describe its regions is untouched. The addresses are 0xaf700000 3 MiB and 0xafa00000 6 MiB, which another UMS9620 device uses. They are not a guess: the F50 reserves nothing between ae8fffff and b0000000, both fit in that hole, and the second ends precisely where logobuffer begins. mu300-audio-dsp loads the drivers in dependency order - twice, since a probe that defers once succeeds on the second pass - and writes the firmware through sysfs if there is one. There cannot be one in this repository: the project publishes no proprietary files, and unlike the Wi-Fi and modem firmware there is no copy on the device to take, since the F50 has no audio DSP partition. Without an image the drivers still load and the DSP stays down, which is exactly where this was before. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017Z17MBkdHmZPvNPNSLxcHk