I have Samsung S4 Mini (i9195) running close to mainline 6.19. Good. It took me more debugging that it should.
I also have patches that allowed me to trace execution from assembly to init/main.c to pagetable setup in C, using pixels on framebuffer and then with hacked console.
Pavel Machek
Pavel Machek
npub1hquy...zr0f
Riding horses, hacking computers, phones and smartwatch.
Self-built lk2nd simply works on S4 mini. Wow. That was easy :-).
Libcamera "simple" example usage has three files, 600 lines total. Good news is that it works, bad news is that it stops working almost as soon as I modify it... and not in a way that is easy to debug (segfault, debug trap, backtrace pointing to source line with "}"). I integrated it with SDL, and that was easy, got buffers mapped and translated to format that can be displayed. But when I try to close front camera and open back one, or to change resolution, bad things (tm) happen. Fact that empty build takes 15 seconds also does not help.
My code is at
. Press "Snap" button to demonstrate the problem.
If you can help debugging it, or can get it to work, or know better example to start from, please let me know. Would not mind boosts. You may get libcamera based application to take photos / record videos on phones in future if we can get this to work.

GitLab
mcam: Cleanups, still crashes when pressing "Snap" (456a19f6) ยท Commits ยท tui / libcamera ยท GitLab
My hacks for libcamera, most likely related to PinePhone.
Front camera on OnePlus 6 now "works" with libmegapixels. Good. More work ahead.