Files
mu300-linux/kernel
Abdurrahman Kaan DikeçandClaude Opus 5 05080b76fe Build Unisoc's audio stack against our kernel: 23 modules, all loading
kernel/build-audio.sh produces the drivers behind real call audio from the realme unisoc-5.4 tree - the DSP
loader sprd_audcp_boot, agdsp_access, audio_sipc, audio_mem, the VBC v4 voice DAI, the UMP9620 codec, the PCM
platform and the machine card - and all 23 insmod cleanly on the device. The kernel config needed nothing:
CONFIG_SND_SOC, SND_SOC_COMPRESS and SND_SOC_TOPOLOGY are already built in, which is why soc-audio was sitting
there as a registered platform driver with nothing to do.

Three things about the build are worth the comments they got. Order matters and one pass does not suffice, so
it builds repeatedly and hands every Module.symvers produced so far to the next attempt. A failed attempt must
be cleaned before retrying or the leftover objects link twice and the error is "duplicate symbol:
__this_module", which points nowhere. And the UMP9620 codec only compiles with
BSP_KERNEL_DEFCONFIG=sprd_qogirn6pro_defconfig, because its Kbuild hides the codec define behind that and the
failure without it is an implicit declaration of TO_STRING hundreds of lines away.

The device tree turns out not to be the obstacle. sound@0 is okay and fully described, audiocp_boot has its
whole register set, and the machine driver binds it as vbc-rxpx-codec-sc27xx - the same binding the community
Android modules use. What stops it is the DSP: the card defers for ever because the DAI link cannot be parsed
until the audio SIPC channel exists, and that channel says ENODEV because nothing has started the DSP. This
board reserves no memory for it and carries no AGDSP image.

That leaves two concrete tasks rather than a port: reserve the memory, and supply the image.

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