Files
mu300-linux/kernel
Abdurrahman Kaan DikeçandClaude Opus 5 4a1dfef098 audio: fix shm_shift, which had been silently doing nothing
Two mistakes stacked, and each one hid the other.

The patch was first written into audio_mem_whale2_parse_dt. This board's node is
compatible = "unisoc,audio-mem-sharkl5", so the code compiled, loaded, accepted
its module parameter and never ran. Moving it to the sharkl5 parser was the
obvious fix and it still did nothing, because of the second one:
build-audio.sh guarded the patch with `grep -q shm_shift`, and the first version
had already put that string in the tree - so the corrected patch was never
applied. The module kept the pr_info string from the old build, which made
`strings audio_mem.ko` look right while the call sat in the wrong function.

Then the regenerated patch would not compile: it had been diffed against a tree
that already carried the draft, so the declaration came out as a *context* line
and only the helper was an addition - putting the helper above the variable it
uses. It is now generated against pristine + audio-mem-fixed-region, which is the
base it actually builds on, and the guard keys on the function name instead of a
string an earlier version also had.

It works now: "moved the shared-memory addresses down by 0x100000, cmdaddr is now
0xaf880000", with smsg, aud-str, dsp-vbc and reg-dump following, all matching the
Moto G35's device tree.

Which turns that experiment into a clean negative. At its own addresses, its own
7 MiB region and its own shared memory, the Moto image still never answers, while
the donor image answers on the first try at this board's addresses. Whatever it
wants beyond a matching memory map, it is not the addresses.

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