Apparatus for noise reduction in audio signal processing

11699423 · 2023-07-11

Assignee

Inventors

Cpc classification

International classification

Abstract

An apparatus for noise reduction in audio signal processing includes a power amplifier, a zero-crossing detector, and a threshold detector. The power amplifier has an input signal terminal for receiving an audio input signal and an output signal terminal. The audio input signal is a digital-to-analog converted version according to a version of a digital audio signal. The power amplifier has an analog gain which is controllable in response to an analog gain control signal. The zero-crossing detector determines a zero-crossing detection signal according to an internal signal provided between the input signal terminal and the output signal terminal. The threshold detector determines a gain setting according to the digital audio signal and the zero-crossing detection signal to generate the analog gain control signal indicating the gain setting, wherein the threshold detector controls the analog gain of the power amplifier according to the analog gain control signal.

Claims

1. An apparatus for noise reduction in audio signal processing, the apparatus comprising: a power amplifier having an input signal terminal and an output signal terminal, wherein an audio input signal is applied to the input signal terminal, and the audio input signal is a digital-to-analog converted version according to a version of a digital audio signal, the power amplifier has an analog gain which is controllable in response to an analog gain control signal; a zero-crossing detector for determining a zero-crossing detection signal according to an internal signal provided between the input signal terminal and the output signal terminal; and a threshold detector for determining a gain setting according to the digital audio signal and the zero-crossing detection signal to generate the analog gain control signal indicating the gain setting, wherein the threshold detector controls the analog gain of the power amplifier according to the analog gain control signal.

2. The apparatus according to claim 1, wherein the threshold detector determines the gain setting as a first gain parameter when the threshold detector detects that the digital audio signal varies within a first reference range and the zero-crossing detection signal indicates a zero-crossing state; otherwise, the threshold detector determines the gain setting as a second gain parameter.

3. The apparatus according to claim 2, wherein the power amplifier has a plurality of gain setting states and the power amplifier is set to one of the gain setting states according to the gain setting indicated in the analog gain control signal, wherein the first gain parameter indicates one of the gain setting states such that the power amplifier has a lower gain.

4. The apparatus according to claim 1, wherein the internal signal includes an analog signal varying according to a signal at the input signal terminal and a signal at the output signal terminal.

5. The apparatus according to claim 4, wherein the zero-crossing detector includes a comparator circuit to generate the zero-crossing detection signal according to a comparison between the analog signal and a reference signal.

6. The apparatus according to claim 1, wherein the internal signal includes a first signal and a second signal both varying according to a signal at the input signal terminal and a signal at the output signal terminal, and the first signal and the second signal are analog differential signals.

7. The apparatus according to claim 6, wherein the zero-crossing detector includes: a first comparator circuit to generate a first comparison result signal according to a comparison between the first signal and a reference signal; and a second comparator circuit to generate a second comparison result signal according to a comparison between the second signal and the reference signal, wherein the zero-crossing detector generates the zero-crossing detection signal according to the first comparison result signal and the second comparison result signal.

8. The apparatus according to claim 1, wherein the internal signal includes a first signal and a second signal both varying according to a signal at the input signal terminal and a signal at the output signal terminal, and the first signal and the second signal are pulse-width modulation signals.

9. The apparatus according to claim 8, wherein the zero-crossing detector includes: a first comparator circuit to generate a first comparison result signal according to a comparison between the first signal and a reference signal; a second comparator circuit to generate a second comparison result signal according to a comparison between the second signal and the reference signal; and a zero-crossing determination circuit to generate the zero-crossing detection signal according to a comparison between the first comparison result signal and the second comparison result signal, wherein when one of the first signal and the second signal indicates a high state, the zero-crossing determination circuit starts comparing the first signal and the second signal whether the first signal and the second signal are equal; wherein when the first signal and the second signal are equal and have a same interval for indicating the high state after the first signal and the second signal turn to a low state, the zero-crossing determination circuit generates the zero-crossing detection signal to indicate a zero-crossing state; otherwise, the zero-crossing determination circuit generates the zero-crossing detection signal to indicate a non-zero-crossing state.

10. The apparatus according to claim 1, wherein the power amplifier is a class D amplifier.

11. The apparatus according to claim 1, wherein the apparatus further comprises a digital-to-analog converter for performing digital-to-analog conversion according to the version of the digital audio signal to generate the audio input signal.

12. The apparatus according to claim 1, wherein the apparatus is a digital input audio amplifier or an audio reproduction device.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) FIG. 1 is a schematic diagram illustrating exemplary architecture of an apparatus for noise reduction in audio signal processing, representative of various embodiments of the present disclosure.

(2) FIG. 2 is a block diagram of an embodiment of an apparatus for noise reduction in audio signal processing for use in the exemplary architecture of FIG. 1.

