diff --git a/components/st3m/st3m_audio.h b/components/st3m/st3m_audio.h index 3d0727e55ac02065ae506f26c14b3c9423d74036..431e6ab89e82e2f41ef2b00824b24f9d2f3803db 100644 --- a/components/st3m/st3m_audio.h +++ b/components/st3m/st3m_audio.h @@ -43,7 +43,7 @@ bool st3m_audio_headphones_are_connected(void); */ bool st3m_audio_headset_is_connected(void); -/* Returns true if the lin-in jack is connected to a cable. */ +/* Returns true if the line-in jack is connected to a cable. */ bool st3m_audio_line_in_is_connected(void); /* If a sleeve contact mic doesn't pull the detection pin low enough the diff --git a/docs/api/audio.rst b/docs/api/audio.rst index 41e835065b070b92718e42ee9c79b54f7e5d87d9..6225695299fab03dd8b1cecb9907380d40bfeabc 100644 --- a/docs/api/audio.rst +++ b/docs/api/audio.rst @@ -17,6 +17,11 @@ the "headphone" variant is chosen, else the "speaker" variant is chosen. Returns 1 if headphones with or without microphone were connected to the headphone jack at the last call of audio_update_jacksense. +.. py:function:: line_in_is_connected() -> bool + + Returns 1 if the line-in jack was connected at the last call + of audio_update_jacksense. + .. py:function:: headphones_detection_override(enable : bool) If a sleeve contact mic doesn't pull the detection pin low enough the