I thought one of them would have to be an output. Else I don't see where the reference voltage comes from. Since the codec is on the other side of a 10k (pull-up?) resistor, I figure that must be it. You could find out by plugging in a headphone plug and seeing if there's still a logical "high" at the codec.
If the codec GPIO is actually an input, then switching by the SOC interrupt seems redundant at best, a conflict at worst.
The whole thing doesn't make sense to me, I just don't see why the GPIO on the codec is necessary for this function.
I'm having a hard time reading the schematic on my phone (only option I have at the moment, and usually). But there is a separate schematic file that shows the jack.
If the codec GPIO is actually an input, then switching by the SOC interrupt seems redundant at best, a conflict at worst.
The whole thing doesn't make sense to me, I just don't see why the GPIO on the codec is necessary for this function.
I'm having a hard time reading the schematic on my phone (only option I have at the moment, and usually). But there is a separate schematic file that shows the jack.