Caleb

Jun 9, 2021

Please welcome Caleb Connolly, @calebccff #Linux mainline & @postmarketOS developer

June 9 to 16 on @imakefoss

Interview: https://t.co/UlOHL001BS

@imakefoss is a rotation curation account, a blog, a YouTube channel and a podcast. https://t.co/zO120BxnRr

Jun 9, 2021

Hi! This is shaping up to be an exciting week, I’m looking forward to sharing some of the things I get up to.

From haptics drivers to the GPT partition format, running Linux on Android phones is a whole lot of fun.

Thanks so much to the IMakeFOSS team for the invite!

~ Caleb C

Jun 10, 2021

Celebrating my first vaccine by cleaning up my Qualcomm Plug n Play haptics driver to hopefully start upstreaming! :D

~Caleb C https://t.co/4MVna3VeDf

Jun 10, 2021

The Linux input forcefeedback API is an interesting choice for haptics, but there aren’t really any suitable alternatives. It means that your haptics device shows up as an input device!

~Caleb C https://t.co/zbfG1hHAKl

Jun 11, 2021

Good afternoon/evening :D

Today I’m finally doing some research into headphone jack detection - which is currently broken.

The screenshot shows the headphone jack being created for sdm845, the NULL value should be an array of ‘pins", sounds promising 👀

~Caleb C https://t.co/M1dLhaHNZL

Jun 11, 2021

Aha! Now we have to see if the OnePlus 6 has any GPIOs to change value on headphone jack connect / disconnect.

~Caleb C https://t.co/y5vlmZ3KNb

Jun 11, 2021

Hmm, none of the regular GPIOs change.

Turns out the internal codec (which is hooked up to the headphone jack) has 5 GPIOs of it’s own, after adding some debugging it looks like they don’t do anything either! All that hacking for nothing >.<

~Caleb C https://t.co/VMOHft5Oen

Jun 11, 2021

Alright lets go chasing IRQs instead… https://t.co/7OJpc49X58

Jun 11, 2021

Aha, it looks like we have to tell the hardware to actually fire and interrupt on headphone cable insert / remove

And that functionality was never implemented…

Jun 11, 2021

And someone else already did all that hard work for us :D (althoug, it never got accepted upstream)

https://t.co/LOrDQdg2vL

~Caleb C

Jun 11, 2021

It is at times like this where I start to question my sanity 😂

~Caleb C https://t.co/XeXo85yNvn

Jun 11, 2021

Ah, the IRQ framework developers are having a lot of fun I see :>

~Caleb C https://t.co/aAyqhgLZhK

Jun 12, 2021

Good evening!

It’s been a busy day of preparing patches, I’m trying to prepare my Qualcomm haptics driver for upstream so hopefully it will be one less patch to worry about :>

Hopefully I’ll have something more interesting than diff stats to show off soon…

~Caleb C https://t.co/A7IuRHOW4K

Jun 12, 2021

It’s been a lot of fun to work on this driver, my first driver for Linux! It had to be written based entirely on the downstream Android kernel driver as absolutely no documentation for this hardware exists publicly…

~Caleb C

Jun 13, 2021

I hope you’re all having a nice Sunday afternoon, I’m trying out some new UIs for postmarketOS… https://t.co/evvEeyoW2O

~Caleb C

Jun 16, 2021

Hi! Thanks for such a fun week, unfortunately a lot of stuff came up in the last few days. It’s been a lot of fun to share with you all some of the things I work on.

Thanks @josp0001 for hosting me and being so helpful!

And remember, in FOSS everyone is a contributor :D

~Caleb