CN112235692B - Audio switching circuit, electronic equipment and audio switching method - Google Patents

Audio switching circuit, electronic equipment and audio switching method Download PDF

Info

Publication number
CN112235692B
CN112235692B CN202011103693.9A CN202011103693A CN112235692B CN 112235692 B CN112235692 B CN 112235692B CN 202011103693 A CN202011103693 A CN 202011103693A CN 112235692 B CN112235692 B CN 112235692B
Authority
CN
China
Prior art keywords
switch
signal transmission
module
terminal
power amplifier
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.)
Active
Application number
CN202011103693.9A
Other languages
Chinese (zh)
Other versions
CN112235692A (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 CN202011103693.9A priority Critical patent/CN112235692B/en
Publication of CN112235692A publication Critical patent/CN112235692A/en
Application granted granted Critical
Publication of CN112235692B publication Critical patent/CN112235692B/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
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Abstract

The application discloses an audio switching circuit, electronic equipment and an audio switching method, and belongs to the technical field of communication. Wherein, audio frequency switching circuit includes: the high-fidelity module, the codec module, the interface module, the first switch module and the second switch module; the interface module includes: a reference signal transmission terminal and a data signal transmission terminal; the high-fidelity module comprises a first earphone power amplifier, the codec module comprises a second earphone power amplifier, and in a first working state, the first switch module connects the data signal transmission end with the output end of the first earphone power amplifier, and the second switch module connects the reference signal transmission end with the first reference ground end; in a second working state, the first switch module connects the data signal transmission end with the output end of the second earphone power amplifier, and the second switch module connects the reference signal transmission end with the second reference ground end. The embodiment of the application can improve the tone quality of the earphone.

Description

Audio switching circuit, electronic equipment and audio switching method
Technical Field
The application belongs to the technical field of communication, and particularly relates to an audio switching circuit, an electronic device and an audio switching method.
Background
High-Fidelity (HiFi) technology can provide High-performance audio output of headphones, and in the related art, a HiFi scheme is started only in an application scene with higher sound quality, and otherwise, a CODEC (CODEC) scheme (i.e., a platform CODEC integrated headphone Analog/Digital Converter (DAC)) is started. And the Type-C switch realizes the control of the HiFi power amplifier or the CODEC power amplifier according to signals transmitted on a reference line of the HiFi DAC and a reference line of the CODEC DAC. And the signal on the reference line of the CODEC DAC has instability, so that the audio signal is amplified excessively to cause soft clipping, thereby causing serious influence on harmonic distortion of the earphone output by the HiFi ADC when the HiFi works and reducing the tone quality of the earphone.
Disclosure of Invention
An object of the embodiments of the present application is to provide an audio switching circuit, an electronic device, and an audio switching method, which can solve the problem of the related art that the sound quality of the earphone is reduced due to instability of signals on the reference line of the CODEC DAC.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an audio switching circuit, including: the high-fidelity module, the codec module, the interface module, the first switch module and the second switch module;
the interface module includes: a reference signal transmission terminal and a data signal transmission terminal;
the hi-fi module comprises a first earpiece power amplifier and the codec module comprises a second earpiece power amplifier;
the first switch module is respectively connected with the data signal transmission end, the output end of the first earphone power amplifier and the output end of the second earphone power amplifier;
the second switch module is respectively connected with the reference signal transmission end, the first reference ground end of the first earphone power amplifier and the second reference ground end of the second earphone power amplifier;
the audio switching circuit comprises a first working state and a second working state, in the first working state, the first switch module connects the data signal transmission end with the output end of the first earphone power amplifier, and the second switch module connects the reference signal transmission end with the first reference ground end;
in the second working state, the first switch module connects the data signal transmission terminal with the output terminal of the second headphone power amplifier, and the second switch module connects the reference signal transmission terminal with the second reference ground terminal.
In a second aspect, an embodiment of the present application provides an electronic device, including the audio switching circuit described in the first aspect.
In a third aspect, an embodiment of the present application provides an audio switching method, which is applied to the electronic device in the second aspect, and the method includes:
acquiring an audio working mode under the condition of connecting an earphone;
under the condition that the audio working mode is a high-fidelity audio mode, controlling an audio switching circuit in the electronic equipment to be in a first working state;
and controlling the audio switching circuit to be in a second working state under the condition that the audio working mode is a preset audio mode.
In a fourth aspect, the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the third aspect.
In a fifth aspect, the present application provides a readable storage medium, 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 sixth aspect, embodiments of the present application provide a chip, 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 the embodiment of the application, in a first working state of working of the high-fidelity module, the first switch module connects the data signal transmission end with the output end of the first earphone power amplifier, the second switch module connects the reference signal transmission end with the first reference ground end, and disconnects the reference signal transmission end from the second reference ground end, so that in a process that the electronic device controls the high-fidelity module to work according to a signal transmitted on the reference signal transmission end, an unstable electric signal on the second reference ground end is prevented from generating interference on the signal transmitted on the reference ground end, thereby improving the power amplifier control precision of the high-fidelity module and enabling the tone quality of the earphone to be higher; in addition, under the second working state of the codec module, the data signal transmission end is communicated with the output end of the second earphone power amplifier through the first switch module, the reference signal transmission end is communicated with the second reference ground end through the second switch module, and the reference signal transmission end is disconnected with the first reference ground end, so that the electronic equipment controls the codec module to work according to the signal transmitted on the reference ground end, and the unstable electric signal on the first reference ground end is prevented from interfering the signal transmitted on the reference ground end, thereby improving the power amplifier control precision of the codec module and also improving the tone quality of the earphone.
Drawings
Fig. 1 is a circuit diagram of an audio switching circuit according to an embodiment of the present disclosure;
fig. 2 is a second circuit diagram of an audio switching circuit according to an embodiment of the present application;
FIG. 3 is a pin diagram of a first Type-C interface and a second Type-C interface of an audio switching circuit according to an embodiment of the present disclosure;
fig. 4 is a third circuit diagram of an audio switching circuit according to an embodiment of the present application;
fig. 5 is a fourth circuit diagram of an audio switching circuit according to an embodiment of the present application;
fig. 6 is a flowchart of an audio switching method provided in an embodiment of the present application;
FIG. 7 is a flow chart of the operation of the audio switching circuit shown in FIG. 2;
FIG. 8 is a flowchart illustrating operation of the audio switching circuit shown in FIG. 4;
fig. 9 is a flowchart of the operation of the audio switching circuit shown in fig. 5.
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 will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. 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.
The audio switching circuit, the electronic device, and the audio switching method provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Please refer to fig. 1, which is a circuit diagram of an audio switching circuit according to an embodiment of the present disclosure, and as shown in fig. 1, the audio switching circuit includes: a hi-fi module 1, a codec module 2, an interface module 3, a second switch module 4 and a first switch module 5.
The interface module 3 includes: a reference signal transmission terminal (e.g., the SENSE pin shown in fig. 1) and a Data signal transmission terminal (e.g., the Data pin shown in fig. 1).
In practical applications, the SENSE pin communicates with the GSBU pin of the headset when the headset is connected to the electronic device, so as to connect the SENSE pin to the ground reference of the headset. It should be noted that, in practical applications, the earphone interface may be a Type-C interface capable of performing forward insertion and backward insertion, and the number of GSBU pins is two, so that when the earphone is being inserted into the Type-C interface on the electronic device, the SENSE pin is connected to the GSBU a pin connected to the reference ground terminal of the earphone; the SENSE pin is connected to the GSBU B pin which is connected to the reference ground of the headset when the headset is unplugged into the Type-C interface on the electronic device.
In addition, the hi-fi module 1 comprises a first headphone power amplifier 11, and the codec module 2 comprises a second headphone power amplifier 21; the first switch module 5 is respectively connected with the Data pin, the output end of the first earphone power amplifier 11 and the output end of the second earphone power amplifier 21; the second switching module 4 is connected with a SENSE pin, a first reference ground of the first headphone power amplifier 11 (HiFi-REF pin as shown in fig. 1) and a second reference ground of the second headphone power amplifier 21 (CDC-REF pin as shown in fig. 1), respectively.
The audio switching circuit comprises a first working state and a second working state, in the first working state, the first switch module 5 connects the Data pin with the output end (such as the HP-OUT-a pin shown in fig. 1) of the first headphone power amplifier 11, and the second switch module 4 connects the SENSE pin with the HiFi-REF pin;
in a second operating state, the first switching module 5 connects the Data pin with the output of the second headphone power amplifier 21 (the HP-OUT-B pin as shown in fig. 1), and the second switching module 4 connects the SENSE pin with the CDC-REF pin.
It should be noted that fig. 1 to 5 are only schematic diagrams, and parts of components and wiring lines which are the same as those in the prior art are omitted, for example: the hi-fi module 1 may comprise other components such as a DAC in addition to the first headphone power amplifier 11 shown in fig. 1, and the headphone power amplifiers (11 and 12) may comprise other terminals and related connections in addition to the reference ground, the input terminal and the output terminal, which are not described herein again
It should be noted that, as shown in fig. 1, only the first switch module 5 is taken as an example to be described as a single-pole single-throw switch, in practical applications, the first switch module 5 may also be a single-pole double-throw switch, and further, the single-pole double-throw switch or the single-pole single-throw switch may be disposed in: the hi-fi module 1, the codec module 2, the interface module 3 or separately, and are not specifically limited herein.
In a specific implementation, the first operating state may be an operating state in which the hi-fi module 1 (which may also be referred to as "HiFi DAC" module) is enabled, and the hi-fi module 1 may specifically comprise a separate headphone power amplifier, i.e. the first headphone power amplifier 11; the second operational state may be the start-up of the CODEC module 2 (also called CODEC module) and the CODEC module 2 may particularly comprise a platform CODEC integrated headphone DAC, i.e. the second headphone power amplifier 21. The first headphone power amplifier 11 and the second headphone power amplifier 21 have the following differences:
the high fidelity module 1 is applied to the audio source quality of music and video, the audio experience with more tone quality effect can be played only by a HiFi scheme, and the power consumption of the high fidelity module 1 is higher than that of the codec module 2; the CODEC module 2 is applied to other sound sources, and the quality of the sound sources is low, so that the application scene of the sound quality cannot be improved even if the audio is output through the HiFi scheme, and therefore the CODEC module is used for outputting, power consumption is reduced, power consumption is low, and the service life of the mobile phone can be prolonged.
In application, when the electronic device is plugged into the earphone and the audio output is started, whether the audio is output by adopting the HiFi scheme or the CODEC scheme can be determined according to the audio mode and the like on the electronic device. And under the condition that the HiFi mode is started, the audio switching circuit is controlled to work in the first working state, and under the condition that the HiFi mode is not started, the audio switching circuit is controlled to work in the second working state.
In the related art, the value of the electrical signal at the reference ground (HiFi-REF pin or CDC-REF pin) of the non-operating one of the hi-fi module 1 and codec module 2 will change from chip design to chip design, for example: the reference ground CDC-REF pin of CODEC module is not always 0V at the voltage of disconnection suspension time, like this, when going to control the power amplifier of one under operating condition in high fidelity module 1 and the CODEC module 2 according to reference ground signal between them, will make audio signal excessively amplified, thereby cause soft clipping, and then cause serious influence to the earphone harmonic distortion of HiFi module output, its measured value has the decay more than 30dB, make the HiFi scheme can't give play to due performance, lead to the user can't experience the tone quality of high-fidelity.
In addition, even if the voltage of the reference ground CDC-REF pin of the CODEC module is always 0V, the state of the earphone ground at the Type-C interface cannot be completely reflected, which is equivalent to being grounded nearby, and thus the meaning of connecting the reference ground of the earphone to the earphone power amplifier is lost.
In the embodiment of the application, the reference ground of one of the hi-fi module 1 and the codec module 2 which is not in the working state is disconnected from the SENCE pin, so that the power amplifier control reference signal parameters in the hi-fi module 1 and the codec module 2 which are in the working state are prevented from being interfered, and the tone quality is improved.
In application, the interface module 3 is used for being connected with a USB interface on an electronic device, and the USB interface can be switched between an audio mode and a conventional USB mode through the interface module 3 to be in the audio mode when the USB interface is connected with audio devices such as an earphone, so as to transmit audio signals between the USB interface and the audio devices; in addition, when the USB interface is connected to a communication device such as a data line or a charger, the interface module 3 is controlled to switch so that the USB interface is in a normal USB mode, thereby implementing data communication with an external device through the USB interface and the data line.
As an alternative embodiment, as shown in fig. 2, the interface module is a Type-C interface module 3, the Type-C interface module 3 further includes a first sub-reference ground (for example, the GSBU1 pin shown in fig. 2) and a second sub-reference ground (for example, the GSBU2 pin shown in fig. 2), and the Type-C interface module 3 further includes a first detection terminal (for example, the SBU1 pin shown in fig. 2) and a second detection terminal (for example, the SBU2 pin shown in fig. 2);
when the Type-C interface module 3 is determined to be connected with the earphone based on signals transmitted through an SBU1 pin, a SENSE pin is connected with a GSBU1 pin; when it is determined that the Type-C interface module 3 is connected with the earphone based on a signal transmitted through the SBU2 pin, the SENSE pin is connected with the GSBU2 pin.
For example: as shown in fig. 2, the Type-C interface module 3 includes a fifth switch 31, where the fifth switch 31 is a single-pole double-throw switch, and the SENSE pin is connected to a fixed end of the fifth switch 31, and the GSBU1 pin and the GSBU2 pin are respectively connected to two active ends of the fifth switch 31, so as to connect the SENSE pin to the GSBU1 pin when the fifth switch 31 is connected to the GSBU1 pin; when the fifth switch 31 is connected to the GSBU2 pin, the connection of the SENSE pin to the GSBU2 pin is achieved.
In application, the Type-C interface module 3 is used for connecting with a Type-C interface on the electronic equipment, and the Type-C interface can share a USB and an earphone with the Type-C interface is inserted positively or reversely.
Assuming that the earphone has a first Type-C interface and the electronic device has a second Type-C interface, when the first Type-C interface is being inserted into the second Type-C interface, the electronic device may detect the connection of the microphone or the earphone through the SBU1 pin, so as to determine that the Type-C interface module 3 is being connected with the earphone through the first Type-C interface and the second Type-C interface, thereby connecting the SENSE pin with the GSBU1 pin. Of course, under the condition that the first Type-C interface is reversely inserted into the second Type-C interface, the electronic device can detect the connection of a microphone or an earphone through the SBU2 pin, so as to determine that the Type-C interface module 3 is reversely connected with the earphone through the first Type-C interface and the second Type-C interface, and thus connect the SENSE pin with the GSBU2 pin.
For example: as shown in fig. 3, pin diagrams of the first Type-C interface 201 and the second Type-C interface 202 are shown, where the first Type-C interface 201 may be located on an electronic device and connected to the Type-C interface module 3 provided in the embodiment of the present application, and the second Type-C interface 202 may be located on an earphone.
Wherein, GSBU1 pin and SBU1 pin on Type-C interface module 3 can be jointly with SBU1 pin connection on the first Type-C interface 201, DN-L pin on Type-C interface module 3 is connected with two Dn1 pins on the first Type-C interface 201 respectively, DP-R pin on Type-C interface module 3 is connected with two Dp1 pins on the first Type-C interface 201 respectively.
Then, in the case where the first Type-C interface 201 and the second Type-C interface 202 are being connected, the SBU1 pin on the Type-C interface module 3 is connected to the SBU1 pin on the second Type-C interface 202, and the SBU1 pin on the second Type-C interface 202 is connected to the microphone (MIC terminal as shown in fig. 3), so that the Type-C interface module 3 is connected to the AGND/MIC terminal based on the detection of the connection to the AGND/MIC terminal via the SBU1 pin, thereby connecting the GSBU1 pin to the SENSE pin.
Similarly, under the condition that the first Type-C interface 201 and the second Type-C interface 202 are reversely connected, the Type-C interface module 3 is connected with the AGND/MIC terminal based on the detection on the SBU2 pin, so that the GSBU2 pin is communicated with the SENSE pin.
This embodiment can make between earphone and the electronic equipment through Type-C interface connection to switch GSBU1 and GSBU2 through Type-C interface module 3, thereby realize under the earphone is inserting or the condition of the anti-Type-C interface that inserts on the electronic equipment, homoenergetic is as the reference earthing terminal of earphone through the GSBU pin that corresponds, and carries out earphone power amplifier control based on the signal of telecommunication on this GSBU pin.
For convenience of explanation, in the following embodiments, only the Type-C interface module 3 is taken as an example for explanation, but in practical application, the interface module may be an interface module 3 corresponding to another USB interface, and is not limited specifically herein.
As an alternative embodiment, as shown in fig. 2, the second switch module 4 includes a first switch 41, a first terminal of which is connected to the reference signal transmission terminal, a second terminal of which is connected to the first reference ground terminal, and a third terminal of which is connected to the second reference ground terminal;
in the first working state, the second end of the first change-over switch is communicated with the first end of the first change-over switch; and in the second working state, the third end of the first change-over switch is communicated with the first end of the first change-over switch.
In addition, in a specific implementation, the number of headphone power amplifiers in the hi-fi module 1 may be 1 or more, for example: in the embodiment shown in FIG. 2, the hi-fi module 1 comprises a first left channel headphone power amplifier 12 (which may also be referred to as the "first headphone power amplifier") and a first right channel headphone power amplifier 13 (which may also be referred to as the "third headphone power amplifier"). Similarly, the number of headphone power amplifiers in the codec module 2 may be 1 or more, for example: in the embodiment shown in fig. 2, the codec module 2 comprises a second left channel headphone power amplifier 22 (which may also be referred to as "second headphone power amplifier") and a second right channel headphone power amplifier 23 (which may also be referred to as "fourth headphone power amplifier").
The following embodiments are merely exemplified by the hi-fi module 1 comprising a first left channel headphone power amplifier 12 and a first right channel headphone power amplifier 13, and the codec module 2 comprising a second left channel headphone power amplifier 22 and a second right channel headphone power amplifier 23, without limiting the number of first headphone power amplifiers 11 and the number of second headphone power amplifiers 21.
As an alternative embodiment, the second switch module 4 includes a first switch 41, and a first end of the first switch 41 is connected to the SENSE pin.
Specifically, the reference ground of the first left-channel headphone power amplifier 12 (which may also be referred to as a "first reference ground terminal", i.e., a HiFi-REF-L pin as shown in fig. 2) and the reference ground of the first right-channel headphone power amplifier 13 (which may also be referred to as a "third reference ground terminal", i.e., a HiFi-REF-R pin as shown in fig. 2) are respectively connected to the second terminal of the first switch 41, and the reference ground of the second left-channel headphone power amplifier 22 (which may also be referred to as a "second reference ground terminal", i.e., a CDC-REF-L pin as shown in fig. 2) and the reference ground of the second right-channel headphone power amplifier 23 (which may also be referred to as a "fourth reference ground terminal", i.e., a CDC-REF-R pin as shown in fig. 2) are respectively connected to the third terminal of the first switch 41.
In addition, the interface block 3 includes a left channel data transmission terminal (which may also be referred to as a "first data signal transmission terminal", i.e., a DN-L pin as shown in fig. 2) and a right channel data transmission terminal (which may also be referred to as a "second data signal transmission terminal", i.e., a DP-R pin as shown in fig. 2), and the output terminal (the HP-OUT-L pin as shown in fig. 2) of the first left channel headphone power amplifier 12 can be connected to the DN-L pin, and the output terminal (the HP-OUT-R pin as shown in fig. 2) of the first right channel headphone power amplifier 13 can be connected to the DN-R pin to output an audio signal through the DN-L pin and the DP-R pin, respectively.
Wherein, in the first working state, the second end of the first switch 41 is communicated with the first end of the first switch 41; in the second operating state, the third end of the first switch 41 is communicated with the first end of the first switch 41.
In practical applications, when the first end of the first switch 41 is connected to the second end thereof, the first end of the first switch 41 is disconnected from the third end thereof, and when the first end of the first switch 41 is connected to the third end thereof, the first end of the first switch 41 is disconnected from the second end thereof. Specifically, the first switch 41 may be a single-pole double-throw switch, and a first end of the switch is a fixed end, and the first end can communicate with one of the second end and the third end.
In a specific implementation, the control terminal of the first switch 41 may be connected to a processor in the electronic device, so that after the processor determines the working state of the audio switching circuit according to an audio output application scenario of the electronic device, the processor controls the first switch 41 to switch the audio switching circuit to a corresponding working state.
Alternatively, the first switch 41 may be a separate module or may be integrated in the same integrated circuit as any of the hi-fi module 1, the codec module 2 and the interface module 3.
In this embodiment, the second switch module is provided as the first switch, and the structure of the second switch module can be simplified.
It should be noted that the number of the headphone power amplifiers in the hi-fi module 1 and the codec module 2 may be 1, at this time, the second terminal of the first switch 41 is connected to the first reference ground of the first headphone power amplifier 11 in the hi-fi module 1, and the third terminal of the first switch 41 is connected to the second reference ground of the second headphone power amplifier 21 in the codec module 2, which is not described herein again.
As another alternative embodiment, as shown in fig. 4, the second switch module 4 includes: a first switch 42, and whereas the hi-fi module 1 and the codec module 2 each comprise two headphone power amplifiers, the number of first switches 42 is 2;
one first switch 42 is connected with a HiFi-REF-L pin and a CDC-REF-L pin respectively, the other second switch 42 is connected with a HiFi-REF-R pin and a CDC-REF-R pin respectively, and the HiFi-REF-L pin and the HiFi-REF-R pin are both connected with the SENSE pin;
wherein in the first operating state both first switches 42 are open and in the second operating state both first switches 42 are closed.
In a specific implementation, the first switch 42 may be a single-pole single-throw switch, and a control end of the first switch 42 may be connected to a control unit such as a processor in the electronic device, so that the control unit determines an operating state of the audio switching circuit according to an audio output application scenario of the electronic device, and accordingly controls the first switch 42 to switch the audio switching circuit to a corresponding operating state.
Wherein, under first operating condition, high fidelity module 1 starts and codec module 2 closes, and at this moment, two first switches 42 all break off, have realized being connected the HiFi-REF-R pin and HiFi-REF-L pin with the SENSE pin respectively to with CDC-REF-R pin and CDC-REF-L pin with the SENSE pin disconnection respectively.
In addition, in a second operating state, the high fidelity module 1 is switched off and the codec module 2 is switched on, at which time both first switches 42 are closed, so that the connection of the CDC-REF-R pin and the CDC-REF-L pin to the SENSE pin is achieved, and the first left channel headphone power amplifier 12 and the first right channel headphone power amplifier 13 and the DAC in the high fidelity module 1 are short-circuited by bypassing.
This embodiment differs from the embodiment shown in fig. 2 in that: the HiFi DAC module in this embodiment supports switching of external analog inputs and the second switch module 4 is integrated in the HiFi module, which also provides the function of switching the reference ground signal to the outside (i.e. the CDC-REF-R pin and the CDC-REF-L pin) when bypassing the DAC in the HiFi module and the first headphone power amplifier.
It should be noted that, the number of the first switches 42 is the same as the number of the headphone power amplifiers respectively included in the hi-fi module 1 and the codec module 2, and the number of the first switches 42 may be changed according to the number of the headphone power amplifiers, and is not limited in particular.
As another alternative embodiment, as shown in fig. 5, the second switch module 4 includes: a second switch 43 and a third switch 44, the reference signal transmission terminal including a first sub-reference signal transmission terminal (a SENSE 1 pin as shown in fig. 5) and a second sub-reference signal transmission terminal (a SENSE 2 pin as shown in fig. 5);
a SENSE 1 pin is connected with a first end of the second switch 43, a second end of the second switch 43 is connected with a GSBU1 pin, and a third end of the second switch 43 is connected with a GSBU2 pin;
a SENSE 2 pin is connected with a first end of the third switch 44, a second end of the third switch 44 is connected with a GSBU1 pin, and a third end of the third switch 44 is connected with a GSBU2 pin;
wherein, in the first operating state, one of the second terminal of the second switch 43 and the third terminal of the second switch is communicated with the first terminal of the second switch 43, and the first terminal of the third switch 44 is disconnected from the second terminal of the third switch 44 and the third terminal of the third switch 44, respectively;
in said second operating state, one of the second terminal of the third switch 44 and the third terminal of the third switch 44 is in communication with the first terminal of the third switch 44, and the first terminal of the second switch 43 is disconnected from the second terminal of the second switch 43 and the third terminal of the second switch 43, respectively.
Wherein one of the second terminal of the second switch 43 and the third terminal of the second switch is communicated with the first terminal of the second switch 43, it can be understood that: second switch 43 connects SENSE 1 pin to GSBU1 pin and GSBU2 pin, and this GSBU1 pin and GSBU2 pin 1 can be specifically determined by the detection signal on SBU1 pin and SBU2, and will not be described herein again.
Similarly, one of the second terminal of the third switch 44 and the third terminal of the third switch 44 is in communication with the first terminal of the third switch 44, which can be understood as: third switch 44 connects SENSE 2 pin to 1 of GSBU1 pin and GSBU2 pin, 1 of which may be specifically determined by the detection signals on SBU1 pin and SBU2 pin.
The second switch 43 and the third switch 44 may be single-pole double-throw switches, a first end of the second switch 43 and a first end of the third switch 44 may be fixed ends of a single-pole double-branch switch, a second end and a third end may be movable ends, and control ends of the second switch 43 and the third switch 44 may be connected to a control unit such as a processor in the electronic device, so that the control unit controls the second switch 43 and the third switch 44 to switch the audio switching circuit to corresponding operating states after determining the operating state of the audio switching circuit according to an audio output application scenario of the electronic device.
It should be noted that the audio switching circuit in this embodiment may further include a third operating state, in which the second switch 43 connects the SENSE 1 pin to 1 of the GSBU1 pin and the GSBU2 pin, and the third switch 44 connects the SENSE 2 pin to 1 of the GSBU1 pin and the GSBU2 pin, so that the reference ground of the two audio output devices can be connected to the Type-C interface module 3.
In this embodiment, the second switch module 4 is integrated in the Type-C interface module 3, so that the structure of the audio switching circuit can be simplified, and the Type-C interface module 3 can be accessed to the reference of two audio output devices.
In application, in a first working state, the data signal transmission end is connected and communicated with the output end of a first earphone power amplifier 11 in the high-fidelity module 1; in the second working state, the data signal transmission terminal is connected and communicated with the output terminal of the second headphone power amplifier 21 in the codec module 2. In order to realize the switching of the data signal transmission terminal between the first headphone power amplifier 11 and the second headphone power amplifier 21, a switching means may be provided to realize by the switching means: in a first working state, connecting and communicating a data signal transmission end with an output end of a first earphone power amplifier 11 in the high-fidelity module 1; in the second working state, the data signal transmission terminal is connected and communicated with the output terminal of the second headphone power amplifier 21 in the codec module 2.
In an alternative embodiment, as shown in fig. 2, 4 or 5, the first switching module 5 comprises: the number of the fourth switches 5 is 2 (or it can be understood that the first switch module 5 includes a fourth switch connected between the HP-OUT-L pin and the CDC-OUT-L pin, and a fifth switch connected between the HP-OUT-R pin and the CDC-OUT-R pin, which has the same structure as the structure of the first switch module 5 including 2 fourth switches, and thus will not be described again here), considering that the hi-fi module 1 and the codec module 2 respectively include two headphone power amplifiers.
One of the fourth switches 5 is connected between the output of the first left channel headphone power amplifier (the HP-OUT-L pin as shown in fig. 5) and the output of said second left channel headphone power amplifier (the CDC-OUT-L pin as shown in fig. 5); a further fourth switch 5 is connected between the output of the first right channel headphone power amplifier (the HP-OUT-R pin as shown in fig. 5) and the output of said second right channel headphone power amplifier (the CDC-OUT-R pin as shown in fig. 5).
In operation, in said first operating state, both the fourth switches 5 are open; in the second operating state, both fourth switches 5 are closed.
In a specific implementation, the two fourth switches 5 may be single-pole single-throw switches, and the single-pole single-throw switches may be connected to a control unit, such as a processor, in the electronic device having the audio switching circuit provided in the embodiment of the present application, so that in a first operating state, the control unit controls the two fourth switches 5 to be turned off; in the second operating state, both fourth switches 5 are controlled by the control unit to be closed.
Assuming that the earphone Type-C interface is inserted with the Type-C interface of the electronic device, in this embodiment, in the first working state, the CDC-OUT-R pin is disconnected from the DP-R pin, the CDC-OUT-L pin is disconnected from the DN-L pin, the HP-OUT-R pin is connected to the DP-R pin, and the HP-OUT-L pin is connected to the DN-L pin, so that the first left channel earphone power amplifier 12 outputs a signal to the earphone through the DN-L pin, and the first right channel earphone power amplifier 13 outputs a signal to the earphone through the DP-R pin. Of course, when the Type-C interface of the earphone is reversely plugged into the Type-C interface of the electronic device, in the first working state, the first left channel earphone power amplifier 12 outputs a signal to the earphone through the DP-R pin, and the first right channel earphone power amplifier 13 outputs a signal to the earphone through the DN-L pin.
In addition, under the second operating condition, two fourth switches 5 are all closed, thereby make when earphone Type-C interface is just inserting with the Type-C interface of electronic equipment, CDC-OUT-R pin and DP-R pin intercommunication, CDC-OUT-L pin and DN-L pin intercommunication, and 1 times bypass short circuit of hi-fi module, thereby make second left track earphone power amplifier 22 through DN-L pin output signal to earphone, and second right track earphone power amplifier 23 through DP-R pin output signal to earphone. Of course, when the Type-C interface of the earphone is reversely plugged into the Type-C interface of the electronic device, in the first working state, the second left channel earphone power amplifier 22 outputs a signal to the earphone through the DP-R pin, and the second right channel earphone power amplifier 23 outputs a signal to the earphone through the DN-L pin.
In another alternative embodiment, the first switch module 5 may include: a first target switch connected between the output terminal of the first headphone power amplifier 11 and the data signal transmission terminal, and a second target switch connected between the output terminal of the second headphone power amplifier 21 and the data signal transmission terminal.
In this way, in the first operating state, the first target switch is closed and the second target switch is opened, so that: connecting and communicating a data signal transmission end with an output end of a first earphone power amplifier 11 in the high-fidelity module 1; in addition, in the second operating state, the second target switch is closed and the first target switch is opened, so that: the data signal transmission terminal is connected and communicated with the output terminal of the second earphone power amplifier 21 in the codec module 2.
Alternatively, the first switch module 5 may include a single-pole double-throw switch, and a fixed end of the single-pole double-throw switch is connected to the data signal transmission end, a first active end of the single-pole double-throw switch is connected to the output end of the first headphone power amplifier 11, and a second active end of the single-pole double-throw switch is connected to the output end of the second headphone power amplifier 21, so that in the first operating state, the fixed end of the single-pole double-throw switch is connected to the first active end thereof, and in the second operating state, the fixed end of the single-pole double-throw switch is connected to the second active end thereof.
As an optional implementation, the interface module 3 further includes: a third switch 6, USB signal transmission terminals (for example, DN pin and DP pin shown in fig. 2, 4 or 5) and headphone signal transmission terminals (for example, L pin and R pin shown in fig. 2, 4 or 5), whereas the number of the third switch 6, the number of the USB signal transmission terminals and the number of the headphone signal transmission terminals are 2 respectively, in the present embodiment, the high fidelity module 1 and the codec module 2 respectively include two headphone power amplifiers.
Wherein, in the first working state and the second working state, one third change-over switch 6 connects the L pin with the DN-L pin and disconnects the DN from the DN-L pin, and the other third change-over switch 6 connects the R pin with the DP-R pin and disconnects the DP from the DP-R pin
In a third operating state, one third switch 6 disconnects the L pin from the DN-L pin and connects the DN to the DN-L pin, and the other third switch 6 disconnects the R pin from the DP-R pin and connects the DP to the DP-R pin.
In a specific implementation, the DN pin and the DP pin may be differential signal transmission terminals, and are used to connect with an electronic device to transmit differential signals. The transmission principle of the differential signal is the same as that of the USB interface in the prior art, and is not described herein again.
In the present embodiment, the switching between the USB communication mode and the earphone mode can be realized by the third switch.
The embodiment of the present application further provides an electronic device, which includes the audio switching circuit shown in fig. 1, fig. 3, fig. 4, or fig. 5.
The electronic device provided by the embodiment of the application can be a mobile electronic device and can also be a non-mobile electronic device. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
When the electronic equipment plays audio equipment through the earphone, whether the HiFi mode needs to be started or not can be determined according to the audio mode or played audio information and the like, and under the condition that the HiFi mode is started, the reference ground of the CODEC module can be disconnected with the earphone ground, so that power amplification adjustment is only carried out according to the reference ground signal of the HiFi module, interference of unstable reference ground signals in the CODEC module on the power amplification adjustment is avoided, and the audio quality of the HiFi mode can be improved.
Please refer to fig. 6, which is a flowchart illustrating an audio switching method according to an embodiment of the present application, where the audio switching method can be applied to an electronic device having an audio switching circuit according to an embodiment of the present application, and as shown in fig. 6, the audio switching method may include the following steps:
step 601, under the condition of connecting the earphone, obtaining an audio working mode.
Step 602, controlling an audio switching circuit in the electronic device to be in a first working state under the condition that the audio working mode is the high fidelity audio mode.
The above controlling the audio switching circuit in the electronic device to be in the first working state specifically includes: and starting a high-fidelity module, wherein the first switch module connects the data signal transmission end with the output end of the first earphone power amplifier, the second switch module connects the reference signal transmission end with the first reference ground end, and the electronic equipment controls the high-fidelity module to work according to the signal transmitted on the reference signal transmission end.
Step 603, controlling an audio switching circuit in the electronic device to be in a second working state when the audio working mode is a preset audio mode.
Wherein, the above-mentioned audio frequency switching circuit who controls in the electronic equipment is in the second operating condition, specifically: and starting the codec module, wherein the first switch module connects the data signal transmission end with the output end of the second earphone power amplifier, and the second switch module connects the reference signal transmission end with the second reference ground end, and the electronic device controls the codec module to operate according to the signal transmitted on the reference signal transmission end.
In this embodiment, the first operating state and the second operating state have the same meaning as the first operating state and the second operating state in the circuit embodiment shown in any one of fig. 1, fig. 2, fig. 4, and fig. 5, and are not described herein again.
It should be noted that, in an actual application scenario, only one of step 602 and step 603 is executed, and fig. 6 is only used as an example for explaining an audio switching method provided in the embodiment of the present application.
In addition, the above-mentioned obtaining the audio operating mode in the case of connecting the earphone can be understood as: and judging whether the high-fidelity audio is played through the earphone. The preset audio mode may be a non-high fidelity audio mode, for example: and under the condition that the audio quality of an audio source is low or the high-fidelity audio mode is not started by a user, determining that the audio working mode is the preset audio mode, closing the high-fidelity module and starting the codec module.
Situation one
As shown in fig. 7, in the embodiment shown in fig. 2, the audio switching method provided in the embodiment of the present application may specifically include the following steps:
step 701, judging whether music is played through an earphone.
If the determination result in step 701 is yes, step 702 is executed, otherwise step 701 may be repeatedly executed.
And step 702, judging whether the HiFi function is opened or not.
If the determination result of step 702 is yes, step 703 is executed; in the case where the determination result of step 702 is "no", step 704 is executed.
And step 703, the first switch is connected with the HiFi-REF-R pin and the HiFi-REF-L pin, and the fourth switch is switched off.
Wherein the first switch connection HiFi-REF-R pin and HiFi-REF-L pin may represent: the first change-over switch is a single-pole double-throw switch, and the active end of the single-pole double-throw switch is connected to the HiFi-REF-R pin and the HiFi-REF-L pin, so that the HiFi-REF-R pin and the HiFi-REF-L pin are respectively communicated with the SENSE pin, and the CDC-REF-R pin and the CDC-REF-L pin are respectively disconnected with the SENSE pin.
Step 705, the HiFi module starts working.
The HiFi module comprises a HiFi DAC.
Step 704, the first switch connects the CDC-REF-R pin and the CDC-REF-L pin, and the fourth switch is turned on.
Wherein, the connection of the first switch to the CDC-REF-R pin and the CDC-REF-L pin can represent that: the first change-over switch is a single-pole double-throw switch, and the active end of the single-pole double-throw switch is connected to the CDC-REF-R pin and the CDC-REF-L pin, so that the CDC-REF-R pin and the CDC-REF-L pin are respectively communicated with the SENSE pin, and the HiFi-REF-R pin and the HiFi-REF-L pin are respectively disconnected with the SENSE pin.
Step 706, the CODEC module begins operation.
Situation two
As shown in fig. 8, in the embodiment shown in fig. 4, the audio switching method provided in the embodiment of the present application may specifically include the following steps:
step 801, judging whether music is played through an earphone.
In the case where the determination result of step 801 is yes, step 802 is executed, otherwise step 801 may be repeatedly executed.
And step 802, judging whether the HiFi function is opened or not.
If the determination result of step 802 is yes, step 803 is executed; in the case where the determination result of step 802 is "no", step 804 is executed.
Step 803, the two first switches are turned off, respectively, and the fourth switch is turned off.
Wherein, the two first switches being open respectively may represent: the connection between the HiFi-REF-R pin and the CDC-REF-R pin is disconnected, and the connection between the HiFi-REF-L pin and the CDC-REF-L pin is disconnected, so that the HiFi-REF-R pin and the HiFi-REF-L pin are respectively communicated with the SENSE pin, and the CDC-REF-R pin and the CDC-REF-L pin are respectively disconnected with the SENSE pin.
And step 805, the HiFi module starts to work.
The HiFi module comprises a HiFi DAC.
And step 804, respectively closing the two first switches, and closing the fourth switch.
The two first switches are respectively closed to connect the CDC-REF-R pin with the HiFi-REF-R pin and connect the CDC-REF-L pin with the HiFi-REF-L pin, so that a power amplifier in the HiFi module is short-circuited, the CDC-REF-R pin and the CDC-REF-L pin are respectively communicated with the SENSE pin, and the HiFi-REF-R pin and the HiFi-REF-L pin are respectively disconnected with the SENSE pin.
At step 806, the CODEC module begins to operate.
Situation two
As shown in fig. 9, in the embodiment shown in fig. 5, the audio switching method provided in the embodiment of the present application may specifically include the following steps:
step 901, judging whether music is played through an earphone.
In the case that the determination result of step 901 is yes, step 902 is executed, otherwise step 901 may be repeatedly executed.
And step 902, judging whether the HiFi function is opened or not.
If the determination result of step 902 is yes, step 903 is executed; in the case where the determination result of step 902 is "no", step 904 is executed.
In step 903, the second switch is connected to pin GSBU1/2, the third switch is disconnected from pin GSBU1/2, and the fourth switch is disconnected.
Wherein, the second switch connection GSBU1/2 pin may represent: the second switch connects the SENSE 1 pin with the GSBU1/2 pin; the third switch opening the GSBU1/2 pin may indicate: the third switch disconnects the SENSE 2 pin from the GSBU1/2 pin, thereby enabling the HiFi-REF-R pin and the HiFi-REF-L pin to be respectively communicated with the GSBU1/2 pin through the SENSE 1 pin, and the CDC-REF-R pin and the CDC-REF-L pin to be respectively disconnected from the GSBU1/2 pin through the SENSE 2 pin.
And step 905, the HiFi module starts to work.
The HiFi module comprises a HiFi DAC.
Step 904, the second switch disconnects pin GSBU1/2, the third switch connects pin GSBU1/2, and the fourth switch is turned off.
Wherein the second switch off the GSBU1/2 pin may represent: the second switch disconnects the SENSE 1 pin from the GSBU1/2 pin; the third switch connection GSBU1/2 pin may represent: the third switch connects the SENSE 2 pin with the GSBU1/2 pin, so that the HiFi-REF-R pin and the HiFi-REF-L pin are respectively disconnected with the GSBU1/2 pin through the SENSE 1 pin, and the CDC-REF-R pin and the CDC-REF-L pin are respectively connected with the GSBU1/2 pin through the SENSE 2 pin.
Step 906, the CODEC module begins operation.
The audio switching method provided by the embodiment of the application can realize each process of the audio switching circuit provided by the embodiment of the application, has the same beneficial effect, and is not repeated herein for avoiding repetition.
Optionally, an embodiment of the present application further provides an electronic device, which includes a processor, a memory, and a program or an instruction stored in the memory and capable of running on the processor, where the program or the instruction is executed by the processor to implement each process of the above-mentioned audio control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It is to be noted that the electronic apparatus in the embodiment of the present application includes a wrist-worn electronic apparatus.
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 above-mentioned audio control method embodiment, 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 control method embodiment, and can achieve the same technical effect, and is not described herein 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.
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 electronic devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may include performing functions in a substantially simultaneous manner or in a reverse order depending on the functionality involved, e.g., the described methods may be performed in an order different from 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 switching circuit, comprising: the high-fidelity module, the codec module, the interface module, the first switch module and the second switch module;
the interface module includes: a reference signal transmission terminal and a data signal transmission terminal;
the hi-fi module comprises a first earpiece power amplifier and the codec module comprises a second earpiece power amplifier;
the first switch module is respectively connected with the data signal transmission end, the output end of the first earphone power amplifier and the output end of the second earphone power amplifier;
the second switch module is respectively connected with the reference signal transmission end, the first reference ground end of the first earphone power amplifier and the second reference ground end of the second earphone power amplifier;
the audio switching circuit comprises a first working state and a second working state, in the first working state, the first switch module connects the data signal transmission terminal with the output terminal of the first earphone power amplifier, the second switch module connects the reference signal transmission terminal with the first reference ground terminal and disconnects the reference signal transmission terminal from the second reference ground, and the high-fidelity module is in the working state;
in the second working state, the first switch module connects the data signal transmission terminal with the output terminal of the second headphone power amplifier, and the second switch module connects the reference signal transmission terminal with the second reference ground terminal and disconnects the reference signal transmission terminal from the first reference ground, and the codec module is in a working state.
2. The circuit of claim 1, wherein the interface module is a Type-C interface module, and the Type-C interface module further comprises a first sub-reference ground, a second sub-reference ground, a first detection terminal, and a second detection terminal;
when the Type-C interface module is determined to be connected with an earphone based on the signal transmitted by the first detection end, the reference signal transmission end is connected with the first sub-reference ground end;
and when the Type-C interface module is determined to be connected with the earphone based on the signal transmitted by the second detection end, the reference signal transmission end is connected with the second sub-reference ground end.
3. The circuit of claim 2, wherein the second switching module comprises:
a first end of the first switch is connected with the reference signal transmission end, a second end of the first switch is connected with the first reference ground end, and a third end of the first switch is connected with the second reference ground end;
in the first working state, the second end of the first change-over switch is communicated with the first end of the first change-over switch; and in the second working state, the third end of the first change-over switch is communicated with the first end of the first change-over switch.
4. The circuit of claim 2, wherein the second switching module comprises: a first switch;
the first switch is respectively connected with the first reference ground terminal and the second reference ground terminal, and the first reference ground terminal is connected with the reference signal transmission terminal;
wherein, in the first working state, the first switch is open, and in the second working state, the first switch is closed.
5. The circuit of claim 2, wherein the second switching module comprises: a second switch and a third switch, the reference signal transmission terminal including a first sub-reference signal transmission terminal and a second sub-reference signal transmission terminal;
the first sub-reference signal transmission terminal is connected with a first terminal of the second switch, a second terminal of the second switch is connected with the first sub-reference ground terminal, and a third terminal of the second switch is connected with the second sub-reference ground terminal;
the second sub-reference signal transmission terminal is connected with a first terminal of the third switch, a second terminal of the third switch is connected with the first sub-reference ground terminal, and a third terminal of the third switch is connected with the second sub-reference ground terminal;
in the first working state, one of the second end of the second switch and the third end of the second switch is communicated with the first end of the second switch, and the first end of the third switch is disconnected with the second end of the third switch and the third end of the third switch respectively;
in the second working state, one of the second end of the third switch and the third end of the third switch is communicated with the first end of the third switch, and the first end of the second switch is disconnected with the second end of the second switch and the third end of the second switch respectively.
6. The circuit of any of claims 1-5, wherein the first switching module comprises: a fourth switch;
the fourth switch is connected between the output end of the first earphone power amplifier and the output end of the second earphone power amplifier, and the output end of the first earphone power amplifier is connected with the data signal transmission end;
wherein, in the first operating state, the fourth switch is turned off;
in the second operating state, the fourth switch is closed.
7. The circuit of claim 6, wherein the data signal transmission terminals comprise a first data signal transmission terminal and a second data signal transmission terminal, wherein the hi-fi module further comprises a third headset power amplifier, wherein the codec module further comprises a fourth headset power amplifier, and wherein the first switch module further comprises: a fifth switch;
the output end of the first earphone power amplifier is connected with the first data signal transmission end; the fifth switch is connected between the output end of the third earphone power amplifier and the output end of the fourth earphone power amplifier, and the output end of the third earphone power amplifier is connected with the second data signal transmission end;
the first data signal transmission end is respectively connected with the output end of the first earphone power amplifier and the output end of the third earphone power amplifier, and the second data signal transmission end is respectively connected with the output end of the second earphone power amplifier and the output end of the fourth earphone power amplifier;
the second switch module is further connected with a third reference ground end of the third headset power amplifier and a fourth reference ground end of the fourth headset power amplifier respectively;
in the first working state, the fourth switch and the fifth switch are turned off, and the reference signal transmission terminal is connected to the first reference ground terminal and the third reference ground terminal by the second switch module;
in the second working state, the fourth switch and the fifth switch are closed, and the second switch module connects the reference signal transmission terminal with the second reference ground terminal and the fourth reference ground terminal, respectively.
8. The circuit of claim 6, wherein the interface module further comprises: the earphone switching circuit also comprises a third working state;
in the first working state and the second working state, the third switch connects the earphone signal transmission end with the data signal transmission end and disconnects the USB signal transmission end with the data signal transmission end;
and in the third working state, the third change-over switch connects the USB signal transmission end with the data signal transmission end and disconnects the earphone signal transmission end from the data signal transmission end.
9. An electronic device comprising the audio switching circuit of any of claims 1-8.
10. An audio switching method applied to the electronic device of claim 9, the method comprising:
acquiring an audio working mode under the condition of connecting an earphone;
under the condition that the audio working mode is a high-fidelity audio mode, controlling an audio switching circuit in the electronic equipment to be in a first working state;
and controlling the audio switching circuit to be in a second working state under the condition that the audio working mode is a preset audio mode.
CN202011103693.9A 2020-10-15 2020-10-15 Audio switching circuit, electronic equipment and audio switching method Active CN112235692B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011103693.9A CN112235692B (en) 2020-10-15 2020-10-15 Audio switching circuit, electronic equipment and audio switching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011103693.9A CN112235692B (en) 2020-10-15 2020-10-15 Audio switching circuit, electronic equipment and audio switching method

Publications (2)

Publication Number Publication Date
CN112235692A CN112235692A (en) 2021-01-15
CN112235692B true CN112235692B (en) 2022-02-15

Family

ID=74117357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011103693.9A Active CN112235692B (en) 2020-10-15 2020-10-15 Audio switching circuit, electronic equipment and audio switching method

Country Status (1)

Country Link
CN (1) CN112235692B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113709290B (en) * 2021-07-28 2024-03-01 维沃移动通信有限公司 Processing device, processing method and electronic equipment
CN113784247A (en) * 2021-08-30 2021-12-10 维沃移动通信有限公司 Electronic equipment, earphone patch cord and electronic equipment subassembly
CN113821466B (en) * 2021-10-08 2022-09-30 无锡宇宁智能科技有限公司 Type-C interface universal circuit and drive board using same
CN114143660A (en) * 2022-01-06 2022-03-04 维沃移动通信有限公司 Wireless earphone control method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107889023A (en) * 2017-11-13 2018-04-06 厦门傅里叶电子有限公司 Intelligent audio power amplifier chips and intelligent audio switching method
CN207603855U (en) * 2017-11-06 2018-07-10 歌尔科技有限公司 A kind of Type-C interface headphones
CN110719548A (en) * 2018-07-12 2020-01-21 中兴通讯股份有限公司 Audio processing device, audio crosstalk processing method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104883641A (en) * 2014-02-28 2015-09-02 维沃移动通信有限公司 Mobile terminal of realizing high fidelity music play
US10505640B2 (en) * 2014-06-05 2019-12-10 Etymotic Research, Inc. Sliding bias method and system for reducing idling current while maintaining maximum undistorted output capability in a single-ended pulse modulated driver
CN105704597A (en) * 2014-11-28 2016-06-22 南京青衿信息科技有限公司 Smart headphone provided with sound effect processing system
US10321230B2 (en) * 2017-04-07 2019-06-11 Cirrus Logic, Inc. Switching in an audio system with multiple playback paths
CN111031435A (en) * 2019-12-25 2020-04-17 青岛小鸟看看科技有限公司 Audio circuit, head-mounted display equipment and head-mounted display system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN207603855U (en) * 2017-11-06 2018-07-10 歌尔科技有限公司 A kind of Type-C interface headphones
CN107889023A (en) * 2017-11-13 2018-04-06 厦门傅里叶电子有限公司 Intelligent audio power amplifier chips and intelligent audio switching method
CN110719548A (en) * 2018-07-12 2020-01-21 中兴通讯股份有限公司 Audio processing device, audio crosstalk processing method and device

Also Published As

Publication number Publication date
CN112235692A (en) 2021-01-15

Similar Documents

Publication Publication Date Title
CN112235692B (en) Audio switching circuit, electronic equipment and audio switching method
KR101607899B1 (en) Method and apparatus for an integrated headset switch with reduced crosstalk noise
US7761091B2 (en) Method and system of managing volume and functionality control between an audio player and wireless earphones
US9936317B2 (en) Audio crosstalk calibration switch
US20100128900A1 (en) Adapter accessory for electronic device sharing
US20070177741A1 (en) Batteryless noise canceling headphones, audio device and methods for use therewith
US8150058B2 (en) Mode switching noise cancellation for microphone-speaker combinations used in two way audio communications
US11418884B2 (en) Audio processing apparatus, audio crosstalk processing method and apparatus
US4491694A (en) Telephone to stereo amplifier interface coupling
CN102143421B (en) Terminal and method for processing audio of terminal
CN1765154B (en) Acoustic processing device
CN104581515B (en) A kind of audio playing apparatus, method and mobile terminal
CN111031435A (en) Audio circuit, head-mounted display equipment and head-mounted display system
CN113411703B (en) Audio playing method, earphone box, wireless earphone and earphone suite
WO2017185602A1 (en) Earphone mode switching method and electronic device
CN109918041B (en) Audio circuit, related equipment and control method
WO2023088139A1 (en) Audio processing apparatus and terminal device
CN111726733A (en) Electronic device, audio output control method, audio output control device, and storage medium
CN112333594B (en) Audio switching method for Bluetooth headset and Bluetooth sound box
CN211378222U (en) Audio circuit, head-mounted display equipment and head-mounted display system
KR20010059527A (en) Ear microphone of mobile phone
CN112511954A (en) Stereo assembly and terminal equipment
CN218240722U (en) Audio transmission circuit
GB2513629A (en) Interconnecting Electronic Host Devices and Accessories
GB2387979A (en) A connector interface for a mobile phone

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