Adding Alsa Loopback Interface before build

  • Hello,

    I tried to compile LE 12.2.1 with the option to use an Alsa loopback Interface.

    I changed the Kernel config file (CONFIG_SND_ALOOP=m) first before the make image process.

    But the modul has not been build, when compiling finished.

    How is it possible, to build LE with the apropriate aloop modul? Either fixed in kernel or as a modul?

    FYI; I want to use camilladsp with my LE Box (PI4b) and therefore I need a loopback interface.

    Thanks in advance.

    Best regards

    Olaf

  • Nevermind,

    I've read the GIT Wiki and will try that way (cloning, forking, editing and commiting...).

    Is this the right way:

    In my forked Git clone; edit /projects/RPi/devices/RPi4/linux/linux.aarch64.conf (add CONFIG_SND_ALOOP=m)

    Add the changed file to the forked repo:

    git add projects/RPi/devices/RPi4/linux/linux.aarch64.conf

    Download sources:

    PROJECT=RPi ARCH=aarch64 DEVICE=RPi4 tools/download-tool

    Start build process:

    PROJECT=RPi ARCH=aarch64 DEVICE=RPi4 make image

    Test the new image. Check if the loopback module exists and loads (modprobe snd-aloop)

    If succesfull:

    git commit -m "linux: enable Alsa Loopback Interface"

    ???

  • If you have a working default image building, edit projects/RPi/devices/RPi4/linux/linux.aarch64.conf to enable the module then rebuild the image and it will rebuild the kernel and update the image.

    At least that's the theory. It doesn't work for me on an Amlogic image with linux-7.3-rc2 kernel either, and diff comparing the edited conf and .config file from the kernel build folder shows the kernel has unset CONFIG_SND_ALOOP=m when processing the config; hence nothing gets built.

    I will task Claude to investigate the problem once I take a break from some other debugging. I suspect some kind of upstream kernel issue and not something on our side.

  • No mention of SND_DRIVERS there ^ so looks like a kernel bug to report and submit a fix for :)