(3) FIG. 3A is a block diagram illustrating an embodiment of a zero-crossing detector.

(4) FIG. 3B is a block diagram illustrating an embodiment of a zero-crossing detector.

(5) FIG. 4 is a block diagram illustrating another embodiment of an apparatus for noise reduction in audio signal processing for use in the exemplary architecture of FIG. 1.

(6) FIG. 5A is a block diagram illustrating an embodiment of a zero-crossing detector.

(7) FIG. 5B is a schematic diagram illustrating an embodiment of zero-crossing detection.

(8) FIG. 6 is a schematic diagram illustrating an embodiment of threshold detection.

(9) FIG. 7 is a block diagram illustrating an embodiment of a threshold detector.

DETAILED DESCRIPTION OF THE INVENTION

(10) To facilitate understanding of the object, characteristics and effects of this present disclosure, embodiments together with the attached drawings for the detailed description of the present disclosure are provided.

(11) Referring to FIG. 1, exemplary architecture of an apparatus for noise reduction in audio signal processing is illustrated, representative of various embodiments of the present disclosure. As shown in FIG. 1, an apparatus for noise reduction in audio signal processing includes a power amplifier 10, a zero-crossing detector 20, and a threshold detector 30. The apparatus can be applied to an audio signal processing path such as the path including a digital circuit 5, a digital-to-analog converter (DAC) 9, and the power amplifier 10, wherein a digital audio signal (Sda) is applied to the audio signal processing path, and the output of the power amplifier 10 can then be applied for reproduction such as by a speaker, headphone, earphone and so on. In addition, the digital circuit 5 is optional to perform digital signal processing such as filtering, frequency upsampling, equalization, audio effects, or any appropriate audio processing. In some embodiments, the apparatus can be further implemented as a digital input audio amplifier or audio reproduction device.

(12) The power amplifier 10 has at least one input signal terminal and at least one output signal terminal. An audio input signal is applied to the input signal terminal. As illustrated in FIG. 1, the audio input signal is a digital-to-analog converted version according to a version of a digital audio signal (Sda) by the digital-to-analog converter 9, for example. The power amplifier 10 has an analog gain which is controllable in response to an analog gain control signal (Sgc).

(13) The zero-crossing detector 20 determines a zero-crossing detection signal according to an internal signal provided between the input signal terminal and the output signal terminal.

(14) The threshold detector 30 is used for determining a gain setting according to the digital audio signal and the zero-crossing detection signal to generate the analog gain control signal indicating the gain setting, wherein the threshold detector 30 controls the analog gain of the power amplifier 10 according to the analog gain control signal.

(15) In some embodiments, the threshold detector 30 determines the gain setting as a first gain parameter when the threshold detector 30 detects that the digital audio signal varies within a first reference range (e.g., a range of 0.01%, 0.1%, 1%, 2% of a maximal allowable signal magnitude (or digital value)) and the zero-crossing detection signal indicates a zero-crossing state; otherwise, the threshold detector 30 determines the gain setting as a second gain parameter.

(16) In some embodiments, the power amplifier 10 has a plurality of gain setting states (e.g., gains of 3.52 dB (1.5 times), 6 dB (2 times), 8 dB (2.5 times), 9.5 dB (3 times), 11.5 dB (3.75 times), 13 dB (4.5 times), 14 dB (5 times), and 15.5 dB (6 times)) and the power amplifier 10 is set to one of the gain setting states according to the gain setting indicated in the analog gain control signal, wherein the first gain parameter indicates one of the gain setting states such that the power amplifier 10 has a lower gain (e.g., 3.52 dB (1.5 times)).

(17) In an example that it is supposed that the power amplifier 10 has a characteristic that a lowest noise level is achieved when the lowest gain setting is set (e.g., 3.52 dB (1.5 times)), when the signal output of the power amplifier 10 is nearly zero or is approaching zero, a user of the power amplifier 10 is very sensitive to any noise. In this situation, the apparatus of the embodiments can control the power amplifier 10 to set to its lowest gain setting state to reduce noise when the signal output of the power amplifier 10 is nearly zero or is approaching zero. In this way, the average noise level is reduced by way of the apparatus.

(18) In some embodiments, the apparatus can further include the digital-to-analog converter 9 for performing digital-to-analog conversion according to the version of the digital audio signal to generate the audio input signal.

(19) Referring to FIG. 2, an apparatus for noise reduction in audio signal processing for use in the exemplary architecture of FIG. 1 is illustrated. As shown in FIG. 2, an apparatus for noise reduction in audio signal processing includes a power amplifier 10A, a zero-crossing detector 20A, and a threshold detector 30. In FIG. 2, the power amplifier 10A is based on a class D amplifier and includes an error amplifier stage 110, a comparator stage 120, and an output stage 130.

