Audio device, electronic device having audio device and audio signal processing method
11277105 · 2022-03-15
Assignee
Inventors
Cpc classification
H03F2200/375
ELECTRICITY
International classification
Abstract
An audio device is adapted to receive and process a digital audio signal and output an analog audio signal. The audio device includes an adder, a digital-to-analog conversion circuit, an amplifying circuit, a voltage detecting circuit and an offset compensating circuit. The voltage detecting circuit detects a supply voltage received by the amplifying circuit. The offset compensating circuit generates a DC offset compensation value according to the supply voltage. The adder adds the digital audio signal and the DC offset compensation value to output an added signal. The digital-to-analog conversion circuit converts the added signal into a converted analog audio signal. The amplifying circuit amplifies the converted analog signal to output an amplified analog signal. Accordingly, the audio device can reduce pop noise caused by a DC offset.
Claims
1. An audio device comprising: an adder including a first input terminal, a second input terminal, and an output terminal and configured to add signals of the first input terminal and the second input terminal to output an added signal through the output terminal, the first input terminal being configured to receive a digital audio signal; a digital-to-analog conversion circuit configured to perform digital-to-analog conversion on the added signal to generate a converted analog audio signal; an amplifying circuit configured to amplify the converted analog audio signal to generate an amplified analog audio signal; a voltage detecting circuit configured to detect a supply voltage received by the amplifying circuit and output a voltage signal related to the supply voltage; and an offset compensation circuit configured to obtain a direct current (DC) offset compensation value according to the voltage signal and output the DC offset compensation value to the second input terminal.
2. The audio device according to claim 1, further comprising a first switch and a second switch, wherein when the first switch is activated, the first switch connects the digital audio signal to the first input terminal, and when the second switch is activated, the amplified analog audio signal is output.
3. The audio device according to claim 1, wherein the adder is a digital adder circuit.
4. The audio device according to claim 1, wherein the offset compensation circuit comprises a linear operation circuit that obtains the DC offset compensation value according to a linear equation that includes a slope parameter, the voltage signal, and a constant, wherein the linear equation is:
Y=M*X+C wherein Y is the DC offset compensation value, X is the voltage signal, M is the slope parameter, and C is the constant.
5. The audio device according to claim 4, further comprising a first switch and a second switch, wherein when the first switch is activated, the first switch connects the digital audio signal to the first input terminal, and when the second switch is activated, the amplified analog audio signal is output.
6. The audio device according to claim 4, wherein the offset compensation circuit further comprises a storage device configured to store the slope parameter and the constant and output the slope parameter and the constant to the linear operation circuit.
7. The audio device according to claim 6, further comprising a first switch and a second switch, wherein when the first switch is activated, the first switch connects the digital audio signal to the first input terminal, and when the second switch is activated, the amplified analog audio signal is output.
8. An electronic device, comprising: an audio generating circuit configured to generate a digital audio signal; a power supply circuit configured to generate power; an audio device comprising: an audio output end; an adder including a first input terminal, a second input terminal and an output terminal, wherein the adder is configured to add signals of the first input terminal and the second input terminal to output an added signal through the output terminal, and the first input terminal is configured to receive a digital audio signal; a digital-to-analog conversion circuit configured to perform digital-to-analog conversion on the added signal to generate a converted analog audio signal; an amplifying circuit configured to amplify the converted analog audio signal to generate an amplified analog audio signal; a voltage detecting circuit configured to detect a supply power received by the amplifying circuit and output a voltage signal related to the supply voltage; and an offset compensation circuit configured to obtain a direct current (DC) offset compensation value according to the voltage signal and output the DC offset compensation value to the second input terminal; and a control circuit configured to activate the power supply circuit to supply the generated power to the audio device when the audio input end is connected to an audio connector.
9. The electronic device according to claim 8, wherein the offset compensation circuit comprises a linear operation circuit that obtains the DC offset compensation value according to a linear equation, the voltage signal, a slope parameter and a constant, wherein the linear equation is:
Y=M*X+C, wherein Y is the DC offset compensation value, X is the voltage signal, M is the slope parameter, and C is the constant.
10. The electronic device according to claim 8, wherein the audio device further comprises a first switch and a second switch, and after the audio input end is connected to the audio connector for a predetermined time, the control circuit activates the first switch to connect the digital audio signal to the first input terminal, and activates the second switch to output the amplified analog audio signal through the audio output end.
11. The electronic device according to claim 10, wherein the offset compensation circuit comprises a linear operation circuit, and the linear operation circuit obtains the DC offset compensation value according to a linear equation, the voltage signal, a slope parameter and a constant, wherein the linear equation is:
Y=M*X+C wherein Y is the DC offset compensation value, X is the voltage signal, M is the slope parameter, and C is the constant.
12. The electronic device according to claim 11, wherein the offset compensation circuit further comprises a storage device configured to store the slope parameter and the constant and output the slope parameter and the constant to the linear operation circuit.
13. An audio signal processing method, comprising: starting a voltage detecting circuit; detecting a supply voltage which an amplifying circuit is supplied with; obtaining a DC offset compensation value according to the supply voltage; and compensating the DC offset compensation value.
14. The audio signal processing method according to claim 13, wherein before the starting step, the audio signal processing method further comprises: determining whether an audio output end is connected to an audio connector until the audio output end is connected to the audio connector.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
DETAILED DESCRIPTION
(6) Referring to
(7) In some embodiments, a control circuit 24 is configured to detect whether an audio connector (or called as plug) of the sound output device 20 is connected to an audio output end N.sub.out (or called an audio port) of the audio device 10. When the audio connector of the sound output device 20 is connected to the audio output end N.sub.out of the audio device 10, the control circuit 24 activates the audio device 10. The activation herein may be, but not limited to, supplying power to the audio device 10.
(8) In some embodiments, the above-mentioned “detecting whether the audio connector of the sound output device 20 is connected to the audio output end N.sub.out of the audio device 10 by the control circuit 24” is as follows: the control circuit 24 detects whether a voltage level of a specific contact of the audio output end N.sub.out reaches a predetermined value. The predetermined value may be zero (i.e. grounded) or a high level. When the control circuit 24 detects the voltage level of the specific contact reaches the predetermined value, the control circuit 24 determines that the audio connector is connected to the audio output end N.sub.out (that is, the connection state is “connected”).
(9) In some embodiments, the audio generating circuit 26 includes a memory for storing music data and a circuit for reading the stored music data and converting the stored music data into an audio signal.
(10) When in operation, the audio device 10 is adapted to compensate a DC offset between the digital audio signal S.sub.in and the amplified analog audio signal S.sub.out. Therefore, when the audio device 10 is driven to operate and the audio device 10 outputs the audio source signal S.sub.out to the sound output device 20, the sound output device 20 would not make the pop noise due to the DC offset or have the pop noise mitigated.
(11) Referring to
(12) Based on the above, the adder 400 is configured to add the DC offset compensation value Y and the digital audio signal S.sub.in in order to output the added signal S.sub.add. Therefore, the audio device 10 compensates the input digital audio signal S.sub.in by the DC offset compensation value Y so as to substantially eliminate the DC offset during operation of the audio device 10. The amplifying circuit 600 couples the amplified analog audio signal S.sub.out to the audio output end N.sub.out to serve as the output of the audio device 10.
(13) Specifically, the connection relation among all components of the audio device 10 is as follows: the input end of the adder 400 is coupled to an audio input end N.sub.in and the offset compensation circuit 100. The output terminal 406 of the adder 400 is coupled to the digital-to-analog conversion circuit 500. The offset compensation circuit 100 is coupled to the voltage detecting circuit 200. The digital-to-analog conversion circuit 500 is coupled to the amplifying circuit 600. The amplifying circuit 600 is coupled to the audio output end N.sub.out.
(14)
Y=M*X+C,
(15) Wherein Y is the DC offset compensation value, X is the voltage signal, M is the slope parameter, and C is the constant. In some embodiments, how to obtain the relationship of voltage signals and DC offset compensation values in
(16) The control circuit 24 can detect the amplified analog audio signal S.sub.out from the audio output end N.sub.out or from the output end of the amplifying circuit 600. The signals of the audio output end N.sub.out and the output end of the amplifying circuit are analog signals. The control circuit 24 can convert the amplified analog audio signal S.sub.out into a digital signal through an analog-to-digital conversion circuit (not shown), and then, the control circuit 24 reads the digital signal.
(17) In some embodiments, the operation of controlling the power supply circuit 22 to supply power to the amplifying circuit 600 at a preset voltage value, detect the amplified analog audio signal S.sub.out, adjust the offset compensation circuit 100, record the coordinates of the voltage signal X and the DC offset compensation value Y as well as calculate the slope parameter M and the constant C can be performed by external devices and/or by manual cooperation, but is not limited thereto.
(18) After the control circuit 24 activates the audio device 10, the duration of the preset time is related to the starting time of the internal components of the audio device 10, and the preset time is longer than the time required for starting the internal components.
(19) According to the above description, in the embodiment of
(20) Referring to
(21) In some embodiments, the offset compensation circuit 100 as shown in
(22) Furthermore, in some embodiments, simultaneously referring to
(23) Based on the above, the first switch 700 and the second switch 800 are in an off state (not activated or not turned on) when the audio device 10 or 10′ is not activated (powered). The control circuit 24 is configured to activate the power supply circuit 22 to supply the power to the audio device 10 or 10′ when the audio output end N.sub.out is connected to an audio connector (a plug). At this time, the control circuit 24 controls the first switch 700 and the second switch 800 to be kept in an off state. After the audio output end N.sub.out is connected to the audio connector for a predetermined time, the control circuit 24 activates the first switch 700 to connect the digital audio signal S.sub.in to the first input terminal 402, and activates the second switch 800 to output the amplified analog audio signal S.sub.out through the audio output end N.sub.out. The predetermined time may be greater than or equal to the time required for completion of the DC offset compensation operation by the audio device 10 or 10′. Therefore, when a user inserts the audio connector of the sound output device 20 into the audio output end N.sub.out, the control circuit 24 starts the audio device 10 or 10′. After the audio device 10 or 10′ completes the DC offset compensation, the control circuit 24 connects the audio input end N.sub.in (that is, the output of the audio generating circuit 26) to the adder 400 and connects the output of the amplifying circuit 600 to the audio output end N.sub.out. At this time, the control circuit 24 can control the audio generating circuit 26 to output the digital audio signal S.sub.in, so that the output amplified analog audio signal S.sub.out does not have the pop noise generated by the DC offset.
(24) Referring to
(25) Step S20: determining whether an audio output end N.sub.out of an audio device 10, 10′ is connected to an audio connector;
(26) Step S30: when the audio output end N.sub.out is connected to the audio connector, initializing the audio device 10 or 10; and
(27) Step S40: playing music.
(28) The operation of determining whether the audio output end N.sub.out is connected to the audio connector in step S20 is performed by the control circuit 24. When the audio connector is connected to the audio output end N.sub.out, the control circuit 24 activates the power supply circuit 22 to supply power to the audio device 10 or 10′, the audio device 10 or 10′ is initialized (step S30). The operation of the initialization is detailed later.
(29) After the audio device 10 or 10′ is initialized, the control circuit 24 waits for a music playing command sent by a user. The control circuit 24 activates the audio generating circuit 26 when receiving the music playing command to play music (step S40). In some embodiments, the control circuit 24 activates (turns on) the first switch 700 and the second switch 800 when the initialization of the audio device 10 or 10′ is completed, so that the audio device 10 or 10′ is in a “Ready” state.
(30) The time during which the control circuit 24 determines whether the audio connector is connected to the audio output end N.sub.out and then activates the first switch 700 and the second switch 800 may be, but not limited to, a default value. That is, in implementation, the time of initialization of the audio device 10 or 10′ can be estimated or measured at a design stage or in an actual operation test. Therefore, the control circuit 24 activates the first switch 700 and the second switch 800 according to an empirical value or a design value.
(31) In some embodiments, the step S20 keeps detecting whether the audio output end N.sub.out is connected to the audio connector until the audio output end N.sub.out is connected to the audio connector.
(32) The initialization of the audio device 10 or 10′ of the step S30 includes:
(33) Step S32: starting an voltage detecting circuit 200 of the audio device 10, 10′;
(34) Step S34: detecting a supply voltage received by an amplifying circuit 600 of the audio device 10, 10′;
(35) Step S36: obtaining a DC offset compensation value according to the supply voltage; and
(36) Step S38: compensating the DC offset compensation value.
(37) After the power supply circuit 22 supplies the power to the audio device 10, 10′, the internal components of the audio device 10, 10′ are supplied with power and are separately started or initialized (step S32: starting the voltage detecting circuit 200).
(38) Subsequently, the voltage detecting circuit 200 detects a supply voltage received by the amplifying circuit 600 (that is, the voltage of power which the amplifying circuit 600 is supplied with), and outputs the voltage signal X (step S34). The offset compensation circuit 100, 100′ obtains and outputs the DC offset compensation value Y according to the voltage signal X. As described above, the adder 400 compensates the signal of the first input terminal 402 according to the DC offset compensation value (step S38) and then outputs the added signal S.sub.add. The digital-to-analog conversion circuit 500 converts the added signal S.sub.add into a converted analog audio signal S.sub.ca. The amplifying circuit 600 amplifies the converted analog audio signal S.sub.ca, and then, outputs the amplified analog audio signal S.sub.out. Therefore, the DC offset of the audio device 10, 10′ is compensated before the music is played (step S40) without generating the pop noise.
(39) Based on the above, according to some embodiments, the audio device 10, 10′ and the audio signal processing method can appropriately compensate the DC bias of the audio device 10, 10′ according to the change of the supply voltage received by the amplifying circuit 600, thereby preventing the audio device 10, 10′ from generating the pop noise.