jack as kernel module

Programming applications for making music on Linux.

Moderators: MattKingUSA, khz

Post Reply
manyids2
Established Member
Posts: 3
Joined: Thu Oct 31, 2024 2:38 pm

jack as kernel module

Post by manyids2 »

Hi,

I have been trying to jack working on various single board computers, like the anbernic rg35xx series, r36s, raspi zero 2w, etc. Since some of these devices are not completely open source (device trees, firmware, modified kernels, etc), it is difficult to get jack working on them (rt patch, support for POSIX IPC, usb audio modules, etc).

Considering that a lot of jack configuration is actually to do with the kernel, I was wondering if the right place for jack is actually a loadable kernel module, since that way we can bypass the need for rt permissions, memlock, IPC, etc. In other words, it could be a module just like alsa, just plug and play. Wrt the implementation, I guess the challenges would be to allocate memory to keep track of connections and a buffer to service audio/midi stream for each connection? I was thinking of just starting with the jack repo and at least implement a kernel module that responds to something like jack_connect, jack_lsp, etc., but doesnt actually make any audio connections as a starting point.

Does this sound reasonable? Or are there any fundamental constraints that jack has to be in user space?

User avatar
khz
Established Member
Posts: 1679
Joined: Thu Apr 17, 2008 6:29 am
Location: German
Has thanked: 48 times
Been thanked: 105 times

Re: jack as kernel module

Post by khz »

You are very welcome,

do you mean something like KLANG had in mind back then?

khz wrote: Fri Aug 10, 2012 2:01 pm

!vote KLANG \o/ >> http://klang.eudyptula.org/
KLANG: A New Linux Audio System For The Kernel >> https://www.phoronix.com/forums/forum/s ... #post31568; PaulDavis >> https://www.phoronix.com/forums/forum/s ... post363357

. . . FZ - Does humor belongs in Music?
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW

  • 𝝞|𝝞|I don't care about the freedom of speech because I have nothing to say. 𝝞|𝝞𝝞|𝝞|𝝞

manyids2
Established Member
Posts: 3
Joined: Thu Oct 31, 2024 2:38 pm

Re: jack as kernel module

Post by manyids2 »

Hey, thank you very much for the prior art! I will check out his approach and where he got!

manyids2
Established Member
Posts: 3
Joined: Thu Oct 31, 2024 2:38 pm

Re: jack as kernel module

Post by manyids2 »

Ok, I see that the idea was very much reviled.
Will first collect relevant research material.

Post Reply