(20) For example, the error amplifier stage 110, for example, receives an audio input signal from the digital-to-analog converter 9 and outputs signals V.sub.op1 and V.sub.on1 to the comparator stage 120. The error amplifier stage 110 includes an amplifier, resistors R.sub.i, R.sub.Z, and capacitors C.sub.1, C.sub.2. The comparator stage 120 includes comparators to compare the signals V.sub.op1 and V.sub.on1 with a triangular wave and outputs signals (such as pulse-width modulated signals) to the output stage 130. The output stage 130, which is an output stage circuit having a gain represented by G.sub.PWM, generates output signals V.sub.op and V.sub.on, which can be applied for reproduction such as by a speaker or headphone. In addition, the output signals V.sub.op and V.sub.on are fed back to the error amplifier stage 110 through resistors R.sub.f. In some embodiments, the power amplifier 10A can be implemented as a digitally controlled variable gain amplifier and for example, one or more components, such as one or more resistors (e.g., R.sub.i, R.sub.f or other), can be implemented as digitally controlled variable components for gain control. Certainly, the implementation of the invention is not limited to the examples of the power amplifier 10A. In some embodiments, any other power amplifier that is based on a class D amplifier and/or can provide one or more internal signals between an input signal terminal and an output signal terminal of the power amplifier for use in zero-crossing detection can be utilized to implement the apparatus for noise reduction in audio signal processing.

(21) In some embodiments, the internal signal includes an analog signal varying according to a signal at the input signal terminal and a signal at the output signal terminal. For example, a signal from the error amplifier stage 110, such as V.sub.op1 or V.sub.on1, as shown in FIG. 2, can be served as the analog signal. In some embodiments, as illustrated in FIG. 3A, the zero-crossing detector 20A can include a comparator circuit 21 to generate the zero-crossing detection signal according to a comparison between the analog signal and a reference signal (e.g., a range of 0.01%, 0.1%, 1%, 2% of a maximal allowable signal magnitude (or digital value)).

(22) In some embodiments, the internal signal includes a first signal and a second signal (e.g., V.sub.op1 or V.sub.on1, as shown in FIG. 2) both varying according to a signal at the input signal terminal and a signal at the output signal terminal, and the first signal and the second signal are analog differential signals. In some embodiments, as shown in FIG. 3B, the zero-crossing detector 20A includes: a first comparator circuit 21A and a second comparator circuit 22A. The first comparator circuit 21A generates a first comparison result signal according to a comparison between the first signal and a reference signal. The second comparator circuit 22A generates a second comparison result signal according to a comparison between the second signal and the reference signal. The zero-crossing detector 20 generates the zero-crossing detection signal according to the first comparison result signal and the second comparison result signal, for example, by way of a logic device 23.

(23) Referring to FIG. 4, another embodiment of an apparatus for noise reduction in audio signal processing for use in the exemplary architecture of FIG. 1 is illustrated. As shown in FIG. 4, an apparatus for noise reduction in audio signal processing includes a power amplifier 10A, a zero-crossing detector 20B, and a threshold detector 30.

(24) In some embodiments, the internal signal includes a first signal and a second signal both varying according to a signal at the input signal terminal and a signal at the output signal terminal, and the first signal and the second signal are pulse-width modulation signals. For example, signals from the comparator stage 120, such as pulse-width modulated signals PWM_P, PWM_N, as shown in FIG. 4, can be served as the first signal and the second signal.

(25) In some embodiments, as shown in FIG. 5A, the zero-crossing detector 20B includes: a first comparator circuit 210, a second comparator circuit 220, and a zero-crossing determination circuit 230.

(26) The first comparator circuit 210 generates a first comparison result signal according to a comparison between the first signal and a reference signal. The second comparator circuit 220 generates a second comparison result signal according to a comparison between the second signal and the reference signal. The zero-crossing determination circuit 230 generates the zero-crossing detection signal according to a comparison between the first comparison result signal and the second comparison result signal.

(27) Referring to FIGS. 5A and 5B, when one of the first signal and the second signal (e.g., pulse-width modulated signals PWM_P, PWM_N) indicates a high state, the zero-crossing determination circuit 230 starts comparing the first signal and the second signal whether the first signal and the second signal are equal. For example, a sampling clock signal can be utilized to sample or count the pulse-width modulated signals PWM_P, PWM_N for comparison or detection, wherein the sampling clock signal has a sampling frequency (e.g., 25 MHz) greater than an operating frequency (e.g., 384 kHz) of the pulse-width modulated signals PWM_P, PWM_N.

