cuckoo hacks/patches
Posted: Sun Jan 26, 2014 9:45 pm
Greetings everybody,
I recently started hacking away at cuckoo in an attempt to make it at least work. I'll probably keep messing with it in the future, but decided to drop here some small fixes that instead of making my kernel oops, at least allow to test the sound with aplay. Relevant patches are cuckoo.h.patch.txt (from this thread) and cuckoo_pcm.h.patch.txt. cuckoo is, of course, still nowhere near fixed (as in, my vlc hangs when attempting to use the virtual card), but it's a start.
As for installation, the tar of ALSA shipped with the latest stable release appears to be useless on newer kernels - it caused mine to oops. It seems, though, that the ALSA from newer kernels (3.12.6 here) "just works". To install the module you need to compile ALSA as a module, selecting at least one driver so that the kernel flag SND_PCM is set, blacklist that driver, and then compile and install cuckoo as usual.
Oddities:
- For some reason "cuckoo" module appears in lsmod with quote marks, and rmmod needs to include them. I'd love to see if it isn't just my problem.
- edit - updated the dma buffer fix, it is probably done the right way now.
I'm planning to spend some time understanding and hacking cuckoo, and will probably put any subsequent patches in this thread. If you've got any resources (links to documentation etc.), that'd be great. Also, feel free to test it - carefully.
I recently started hacking away at cuckoo in an attempt to make it at least work. I'll probably keep messing with it in the future, but decided to drop here some small fixes that instead of making my kernel oops, at least allow to test the sound with aplay. Relevant patches are cuckoo.h.patch.txt (from this thread) and cuckoo_pcm.h.patch.txt. cuckoo is, of course, still nowhere near fixed (as in, my vlc hangs when attempting to use the virtual card), but it's a start.
As for installation, the tar of ALSA shipped with the latest stable release appears to be useless on newer kernels - it caused mine to oops. It seems, though, that the ALSA from newer kernels (3.12.6 here) "just works". To install the module you need to compile ALSA as a module, selecting at least one driver so that the kernel flag SND_PCM is set, blacklist that driver, and then compile and install cuckoo as usual.
Oddities:
- For some reason "cuckoo" module appears in lsmod with quote marks, and rmmod needs to include them. I'd love to see if it isn't just my problem.
- edit - updated the dma buffer fix, it is probably done the right way now.
I'm planning to spend some time understanding and hacking cuckoo, and will probably put any subsequent patches in this thread. If you've got any resources (links to documentation etc.), that'd be great. Also, feel free to test it - carefully.