This application relates to the field of communications technologies, and in particular, to an audio playback circuit and a terminal.
When a terminal plays stereo audio, a playback loop of a left channel and a playback loop of a right channel play the stereo audio independently. The left channel and the right channel may play the stereo audio at different times, or may play the stereo audio at the same time. To ensure that the left channel and the right channel play the stereo audio independently without affecting each other, an isolation problem needs to be considered; that is, the playback loops of the two channels need to be isolated from each other, so as to avoid impact between the left channel and the right channel when the left channel and the right channel play sounds.
Two headsets of the two channels are usually connected to a common ground point. The common ground point needs to be connected to the sound source ground on the motherboard, but there is a wiring impedance, a magnetic-bead impedance, and the like between the common ground point and the sound source ground on the motherboard. Therefore, when the playback loop of a channel receives a signal from a processor whose absolute value of voltage is greater than that of a signal from the sound source ground on the motherboard, because of the wiring impedance, the magnetic-bead impedance, and the like, there is a voltage difference between the common ground point and the sound source ground one the motherboard. The voltage difference causes a current to flow through the headset of the other channel, so that the sound is played on the other channel, and isolation between the left channel and the right channel is poor.
This application discloses an audio playback circuit and a terminal, so as to improve isolation between a left channel and a right channel.
According to a first aspect, an embodiment of this application provides an audio playback circuit. The audio playback circuit includes a left-channel circuit, a right-channel circuit, a first feedback circuit, a second feedback circuit, a first current path, and a second current path, where: an output end of the left-channel circuit is coupled to a first end of a left-channel headset, an input end of the first feedback circuit is coupled to a second end of the left-channel headset, and an output end of the first feedback circuit is coupled to an input end of the left-channel circuit; an output end of the right-channel circuit is coupled to a first end of a right-channel headset, an input end of the second feedback circuit is coupled to a second end of the right-channel headset, and an output end of the second feedback circuit is coupled to an input end of the right-channel circuit, where the second end of the left-channel headset is coupled to the second end of the right-channel headset; a first end of the first current path is coupled to the output end of the left-channel circuit and the first end of the left-channel headset, and a second end of the first current path is coupled to the input end of the second feedback circuit and the second end of the left-channel headset; a first end of the second current path is coupled to the output end of the right-channel circuit and the first end of the right-channel headset, and a second end of the second current path is coupled to the input end of the first feedback circuit and the second end of the right-channel headset; the left-channel circuit is configured to output a left-channel audio signal to the first end of the left-channel headset; the right-channel circuit is configured to output a right-channel audio signal to the first end of the right-channel headset; the first feedback circuit is configured to feed back a first voltage to the first end of the left-channel headset through the left-channel circuit when the right-channel circuit outputs the right-channel audio signal; the second feedback circuit is configured to feed back a second voltage to the first end of the right-channel headset through the right-channel circuit when the left-channel circuit outputs the left-channel audio signal; the first current path is configured to shunt a current output by the left-channel circuit to adjust the second voltage fed back to the first end of the right-channel headset when the left-channel circuit outputs the left-channel audio signal, where when the left-channel circuit outputs the left-channel audio signal and the right-channel circuit does not output the right-channel audio signal, the second voltage is equal to a voltage at the second end of the right-channel headset; and the second current path is configured to shunt a current output by the right-channel circuit to adjust the first voltage fed back to the first end of the left-channel headset when the right-channel circuit outputs the right-channel audio signal, where when the right-channel circuit outputs the right-channel audio signal and the left-channel circuit does not output the left-channel audio signal, the first voltage is equal to a voltage at the second end of the left-channel headset.
According to the audio playback circuit, when an absolute value of a voltage of a signal received by the left-channel playback loop from a processor is greater than that of a signal received by the sound source ground on the motherboard, and when a voltage of a signal received by the right-channel playback loop from the processor is equal to that of a signal from the sound source ground on the motherboard, the first current path is used to adjust a voltage fed back to a signal input end of the right-channel headset, so that voltages at both ends of the right-channel headset are equal when the right-channel playback loop is in the non-playing state, thereby reducing impact of current on the right-channel headset when the left-channel playback loop is playing. Similarly, when an absolute value of a voltage of a signal received by the right-channel playback loop from the processor is greater than that of the signal from the sound source ground on the motherboard, the second current path is used to change the voltage fed back to the signal input end of the left-channel headset, so that voltages at both ends of the left-channel headset are equal when the left-channel playback loop is in the non-playing state, thereby reducing impact of current on the left-channel headset when the right-channel playback loop is playing. It can be learned that crosstalk between the left channel and the right channel can be reduced by using the current path, so that the isolation between the left channel and the right channel is improved.
Coupling refers to transfer of energy from one part of a circuit to another part of the circuit. The coupling may be based on a wiring connection, or may be based on an electronic component or based on a circuit connection.
That a circuit of a channel outputs an audio signal of the channel may mean that an absolute value of a voltage of a signal received by the circuit of the channel from the processor is greater than that of a signal from the sound source ground on the motherboard. Tat a circuit of a channel does not output an audio signal of the channel may mean that a voltage of a signal received by the circuit of the channel from the processor is equal to that of the sound source ground on the motherboard.
During specific implementation, both the first feedback circuit and the second feedback circuit may be voltage feedback circuits.
In a possible implementation, the first current path includes a first impedance, where a first end of the first impedance is coupled to the output end of the left-channel circuit and the first end of the left-channel headset, and a second end of the first impedance is coupled to the input end of the second feedback circuit and the second end of the left-channel headset; and the second current path includes a second impedance, where a first end of the second impedance is coupled to the output end of the right-channel circuit and the first end of the right-channel headset, and a second end of the second impedance is coupled to the input end of the first feedback circuit and the second end of the right-channel headset.
In a possible implementation, the left-channel circuit, the right-channel circuit, the first feedback circuit, and the second feedback circuit are integrated in an audio chip; the first current path is coupled to the output end of the left-channel circuit and the input end of the second feedback circuit through a chip interface of the audio chip, the output end of the left-channel circuit is coupled to the first end of the left-channel headset through the chip interface of the audio chip, and the input end of the first feedback circuit is coupled to the second end of the left-channel headset through the chip interface of the audio chip; and the second current path is coupled to the output end of the right-channel circuit and the input end of the first feedback circuit through the chip interface of the audio chip, the output end of the right-channel circuit is coupled to the first end of the right-channel headset through the chip interface of the audio chip, and the input end of the second feedback circuit is coupled to the second end of the right-channel headset through the chip interface of the audio chip.
It can be learned that crosstalk between the right-channel playback loop and the left-channel playback loop can be reduced by using the chip interface of the audio chip without changing an internal structure of the audio chip through the first current path and the second current path, so that isolation between the right-channel playback loop and the left-channel playback loop is improved.
In a possible implementation, the left-channel circuit, the right-channel circuit, the first feedback circuit, the second feedback circuit, the first current path, and the second current path are integrated in an audio chip; the output end of the left-channel circuit is coupled to the first end of the left-channel headset through a chip interface of the audio chip, and the input end of the first feedback circuit is coupled to the second end of the left-channel headset through the chip interface of the audio chip; and the output end of the right-channel circuit is coupled to the first end of the right-channel headset through the chip interface of the audio chip, and the input end of the second feedback circuit is coupled to the second end of the right-channel headset through the chip interface of the audio chip.
In a possible implementation, the output end of the left-channel circuit is coupled to the first end of the left-channel headset through the headset interface, and the output end of the right-channel circuit is coupled to the first end of the right-channel headset through the headset interface, where an equivalent impedance generated between the headset interface and a stereo headset is a first equivalent impedance Rx, and the stereo headset includes the left-channel headset and the right-channel headset; the input end of the first feedback circuit is coupled to the second end of the left-channel headset through the headset interface, and the input end of the second feedback circuit is coupled to the second end of the right-channel headset through the headset interface, where an equivalent impedance generated between the headset interface and the feedback circuit is a second equivalent impedance Ry, and the feedback circuit includes the first feedback circuit and the second feedback circuit; and a sound source ground is coupled to the second end of the left-channel headset and the second end of the right-channel headset through the headset interface, where an equivalent impedance generated by the headset interface coupled to the sound source ground is a third equivalent impedance Re, and a voltage of the sound source ground is a reference voltage when the left-channel circuit or the right-channel does not output an audio signal.
The sound source ground is the sound source ground on the motherboard. The sound source ground on the motherboard refers to a reference voltage of a sound signal, where the reference voltage may come from a processor on the motherboard. A chip and a device may be provided on the motherboard. The chip may include, for example, an audio chip; and the device may include, for example, a device constituting a current path.
In a possible implementation, a value of the first impedance is as follows:
where Rrfb is the value of the first impedance; Rr is an equivalent impedance of the right-channel headset; and 1/x1 is a product of an amplification factor of the left-channel circuit and an amplification factor of the first feedback circuit; and a value of the second impedance is as follows:
where Rlfb is the value of the second impedance; Rl is an equivalent impedance of the left-channel headset; and 1/x2 is a product of an amplification factor of the right-channel circuit and an amplification factor of the second feedback circuit.
During specific implementation, when x1=1, Rrfb=Rr*Ry/Rx.
During specific implementation, when x2=1, Rlfb=Rl*Ry/Rx.
With the impedance Rrfb, when the signal received by the left-channel circuit from the processor is a signal from the sound source ground on the motherboard, the voltages at both ends of the left-channel headset are equal. Therefore, when the absolute value of the voltage of the signal received by the right-channel circuit from the processor is greater than that of the signal from the sound source ground on the motherboard, and the signal received by the left-channel circuit from the processor is a signal from the sound source ground on the motherboard, the voltage difference between the two ends of the left-channel headset is further reduced, so that crosstalk of the right-channel playback loop to the left-channel playback loop is reduced.
With the value of the impedance Rrfb, when the absolute value of the voltage of the signal received by the left-channel circuit from the processor is greater than that of the signal from the sound source ground on the motherboard, and the signal received by the right-channel circuit from the processor is a signal from the sound source ground on the motherboard, the voltages at both ends of the right-channel headset are equal. Therefore, when the absolute value of the voltage of the signal received by the left-channel circuit from the processor is greater than that of the signal from the sound source ground on the motherboard, and the signal received by the right-channel circuit from the processor is a signal from the sound source ground on the motherboard, the voltage difference between the two ends of the right-channel headset is further reduced, so that crosstalk of the left-channel playback loop to the right-channel playback loop is reduced. In this way, the isolation between the right-channel playback loop and the left-channel playback loop is improved.
According to a second aspect, an embodiment of this application provides an audio playback circuit. where the audio playback circuit includes a left-channel circuit, a right-channel circuit, and a third current path, where: an output end of the left-channel circuit is configured to couple to a first end of a left-channel headset, an output end of the right-channel circuit is configured to couple to a first end of a right-channel headset, and a second end of the left-channel headset is coupled to a second end of the right-channel headset; the left-channel circuit is configured to output a left-channel audio signal to the first end of the left-channel headset;
the right-channel circuit is configured to output a right-channel audio signal to the first end of the right-channel headset; a first end of the third current path is coupled to the output end of the left-channel circuit and the first end of the left-channel headset, and a second end of the third current path is coupled to the output end of the right-channel circuit and the first end of the right-channel headset; the third current path is configured to shunt a current output by the left-channel circuit to adjust a third voltage input to the first end of the right-channel headset when the left-channel circuit outputs a left-channel audio signal, where when the left-channel circuit outputs the left-channel audio signal and the right-channel circuit does not output the right-channel audio signal, the third voltage is equal to a voltage at the second end of the right-channel headset; and
the third current path is further configured to shunt a current output by the right-channel circuit to adjust a fourth voltage input to the first end of the left-channel headset when the right-channel circuit outputs the right-channel audio signal, where when the right-channel circuit outputs the right-channel audio signal and the left-channel circuit does not output the left-channel audio signal, the fourth voltage is equal to a voltage at the second end of the left-channel headset.
With the audio playback circuit, when a signal received by the left-channel circuit from a processor is a signal from the sound source ground on the motherboard, a voltage at the input end of the left-channel headset is changed by using the third current path, so that the voltage value at the input end of the left-channel headset is equal to the voltage of the common ground point. Therefore, a voltage difference between the two ends of the left-channel headset is reduced, so that crosstalk of the right-channel playback loop to the left-channel playback loop is reduced. When the absolute value of the voltage of the signal received by the right-channel circuit from the processor is greater than that of the signal from the sound source ground on the motherboard, and the signal received by the left-channel circuit from the processor is a signal from the sound source ground on the motherboard, the third current path is used to make the voltages at both ends of the left-channel headset equal. In this case, the voltage difference between the two ends of the left-channel headset can be reduced, so that the crosstalk of the right-channel playback loop to the left-channel playback loop is reduced.
In this embodiment of this application, current path 3 is the third current path. The equivalent impedance Rx is a first equivalent impedance, the equivalent impedance Ry is a second equivalent impedance, and the equivalent impedance Re is a third equivalent impedance.
During specific implementation, the equivalent ground impedance may also include a detection impedance used to detect whether the headset is inserted into a headset interface, and the equivalent ground impedance may also include another ground impedance connected to current path 3.
When the equivalent ground impedance includes only the feedback impedance in the left-channel circuit, the equivalent impedance Rb=R11+R13.
In a possible implementation, the third current path includes a third impedance, where a first end of the third impedance is coupled to the output end of the left-channel circuit and the first end of the left-channel headset, and a second end of the third impedance is coupled to the output end of the right-channel circuit and the first end of the right-channel headset.
In a possible implementation, the output end of the left-channel circuit is coupled to the first end of the left-channel headset through a headset interface, and the output end of the right-channel circuit is coupled to the first end of the right-channel headset through the headset interface, where an equivalent impedance generated between the headset interface and a stereo headset is a first equivalent impedance Rx, and the stereo headset includes the left-channel headset and the right-channel headset; and
a sound source ground is coupled to the second end of the left-channel headset and the second end of the right-channel headset through the headset interface, where an equivalent impedance generated by the headset interface coupled to the sound source ground is a third equivalent impedance Re, and a voltage of the sound source ground is a voltage at the first end of the left-channel headset when the left-channel headset does not output the left-channel audio signal.
In a possible implementation, a value of the third impedance is as follows:
where Rfb is the value of the third impedance; Rr is an equivalent impedance of the right-channel headset; Rl is an equivalent impedance of the left-channel headset; and Rb is an equivalent ground impedance, where the third current path is coupled to the sound source ground through the equivalent ground impedance.
Optionally, the feedback impedance Rfb may alternatively be determined based on both the equivalent impedance Rl of the left-channel headset and the equivalent impedance Rr of the right-channel headset.
During specific implementation, Rfb=Rb*Rc/(Rx+Re). Rc may be determined based on the equivalent impedance Rl of the left-channel headset and the equivalent impedance Rr of the right-channel headset.
During specific implementation, Rc may be an average of the equivalent impedance Rl of the left-channel headset and the equivalent impedance Rr of the right-channel headset.
Optionally, the left-channel circuit and the right-channel circuit are integrated in an audio chip; a first end of the third current path is coupled to an output end of the left-channel circuit through a chip interface of the audio chip, and the output end of the left-channel circuit is coupled to a first end of the left-channel headset through the chip interface of the audio chip; and a second end of the third current path is coupled to an output end of the right-channel circuit through the chip interface of the audio chip, and the output end of the right-channel circuit is coupled to the first end of the right-channel headset through the chip interface of the audio chip.
It can be learned that the crosstalk between the right-channel playback loop and the left-channel playback loop can be reduced by using the chip interface of the audio chip through the third current path without changing an internal structure of the audio chip, so that isolation between the right-channel playback loop and the left-channel playback loop is improved.
Optionally, the left-channel circuit, the right-channel circuit, and the third current path are integrated in an audio chip; and the output end of the left-channel circuit and the first end of the third current path are coupled to the input end of the left-channel headset through a chip interface of the audio chip. The output end of the right-channel circuit and the second end of the third current path are coupled to the input end of the right-channel headset through the chip interface of the audio chip.
According to a third aspect, an embodiment of this application provides a terminal, where the terminal includes a processor, an audio playback circuit, and a headset interface, where: the processor is coupled to an input end of the audio playback circuit, and the processor is configured to input an audio signal to the audio playback circuit; an output end of the audio playback circuit is coupled to the headset interface; the headset interface is configured to connect to an external stereo headset, where the stereo headset includes a left-channel headset and a right-channel headset; and the audio playback circuit is the audio playback circuit according to the first aspect or any possible implementation of the first aspect.
According to a fourth aspect, an embodiment of this application provides a terminal, where the terminal includes a processor, an audio playback circuit, and a headset interface, where: the processor is coupled to an input end of the audio playback circuit, and the processor is configured to input an audio signal to the audio playback circuit; an output end of the audio playback circuit is coupled to the headset interface; the headset interface is configured to connect an external stereo headset, where the stereo headset includes a left-channel headset and a right-channel headset; and the audio playback circuit is the audio playback circuit according to the second aspect or any possible implementation of the second aspect.
The following describes an application scenario and concepts used in embodiments of this application. In a stereo scenario, the left channel and the right channel play sounds independently. When a stereo sound is played by a terminal, a stereo headset and an audio chip may form a sound playback loop. The audio chip may be integrated in the terminal or may be a separate chip. The audio chip may be, for example, a coder-decoder (coder-decoder, CODEC) chip, and may be a high-fidelity (high-fidelity, HiFi) chip. The audio chip may support audio compression (coder) and decompression (decoder). The audio chip can compress and decompress audio using hardware, thereby saving CPU resources and improving the operation efficiency of the terminal. The audio chip used in the embodiments of this application may be a CODEC chip, a HiFi chip, another chip used for audio coding and decoding, or a future chip used for audio coding and decoding, which is not limited in the embodiments of this application.
The terminal may include a mobile phone, a tablet computer, a desktop computer, a mobile station (mobile station), a mobile unit (mobile unit), a radio unit, a remote unit, a user agent, a mobile client, an in-vehicle device, and the like that has an audio playback function. The stereo headset may be plugged into the headset interface of the terminal through a stereo headset plug, so as to connect to the audio chip in the terminal.
To facilitate an understanding of the embodiments of this application, some concepts or terms used in the embodiments of this application are described below.
(1) Headset Plug and Headset Interface
The stereo headset plug is a plug on the headset and may be of various types. For example, the stereo headset plug may be a 3.5 mm plug or a typeC plug. The headset interface is located on the terminal, and is configured to connect to an external headset plug. A 3.5 mm plug can match a 3.5 mm headset interface, and they can be connected to form to connect to form a closed sound playback loop. Similarly, the typeC plug may match the typeC headset interface, and they can be connected to form a closed sound playback loop.
In addition, when the headset interface and the headset plug are of different types, the headset adapter can be connected through a headset adapter cable. For example, when the headset interface is a typeC headset interface and the headset plug is a 3.5 mm plug, the 3.5 mm plug may be connected to the typeC plug using the headset adapter cable, and then the typeC plug on the headset adapter cable is connected to the typeC headset interface, so as to form the sound playback loop. For another example, when the headset interface is a 3.5 mm headset interface and the headset plug is a plug typeC plug, the typeC plug may be connected to the 3.5 mm plug using the headset adapter cable, and then the 3.5 mm plug on the headset adapter cable is connected to the 3.5 mm headset interface, so as to form the sound playback loop.
It can be understood that the foregoing examples of the types of the headset interface and the headset plug are not limited to the types of 3.5 mm and typeC, but may be extended to other headset interfaces and headset plugs. When the headset interface and the headset plug are of different types, they can be connected using the headset adapter cable, so as to form the sound playback loop.
When the headset adapter cable is used to implement the adaptation function, the equivalent impedance between the common ground point of the two headsets and the sound source ground on the motherboard increases due to the contact impedance generated by the adaptation and the wiring impedance of the adapter cable, that is, the value of Rx in
The sound source ground on the motherboard refers to a reference voltage of a sound signal, where the reference voltage may come from a processor on the motherboard. A chip and a device may be provided on the motherboard. The chip may include, for example, an audio chip; and the device may include, for example, a device constituting a current path.
(2) Coupling Between Electronic Components and Coupling Between Circuits
Coupling reflects a connection relationship between electronic components, a connection relationship between an electronic component and a circuit, or a connection relationship between circuits. The electronic component may be, for example, a resistor, a capacitor, an inductor, or an amplifier. A circuit may be a plurality of electronic components connected using wires.
In the embodiments of this application, coupling refers to transfer of energy from one part of a circuit to another part of the circuit. For example, coupling between A and B may indicate that A and B are connected through wiring, or may indicate that A and B are connected using an electronic component or a circuit. Each of A and B may be a device or a circuit.
(3) Playing State and Non-Playing State of a Channel Playback Loop
In the embodiments of this application, a sound signal of a left channel can be input to a left-channel headset through a left-channel circuit, and a sound signal of a right channel can be input to a right-channel headset through a right-channel circuit. The left-channel circuit and the right-channel circuit may be included in an audio chip, and are used to receive a digital sound signal from a processor, and perform digital-to-analog conversion and amplification, and then transmit the obtained audio signal to the left-channel headset and the right-channel headset.
In the embodiments of this application, the non-playing state of a playback loop of a channel means that a signal received by the playback loop of the channel from the processor is a signal from the sound source ground on the motherboard. The playing state of a playback loop of a channel means that an absolute value of a voltage of a signal received by the playback loop of the channel from the processor is greater than that of a signal from the sound source ground on the motherboard.
In a playback loop of a channel, that the circuit of the channel outputs an audio signal of the channel may alternatively mean that an absolute value of a voltage of a signal received by the circuit of the channel from the processor is greater than that of a signal from the sound source ground on the motherboard. That a circuit of a channel does not output an audio signal of the channel may mean that a voltage of a signal received by the circuit of the channel from the processor is equal to that of the sound source ground on the motherboard. The voltage of the sound source ground on the motherboard is a reference voltage, that is, the voltage of the audio signal output by the processor when the left-channel circuit or the right-channel circuit does not output an audio signal. The circuit of a channel may include a left-channel circuit and a right-channel circuit. For detailed descriptions of the left-channel circuit and the right-channel circuit, reference may be made to detailed descriptions in the embodiment described later in
As shown in
Similarly, as shown in
As shown in
In the sound playback system, as shown in
As shown in
The concepts of crosstalk and isolation used in the embodiments of this application are described below. The isolation may reflect the degree of crosstalk (crosstalk) between the left channel and the right channel. When the absolute value of the voltage of the signal received by one of the channels from the processor is greater than that of the sound source ground on the motherboard, and the voltage of the signal received by the other channel from the processor is that of the sound source ground on the motherboard, a difference between the voltages of the headsets of the two channels can be used as the isolation.
When the voltage of the signal that is received by the input end of the left-channel headset and that undergoes analog-to-digital conversion and amplification is V, and the voltage of a signal received by the input end of the right-channel headset is the voltage V0 of the sound source ground on the motherboard, it is assumed that voltage values at both ends of the right-channel headset are Vr, and voltage values at both ends of the left-channel headset are Vl. In this case, reference may be made to
When Rl=Rr, the following can be obtained according to formula (1):
where R is the equivalent impedance of the left-channel headset; Rr is the equivalent impedance of the right-channel headset; Re is the equivalent impedance that is generated by wiring or magnetic beads and that exists between the headset interface and the sound source ground on the motherboard, or the like; the equivalent impedance generated by the magnetic beads; and Rx includes one or more of the following: the contact impedance generated between the headset plug and the headset interface, the equivalent impedance that is generated by the wiring or magnetic beads between the headset and the headset plug, or the equivalent impedance generated by the headset adapter cable.
It can be learned that crosstalk is related to the equivalent impedance Rl of the left-channel headset, the equivalent impedance Rr of the right-channel headset, and Re+Rx, and is not related to the amplitude of the signal input to the audio chip. The smaller the sum of Re+Rx, the smaller the crosstalk between the left channel and the right channel, the better the isolation between the left channel and the right channel, and the stronger the stereoscopic sense of the sound output through the two headsets.
The isolation can be represented by an absolute value of crosstalk. The greater the absolute value of crosstalk, the greater the isolation between the left channel and the right channel, and the stronger the stereoscopic sense of the sound output through the two headsets.
Specifically, both feedback circuit 1 and feedback circuit 2 may be voltage feedback circuits. Feedback circuit 1 may include operational amplifier 3, an impedance R7, and an impedance R8. The impedance R8 is configured to limit current, and R7 and R8 may be configured to determine an amplification factor of amplifier 3. Feedback circuit 2 may include operational amplifier 4, an impedance R9, and an impedance R10. The impedance R10 is configured to limit current, and R9 and R10 may be configured to determine an amplification factor of operational amplifier 4.
Ry includes one or more of the following: an equivalent impedance generated by feedback wiring, or an equivalent impedance generated by magnetic beads. The feedback wiring may include wiring between the headset interface to the input end of feedback circuit 1 (or feedback circuit 2). Rx includes one or more of the following: the contact impedance generated between the headset plug and the headset interface, the equivalent impedance that is generated by wiring or magnetic beads and that exists between the headset and the headset plug, or the equivalent impedance that is generated by the headset adapter cable. For detailed descriptions of the left-channel playback loop and the right-channel playback loop, reference may be made to detailed descriptions in the embodiment described in
The principle of reducing crosstalk between the left-channel playback loop and the right-channel playback loop using a feedback circuit is described in detail below.
When an absolute value of a voltage of a signal received by the left-channel playback loop from the processor is greater than that of a signal from the sound source ground on the motherboard, feedback circuit 2 feeds back the voltage V2 at the Rx end to the right-channel playback loop through voltage feedback, that is, transmits V2 to the right-channel headset through operational amplifier 2 and operational amplifier 4. If a product of an amplification factor of operational amplifier 2 and an amplification factor of operational amplifier 4 is 1/x2, the voltages at both ends of the right-channel headset are V2/x2 and V1 when the absolute value of the voltage of the signal received by the right-channel playback loop from the processor is equal to the voltage value of the signal from the sound source ground on the motherboard. When Rx is much smaller than the impedance Rl of the left-channel headset and the impedance Rr of the right-channel headset, V2/x2 and V1 are almost equal. This is because the partial voltage is positively related to an impedance, and almost all the voltage values of the signals from the processor fall on R1, and the partial voltage on Rx is negligible, that is, V1 is almost equal to V2. When the magnification factor 1/x2 is set to 1, V2/x2 and V1 are almost equal. That is, when the absolute value of the voltage of the signal received by the right-channel playback loop from the processor is equal to the voltage value of the voltage of the signal from the sound source ground on the motherboard, the current on the right-channel headset is approximately zero. Similarly, when the absolute value of the voltage of the signal received by the right-channel playback loop from the processor is greater than that of the signal from the sound source ground on the motherboard, the voltages at both ends of the left-channel headset are almost equal, so that impact between the two-channel playback sounds can be significantly reduced, thereby improving isolation between the left channel and the right channel.
In the sound playback system, as shown in
However, in the sound playback system shown in
To improve the isolation between the left channel and the right channel, an embodiment of this application provides an audio playback circuit. The audio playback circuit may include a current path, where the current path may include a first current path and a second current path. One end of the first current path may be coupled to an output end of the left-channel circuit, and the other end of the first current path may be coupled to an input end of feedback path 2. One end of the second current path may be coupled to an output end of the right-channel circuit, and the other end of the second current path may be coupled to an input end of feedback path 1. When an absolute value of a voltage of a signal received by the left-channel playback loop from the processor is greater than that of a signal received by the sound source ground on the motherboard, and when a voltage of a signal received by the right-channel playback loop from the processor is equal to that of a signal from the sound source ground on the motherboard, the first current path is used to adjust a voltage fed back to a signal input end of the right-channel headset, so that the voltages at both ends of the right-channel headset are equal when the right-channel playback loop is in the non-playing state, thereby reducing impact of current on the right-channel headset when the left-channel playback loop is playing. Similarly, when an absolute value of a voltage of a signal received by the right-channel playback loop from the processor is greater than that of the signal from the sound source ground on the motherboard, the second current path is used to change the voltage fed back to the signal input end of the left-channel headset, so that the voltages at both ends of the left-channel headset are equal when the left-channel playback loop is in the non-playing state, thereby reducing impact of current on the left-channel headset when the right-channel playback loop is playing. It can be learned that the crosstalk between the left channel and the right channel can be reduced by using the current path, so that the isolation between the left channel and the right channel is improved.
Specifically, reference may be made to
In this embodiment of this application, current path 1 in the context is a first current path, and current path 2 is a second current path. Voltage feedback circuit 1 and feedback circuit 1 in the context are first feedback circuits, and voltage feedback circuit 2 and feedback circuit 2 are second feedback circuits. The equivalent impedance Rx is a first equivalent impedance, the equivalent impedance Ry is a second equivalent impedance, and the equivalent impedance Re is a third equivalent impedance.
As shown in
As shown in
A first end of the second current path is coupled to the output end of the right-channel circuit and the first end of the right-channel headset, and a second end of the second current path is coupled to the input end of the first feedback circuit and the second end of the right-channel headset.
Functions of the modules in the audio playback circuit are described below.
The left-channel circuit is configured to output a left-channel audio signal to the first end of the left-channel headset.
The right-channel circuit is configured to output a right-channel audio signal to the first end of the right-channel headset.
The first feedback circuit is configured to feed back a first voltage to the first end of the left-channel headset through the left-channel circuit when the right-channel circuit outputs a right-channel audio signal.
The second feedback circuit is configured to feed back a second voltage through the right-channel circuit to the first end of the right-channel headset when the left-channel circuit outputs a left-channel audio signal.
The first current path is configured to shunt the current output by the left-channel circuit to adjust the second voltage fed back to the first end of the right-channel headset when the left-channel circuit outputs a left-channel audio signal. When the left-channel circuit outputs a left-channel audio signal and the right-channel circuit does not output a right-channel audio signal, the second voltage is equal to the voltage at the second end of the right-channel headset.
The second current path is configured to shunt the current output by the right-channel circuit to adjust the first voltage fed back to the first end of the left-channel headset when the right-channel circuit outputs a right-channel audio signal. When the right-channel circuit outputs a right-channel audio signal and the left-channel circuit does not output a left-channel audio signal, the first voltage is equal to the voltage at the second end of the left-channel headset.
Functions of current path 1 and current path 2 are described in detail below with reference to
(1) Functions of current path 2 when the absolute value of the voltage of the signal received by the right-channel circuit from the processor is greater than that of the signal from the sound source ground on the motherboard, and the signal received by the left-channel circuit from the processor is a signal from the sound source ground on the motherboard
For current path 2, when the absolute value of the voltage of the signal received by the right-channel circuit from the processor is greater than that of the signal from the sound source ground on the motherboard, and the signal received by the left-channel circuit from the processor is a signal from the sound source ground on the motherboard, because of the wiring impedance, the magnetic-bead impedance, or the equivalent impedance of the headset adapter cable, the voltage of the common ground point A of the right-channel headset and the left-channel headset is V1, which is greater than the ground voltage V0 of the sound source ground on the motherboard. The right-channel circuit forms a current loop through current path 2, the sound source ground on the motherboard, and the wires between current path 2 and the sound source ground on the motherboard, that is, loop 1 in
(2) Functions of current path 1 when the absolute value of the voltage of the signal received by the left-channel circuit from the processor is greater than that of the signal from the sound source ground on the motherboard, and the signal received by the right-channel circuit from the processor is a signal from the sound source ground on the motherboard
For current path 1, when the absolute value of the voltage of the signal received by the left-channel circuit from the processor is greater than that of the signal from the sound source ground on the motherboard, and the signal received by the right-channel circuit from the processor is a signal from the sound source ground on the motherboard, because of the wiring impedance, the magnetic-bead impedance, or the equivalent impedance of the headset adapter cable, the voltage of the common ground point A of the left-channel headset and the right-channel headset is V1, which is greater than the ground voltage V0 of the sound source ground on the motherboard. The left-channel circuit forms a current loop through current path 1, the sound source ground on the motherboard, and the wires between current path 1 and the sound source ground on the motherboard, to change the voltage V3 fed back to the right-channel playback path. A loop formed by connecting circuit path 1, impedances Ry and Rx, and the sound source ground on the motherboard to each other may change the voltage V3 fed back to the right-channel playback path by shunting the current on the left-channel circuit. The impedance value on current path 1 may be used to determine the voltage V3 fed back to the left-channel playback path. Therefore, the impedance value on current path 1 can be set so that the voltage fed back to the first end of the right-channel headset is V1. Therefore, when the absolute value of the voltage of the signal received by the left-channel circuit from the processor is greater than that of the signal from the sound source ground on the motherboard, and the signal received by the right-channel circuit from the processor is a signal from the sound source ground on the motherboard, the voltages at the first end and the second end of the right-channel headset are both equal to V1. A difference between the voltages at both ends of the right-channel headset is further reduced, so that the crosstalk of the left-channel playback loop to the right-channel playback loop is reduced.
In the sound playback system, as shown in
Both current path 1 and current path 2 may be provided on the motherboard of the terminal. A chip and a device may be provided on the motherboard. The chip may include, for example, an audio chip; and the device may include, for example, a device constituting a current path. As shown in
A specific implementation example of a left-channel circuit, a right-channel circuit, voltage feedback circuit 1, voltage feedback circuit 2, current path 1, and current path 2 in the sound playback system shown in
In this embodiment of this application, the left-channel circuit in the audio chip may be implemented using an operational amplifier and an impedance, and the right-channel circuit may be implemented using an operational amplifier and an impedance. Voltage feedback circuit 1 and voltage feedback circuit 2 may also be implemented using an operational amplifier and an impedance. Current path 1 and current path 2 may be implemented using an impedance. Specifically, reference may be made to
As shown in
As shown in
Functions of current path 1 and current path 2 exemplified in
(a) Functions of Current Path 2
As shown in
Specifically, equivalent circuits of loop 1 and loop 2 shown in
As shown in
V3=x1*V1 (3)
Assuming that a current flowing through loop 1 is I1 and a current flowing through loop 2 is I2, the following can be obtained by using Ohm's law based on
The following can be obtained according to formula (3) and formula (4):
When x1=1, the following can be obtained according to formula (5):
According to formula (3), when the absolute value of the voltage of the signal received by the right-channel circuit from the processor is greater than that of the signal from the sound source ground on the motherboard, and the signal received by the left-channel circuit from the processor is a signal from the sound source ground on the motherboard, the voltage V3=x1*V1 is fed back to the input end of the left-channel headset through operational amplifier 3 and operational amplifier 1. After the voltage V3 passes through operational amplifier 3 and operational amplifier 1, the voltage input to the left-channel headset is V3/x1, that is, V1. The voltages at both ends of the left-channel headset are V1. Therefore, when the absolute value of the voltage of the signal received by the right-channel circuit from the processor is greater than that of the signal from the sound source ground on the motherboard, and the signal received by the left-channel circuit from the processor is a signal from the sound source ground on the motherboard, the voltage difference between the two ends of the left-channel headset is further reduced, so that crosstalk of the right-channel playback loop to the left-channel playback loop is reduced.
(b) Functions of Current Path 1
Similar to current path 2, the voltage V3 fed back to the right-channel playback path can be changed by shunting the current on the left-channel circuit through current path 1. An impedance Rlfb on current path 1 may be used to determine the voltage V3 fed back to the right-channel playback path. Therefore, the voltage V3 fed back to the right-channel circuit can be set by setting the impedance Rlfb. Further, the impedance Rlfb is set so that the voltage output to the first end of the right-channel headset after passing through feedback circuit 2 and the right-channel circuit is equal to the voltage output to the second end of the right-channel headset, that is, V1.
A method for determining an impedance Rrfb is similar to the method for determining the value of the impedance Rlfb. The value of the obtained impedance Rlfb can be used to implement the following: When the left-channel playback loop is in the playing state and the right-channel path is in the non-playing state, the voltage value fed back to the first end of the right-channel headset is equal to V1, that is, equal to the voltage at the second end of the right-channel headset.
If a product of an amplification factor of operational amplifier 4 and an amplification factor of operational amplifier 2 is 1/x2, the following can be obtained:
When x2=1, the following can be obtained according to formula (7):
According to formula (8), when the absolute value of the voltage of the signal received by the left-channel circuit from the processor is greater than that of the signal from the sound source ground on the motherboard, and the signal received by the right-channel circuit from the processor is a signal from the sound source ground on the motherboard, the voltage V3=x2*V1 is fed back to the input end of the right-channel headset through operational amplifier 4 and operational amplifier 2. After the voltage V3 passes through operational amplifier 4 and operational amplifier 2, a voltage input to the right-channel headset is V3/x2, that is, V1. The voltages at both ends of the right-channel headset are V1. Therefore, when the absolute value of the voltage of the signal received by the left-channel circuit from the processor is greater than that of the signal from the sound source ground on the motherboard, and the signal received by the right-channel circuit from the processor is a signal from the sound source ground on the motherboard, the voltage difference between the two ends of the right-channel headset is further reduced, so that crosstalk of the left-channel playback loop to the right-channel playback loop is reduced.
It can be learned that the crosstalk between the right-channel playback loop and the left-channel playback loop can be reduced by using the chip interface of the audio chip through the current path formed by Rrfb and Rlfb without changing an internal structure of the audio chip, so that isolation between the right-channel playback loop and the left-channel playback loop is improved.
In another possible embodiment, current path 1 and current path 2 shown in
The stereo headset may be provided with interfaces to the audio chip, the current path, and the sound source ground on the motherboard through the headset interface on the terminal. The stereo headset is connected to the headset interface on the terminal through the headset plug.
In this embodiment of this application, Rlfb in current path 1 is a first impedance, and Rrfb in current path 2 is a second impedance. As shown in
When the right-channel circuit outputs a right-channel audio signal, the voltage fed back by the first feedback circuit to the first end of the left-channel headset is a first voltage. When the absolute value of the voltage of the signal received by the right-channel circuit from the processor is greater than that of the signal from the sound source ground on the motherboard, and the signal received by the left-channel circuit from the processor is a signal from the sound source ground on the motherboard, the first voltage V3/x1 is equal to the voltage at the second end of the left-channel headset. When the left-channel circuit outputs a left-channel audio signal, the voltage fed back by the second feedback circuit to the first end of the right-channel headset is a second voltage. When the absolute value of the voltage of the signal received by the left-channel circuit from the processor is greater than that of the signal from the sound source ground on the motherboard, and the signal received by the right-channel circuit from the processor is a signal from the sound source ground on the motherboard, the second voltage V3/x2 is equal to the voltage at the second end of the right-channel headset.
In a possible implementation, the current path may be directly connected from the output end of the left-channel circuit to the output end of the right-channel circuit.
In a possible implementation, as shown in
Current path 3 is a third current path, and the feedback impedance Rfb is a third impedance. As shown in
In a possible implementation, as shown in
It can be understood that the embodiment of this application is described based on the following case: Current path 3 is implemented using the feedback impedance Rfb, the left-channel circuit includes digital-to-analog converter 3, operational amplifier 5, and the impedance R11, the impedance R12, and the impedance R13 that are connected through wiring, and the right-channel circuit includes digital-to-analog converter 4, operational amplifier 6, the impedance R14, the impedance R15, and the impedance R16 that are connected through wiring. However, current path 3, the left-channel circuit, and the right-channel circuit shown in
In this embodiment of this application, current path 3 is the third current path. The equivalent impedance Rx is a first equivalent impedance, the equivalent impedance Ry is a second equivalent impedance, and the equivalent impedance Re is a third equivalent impedance. For descriptions of the equivalent impedances Rx, Ry and Re, reference may be made to detailed descriptions of the embodiments described in
As shown in
The left-channel circuit is configured to output a left-channel audio signal to the first end of the left-channel headset.
The right-channel circuit is configured to output a right-channel audio signal to the first end of the right-channel headset.
The first end of the third current path is coupled to the output end of the left-channel circuit and the first end of the left-channel headset, and the second end of the third current path is coupled to the output end of the right-channel circuit and the first end of the right-channel headset.
The third current path is configured to shunt the current output by the left-channel circuit to adjust a third voltage input to the first end of the right-channel headset when the left-channel circuit outputs a left-channel audio signal. When the left-channel circuit outputs a left-channel audio signal and the right-channel circuit does not output a right-channel audio signal, the third voltage is equal to the voltage at the second end of the right-channel headset.
The third current path is further configured to shunt the current output by the right-channel circuit to adjust the fourth voltage input to the first end of the left-channel headset when the right-channel circuit outputs a right-channel audio signal. When the right-channel circuit outputs a right-channel audio signal and the left-channel circuit does not output a left-channel audio signal, the fourth voltage is equal to the voltage at the second end of the left-channel headset.
As shown in
Loop 3 is a current loop that is formed by the right-channel circuit, current path 3, and an equivalent ground impedance through wiring. As shown in
The following describes how to determine the value of the impedance Rfb so as to implement the following: When the right-channel playback loop is in the playing state and the left-channel path is in the non-playing state, the voltage value fed back to the first end of the left-channel headset is equal to V1; and when the left-channel playback loop is in the playing state and the right-channel path is in the non-playing state, the voltage value fed back to the first end of the right-channel headset is equal to V1.
Specifically, equivalent circuits of loop 3 and loop 4 shown in
where Rb is the equivalent ground impedance, and when the equivalent ground impedance includes only the feedback impedance in the left-channel circuit, as shown in
The following can be obtained according to formula (9):
When the absolute value of the voltage of the signal received by the right-channel circuit from the processor is greater than that of the signal from the sound source ground on the motherboard, and the signal received by the left-channel circuit from the processor is a signal from the sound source ground on the motherboard, it can be learned, according to formula (9), that the voltages at both ends of the left-channel headset are V1. In this case, the voltage difference between the two ends of the left-channel headset can be reduced, so that the crosstalk of the right-channel playback loop to the left-channel playback loop is reduced.
Similarly, the feedback impedance Rfb may also be expressed as:
When the absolute value of the voltage of the signal received by the left-channel circuit from the processor is greater than that of the signal received by the sound source ground on the motherboard, and the signal received by the right-channel circuit from the processor is a signal from the sound source ground on the motherboard, the voltages at both ends of the right-channel headset that are obtained according to formula (11) are V1. In this case, the voltage difference between the two ends of the right-channel headset can be reduced, so that crosstalk of the left-channel playback loop to the right-channel playback loop is reduced.
Optionally, the feedback impedance Rib may alternatively be determined based on both the equivalent impedance Rl of the left-channel headset and the equivalent impedance Rr of the right-channel headset. The equivalent impedance R1 of the left-channel headset and the equivalent impedance Rr of the right-channel headset may be equal. In this case, formula (10) is the same as formula (11). The equivalent impedance Rl of the left-channel headset and the equivalent impedance Rr of the right-channel headset may alternatively be different. In this case, the feedback impedance Rfb may alternatively be expressed as:
where Rc may be determined based on the equivalent impedance Rl of the left-channel headset and the equivalent impedance Rr of the right-channel headset, and during specific implementation, Rc may be an average of the equivalent impedance Rl of the left-channel headset and the equivalent impedance Rr of the right-channel headset.
Rfb in current path 3 is a third impedance. As shown in
When the absolute value of the voltage of the signal received by the right-channel circuit from the processor is greater than that of the signal from the sound source ground on the motherboard, and the signal received by the left-channel circuit from the processor is a signal from the sound source ground on the motherboard, the voltage at the first end of the left-channel headset is a fourth voltage V4. According to Ohm's law, with the third current path, the fourth voltage V4 is equal to the voltage V1 at the second end of the left-channel headset. When the absolute value of the voltage of the signal received by the left-channel circuit from the processor is greater than that of the signal from the sound source ground on the motherboard, and the signal received by the right-channel circuit from the processor is a signal from the sound source ground on the motherboard, the voltage at the first end of the right-channel headset is a third voltage. According to Ohm's law, the third voltage is equal to the voltage V1 at the second end of the right-channel headset.
In the sound playback system, as shown in
The processor 901 may be one or more central processing units (central processing unit, CPU). When the processor 901 is one CPU, the CPU may be a single-core CPU or a multi-core CPU.
The processor 901 is coupled to an input end of the audio playback circuit 902, and the processor 901 is configured to input an audio signal to the audio playback circuit 902.
An output end of the audio playback circuit 902 is coupled to the headset interface 903.
The headset interface 903 is configured to connect to an external stereo headset, where the stereo headset includes a left-channel headset and a right-channel headset. The headset interface 903 may be the headset interface 102 shown in
The stereo headset may be the stereo headset 20 described in
The audio playback circuit 902 may be the audio playback circuit described with reference to the previous embodiment of
When an absolute value of a voltage of a signal received by the left-channel playback loop from a processor is greater than that of a signal received by the sound source ground on the motherboard, and when a voltage of a signal received by the right-channel playback loop from the processor is equal to that of a signal from the sound source ground on the motherboard, the first current path is used to adjust a voltage fed back to a signal input end of the right-channel headset, so that the voltages at both ends of the right-channel headset are equal when the right-channel playback loop is in the non-playing state, thereby reducing impact of current on the right-channel headset when the left-channel playback loop is playing. Similarly, when an absolute value of a voltage of a signal received by the right-channel playback loop from the processor is greater than that of the signal from the sound source ground on the motherboard, the second current path is used to change the voltage fed back to the signal input end of the left-channel headset, so that the voltages at both ends of the left-channel headset are equal when the left-channel playback loop is in the non-playing state, thereby reducing impact of current on the left-channel headset when the right-channel playback loop is playing. It can be learned that crosstalk between the left channel and the right channel can be reduced by using the current path, so that isolation between the left channel and the right channel is improved.
The audio playback circuit 902 may alternatively be an audio playback circuit described in the embodiment of
When the absolute value of the voltage of the signal received by the right-channel circuit from the processor is greater than that of the signal from the sound source ground on the motherboard, and the signal received by the left-channel circuit from the processor is a signal from the sound source ground on the motherboard, the voltage at the first end of the left-channel headset is equal to the voltage at the second end of the left-channel headset. When the absolute value of the voltage of the signal received by the left-channel circuit from the processor is greater than that of the signal from the sound source ground on the motherboard, and the signal received by the right-channel circuit from the processor is a signal from the sound source ground on the motherboard, the voltage at the first end of the right-channel headset is equal to the voltage at the second end of the right-channel headset.
It should be noted that the terminal shown in
The foregoing descriptions are merely specific implementations of this application, but are not intended to limit the protection scope of this application. Any variation or replacement within the technical scope disclosed in this application shall fall within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.
Number | Date | Country | Kind |
---|---|---|---|
201811158741.7 | Sep 2018 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2019/107555 | 9/24/2019 | WO | 00 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2020/063594 | 4/2/2020 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
7907736 | Yuen | Mar 2011 | B2 |
8515084 | Barr | Aug 2013 | B2 |
8526629 | Li | Sep 2013 | B2 |
10524041 | Lin | Dec 2019 | B1 |
20060222185 | Dyer | Oct 2006 | A1 |
20090180640 | Ogawa | Jul 2009 | A1 |
Number | Date | Country |
---|---|---|
103096216 | May 2013 | CN |
203167245 | Aug 2013 | CN |
Number | Date | Country | |
---|---|---|---|
20210392437 A1 | Dec 2021 | US |