An audio input circuit and electronic device compatible with headphone jack
By using the on/off logic coordinated control of the dual-switch module, the compatibility issues between three-segment and four-segment headphone interfaces were resolved, reducing hardware costs and design complexity, and enabling adaptive switching of interface types.
Patent Information
- Application Number
- CN202522734092.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-24
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2035-12-24
AI Technical Summary
Existing technologies require additional dedicated control chips to achieve compatibility between three-segment and four-segment headphone jacks, leading to increased hardware costs and design complexity.
The system employs a dual-switch module for on/off logic coordinated control. By combining the first and second switch modules, it achieves compatibility with three-segment and four-segment headphone jacks, avoiding reliance on dedicated control chips.
It reduced the overall implementation cost of the solution, simplified the design complexity, reduced the risk of failure, and enabled adaptive switching between different interface types.
Smart Images

Figure CN224987573U_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of headphone jack compatibility, and more particularly to an audio input circuit and electronic device compatible with headphone jacks. Background Technology
[0002] In applications where audio devices are compatible with three / four-segment interfaces, if a CODEC (Audio Codec) that only supports one four-segment input (meaning it has only one microphone input channel) is used, dynamic switching of the signal path is required to adapt to different interface types. When a four-segment headphone is connected, the CODEC's microphone input channel needs to receive the microphone signal from the interface; in this case, it must be ensured that the second interface signal does not occupy this channel. When a three-segment headphone is connected, since it does not require microphone input, the CODEC's microphone input channel must be isolated from the interface signal to prevent invalid signals from interfering with the audio output.
[0003] Currently, to achieve compatibility between three-segment and four-segment interfaces, a typical approach is to use an additional dedicated control chip to switch signal paths by identifying the interface type. While this method can meet compatibility requirements to some extent, it significantly increases the overall implementation cost due to the addition of extra hardware components. Utility Model Content
[0004] To overcome the shortcomings of the prior art, this application provides an audio input circuit and electronic device compatible with headphone jacks. Without adding a dedicated control chip, it achieves three-segment / four-segment interface adaptation through the on / off logic coordination of dual switch modules, thereby effectively reducing the overall implementation cost of the solution.
[0005] The technical solution adopted by this application to solve its technical problem is: In a first aspect, this application provides an audio input circuit compatible with a headphone jack, comprising: an audio codec module, a first switch module, a second switch module, and an interface module; The first input terminal of the first switch module is connected to the first output terminal of the second switch module and the first input terminal of the audio codec module; the first output terminal of the first switch module is grounded; the first input terminal of the second switch module is connected to the first output terminal of the interface module. The second input terminal of the first switch module is connected to the second output terminal of the second switch module and the second input terminal of the audio codec module; the second output terminal of the first switch module is grounded; the second input terminal of the second switch module is connected to the second output terminal of the interface module. By setting the on / off states of the first switch module and the second switch module, the signal transmission paths of the first interface signal and the second interface signal output by the interface module are controlled to adapt to different types of audio interfaces.
[0006] Optionally, the first switch module includes a first DIP switch; The first terminal of the first DIP switch and the second terminal of the first DIP switch are grounded. The third terminal of the first DIP switch is connected to the second output terminal of the second switch module and the second input terminal of the audio codec module; The fourth terminal of the first DIP switch is connected to the first output terminal of the second switch module and the first input terminal of the audio codec module.
[0007] Optionally, the first switch module includes a first logic unit, a second logic unit, and a microcontroller; The trigger terminal of the first logic unit is connected to the first terminal of the microcontroller, the output terminal of the first logic unit is grounded, and the input terminal of the first logic unit is connected to the first input terminal of the audio codec module. The connection point between the first logic unit and the audio codec module is connected to the first output terminal of the second switch module; The trigger terminal of the second logic unit is connected to the second terminal of the microcontroller, the output terminal of the second logic unit is grounded, and the input terminal of the second logic unit is connected to the second input terminal of the audio codec module. The connection point between the second logic unit and the audio codec module is connected to the second output terminal of the second switch module.
[0008] Optionally, the first logic unit includes a first MOS transistor; The gate of the first MOS transistor is connected to the first terminal of the microcontroller, the source of the first MOS transistor is grounded, and the drain of the first MOS transistor is connected to the first input terminal of the audio codec module.
[0009] Optionally, the second logic unit includes a second MOS transistor; The gate of the second MOS transistor is connected to the second terminal of the microcontroller, the source of the second MOS transistor is grounded, and the drain of the second MOS transistor is connected to the second input terminal of the audio codec module.
[0010] Optionally, the second switch module includes a second DIP switch; The first end of the second DIP switch is connected to the connection point between the first input end of the audio codec module and the first input end of the first switch module; The second terminal of the second DIP switch is connected to the connection point between the second input terminal of the audio codec module and the second input terminal of the first switch module; The third terminal of the second DIP switch is connected to the second output terminal of the interface module, and the fourth terminal of the second DIP switch is connected to the first output terminal of the interface module.
[0011] Secondly, this application provides an electronic device equipped with the aforementioned audio input circuit compatible with a headphone jack.
[0012] The working principle of this application is based on the audio codec module's determination of the headphone type, and the signal path switching is achieved through the coordinated control of the first switch module and the second switch module. Specifically, when a four-segment headphone is connected, the first interface signal (RING2) and the sleeve signal (SLEEVE) output by the interface module are transmitted to the audio codec module via the second switch module, while the first switch module remains open to avoid signal grounding; when a three-segment headphone is connected, the first switch module grounds redundant microphone-related signals (such as the first interface signal), and the second switch module cuts off the transmission path of this signal in the interface module, retaining only the left / right channel signal path.
[0013] The advantages of this application are: the first and second switch modules can use low-cost analog switching elements, such as MOSFETs or DIP switches, which have lower material costs and simpler peripheral circuits compared to dedicated chips. At the same time, configuring the switch on / off state through mechanical DIP switches or level control avoids complex timing control logic, reducing design complexity and potential failure risks.
[0014] As can be seen, by combining the states of the two switch modules, the microphone signal transmission requirements of the four-segment headphones can be met, and the signal conflict problem of the three-segment headphones can be eliminated through grounding isolation. The adaptive switching between the two interface types can be completed without relying on a dedicated interface identification chip, which significantly reduces the cost of the solution while ensuring the integrity of the function. Attached Figure Description
[0015] Figure 1 This is a schematic diagram of a module of an audio input circuit compatible with a headphone jack provided in an embodiment of this application; Figure 2 This is a circuit schematic diagram of the audio input circuit with a headphone jack compatible with the first embodiment of this application; Figure 3 This is a circuit diagram of an audio input circuit compatible with a headphone jack provided in the second embodiment of this application. Detailed Implementation
[0016] The present application will be further described below with reference to the accompanying drawings and embodiments.
[0017] The following will clearly and completely describe the concept, specific structure, and resulting technical effects of this application in conjunction with embodiments and accompanying drawings, so as to fully understand the purpose, features, and effects of this application. Obviously, the described embodiments are only a part of the embodiments of this application, not all of them. Other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are all within the scope of protection of this application. Furthermore, all connections / linkages involved in the patent do not simply refer to direct contact between components, but rather to the ability to form a better connection structure by adding or reducing connecting accessories according to specific implementation conditions. The various technical features in this application can be combined interactively without contradicting each other.
[0018] Reference Figure 1 , Figure 1 This is a schematic diagram of the audio input circuit compatible with headphone jacks provided in this application embodiment. The diagram shows several key modules involved in the audio input circuit compatible with three-segment / four-segment headphone jacks provided in this application, including: an audio codec module, a first switch module, a second switch module, and an interface module. The following description, in conjunction with... Figure 1 Please provide a detailed explanation: The first input terminal of the first switch module is connected to the first output terminal of the second switch module and the first input terminal of the audio codec module; the first output terminal of the first switch module is grounded; the first input terminal of the second switch module is connected to the first output terminal of the interface module. The second input terminal of the first switch module is connected to the second output terminal of the second switch module and the second input terminal of the audio codec module; the second output terminal of the first switch module is grounded; the second input terminal of the second switch module is connected to the second output terminal of the interface module. By setting the on / off states of the first switch module and the second switch module, the signal transmission paths of the first interface signal and the second interface signal output by the interface module are controlled to adapt to different types of audio interfaces.
[0019] The first and second switch modules are components used to control the on / off state of signals. Each has an input and an output terminal, and they determine whether a signal can pass through by changing its on / off state. The interface module is responsible for encoding and decoding audio signals and is the core processing unit for audio input and output.
[0020] The interface module is responsible for physically connecting the headphones and transmitting audio signals. During operation, when the headphones are plugged into the interface module, their physical pins (such as the RING2 and SLEEVE pins of a four-segment headphone) make contact with the internal contacts of the interface module, causing the RING2_CONN and SLEEVE_CONN signals to be transmitted to subsequent modules respectively.
[0021] Specifically, this audio input circuit achieves interface compatibility through the cooperation of an interface module, two switch modules, and an audio codec module. The first input terminal of the first switch module is connected to the first output terminal of the second switch module and the first input terminal of the audio codec module, with its output terminal grounded. The first input terminal of the second switch module is connected to the output terminal of the interface module. Similarly, the second input terminal of the first switch module is connected to the second output terminal of the second switch module and the second input terminal of the audio codec module, with its output terminal also grounded. By controlling the on / off states of the first and second switch modules, the "first interface signal" and "second interface signal" output by the interface module can be selectively connected to the audio codec module or grounded, thereby adapting to different types of headphone jacks.
[0022] In a specific embodiment, when a four-segment audio interface is connected, the interface module outputs valid first and second interface signals. At this time, the first input and first output terminals of the second switch module are connected, as are the second input and second output terminals, while both input and output terminals of the first switch module are disconnected. In this way, the first and second interface signals can be successfully transmitted to the two input terminals of the audio codec module through the second switch module, realizing the audio input / output function.
[0023] When a three-segment audio interface is connected, the interface module may only output one valid signal (e.g., the second interface signal corresponds to the ground terminal). In this case, the first input terminal and the first output terminal of the first switch module can be turned on to ground the first interface signal, while the first input terminal and the first output terminal of the second switch module are turned off to prevent invalid signals from entering the audio codec module. The second input terminal and the second output terminal of the second switch module are turned on to allow the second interface signal (ground signal) to be transmitted normally, thus adapting to the requirement that the three-segment interface only supports audio output.
[0024] This method of signal path control through simple on / off combinations significantly reduces the overall implementation cost while ensuring compatibility because the cost of the switching module itself is much lower than that of a dedicated control chip, and it does not require complex control logic and peripheral circuits. Interface type adaptation can be completed solely through hardware-level on / off configuration.
[0025] In the first embodiment provided in this application, it is proposed that two DIP switches can be used in combination to achieve the technical concept proposed in this application. Please refer to... Figure 2 , Figure 2 This is a circuit schematic diagram of the audio input circuit with a headphone jack compatible with the first embodiment of this application. The following is in conjunction with... Figure 2 Please provide a detailed explanation: In the first embodiment, regarding the first switch module: the first switch module includes a first DIP switch; The first terminal of the first DIP switch and the second terminal of the first DIP switch are grounded. The third terminal of the first DIP switch is connected to the second output terminal of the second switch module and the second input terminal of the audio codec module; The fourth terminal of the first DIP switch is connected to the first output terminal of the second switch module and the first input terminal of the audio codec module.
[0026] A DIP switch is a mechanical switch that controls the on / off state of a circuit through manual dialing. It typically has multiple independently operable positions, each corresponding to the on / off state of a set of contacts. In the first embodiment, the first DIP switch is the core component of the first switch module.
[0027] Regarding the second switch module: The second switch module includes a second DIP switch; The first end of the second DIP switch is connected to the connection point between the first input end of the audio codec module and the first input end of the first switch module; The second terminal of the second DIP switch is connected to the connection point between the second input terminal of the audio codec module and the second input terminal of the first switch module; The third and fourth terminals of the second DIP switch serve as the output terminals of the second switch module and are connected to the input terminals of the interface module.
[0028] The second DIP switch is used in conjunction with the first DIP switch to further refine the signal path control of the three / four-segment audio interface.
[0029] Specifically, the switching between three-segment and four-segment audio interfaces is achieved through the combined logic of the first and second DIP switches. When it is necessary to switch the audio interface type, the signal path is controlled by adjusting the on / off state (closed / open) of the two DIP switches. When using a four-segment headphone jack, the first and second terminals of the first DIP switch are open (not grounded), and the third terminal is closed (connecting the output of the second switch module); the fourth terminal of the second DIP switch is closed (connecting to the first output terminal of the interface module, corresponding to the RING2_CONN signal), and the third terminal is closed (connecting to the second output terminal of the interface module, corresponding to the SLEEVE_CONN signal). At this time, both the RING2_CONN and SLEEVE_CONN signals are transmitted through the audio codec module, meeting the signal requirements of the four-segment interface.
[0030] To switch to a three-segment interface, close the first terminal of the first DIP switch (ground) and open the fourth terminal of the second DIP switch. At this time, the SLEEVE_CONN signal is grounded through the first DIP switch, and only the RING2_CONN signal is retained for transmission, which is compatible with the pin definition of the three-segment interface.
[0031] This design achieves signal path switching through purely mechanical DIP switches, requiring no modification to the circuit hardware. Interface type conversion can be completed simply by manually adjusting the switch state, demonstrating the advantages of low cost and high flexibility.
[0032] In the second embodiment provided in this application, a scheme is proposed to replace the first DIP switch proposed in the first embodiment of this application with a switch control device. Please refer to [link / reference]. Figure 3 , Figure 3 This is a circuit schematic diagram of the audio input circuit with a headphone jack compatible with the second embodiment of this application. The following is in conjunction with... Figure 3 Please provide a detailed explanation: In the second embodiment, the first switch module includes a first logic unit, a second logic unit, and a microcontroller; The trigger terminal of the first logic unit is connected to the first terminal of the microcontroller, the output terminal of the first logic unit is grounded, and the input terminal of the first logic unit is connected to the first input terminal of the audio codec module. The connection point between the first logic unit and the audio codec module is connected to the first output terminal of the second switch module; The trigger terminal of the second logic unit is connected to the second terminal of the microcontroller, the output terminal of the second logic unit is grounded, and the input terminal of the second logic unit is connected to the second input terminal of the audio codec module. The connection point between the second logic unit and the audio codec module is connected to the second output terminal of the second switch module.
[0033] Among them, the first logic unit and the second logic unit are the core control components, which usually use MOSFETs (Metal-Oxide-Semiconductor Field Effect Transistors) to control the grounding state of the audio signal; the microcontroller is the control signal source, which drives the logic unit to work by outputting high and low level signals.
[0034] Specifically, the first switch module implements signal path control through two logic units and a microcontroller. The trigger terminal of the first logic unit is connected to the first terminal of the microcontroller, the input terminal is connected to the first input terminal of the audio codec module (such as the RING2_CONN signal), and the output terminal is grounded; the connection point between its input terminal and the audio codec module is also connected to the first output terminal of the second switch module. The trigger terminal of the second logic unit is connected to the second terminal of the microcontroller, the input terminal is connected to the second input terminal of the audio codec module (such as the SLEEVE_CONN signal), the output terminal is also grounded, and the connection point between its input terminal and the audio codec module is connected to the second output terminal of the second switch module.
[0035] When the microcontroller outputs a high-level signal, the first logic unit is turned on, grounding the RING2_CONN signal input from the interface module through its output terminal. If the output is low, the first logic unit is turned off, and the RING2_CONN signal remains connected. Similarly, the microcontroller controls the on / off state of the second logic unit to determine whether the SLEEVE_CONN signal is grounded. Through independent control of the two logic units by the microcontroller, the grounding states of the RING2_CONN and SLEEVE_CONN signals can be flexibly switched, thus adapting to different types of audio interfaces.
[0036] More specifically, in the second embodiment provided in this application, the first logic unit includes a first MOS transistor; The gate of the first MOS transistor is connected to the first terminal of the microcontroller, the source of the first MOS transistor is grounded, and the drain of the first MOS transistor is connected to the first input terminal of the audio codec module.
[0037] The second logic unit includes a second MOS transistor; The gate of the second MOS transistor is connected to the second terminal of the microcontroller, the source of the second MOS transistor is grounded, and the drain of the second MOS transistor is connected to the second input terminal of the audio codec module.
[0038] Specifically, the first MOSFET in the first logic unit receives the control signal output from the first terminal of the microcontroller through its gate, its source is directly grounded, and its drain is connected to the first input terminal of the audio codec module. When the first terminal of the microcontroller outputs a high level, the gate voltage of the MOSFET reaches the conduction threshold, forming a conductive channel between the source and drain, and the first output terminal of the audio codec module is grounded through the MOSFET; when the control signal is low, the MOSFET is turned off, the source and drain are disconnected, and the first output terminal of the audio codec module is not grounded.
[0039] The operating mechanism of the second logic unit is exactly the same as that of the first logic unit: the gate of the second MOS transistor is connected to the second terminal of the microcontroller, the source is grounded, and the drain is connected to the second output terminal of the audio codec module. The grounding state of the second output terminal of the audio codec module is independently controlled by the high and low level signals output from the second terminal of the microcontroller.
[0040] Based on this, when a four-segment headphone jack is connected (both RING2_CONN and SLEEVE_CONN signals must not be grounded), the microcontroller outputs a low level at both its first and second terminals. The gates of the first and second MOSFETs have no trigger signal, and the drain and source are disconnected. The RING2_CONN and SLEEVE_CONN signals are then transmitted normally to the headphones through the audio codec module. If switched to a three-segment headphone jack (SLEEVE_CONN signal must be grounded), the microcontroller outputs a high level at its second terminal, triggering the gate of the second MOSFET to conduct. The drain (connected to the SLEEVE_CONN signal) is connected to the source (grounded), and the SLEEVE_CONN signal is grounded, leaving only the RING2_CONN signal path intact.
[0041] During this process, the fast conduction characteristics of the MOSFET ensure that the signal switching is delayed and avoids audio interruption; the electronic control method eliminates the need for manual operation by the user, improving ease of use; at the same time, the microcontroller can automatically output control signals by detecting the headphone type, achieving intelligent adaptation.
[0042] Secondly, this application provides an electronic device equipped with the aforementioned audio input circuit compatible with a headphone jack.
[0043] The above is a detailed description of the preferred embodiments of this application. However, the invention of this application is not limited to the embodiments described. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this application. All such equivalent modifications or substitutions are included within the scope defined by the claims of this application.
Claims
1. An audio input circuit compatible with a headphone jack, characterized in that, include: Audio codec module, first switch module, second switch module, and interface module; The first input terminal of the first switch module is connected to the first output terminal of the second switch module and the first input terminal of the audio codec module; the first output terminal of the first switch module is grounded; the first input terminal of the second switch module is connected to the first output terminal of the interface module. The second input terminal of the first switch module is connected to the second output terminal of the second switch module and the second input terminal of the audio codec module; the second output terminal of the first switch module is grounded; the second input terminal of the second switch module is connected to the second output terminal of the interface module. By setting the on / off states of the first switch module and the second switch module, the signal transmission paths of the first interface signal and the second interface signal output by the interface module are controlled to adapt to different types of audio interfaces.
2. The audio input circuit with a headphone jack compatible according to claim 1, characterized in that, The first switch module includes a first DIP switch; The first terminal of the first DIP switch and the second terminal of the first DIP switch are grounded. The third terminal of the first DIP switch is connected to the second output terminal of the second switch module and the second input terminal of the audio codec module; The fourth terminal of the first DIP switch is connected to the first output terminal of the second switch module and the first input terminal of the audio codec module.
3. The audio input circuit compatible with headphone jacks according to claim 1, characterized in that, The first switch module includes a first logic unit, a second logic unit, and a microcontroller; The trigger terminal of the first logic unit is connected to the first terminal of the microcontroller, the output terminal of the first logic unit is grounded, and the input terminal of the first logic unit is connected to the first input terminal of the audio codec module. The connection point between the first logic unit and the audio codec module is connected to the first output terminal of the second switch module; The trigger terminal of the second logic unit is connected to the second terminal of the microcontroller, the output terminal of the second logic unit is grounded, and the input terminal of the second logic unit is connected to the second input terminal of the audio codec module. The connection point between the second logic unit and the audio codec module is connected to the second output terminal of the second switch module.
4. The audio input circuit with a headphone jack compatible according to claim 3, characterized in that, The first logic unit includes a first MOS transistor; The gate of the first MOS transistor is connected to the first terminal of the microcontroller, the source of the first MOS transistor is grounded, and the drain of the first MOS transistor is connected to the first input terminal of the audio codec module.
5. The audio input circuit compatible with headphone jacks according to claim 3, characterized in that, The second logic unit includes a second MOS transistor; The gate of the second MOS transistor is connected to the second terminal of the microcontroller, the source of the second MOS transistor is grounded, and the drain of the second MOS transistor is connected to the second input terminal of the audio codec module.
6. The audio input circuit with a headphone jack compatible according to claim 1, characterized in that, The second switch module includes a second DIP switch; The first end of the second DIP switch is connected to the connection point between the first input end of the audio codec module and the first input end of the first switch module; The second terminal of the second DIP switch is connected to the connection point between the second input terminal of the audio codec module and the second input terminal of the first switch module; The third terminal of the second DIP switch is connected to the second output terminal of the interface module, and the fourth terminal of the second DIP switch is connected to the first output terminal of the interface module.
7. An electronic device, characterized in that, An audio input circuit equipped with a headphone jack as described in any one of claims 1-6.
