Hi all,
Well, following on my other thread on the topic... I've managed to implement polling (currently fixed at every 200msec) of the interrupt flags. Interrupts are read when the INT1 or INT2 lines are raised too but this at least allows us to monitor for when the button on the headset is released.
So far so good. However, if the user plugs in the headset with the button already pressed... the CODEC thinks a stereo headset is plugged in, and doesn't make any attempt to re-detect the headset when the button is released. This is a severe problem for us, as we're using this button as a hook switch on a handset... so it will be "pressed" most of the time, including at device power-up. I can turn off headset detection and turn it back on again, this results in quite a bit of noise since it acts like someone is unplugging and replugging the headset until such time as the button is released -- then on the next "plug-in" it behaves normally.
Is there a workaround other than to continually disable and re-enable the headset detection in order to re-detect the headset type?
Regards,
Stuart Longland