(28) Referring to FIGS. 5A and 5B, when the first signal and the second signal are equal and have a same interval (e.g., PWM interval) for indicating the high state after the first signal and the second signal turn to a low state (e.g., turning to the low state for two or more clock cycles), the zero-crossing determination circuit 230 generates the zero-crossing detection signal to indicate a zero-crossing state; otherwise, the zero-crossing determination circuit 230 generates the zero-crossing detection signal to indicate a non-zero-crossing state.

(29) Refer to FIG. 6, which is a schematic diagram illustrating an embodiment of threshold detection. The threshold detector 30 can be configured to determine the gain setting as a first gain parameter, as described in the above embodiments with reference to FIG. 1, when the threshold detector 30 detects that the digital audio signal varies within a first reference range (e.g., a range of 0.01%, 0.1%, 1%, 2% of a maximal allowable signal magnitude (or digital value)), as illustrated by an attack threshold shown in FIG. 6, and the zero-crossing detection signal indicates a zero-crossing state; otherwise, the threshold detector 30 determines the gain setting as a second gain parameter.

(30) For example, referring to FIG. 6, the threshold detector 30 can be configured to include a logic circuit (e.g., 310 as shown in FIG. 7) for determining whether the digital audio signal (Sda) is within the first reference range (e.g., attack threshold) by way of comparison and counting. If the digital audio signal (Sda) is within the first reference range (e.g., the digital audio signal (Sda) in magnitude (or its absolute value) is equal to or less than an attack threshold), an attack counting begins from zero until a counting threshold (e.g., 2047 or any appropriate number) is reached. If the counting threshold is reached, an attack signal may be generated; for example, the attack signal is asserted as a pulse as shown in FIG. 6. In addition, if the digital audio signal (Sda) is out of the first reference range and is within a second reference range (e.g., the digital audio signal (Sda) in magnitude (or its absolute value) is equal to or greater than a release threshold), the attack counting is reset to zero. Otherwise, if the digital audio signal (Sda) is between the first reference range and the second reference range (e.g., the digital audio signal (Sda) in magnitude (or its absolute value) is greater than the attack threshold or less than the release threshold), the attack counting remains unchanged.

(31) In an embodiment, the threshold detector 30, for example, can be configured to include a control circuit (e.g., 320 in FIG. 7) for determining the analog gain control signal (Sgc) according to the attack signal obtained as exemplified above and the zero-crossing detection signal. For example, the analog gain control signal (Sgc) can represent a value B[2:0] as illustrated in TABLE 1 to control the power amplifier 10A operating at a gain setting state.

(32) TABLE 1 illustrates a number of gain setting states that the power amplifier 10A supports for example, wherein the analog gain of the power amplifier 10A is determined according to resistors R.sub.f and R.sub.i. In some embodiments, the power amplifier 10A can be implemented by a digitally controlled variable gain amplifier, wherein the analog gain control signal (Sgc) indicates the value B[2:0]. In other embodiments, the power amplifier 10A can be implemented by an analog (e.g., voltage) controlled variable gain amplifier, wherein the analog gain control signal indicates a voltage signal corresponding to a gain setting.

(33) TABLE-US-00001 TABLE 1 FUNCTION (analog gain BIT VALUE control) R.sub.f R.sub.i B[2:0] 000 X6(+15.5 dB) 480K  60K 001 X5(14 dB) 480K  96K 010 X4.5(13 dB) 480K 106.6K 011 X3.75(11.5 dB) 480K 128K 100 X3(9.5 dB) 480K 160K 101 X2.5(8 dB) 480K 192K 110 X2(6 dB) 480K 240K 111 X1.5(3.5 dB) 480K 320K

(34) For example, in order to minimize the noise level, the threshold detector 30 determines the gain setting as a first gain parameter (e.g., B[2:0]=111) when the threshold detector 30 detects that the digital audio signal varies within a first reference range (e.g., a range of 0.01%, 0.1%, 1%, 2% of a maximal allowable signal magnitude (or digital value))(i.e., a small signal state) and the zero-crossing detection signal indicates a zero-crossing state.

(35) In some examples, the threshold detector 30 can be configured optionally to determine the gain setting as another gain parameter (e.g., returning to a previous or another gain parameter other than the first gain parameter) when the situations of the small signal state and the zero-crossing state are not satisfied.

(36) As such, the embodiments of the apparatus for noise reduction in audio signal processing are provided. The apparatus can be utilized to control the analog gain so that the noise level can be reduced when some situations such as a lower signal (e.g., nearly zero or small) output occur. Because the apparatus controls the power amplifier when at least two conditions including a zero-crossing state and a small signal state are detected, the analog gain control is more accurate and timely performed. Thus, the average noise level of the output and pop sound of the power amplifier can be reduced.

(37) While the present disclosure has been described by way of specific embodiments, numerous modifications, combinations, and variations could be made thereto by those skilled in the art without departing from the scope and spirit of the present disclosure set forth in the claims.