Four-section earphone plosive elimination method and elimination system
By changing the connection form of the four-segment headset, it is recognized as a three-segment equivalent headset when the electronic device is started, the problem of burst sound caused by headphone recognition during the device startup is solved, and the original type of the headset is restored after starting, ensuring the normal operation of the audio function.
Patent Information
- Application Number
- CN202411919338.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-04-11
AI Technical Summary
During the restart or hibernation of electronic devices, the burst sound (POP sound) problems caused by the head-mechanical identification mechanism affect the user experience and the quality of the audio system.
By changing the connection form of the microphone segment and ground segment of the four-segment headphone plug, the control audio codec recognizes the inserted four-segment headphones as three-segment equivalent headphones to eliminate the burst sound. Restore the original connection form of the four-segment headset after the device is started, re-identify the headset type to restore the audio function.
It effectively eliminates the burst sound caused by the headphone recognition mechanism, improves the quality of the start-up stage of the electronic device audio system, and ensures the normal audio playback and voice input functions of the headphones.
Smart Images

Figure CN119815233A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic equipment interfaces, and in particular to a four-stage headphone plosive sound elimination method and elimination system. Background Art
[0002] In modern electronic device motherboards, the front combination jack Combo Jack can support the access of multiple audio devices, among which the four-segment headphones of the national standard and the American standard are the most typical. The difference between these two types of headphones is that the arrangement order of MIC and GND is different. In order to accurately identify the standard of the connected headphones, the audio codec Audio Codec uses the method of setting bias on MIC and GND for detection. However, during the reboot or sleep wake-up S5 process of the electronic device, the bias on MIC and GND will be connected to the head / earplug part of the headphones through the internal circuit of the headphones. This abnormal voltage connection phenomenon breaks the original stable state of the entire audio circuit, resulting in disturbing POP sound (explosive sound) during the related process of starting the electronic device. Therefore, an effective solution is urgently needed to solve the POP sound problem caused by the ear mechanism format recognition mechanism during the related process of starting the electronic device. Summary of the invention
[0003] The embodiment of the present application provides a four-stage headphone plosive sound elimination method for use in an electronic device, wherein the electronic device includes a combination jack and an audio codec, and the method includes:
[0004] During the startup of the electronic device, by changing the connection form of the microphone segment and the ground segment of the four-segment headphone plug, the audio codec is controlled to recognize the inserted four-segment headphone as a three-segment equivalent headphone, so as to eliminate the plosive sound caused by the headphone type recognition mechanism;
[0005] After the electronic device is started, the three-section equivalent earphone is restored to a four-section earphone by restoring the connection form of the microphone section and the ground section of the four-section earphone plug;
[0006] The audio codec is controlled to re-identify the type of the four-segment earphone plugged into the combination jack, so that the audio codec can realize the audio playback and voice input functions through the plugged four-segment earphone.
[0007] Optionally, the controlling the audio codec to recognize the inserted four-segment earphone as a three-segment equivalent earphone comprises:
[0008] The microphone section and the ground section of the four-section headphone plug inserted in the control combination jack are both grounded; the audio codec determines the four-section headphone plug whose microphone section and the ground section are both grounded; the audio codec identifies the inserted four-section headphone as a three-section equivalent headphone according to the determination result.
[0009] Optionally, restoring the three-segment equivalent earphone to a four-segment earphone includes:
[0010] Control the microphone section of the four-section headphone plug to connect to the microphone contact end of the combination jack;
[0011] The grounding section of the four-section earphone plug is controlled to connect to the ground contact terminal of the combination jack.
[0012] Optionally, the controlling the audio codec to re-identify the type of the four-segment headset plugged into the combination jack includes:
[0013] Inputting a trigger signal to the audio codec, wherein the trigger signal is used to indicate an operation of simulating earphone reinsertion;
[0014] The audio codec re-identifies the type of the four-segment earphone plugged into the combination jack when the three-segment equivalent earphone is restored to a four-segment earphone according to the trigger signal.
[0015] Optionally, by setting a signal switch, the four-section earphone plugged into the combination jack can be configured as a three-section equivalent earphone during the startup of the electronic device, and the three-section equivalent earphone can be restored to a four-section earphone after the electronic device is started.
[0016] The embodiment of the present application also provides a four-stage earphone plosive sound elimination system for use in an electronic device, wherein the electronic device includes a combination jack and an audio codec, and the plosive sound elimination system includes:
[0017] An embedded controller, an OR gate and a signal switch, wherein an insertion detection pin of the embedded controller and a jack detection pin of a connector to which the combination jack is connected are both connected to an input end of the OR gate, an output end of the OR gate is connected to a headphone type detection pin of the audio codec, and a microphone enable pin of the embedded controller is connected to the signal switch;
[0018] The first microphone ground pin and the first ground microphone pin of the audio codec are both connected to the combination jack through the signal switch; the left channel output pin and the right channel output pin of the audio codec are both connected to the combination jack.
[0019] Optionally, the signal switch includes a first common terminal and a second common terminal, a first normally open terminal and a second normally open terminal, and a first normally closed terminal and a second normally closed terminal;
[0020] The first microphone ground pin of the audio codec is connected to the first common terminal of the signal switch, and the first microphone ground pin of the audio codec is connected to the second common terminal of the signal switch;
[0021] The first normally open end and the second normally open end of the signal switch are both connected to the analog ground of the combination jack, the first normally closed end of the signal switch is connected to the second microphone ground pin connected to the combination jack, and the second normally closed end of the signal switch is connected to the second ground microphone pin connected to the combination jack.
[0022] Optionally, when the electronic device is powered off, the embedded controller sets the level on the microphone enable pin to low, and the signal switch connects the microphone pin and the ground pin connected to the combination jack to the analog ground of the combination jack according to the state of the microphone enable pin, so that the inserted four-stage earphones become three-stage equivalent earphones.
[0023] Optionally, when the electronic device is started, the embedded controller sets the level of the microphone enable pin high according to the acquired operating system identification value, and the signal switch connects the first microphone ground pin of the audio codec to the second microphone ground pin connected to the combination jack according to the state of the microphone enable pin, and connects the first ground microphone pin to the second ground microphone pin connected to the combination jack, so that the three-stage equivalent headphones are restored to four-stage headphones.
[0024] Optionally, after a preset time has passed since the level on the microphone enable pin is set high, the embedded controller sets the level on the insertion detection pin high, and the level output by the OR gate to the headphone type detection pin is high;
[0025] The audio codec re-judges the type of the inserted earphone according to the state of the earphone type detection pin.
[0026] An embodiment of the present application also provides an electronic device, including the four-stage headphone plosive sound elimination system as described above, wherein the plosive sound elimination system is used to eliminate the plosive sound caused by the earpiece type recognition mechanism during the process of starting up the electronic device and during the process of inserting the four-stage headphone into the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a flow chart of the four-stage headphone plosive sound elimination method according to an embodiment of the present application;
[0028] Figure 2 This is a flow chart of step S100 in the four-stage headphone plosive sound elimination method according to an embodiment of the present application;
[0029] Figure 3 4 is a structural block diagram of a four-stage headphone plosive sound elimination system according to an embodiment of the present application. DETAILED DESCRIPTION
[0030] Various aspects and features of the present application are described herein with reference to the accompanying drawings.
[0031] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.
[0032] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.
[0033] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.
[0034] It should also be understood that although the present application has been described with reference to some specific examples, those skilled in the art will be able to readily implement many other equivalent forms of the present application.
[0035] The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
[0036] Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments applied for are merely examples of the present application, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that obscure the present application. Therefore, the specific structural and functional details applied for herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present application in a variety of ways with substantially any suitable detailed structure.
[0037] This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present application.
[0038] During the restart or wake-up process of an electronic device, since all hardware components including the audio codec need to be reinitialized, the HAD (High Definition Audio) signal for communication between the CPU and the audio codec will be disconnected. During this process, the BIOS (Basic Input Output System) of the electronic device needs to reload and set the working parameters of the audio codec, which are stored in the verb table.
[0039] Since the audio codec is reinitialized during the restart or wake-up process of the electronic device, it will temporarily lose the correct control of the earphone, resulting in a sudden change in bias voltage. This rapid change in voltage will be transmitted to the headphone / earplug part through the internal circuit of the earphone, causing the sound unit in the earphone to emit a disturbing POP sound.
[0040] This POP sound not only seriously affects the user's auditory experience and reduces the quality of the audio system of the electronic device during the startup phase, but also causes defects in the initial part of the audio data in some professional application scenarios with high requirements for audio quality, such as audio recording and video editing, affecting the quality of the final work. Therefore, the embodiment of the present application provides a four-stage headphone popping sound elimination system and elimination method to solve the POP sound problem caused by the ear mechanism mode recognition mechanism during the restart or sleep wake-up process of the electronic device, thereby improving the overall performance of the audio system of the electronic device and user satisfaction.
[0041] In an embodiment of the present application, the electronic device may be a computer, a smart phone, a tablet computer or other device. These devices usually have a POP sound problem caused by the ear mechanism mode recognition mechanism during the restart or sleep wake-up process.
[0042] The following is a detailed description of the four-stage headphone plosive sound elimination method of the present application with reference to the accompanying drawings. Figure 1 Flow chart of the four-stage headphone plosive sound elimination method according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:
[0043] S100, during the startup process of the electronic device, by changing the connection form of the microphone segment and the ground segment of the four-segment headphone plug, controlling the audio codec to recognize the inserted four-segment headphone as a three-segment equivalent headphone, so as to eliminate the plosive sound caused by the headphone type recognition mechanism;
[0044] In the embodiments of the present application, a device such as a computer, a smart phone or a tablet computer generally includes an audio codec and a combo jack, wherein the audio codec is used to process various audio tasks, such as playing music, recording voice, and audio processing in video calls. The combo jack is used to plug in different types of headphones or other audio devices.
[0045] During the startup of an electronic device, the audio codec will detect and identify the headphones inserted into the combo jack. It determines the type of headphones by detecting the connection status and electrical characteristics of each pin of the headphone interface.
[0046] The earphones usually inserted into the combo jack can be three-segment earphones, four-segment earphones or other audio devices. Among them, the three-segment earphones are used for audio playback, and the four-segment earphones are used for audio playback and voice input. Other audio devices can be external microphones.
[0047] The plug of a three-section headphone includes a left channel section, a right channel section and a ground section (GND section). The plug of a four-section headphone includes a left channel section, a right channel section, a microphone section (MIC section) and a ground section. Correspondingly, the Combo Jack that plugs into the four-section headphone plug includes a left channel contact terminal, a right channel contact terminal, a microphone contact terminal (MIC contact terminal) and a ground contact terminal (GND contact terminal). Inside the electronic device, the Combo Jack can be connected to the audio codec Audio Codec through a connector and a lead.
[0048] By grounding the microphone section and the ground section of the four-section headphone plug inserted into the combo jack, the four-section earphone can be constructed into a three-section equivalent earphone, thereby eliminating the bias on the microphone section and the ground section of the four-section headphone plug, and further eliminating the POP sound caused by the earphone style recognition mechanism during the startup process of the electronic device.
[0049] S200, after the electronic device is started, restoring the connection form of the microphone section and the ground section of the four-section headphone plug to restore the three-section equivalent headphone to a four-section headphone;
[0050] After the electronic device is started, the audio codec Audio Codec no longer recognizes the type of headphones. By restoring the three-segment equivalent headphones to four-segment headphones, the MIC function of the four-segment headphones can be restored.
[0051] S300: Control the audio codec to re-identify the type of the four-segment earphone plugged into the combo jack, so that the audio codec can realize audio playback and voice input functions through the plugged four-segment earphone.
[0052] After the electronic device is started, the three-segment equivalent earphone is restored to the four-segment earphone. After a preset time, the audio codec Audio Codec re-identifies the type of earphone plugged into the combo jack Combo Jack. At this time, the audio codec Audio Codec identifies the plugged earphone as a four-segment earphone.
[0053] In the embodiment of the present application, a detection circuit is provided inside the audio codec Audio Codec, which applies a weak voltage to the headphone plug inserted in the combo jack Combo Jack, and then monitors the feedback of each pin. For three-band headphones, only specific voltage or current responses will be obtained on the pins corresponding to the left channel, right channel and GND; and for four-band headphones, due to the addition of the MIC pin, different electrical characteristics will be shown on this pin. The audio codec Audio Codec determines the type of headphones based on different detection results.
[0054] In the above step S100, during the startup of the electronic device, if Figure 2 As shown, controlling the audio codec AudioCodec to recognize the inserted four-segment earphone as a three-segment equivalent earphone includes:
[0055] S110. Controlling the microphone section and the grounding section of the four-section earphone plug inserted into the Combo Jack to be grounded, which is equivalent to temporarily converting the four-section earphone into a three-section earphone.
[0056] S120: The audio codec determines a four-section earphone plug in which both the microphone section and the ground section are grounded.
[0057] S130: The audio codec recognizes the inserted four-segment earphone as a three-segment equivalent earphone according to the determination result.
[0058] In the above step S200, after the electronic device is started, restoring the three-stage equivalent earphone to the four-stage earphone includes:
[0059] The microphone segment of the four-segment headphone plug is controlled to be connected to the microphone contact end of the combination jack Combo Jack; the ground segment of the four-segment headphone plug is controlled to be connected to the ground contact end of the combination jack Combo Jack; so that the three-segment equivalent headphone is restored to a four-segment headphone.
[0060] In the above step S300, controlling the audio codec to re-identify the type of the four-segment earphone plugged into the combo jack includes:
[0061] Input a trigger signal to the audio codec, which can be used to indicate the operation of simulating the reinsertion of headphones.
[0062] The audio codec re-identifies the type of the four-segment earphone plugged into the combo jack Combo Jack when the three-segment equivalent earphone is restored to the four-segment earphone according to the trigger signal.
[0063] In the embodiment of the present application, a signal switch can be set to configure a four-segment headset plugged into a combo jack into a three-segment equivalent headset during the startup of the electronic device, and then restore the three-segment equivalent headset to a four-segment headset after the electronic device is started. The signal switch can use a multi-pole multi-throw switch to achieve flexible allocation of the first microphone ground pin MIC_GND and the first ground microphone pin GND_MIC in the audio codec Audio Codec. Specifically, the signal switch can use a double-pole double-throw switch.
[0064] Based on the same inventive concept, the embodiment of the present application also provides a four-stage headphone plosive sound elimination system. Figure 3 : is a structural block diagram of a four-stage earphone plosive sound elimination system according to an embodiment of the present application, such as Figure 3 As shown, the system includes: an embedded controller EC, an OR gate and a signal switch Signal Switch. Among them, the insertion detection pin EC_DET of the embedded controller EC and the jack detection pin JD of the connector connected to the combination jack Combo Jack are both connected to the input end of the OR gate, the output end of the OR gate is connected to the headphone type detection pin Codec_DET of the audio codec Audio Codec, and the microphone enable pin MIC_Enable of the embedded controller EC is connected to the signal switch Signal Switch. The first microphone ground pin MIC_GND and the first ground microphone pin GND_MIC of the audio codec AudioCodec are both connected to the combination jack Combo Jack through the signal switch SignalSwitch. The left channel output pin HP_L and the right channel output pin HP_R of the audio codec Audio Codec are both connected to the combination jack Combo Jack.
[0065] In the process of restarting or waking up from sleep mode of the electronic device, the signal switch Signal Switch is used to connect the microphone pin (MIC pin) and the ground pin (GND pin) connected to the combo jack Combo Jack to the analog ground of the combo jack Combo Jack, so that the audio codec Audio Codec recognizes the inserted four-segment earphone as a three-segment equivalent earphone, so as to avoid the POP sound caused by the ear mechanism type recognition mechanism during the relevant process of starting the electronic device. After the embedded controller EC sets the level on the microphone enable pin MIC_Enable high, the OR gate is used to set the level on the earphone type detection pin Codec_DET connected to its output end high according to the level on the insertion detection pin EC_DET, so that the audio codec Audio Codec re-recognizes the inserted earphone type as a four-segment earphone, so as to restore the MIC function of the inserted four-segment earphone.
[0066] In a specific embodiment, the signal switch may be a double-pole double-throw switch, which is composed of two single-pole double-throw switches in parallel, with the two poles connected by insulating plastic and sharing a handle.
[0067] The signal switch includes a first common terminal and a second common terminal, a first normally open terminal and a second normally open terminal, and a first normally closed terminal and a second normally closed terminal.
[0068] The first microphone ground pin MIC_GND of the audio codec Audio Codec is connected to the first common end of the signal switch SignalSwitch, and the first microphone ground pin GND_MIC of the audio codec Audio Codec is connected to the second common end of the signal switch Signal Switch.
[0069] The first normally open end and the second normally open end of the signal switch Signal Switch are both connected to the analog ground AGND of the combination jack Combo Jack, the first normally closed end of the signal switch Signal Switch is connected to the second microphone ground pin MIC_GND connected to the combination jack Combo Jack, and the second normally closed end of the signal switch Signal Switch is connected to the second ground microphone pin GND_MIC connected to the combination jack ComboJack.
[0070] The working process of the four-stage earphone plosive sound elimination system of the embodiment of the present application is as follows:
[0071] When the electronic device is powered off, the embedded controller EC sets the level on the microphone enable pin MIC_Enable to a low level according to the output signal of the CPU, and the signal switch Signal Switch connects the MIC pin and the GND pin connected to the combo jack Combo Jack to the analog ground of the combo jack Combo Jack according to the state of the microphone enable pin MIC_Enable, so that the inserted four-stage earphones temporarily become three-stage equivalent earphones.
[0072] When the electronic device is started, the embedded controller EC maintains a low level on the microphone enable pin MIC_Enable. After the electronic device is started, the BIOS reloads and sets the working parameters of the audio codec Audio Codec, and stores the working parameters in the verb table Verbtable.
[0073] It should be noted that when an electronic device starts, the BIOS undertakes the important task of hardware initialization. For the audio codec Audio Codec, the BIOS first detects its existence and determines its hardware connection and basic capability information. Then, the BIOS starts to reload the working parameters of the audio codec Audio Codec according to the system preset or user-defined configuration information. These parameters include audio sampling rate, channel mode, audio encoding format, audio output power limit, and audio input source selection priority. The BIOS stores the set working parameters in the Verbtable, so that the audio codec Audio Codec can easily obtain these working parameters during the subsequent operation process, and when different audio processing tasks or states are switched, it can quickly adjust its own working mode according to the parameters in the verb table Verbtable. For example, when an audio application requests to switch the audio output mode (from headphone output to speaker output), the audio codec Audio Codec can directly query the parameter settings of the output mode in the verb table Verbtable, and quickly make corresponding hardware circuit adjustments and signal routing configurations. During the operation of the entire electronic device, as long as the audio codec needs to refer to its working parameters, it can read them directly from the verb table without the BIOS recalculating or reloading these parameters again, which can improve the system's operating efficiency and the response speed of audio processing.
[0074] The audio codec is initialized according to the set working parameters. Since the MIC pin and the GND pin connected to the combo jack are both grounded at this time, the audio codec recognizes the inserted earphone as a three-segment equivalent earphone.
[0075] The embedded controller EC obtains the OS_Flag (operating system identifier) value through the BIOS and sets the level on the microphone enable pin MIC_Enable to high. The signal switch Signal Switch connects the first microphone ground pin MIC_GND of the audio codec to the second microphone ground pin MIC_GND connected to the combo jack, and connects the first ground microphone pin GND_MIC to the second ground microphone pin GND_MIC connected to the combo jack, according to the state of the microphone enable pin MIC_Enable, so that the three-segment equivalent earphone is restored to a four-segment earphone.
[0076] After 500ms to 1s after the level on the microphone enable pin MIC_Enable is set high, the embedded controller EC sets the level on the insertion detection pin EC_DET high. At this time, regardless of whether the level on the jack detection pin JD is high, the output end of the OR gate outputs a high level, that is, the level on the headset type detection pin Codec_DET is high.
[0077] The audio codec Audio Codec re-determines the type of the inserted earphone according to the state of the earphone type detection pin Codec_DET at this time. It can be understood that at this time the audio codec Audio Codec recognizes the inserted earphone as a four-segment earphone, that is, the MIC function of the inserted four-segment earphone is restored at this time.
[0078] Based on the same inventive concept, the embodiment of the present application also provides an electronic device, including the above-mentioned four-stage earphone popping sound elimination system, which is used to eliminate the POP sound caused by the earpiece type recognition mechanism during the process of starting the electronic device, and the POP sound caused by the earpiece type recognition mechanism during the process of inserting the four-stage earphone into the electronic device. Specifically, the electronic device can be a computer, a tablet computer, a smart phone, a Bluetooth speaker, an external sound card, a video conferencing terminal, etc.
[0079] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.
Claims
1. A four-stage headphone plosive sound elimination method, used in an electronic device, the electronic device comprising a combination jack and an audio codec, the method comprising: During the startup of the electronic device, by changing the connection form of the microphone segment and the ground segment of the four-segment headphone plug, the audio codec is controlled to recognize the inserted four-segment headphone as a three-segment equivalent headphone, so as to eliminate the plosive sound caused by the headphone type recognition mechanism; After the electronic device is started, the three-section equivalent earphone is restored to a four-section earphone by restoring the connection form of the microphone section and the ground section of the four-section earphone plug; The audio codec is controlled to re-identify the type of the four-segment earphone plugged into the combination jack, so that the audio codec can realize the audio playback and voice input functions through the plugged four-segment earphone.
2. The method according to claim 1, wherein controlling the audio codec to recognize the inserted four-segment earphone as a three-segment equivalent earphone comprises: The microphone section and the ground section of the four-section headphone plug inserted in the control combination jack are both grounded; the audio codec determines the four-section headphone plug whose microphone section and the ground section are both grounded; the audio codec identifies the inserted four-section headphone as a three-section equivalent headphone according to the determination result.
3. The method according to claim 1, wherein restoring the three-segment equivalent earphone to a four-segment earphone comprises: Control the microphone section of the four-section headphone plug to connect to the microphone contact end of the combination jack; The grounding section of the four-section earphone plug is controlled to connect to the ground contact terminal of the combination jack.
4. The method according to claim 1, wherein the controlling the audio codec to re-identify the type of the four-segment headset plugged into the combo jack comprises: Inputting a trigger signal to the audio codec, wherein the trigger signal is used to indicate an operation of simulating earphone reinsertion; The audio codec re-identifies the type of the four-segment earphone plugged into the combination jack when the three-segment equivalent earphone is restored to a four-segment earphone according to the trigger signal.
5. The method according to claim 1, wherein a signal switch is set so that the four-stage earphone plugged into the combination jack is configured as a three-stage equivalent earphone during the startup process of the electronic device, and the three-stage equivalent earphone is restored to the four-stage earphone after the electronic device is started.
6. A four-stage headphone plosive noise elimination system, used in an electronic device, the electronic device comprising a combination jack and an audio codec, the plosive noise elimination system comprising: Embedded controllers, OR gates and signal switches; The insertion detection pin of the embedded controller and the jack detection pin of the connector to which the combination jack is connected are both connected to the input end of the OR gate, the output end of the OR gate is connected to the headphone type detection pin of the audio codec, and the microphone enable pin of the embedded controller is connected to the signal switch; The first microphone ground pin and the first ground microphone pin of the audio codec are both connected to the combination jack through the signal switch; the left channel output pin and the right channel output pin of the audio codec are both connected to the combination jack.
7. The system according to claim 6, wherein the signal switch comprises a first common terminal and a second common terminal, a first normally open terminal and a second normally open terminal, and a first normally closed terminal and a second normally closed terminal; The first microphone ground pin of the audio codec is connected to the first common terminal of the signal switch, and the first microphone ground pin of the audio codec is connected to the second common terminal of the signal switch; The first normally open end and the second normally open end of the signal switch are both connected to the analog ground of the combination jack, the first normally closed end of the signal switch is connected to the second microphone ground pin connected to the combination jack, and the second normally closed end of the signal switch is connected to the second ground microphone pin connected to the combination jack.
8. According to the system of claim 7, when the electronic device is turned off, the embedded controller sets the level on the microphone enable pin to low, and the signal switch connects the microphone pin and the ground pin connected to the combination jack to the analog ground of the combination jack according to the state of the microphone enable pin, so that the inserted four-stage earphones become three-stage equivalent earphones.
9. According to the system of claim 8, when the electronic device is started, the embedded controller sets the level of the microphone enable pin to high according to the obtained operating system identification value, and the signal switch connects the first microphone ground pin of the audio codec to the second microphone ground pin connected to the combination jack according to the state of the microphone enable pin, and connects the first ground microphone pin to the second ground microphone pin connected to the combination jack, so that the three-stage equivalent earphone is restored to a four-stage earphone.
10. The system according to claim 9, wherein after a preset time has passed after the level on the microphone enable pin is set high, the embedded controller sets the level on the insertion detection pin high, and the level output by the OR gate to the headphone type detection pin is high; The audio codec re-judges the type of the inserted earphone according to the state of the earphone type detection pin.
11. An electronic device, comprising the four-segment earphone plosive sound elimination system as claimed in any one of claims 6 to 10, wherein the plosive sound elimination system is used to eliminate plosive sounds caused by an earpiece type recognition mechanism during the process of starting up the electronic device and during the process of inserting the four-segment earphone into the electronic device.