sgtl5000-audio headset/speaker switch fail

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

sgtl5000-audio headset/speaker switch fail

612 Views
denniswang_tw
Contributor II

Dear all,

I am using customized imx6DL with sgtl5000-audio.

I have a issue about audio jack switch issue:

When insert headset, audio change from speaker to headset is ok.

After remove headset, the audio status still keep in headset inserted, and audio also didn't change back to speaker.

I had already confirm that headset detection gpio is correct.

When issue happened, the iMX6DL AUD_RXD is always low.

Is any one know what happened?

All suggestions are welcome.

Thanks.

Labels (4)
1 Reply

424 Views
art
NXP Employee
NXP Employee

The SGTL5000 audio codec itself doesn't have any mechanism of detecting a headphone insertion/ejection. So, you have to use some external circuitry for this purpose, e.g. a mechanical contact that detects a headset jack presence and drives the processor's GPIO input. If you use such a mechanism, first, check the software that detects the GPIO state (the software should not be sensitive to possible signal ringing that may occur due to the contact bouncing when the insertion/ejection transition occurs, so, some debouncing algorithm should be implemented).


Have a great day,
Artur