BC127 auto-detect MIC using PIO

Hello,

Using the BC127 to build a Bluetooth speaker.
The speaker can play music via a Bluetooth device using A2DP, or from a device connected to the MIC inputs.

I want to detect that a device has been plugged into the MIC (and then send the appropriate ROUTE command).
I’m using a 2.5mm standard audio jack with a plug-detect pin.

I have a host MCU, but due to lack of available inputs I prefer not to use any of its inputs for this task.
Is there any PIO that can be configured to detect the plug has been inserted?
(I want to connect the plug-detect pin to any PIO, so that the BC127 will then let my host MCU know about this event).

Any over idea to achieve the above?

Thanks!