CN112468923A - Audio processing circuit, method and device, electronic equipment and readable storage medium - Google Patents

Audio processing circuit, method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN112468923A
CN112468923A CN202011380692.9A CN202011380692A CN112468923A CN 112468923 A CN112468923 A CN 112468923A CN 202011380692 A CN202011380692 A CN 202011380692A CN 112468923 A CN112468923 A CN 112468923A
Authority
CN
China
Prior art keywords
module
resistor
earphone
interface
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011380692.9A
Other languages
Chinese (zh)
Other versions
CN112468923B (en
Inventor
林汉众
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011380692.9A priority Critical patent/CN112468923B/en
Publication of CN112468923A publication Critical patent/CN112468923A/en
Application granted granted Critical
Publication of CN112468923B publication Critical patent/CN112468923B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/05Detection of connection of loudspeakers or headphones to amplifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/09Applications of special connectors, e.g. USB, XLR, in loudspeakers, microphones or headphones

Abstract

The application discloses an audio processing circuit, an audio processing method, an audio processing device, electronic equipment and a readable storage medium, and belongs to the field of electronic equipment. The circuit includes: the device comprises an interface, a first comparison module, a coding and decoding module, a high-fidelity module and a control module, wherein a second comparator is arranged in the coding and decoding module; the first comparison module is provided with a first input end, a second input end, a first power supply end, a first grounding end and a first output end; the output end of the coding and decoding module is connected with the first end of the control module; the second end of the control module is connected with the input end of the high-fidelity module; the output end of the high-fidelity module is connected with the interface, and the joint of the external equipment is suitable for being plugged in the interface. The first comparison module converts the input high voltage into low voltage, can ensure that the voltage of the input end of the coding and decoding module is smaller than a damage value, can ensure the threshold of inserting and extracting the earphone, ensures the correctness of inserting logic and ensures the normal use of the earphone.

Description

Audio processing circuit, method and device, electronic equipment and readable storage medium
Technical Field
The application belongs to the field of electronic equipment, and particularly relates to an audio processing circuit, an audio processing method, an audio processing device, electronic equipment and a readable storage medium.
Background
With the rapid development of terminal equipment, a High-Fidelity (High-Fidelity) technology has been widely applied to intelligent terminals, the High-Fidelity technology can provide High-performance audio output of earphones, the essence of music is truly restored, a large impedance mode needs to be started for a user to provide High-Fidelity audio experience, and the connected earphones are High-impedance earphones.
The current terminal equipment judges whether an earphone is inserted or not by the level output by the output end of the insertion comparator. When the earphone is not inserted, the output of the insertion comparator is high level, and an Access Point (AP) control unit detects that the earphone is not inserted; when the earphone is inserted, the output of the insertion identification comparator is low level, and the AP detects the insertion of the earphone. Because in order to pursue a better music effect, when a high-impedance earphone is connected, the voltage amplitude output by the HIFI is increased, and the output of the inserted identification comparator is a high level, the earphone cannot be identified by the terminal equipment, the judgment logic is wrong, and the earphone cannot be normally used.
Disclosure of Invention
The embodiment of the application provides an audio processing circuit, an audio processing method, an audio processing device, an electronic device and a readable storage medium, and can solve the problem that when the electronic device is connected to a high-impedance earphone in the prior art, a judgment logic is wrong, and the earphone cannot be normally used.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an audio processing circuit is provided, comprising:
the device comprises an interface, a first comparison module, a coding and decoding module, a high-fidelity module and a control module, wherein a second comparator is arranged in the coding and decoding module;
the first comparison module is provided with a first input end, a second input end, a first power supply end, a first grounding end and a first output end; the first input end is connected with the interface and the first power supply end respectively, the second input end is connected with the first power supply end, the first output end is connected with the input end of the coding and decoding module, the first power supply end is connected with the first power supply end, and the first grounding end is grounded;
the output end of the coding and decoding module is connected with the first end of the control module;
the second end of the control module is connected with the input end of the high-fidelity module;
the output end of the high-fidelity module is connected with the interface, and the joint of the external equipment is suitable for being plugged in the interface.
In a second aspect, an electronic device is provided, comprising: an audio processing circuit as claimed in the first aspect.
In a third aspect, an audio processing method is provided, which is applied to the audio processing circuit in the first aspect, and the method includes:
identifying whether a headset is inserted into the interface;
acquiring the impedance of the earphone under the condition that the earphone is inserted into the interface;
outputting an audio signal through the earphone according to the impedance.
In a fourth aspect, an audio processing apparatus is provided, including:
the identification module is used for identifying whether an earphone is inserted into the interface;
the acquisition module is used for acquiring the impedance of the earphone under the condition that the earphone is inserted into the interface;
and the output module is used for outputting the audio signal through the earphone according to the impedance.
In a fifth aspect, an electronic device is provided, the electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the method according to the third aspect.
In a sixth aspect, a readable storage medium is provided, on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the third aspect.
In a seventh aspect, a chip is provided, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the third aspect.
In an eighth aspect, a processing device is provided, the processing device being configured to perform the steps of the method according to the third aspect.
The embodiment of the application provides an audio processing circuit, which comprises an interface, a first comparison module, a coding and decoding module, a high-fidelity module and a control module, wherein a second comparator is arranged in the coding and decoding module; the first comparison module is provided with a first input end, a second input end, a first power supply end, a first grounding end and a first output end; the first input end is respectively connected with the interface and the first power supply end, the second input end is connected with the first power supply end, the first output end is connected with the input end of the coding and decoding module, the first power supply end is connected with the first power supply terminal, and the first grounding end is grounded; the output end of the coding and decoding module is connected with the first end of the control module; the second end of the control module is connected with the input end of the high-fidelity module; the output end of the high-fidelity module is connected with the interface, and the joint of the external equipment is suitable for being plugged in the interface. In the embodiment of the application, the input high voltage is converted into the low voltage through the first comparison module, so that the voltage of the input end of the coding and decoding module can be ensured to be smaller than a damage value, the threshold of inserting and extracting the earphone can be ensured, the correctness of inserting logic is ensured, and the normal use of the earphone is ensured.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic structural diagram of an audio processing circuit according to an embodiment of the present application;
FIG. 2 is a circuit diagram of audio processing when a headset is not inserted according to an embodiment of the present application;
fig. 3 is an equivalent circuit diagram of an earphone when inserted according to an embodiment of the present application;
FIG. 4 is a flow diagram of an audio processing method provided by an embodiment of the present application;
FIG. 5 is a schematic diagram of an electronic device provided by an embodiment of the present application;
fig. 6 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application.
In the figure, 10-interface; 20-a first comparison module; 30-a coding and decoding module; 40-a control module; 50-high fidelity module; 60-earphone.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
An audio processing circuit, a method, an apparatus, an electronic device, and a readable storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings.
As shown in fig. 1-3, the audio processing circuit may include: the interface 10, the first comparison module 20, the coding and decoding module 30, the hi-fi module 50 and the control module 40, and a second comparator is arranged in the coding and decoding module 30.
Specifically, the first comparing module 20 has a first input terminal, a second input terminal, a first power terminal, a first ground terminal and a first output terminal; the first input end is connected with the interface 10 and the first power supply end respectively, the second input end is connected with the first power supply end, the first output end is connected with the input end of the coding and decoding module 30, the first power supply end is connected with the first power supply terminal, and the first ground end is grounded; the output end of the coding and decoding module 30 is connected with the first end of the control module 40; a second terminal of the control module 40 is connected to an input of the hi-fi module 50; the output of the hi-fi module 50 is connected to the interface 10 and the connectors of the external device are adapted to be plugged into the interface 10.
In the present embodiment, the hi-fi module 50 may output audio signals and detect the impedance of the earphones 60 of the access interface 10 based on the results output by the second terminal of the control module 40.
That is, in the case that the earphone 60 is not inserted into the interface 10, the first comparing module 20 outputs a high voltage to the codec module 30, and the codec module 30 outputs a high level to the control module 40, which indicates that the earphone 60 is not recognized; under the condition that the common earphone 60 is plugged into the interface 10, the first comparison module 20 outputs a low voltage to the codec module 30, the codec module 30 outputs a low level to the control module 40, which indicates that the earphone 60 is recognized, and when the high fidelity module 50 detects that the impedance of the earphone 60 is a low impedance, the high fidelity module 50 outputs a low level to the first comparison module 20, the first comparison module 20 outputs a low level to the codec module 30, the codec module 30 outputs a low level to the control module 40, and the control module 40 recognizes the earphone 60; under the condition that the high-impedance earphone 60 is inserted into the interface 10, the first comparison module 20 outputs a low voltage to the codec module 30, the codec module 30 outputs a low level to the control module 40, the control module 40 recognizes the earphone 60, and when the high-fidelity module 50 detects that the impedance of the earphone 60 is high impedance, the high-fidelity module 50 outputs a high level to the first comparison module 20, the first comparison module 20 outputs a low level to the codec module 30, the codec module 30 outputs a low level to the control module 40, and the control module 40 recognizes the earphone 60.
That is, the input voltage can be converted by the first comparing module 20, so that the input voltage of the port of the codec module 30 is ensured to be smaller than the damage value, and when the inserted earphone 60 is the high impedance earphone 60, the correctness of the insertion logic is ensured, and the normal use of the earphone 60 is ensured.
The impedance of the earphone 60 refers to the impedance of a speaker (spbaker, SPK) in the earphone 60.
In the embodiment of the present application, the audio processing circuit includes an interface 10, a first comparison module 20, a coding and decoding module 30, a hi-fi module 50, and a control module 40, wherein a second comparator is disposed in the coding and decoding module 30; the first comparing module 20 has a first input terminal, a second input terminal, a first power terminal, a first ground terminal and a first output terminal; the first input end is connected with the interface 10 and the first power supply end respectively, the second input end is connected with the first power supply end, the first output end is connected with the input end of the coding and decoding module 30, the first power supply end is connected with the first power supply terminal, and the first ground end is grounded; the output end of the coding and decoding module 30 is connected with the first end of the control module 40; a second terminal of the control module 40 is connected to an input of the hi-fi module 50; the output of the hi-fi module 50 is connected to the interface 10 and the connectors of the external device are adapted to be plugged into the interface 10. In the embodiment of the present application, the first comparing module 20 converts the input high voltage into the low voltage, so as to ensure that the voltage at the input end of the codec module 30 is smaller than the damage value, and ensure the threshold of inserting the earphone 60 and pulling out the earphone 60, ensure the correctness of the insertion logic, and ensure the normal use of the earphone 60.
In one possible embodiment of the present application, the first comparing module 20 may further include: the circuit comprises a second resistor, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor and a seventh resistor.
Specifically, a first end of the second resistor is connected to the interface 10, and a second end of the second resistor is connected to the first input end and a first end of the third resistor, respectively; the second end of the third resistor is respectively connected with the first power supply end, the first power supply terminal and the first end of the fourth resistor; a second end of the fourth resistor is connected with the second input terminal and a first end of the fifth resistor respectively; a first end of the sixth resistor is connected with the first output end, and a second end of the sixth resistor is respectively connected with the input end of the encoding and decoding module 30 and the first end of the seventh resistor; and the second end of the fifth resistor and the second end of the seventh resistor are both grounded.
The operating principle of the first comparing module 20 is as follows: under the condition that the voltage of the first input end is greater than or equal to the voltage of the second input end, the output voltage of the first output end is the same as the voltage of the first power supply end; under the condition that the voltage of the first input end is smaller than that of the second input end, the output voltage of the first output end is the same as the voltage of the first grounding end.
In the embodiment of the present application, by setting a plurality of resistors, the first comparing module 20 outputs a high voltage when the first input is greater than or equal to the second input; when the first input is smaller than the second input, a low voltage is output, so that the correctness of the judgment logic is ensured, and the normal use of the earphone 60 is ensured.
In one possible embodiment of the present application, the second comparator may include: a third input terminal, a fourth input terminal, a second ground terminal, and a second output terminal.
Specifically, the third input terminal is connected to the output terminal of the first comparing module 20; the fourth input end is connected with the second power supply terminal; the second output end is connected with the first end of the control module 40; the second ground terminal is grounded.
That is, the second comparator is a comparator, and the level output from the output terminal is determined by the sizes of the two input terminals. The working principle of the second comparator is as follows: under the condition that the voltage of the third input end is greater than that of the fourth input end, the second output end outputs a high level; the second output terminal outputs a low level in a case where the voltage of the third input terminal is less than the voltage of the fourth input terminal.
In one possible embodiment of the present application, the second comparator may further include: a first resistor.
Specifically, a first end of the first resistor is connected to the third power supply terminal, and a second end of the first resistor is connected to the third input terminal and the output terminal of the first comparing module 20, respectively.
In the application, the first resistor can play a role of current limiting for the pull-up resistor, and is used for protecting the second comparator.
In one possible embodiment of the present application, the hi-fi module 50 may comprise: a third amplifier. The third amplifier may include a fifth input terminal, a third output terminal, and a third ground terminal.
Specifically, the fifth input is connected to the second end of the control module 40; the third output end is connected with the interface 10; the third ground terminal is grounded.
In the present embodiment, the audio signal may be output by the hi-fi module 50, and the impedance of the earphone 60 inserted into the interface 10 may be detected to identify whether the earphone 60 inserted into the interface 10 is a normal earphone 60 or a high impedance earphone 60.
In one possible embodiment of the present application, when the earphone 60 is not inserted into the interface 10, as shown in fig. 2, when the earphone 60 is not inserted, the L _ DET pin, which is the input terminal of the codec module 30, is floating, and at this time, VIN + ═ VDD
Figure BDA0002809235310000071
Wherein VIN + is a first input terminal; VIN-is a second input terminal; VDD is a first power supply terminal; r5 is a fifth resistor; r4 is a fourth resistor.
In the embodiment of the present application, it may be selected that the first resistor R1 is 100K Ω, the second resistor R2 is 100K Ω, the third resistor R3 is 100K Ω, the fourth resistor R4 is 15K Ω, the fifth resistor R5 is 470K Ω, the sixth resistor R6 is 100K Ω, the seventh resistor R7 is 100K Ω, the power supply V3 connected to the first power terminal is 3.4V, the power supply V1 connected to the second power terminal is 1.2V, and the power supply V2 connected to the third power terminal is 1.8V.
It can be found by calculation that VIN + ═ 3.4V, VIN- ═ 3.4V, VIN + > VIN-, that is, Vout ═ VDD ═ 3.4V, uses the superposition principle, and the third input terminal of the second comparator
Figure BDA0002809235310000072
As can be seen from the calculation, when V is 1.73V, V > V1, and the output voltage of the second comparator output terminal is high, it is determined that the earphone 60 is pulled out.
In one possible embodiment of the present application, when the headset 60 is inserted, as shown in fig. 3. When the music is not being played by the headphones 60, the output voltage VA at the output of the hi-fi module 50 is 0V, and at this time,
Figure BDA0002809235310000073
Figure BDA0002809235310000074
it can be found by calculation that VIN + is 1.7V, VIN-is 3.3V, VIN + < VIN-, that is, Vout-Vss is 0V, where Vss is the ground terminal of the first comparing module 20.
By utilizing the principle of superposition,
Figure BDA0002809235310000081
as can be seen from the calculation, when V is 0.6V, V < V1, and the output voltage of the second comparator output terminal is low, it is determined that the earphone 60 is inserted into the interface 10.
In one possible embodiment of the present application, when the earphone 60 inserted into the interface 10 is a high impedance earphone 60, for example, 600 Ω, the HIFI power amplifier detects that the connected earphone 60 is 600 Ω, and VA is 2.828V, and at this time,
Figure BDA0002809235310000082
as can be seen from the calculation, VIN + < VIN — that is, Vout — Vss is 0V, and the output voltage of the output terminal of the second comparator is a low voltage, and it is determined that the earphone 60 is plugged into the interface 10.
In the embodiment of the present application, by setting the resistance values of the plurality of resistors, the first comparing module 20 outputs a high voltage when the first input is greater than or equal to the second input; when the first input is smaller than the second input, a low voltage is output, so that the correctness of the judgment logic is ensured, and the normal use of the earphone 60 is ensured.
An embodiment of the present application further provides an electronic device, including any one of the audio processing circuits described above. The functions of the audio processing circuit can be realized, the same effects can be achieved, and the details are not repeated here to avoid repetition.
The embodiment of the application also provides an audio processing method, which is applied to any one of the audio processing circuits. As shown in fig. 4, the audio processing method may include steps shown in steps S401 to S403.
In step S401, whether or not a headphone is inserted into the interface is identified.
In step S402, in the case where the earphone is inserted into the interface, the impedance of the earphone is acquired.
In step S403, an audio signal is output through the headphone according to the impedance.
In the embodiment of the application, whether the earphone is inserted into the interface is firstly identified, the impedance of the earphone is obtained under the condition that the earphone is inserted into the interface, and finally the audio signal is output through the earphone according to the impedance. In the embodiment of the application, whether the earphone is a common earphone or a high-impedance earphone is determined by detecting the impedance of the inserted earphone, so that a corresponding audio signal is output, and the normal use of the earphone is ensured.
Optionally, an embodiment of the present application further provides an audio processing apparatus, where the apparatus may include: the device comprises an identification module, an acquisition module and an output module.
Specifically, the identification module is used for identifying whether an earphone is inserted into the interface; the acquisition module is used for acquiring the impedance of the earphone under the condition that the earphone is inserted into the interface; the output module is used for outputting the audio signal through the earphone according to the impedance.
In the embodiment of the application, the identification module identifies whether an earphone is inserted into the interface, the acquisition module acquires impedance of the earphone under the condition that the earphone is inserted into the interface, and finally the output module outputs an audio signal through the earphone according to the impedance. In the embodiment of the application, whether the earphone is a common earphone or a high-impedance earphone is determined by detecting the impedance of the inserted earphone, so that a corresponding audio signal is output, and the normal use of the earphone is ensured.
The control device of the audio processing circuit provided in the embodiment of the present application can implement each process implemented by the audio processing method embodiment, and is not described here again to avoid repetition.
Optionally, as shown in fig. 5, an electronic device 500 is further provided in this embodiment of the present application, and includes a processor 501, a memory 502, and a program or an instruction stored in the memory 502 and executable on the processor 501, where the program or the instruction is executed by the processor 501 to implement each process of the foregoing audio processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Figure 6 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present application,
the electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and the like.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
Wherein, the processor 110 is configured to: identifying whether an earphone is inserted into the interface; in the case where the earphone is inserted into the interface, the impedance of the earphone is obtained.
An audio output unit 103 for outputting an audio signal through the earphone according to the impedance.
In the embodiment of the application, whether the earphone is inserted into the interface is firstly identified, the impedance of the earphone is obtained under the condition that the earphone is inserted into the interface, and finally the audio signal is output through the earphone according to the impedance. In the embodiment of the application, whether the earphone is a common earphone or a high-impedance earphone is determined by detecting the impedance of the inserted earphone, so that a corresponding audio signal is output, and the normal use of the earphone is ensured.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the embodiment of the audio processing method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above-mentioned audio processing method embodiment, and can achieve the same technical effect, and is not described here again to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
An embodiment of the present application further provides a processing apparatus, where the processing apparatus is configured to execute each process of the foregoing audio processing method embodiment, and can achieve the same technical effect, and for avoiding repetition, details are not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. An audio processing circuit, comprising: the device comprises an interface, a first comparison module, a coding and decoding module, a high-fidelity module and a control module, wherein a second comparator is arranged in the coding and decoding module;
the first comparison module is provided with a first input end, a second input end, a first power supply end, a first grounding end and a first output end; the first input end is connected with the interface and the first power supply end respectively, the second input end is connected with the first power supply end, the first output end is connected with the input end of the coding and decoding module, the first power supply end is connected with the first power supply end, and the first grounding end is grounded;
the output end of the coding and decoding module is connected with the first end of the control module;
the second end of the control module is connected with the input end of the high-fidelity module;
the output end of the high-fidelity module is connected with the interface, and the joint of the external equipment is suitable for being plugged in the interface.
2. The circuit of claim 1, wherein the first comparison module further comprises: the circuit comprises a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor and a seventh resistor;
a first end of the second resistor is connected with the interface, and a second end of the second resistor is respectively connected with the first input end and a first end of the third resistor;
a second end of the third resistor is connected with the first power supply end, the first power supply end and a first end of the fourth resistor respectively;
a second end of the fourth resistor is connected to the second input terminal and a first end of the fifth resistor, respectively;
a first end of the sixth resistor is connected with the first output end, and a second end of the sixth resistor is respectively connected with the input end of the coding and decoding module and the first end of the seventh resistor;
the second end of the fifth resistor and the second end of the seventh resistor are both grounded.
3. The circuit of claim 1, wherein the second comparator comprises: a third input terminal, a fourth input terminal, a second ground terminal, and a second output terminal;
the third input end is connected with the output end of the first comparison module;
the fourth input end is connected with a second power supply terminal;
the second output end is connected with the first end of the control module;
the second ground terminal is grounded.
4. The circuit of claim 3, wherein the second comparator further comprises: a first resistor;
the first end of the first resistor is connected with a third power supply terminal, and the second end of the first resistor is respectively connected with the third input end and the output end of the first comparison module.
5. The circuit of claim 1, wherein the hi-fi module comprises: a third amplifier comprising a fifth input terminal, a third output terminal, and a third ground terminal;
the fifth input end is connected with the second end of the control module;
the third output end is connected with the interface;
the third ground terminal is grounded.
6. An electronic device, comprising: an audio processing circuit as claimed in any of claims 1 to 5.
7. An audio processing method applied to the audio processing circuit according to any one of claims 1 to 5, comprising:
identifying whether a headset is inserted into the interface;
acquiring the impedance of the earphone under the condition that the earphone is inserted into the interface;
outputting an audio signal through the earphone according to the impedance.
8. An audio processing apparatus, comprising:
the identification module is used for identifying whether an earphone is inserted into the interface;
the acquisition module is used for acquiring the impedance of the earphone under the condition that the earphone is inserted into the interface;
and the output module is used for outputting the audio signal through the earphone according to the impedance.
9. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, which when executed by the processor, implement the steps of the method of claim 7.
10. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the method according to claim 7.
CN202011380692.9A 2020-11-30 2020-11-30 Audio processing circuit, method and device, electronic equipment and readable storage medium Active CN112468923B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011380692.9A CN112468923B (en) 2020-11-30 2020-11-30 Audio processing circuit, method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011380692.9A CN112468923B (en) 2020-11-30 2020-11-30 Audio processing circuit, method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112468923A true CN112468923A (en) 2021-03-09
CN112468923B CN112468923B (en) 2023-03-28

Family

ID=74805377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011380692.9A Active CN112468923B (en) 2020-11-30 2020-11-30 Audio processing circuit, method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112468923B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110085673A1 (en) * 2009-10-14 2011-04-14 Samsung Electronics Co. Ltd. Circuit apparatus for recognizing earphone in mobile terminal
US20130293240A1 (en) * 2012-05-03 2013-11-07 Samsung Electronics Co., Ltd. Apparatus and method for preventing erroneous detection of jack
CN104602154A (en) * 2015-01-07 2015-05-06 深圳市中兴移动通信有限公司 Full impedance headset output method, device and terminal
CN105554631A (en) * 2015-12-22 2016-05-04 小米科技有限责任公司 Audio switching method and device, and electronic device
CN107172515A (en) * 2017-05-19 2017-09-15 青岛海信移动通信技术股份有限公司 Test earphone plug is inserted in mobile terminal detection circuit and mobile terminal
CN107908387A (en) * 2017-09-26 2018-04-13 捷开通讯(深圳)有限公司 Signal circuit, signal transmission system, method for transmitting signals and intelligent terminal
CN109713511A (en) * 2019-02-11 2019-05-03 Oppo广东移动通信有限公司 Detection circuit, earphone socket, method and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110085673A1 (en) * 2009-10-14 2011-04-14 Samsung Electronics Co. Ltd. Circuit apparatus for recognizing earphone in mobile terminal
US20130293240A1 (en) * 2012-05-03 2013-11-07 Samsung Electronics Co., Ltd. Apparatus and method for preventing erroneous detection of jack
CN104602154A (en) * 2015-01-07 2015-05-06 深圳市中兴移动通信有限公司 Full impedance headset output method, device and terminal
CN105554631A (en) * 2015-12-22 2016-05-04 小米科技有限责任公司 Audio switching method and device, and electronic device
CN107172515A (en) * 2017-05-19 2017-09-15 青岛海信移动通信技术股份有限公司 Test earphone plug is inserted in mobile terminal detection circuit and mobile terminal
CN107908387A (en) * 2017-09-26 2018-04-13 捷开通讯(深圳)有限公司 Signal circuit, signal transmission system, method for transmitting signals and intelligent terminal
CN109713511A (en) * 2019-02-11 2019-05-03 Oppo广东移动通信有限公司 Detection circuit, earphone socket, method and mobile terminal

Also Published As

Publication number Publication date
CN112468923B (en) 2023-03-28

Similar Documents

Publication Publication Date Title
CN203466944U (en) Self configuration device
KR101409766B1 (en) Method and system for processing connecting device and potable device using the same
CN105635885A (en) USB interface multiplex circuit, mobile terminal and earphone
US8831241B2 (en) Earphone jack drive circuit
CN103716734A (en) Apparatus and method for detecting insertion of headset into mobile station
CN104620567A (en) System and method for detecting the ground and microphone input contacts in an audio plug
CN102880238A (en) Interface expanding method and device for tablet personal computer
CN101426038A (en) Portable electronic device and accessory identification method
CN102404666A (en) Audio jack detection and configuration
US10021477B2 (en) Backward compatible system and method for using 4P audio jack to provide power and signal to headset with active noise cancellation
CN103237189A (en) Electronic equipment, MHL (mobile high-definition link) connector, MHL system and connector detection method
CN103561369A (en) Usb interface circuit and electronic equipment
CN105142091B (en) accessory detection system and method
CN104461952A (en) Interface sharing method and terminal
US20170078815A1 (en) Electronic device, earphone, and electronic device system
CN112468923B (en) Audio processing circuit, method and device, electronic equipment and readable storage medium
CN112367583A (en) Wireless earphone and wearing detection method thereof
CN103813235A (en) Information processing method and device
CN107800853B (en) Memory, mobile phone, audio circuit thereof and method for externally playing audio file
WO2022042199A1 (en) Interface circuit, protection method for same, and terminal device
CN102361505B (en) Electronic equipment and method for identifying external power amplification module based on MICRO-USB interface
US10051395B2 (en) Accessory management and data communication using audio port
CN114630230A (en) Electronic equipment, pull-up circuit and method for suppressing earphone POP sound
CN203760209U (en) MHL cable and MHL cable hot plug detecting system
CN104703096B (en) A kind of method of canceling noise and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant