1. Technical Field
The invention relates to audio amplifiers, and particularly to distortion compensation in amplifiers for vehicle audio systems.
2. Related Art
Automotive audio systems include one or more amplifiers that provide gain for audio signals. The gain of an amplifier depends, at least in part, on the amount of power supplied to the amplifier. Because the supply voltage varies over a range of several volts, the amount of power that is available to the amplifier will also vary over a wide range. If the voltage in the vehicle is insufficient for the amplifier to accurately amplify the input signal, the amplifier may clip, and the audio signal from the amplifier will be distorted. Accordingly, amplifiers may be designed to control audio output according to fluctuations, or variations, in the limits of the battery supply voltage, or minimum expected available power.
To preclude the amplifier from being overdriven, an amplifier may control the audio output based on analog or digital signal processing techniques. For example, an amplifier may monitor the audio signal to modify portions of the audio output signal that may exceed a predetermined threshold. Analog amplifiers may use an analog clip detection circuit, which utilizes a voltage controlled amplifier to reduce overall gain during portions of the audio output signal that exceeds the vehicle voltage. Since clip detection of monolithic power amplifier integrated circuits is typically shared over two or more channels, the analog control maintains a relatively constant amount of distortion, but may not control the distortion for each channel independently.
A digital amplifier may use a digital signal processor (DSP) to predict an output signal level on the channels of a digitally-sampled audio signal. The DSP reduces the gain for the portions of the signal that exceed a programmed threshold. A DSP may independently control each channel to tailor the amount of distortion. However, the threshold may be set, or hard-coded, into the digital signal processor. To account for variations in power supplied to the amplifier, the threshold may be set much lower than the actual level that may be available from the battery. Accordingly, hard-coded distortion limiting using a DSP may not provide an optimal amplification of the audio signal for a wide range of battery supply voltages.
Therefore, there is a need for a distortion compensation for automotive amplifier applications.
A system controls or compensates for audio distortion based on a supply voltage, such as the voltage supplied by the battery of an automobile. A signal related to the supply voltage is used to control the gain, and distortion, of an audio signal. In an example, the supply voltage signal is used to control a threshold level that determines whether the audio signal may be clipped. Using the supply voltage provides for control of distortion, increasing the perceived sound quality.
A clipping threshold may be adjusted according to a supply voltage signal. An audio amplifier may be tuned to have a pre-determined clipping threshold, or tuned threshold based on the supply voltage at the time of tuning. A signal associated with the supply voltage can be used to determine an adjustment to the tuned threshold to provide an applied threshold. As the battery voltage decreases, the signal associated with the decreased battery voltage decreases the tuning threshold by an appropriate amount to decrease the applied threshold. When the battery voltage increases, the tuned threshold may be increased accordingly to maximize the amplifier operation. Accordingly, the threshold may be modified according to the supply voltage to maintain a fixed level of distortion and maximize power output.
An exemplary automotive audio amplifier includes a gain circuit, a threshold detect circuit, and a voltage sensor. The gain circuit controls the gain for at least one channel of a multi-channel audio signal. The gain is controlled based on a gain adjust signal. The threshold detect circuit generate the gain adjust signal based on whether an output of the gain circuit exceeds the threshold. The voltage sensor generates a voltage sense signal associated with a battery supply voltage for the amplifier. The threshold is adjustable according to the voltage sense signal.
Another exemplary automotive audio system includes a controller and an amplifier. The controller provides control of the gain for each channel of a multi-channel audio signal based on whether the audio signal exceeds a threshold. The threshold is adjustable according to the supply voltage of the audio system. The amplifier amplifies the gain adjusted multi-channel audio signal.
Another exemplary automotive audio system includes a compressor circuit and a voltage sensor. The compressor controls a signal level for at least one channel of a multi-channel audio signal. A compression ratio transition point, or knee, of the compressor is controlled according to a voltage sense signal generated by the sensor.
An exemplary method includes detecting whether an amplified audio signal will exceed a threshold limit. When the amplified signal exceeds the threshold limit, the gain of an amplifier circuit corresponding to the channel is reduced. A rail voltage is detected and may be used to modify the threshold limit.
Other systems, methods, features and advantages of the invention will be, or will become, apparent to one with skill in the art upon examination of the following figures and detailed description. It is intended that all such additional systems, methods, features and advantages be included within this description, be within the scope of the invention, and be protected by the following claims.
The invention can be better understood with reference to the following drawings and description. The components in the figures are not necessarily to scale, emphasis instead being placed upon illustrating the principles of the invention. Moreover, in the figures, like referenced numerals designate corresponding parts throughout the different views.
A distortion compensation system minimizes audio distortion by monitoring a supply voltage. In the figures, components, features and integral parts that correspond to one another each have the same reference number. The figures are not true to scale.
The distortion compensation system may by used with an automotive or vehicle audio system. A distortion compensation system may be a component or a unitary part of an audio amplifier for the automotive audio system. The audio amplifier is powered by a rail voltage supplied by the automotive battery. The rail voltage may fluctuate within an operating range typically from around 9 Volts to around 14 Volts. The rail voltage is compared or measured against a reference voltage, which may be a tuning voltage. A signal representative of the comparison, or measurement, is generated. The signal is sent to a controller that processes the multi-channel audio signal for the audio system. The controller controls gain of an audio signal based on a comparison of the rail voltage to the tuning voltage. The gain is controlled according to whether the audio signal exceeds a variable threshold. The threshold is varied within a threshold range according to the comparison. Accordingly, distortion in the audio signal may be compensated according to supply voltage.
In a method that compensates for distortion, the gain of an audio signal is controlled through a comparison of a rail voltage to a tuning voltage. Based on the comparison, a cutoff threshold for an amplifier and/or the knee of a compressor is adjusted to minimize distortion in the audio path.
The distortion compensation system 100 provides a portion of a path for an audio signal 102 to an amplifier 122 and to one or more speakers or drivers 128 and 130. The audio path may include various electrical and/or electronic components configured to process an audio signal, including switches, controllers, amplifiers, gates, suppressors, comparators, transistors, resistors, inductors, capacitors, diodes, clamps, buffers, memory and the like. The components may be physical devices configured to provide a discrete processing function, devices configured to execute code configured to carry out discrete and/or complex functions, computations, and calculations, or combinations thereof.
The audio signal 102 is a multi-channel digital signal. Each channel of the audio signal 102 may be a discrete-time signal whose values belong to a finite set, where at a point in time t, the signal has one of a finite number of discrete values. The signal may be a continuous stream or multi-bit binary signal whose vales may be represented by a “1” or a “0.” In an exemplary embodiment, each channel is a 24-bit digital signal. Although
The distortion compensation system 100 controls gain and/or compression for the channels of the audio signal 102. The gain-controlled signal from the distortion compensation system 100 is provided to the amplifier 122, which increases the voltage of the audio signal 102. The amplifier 122 includes amplifier circuits 124 and 126 associated with each channel (Channel A and Channel B) of the audio signal 102. Each channel of the amplified audio signal 102 is sent to one or more corresponding loudspeakers or drivers 128 and 130. The loudspeakers 128 and 130 generate sound waves based on the received signal by converting the signals to audible sound.
The distortion compensation system 100 includes a processing path corresponding to each channel of the audio signal 102. Each audio path includes a limiter 114 and 116, a threshold detector 110 and 112, and a digital-to-analog converter (DAC) 118 and 120. Each channel of the audio is received at a corresponding limiter 114 and 116.
In some distortion compensation systems 100, the limiters 114 and 116 are configured as variable gain amplifiers that provide or control an amount of gain for the corresponding channel of the audio signal provided at its input. The amount of gain is controlled by a signal received from the corresponding threshold detector 110 and 112. The variable gain amplifiers 114 and 116 are controlled to reduce the amount of gain provided to the audio signal when the corresponding threshold detector 110 and 112 detects that the audio signal at the output of the corresponding variable gain amplifier exceeds a threshold. The variable gain amplifiers 114 and 116 are also controlled to increase the gain for the audio signal toward a unity gain when the corresponding threshold detector 110 and 112 detects that the audio signal at the output of the corresponding variable gain amplifier 114 and 116 does not exceed a threshold. Although
The distortion compensation system 100 also includes a processing path for a rail voltage signal 134. The rail voltage signal 134 may be associated with the power supply B+ for the audio system and/or components of an audio system such as amplifier 122. For example, in some automotive audio systems, the rail voltage B+ is the battery supply voltage for the vehicle.
The rail voltage signal 134 may be processed by the distortion compensation system 100 through a conditioning circuit 104. The conditioning circuit 104 may include electrical and electronic components configured to provide a conditioned signal to the distortion compensation system 100. The conditioning circuit may include switches, comparators, bridges, dividers, clamps, suppressors, combinations thereof and the like. The conditioning circuit 104 may include a voltage divider that reduces the rail voltage B+ to a range which may be processed by a controller. The conditioning circuit 104 may also include a diode circuit configured to clamp voltage spikes and other voltages that are outside an operating or input range for a controller.
The rail voltage signal 134 is provided to the distortion compensation system 100 as an analog, or continuous, signal. The rail voltage signal 134 is converted to a digital signal by an analog-to-digital converter (ADC) 106. The ADC 106 may be a sigma-delta, pipeline, folding/interpolating and/or flash type A/D converter. The ADC 106 may maintain about 10 bits or more of precision. The converted signal may be passed through a digital low pass filter (“LPF”) 108, which filters out noise and smooths fluctuations in the digital rail voltage signal.
The rail voltage signal 134 is received by the threshold detectors 110 and 112. The threshold detectors 110 and 112 compare the rail voltage signal to, or measure the rail voltage against, a reference. The reference may be a stored value or predetermined signal that represents a tuning voltage or other standard to which the rail voltage may be compared as a reference. The reference may represent the value of the rail voltage B+ at a time that the audio system is tuned or installed. The threshold detectors 110 and 112 compare the audio signal on the output of the corresponding limiter 114 and 116 to a variable threshold. When the audio signal on the output of the limiter 114 and 116 exceeds the threshold, the threshold detectors 110 and 112 controls the corresponding limiter 114, 116 accordingly. In some systems where the limiters are configured as variable gain amplifiers, the threshold detectors 110 and 112 control the variable gain amplifiers 114, 116 to reduce or limit the amount of gain provided. When the audio signal on the output of variable gain amplifier 114 and 116 does not exceed the threshold, the gain is controlled to increase the gain provided. The gain may be increased to a maximum, such as unity gain. The gain may be increased at a release rate and/or decreased at an attack rate. For example, the gain may be increased at around 10 dB to around 100 dB per second, until the gain is set to unity gain, or until the corresponding threshold detector 110 and 112 determines that the audio signal exceeds the threshold and reduces the gain. The gain also may be reduced at an attack rate in the range of around 100 dB to around 1000 dB per second, until the audio signal does not exceed the threshold.
The threshold is varied, controlled, or adjusted according to the comparison of the rail voltage signal 134 to the reference or tuning voltage. For example, when the comparison of the rail voltage B+ to the reference or tuning voltage determines that the rail voltage is less than the reference or tuning voltage, the threshold is lowered. The threshold is lowered to a point or level appropriate for the detected rail voltage B+. When the comparison of the rail voltage B+to the reference or tuning voltage determines that the battery voltage exceeds the reference or tuning voltage, the threshold may be increased. Increasing the threshold allows the threshold detector to control the variable gain amplifiers 114 and 116 according to a higher threshold when the rail voltage B+ is at a higher voltage, and at a lower threshold when the rail voltage B+ is at a lower voltage. The limiters 114 and 116 are controlled according to the amount of voltage that may be available to amplify the audio signal.
The DACs 118 and 120 receive the gain controlled audio signal from the corresponding variable gain amplifier 114 and 116. Each DAC 118 and 120 converts the digital audio signal at its input to a corresponding analog signal provided at it output. The DAC 118 and 120 may include switches, a network of resistors, current sources, capacitors, combinations thereof, and the like. The DAC's 118, 120 may be configured as a Pulse Width Modulator, an oversampling or Delta-Sigma DAC, a binary weighted DAC, a R2R Ladder DAC, a segmented DAC, or a hybrid DAC.
In another example of a distortion compensation system 100, the limiters 114, 116 may be configured as compressors. The compressor may adjust the level of the audio signal provided to the input. The compressor may reduce the level of louder passages in the audio signal to control distortion while still providing a higher overall signal level. At lower levels, the compressor passes the input signal to the output at a linear, or substantially linear level. The linear level may be, for example, about a 1:1 ratio. As the input signal increases, it approaches a threshold, or compression knee. At levels above the threshold or knee, the output signal is lower than the input signal, for example by a ratio of 2:1 or higher. In the example where one or more of the limiters 114 and 116 are configured as compressors. The threshold, or knee, of the compressor 114 and 116 is adjusted according to the rail voltage signal 134. The threshold is adjusted according to the comparison of the rail voltage signal 134 to the reference or tuning voltage. When the rail voltage B+ is less than the reference, the threshold is lowered to a point or level appropriate for the rail voltage B+. When the rail voltage B+ exceeds the reference, the threshold may be increased.
As the rail voltage B+ changes, the distortion compensation system adjusts the compressor knee 234, 236 and 238 up or down the linear range of the compressor. For example, the compressor may be set to have a compressor knee 234 at a tuning or nominal voltage level. As the rail voltage B+ decreases from a tuning voltage, the compressor knee 234 for the tuning voltage is moved down the linear curve to a lower level 236 according to the lower rail voltage. As the rail voltage B+ increases from a tuning voltage, the compressor knee 234 for the tuning voltage 234 is moved up the linear curve to a higher level 238 according to the higher rail voltage. The compressor knee may be moved along the linear portion of the curve 200 according to the rail voltage B+. For lower rail voltages, the compressor knee 236 is lowered so that compression begins for lower levels of the input signal. For higher rail voltages B+, the compressor knee is increased so that compression does not begin until a higher input level.
The limiters 340 and 342 may be linked based on a pairing. In the distortion compensation system 300 of
The audio signal is controlled 456 according to the threshold. For example, the threshold may be a limit above which a gain or attenuation to a signal is provided to a channel of an audio signal. When it a channel of the audio signal exceeds the threshold, the gain for the signal is decreased below unity gain so that the signal is attenuated. In an example, the gain may be reduced by an attack rate in the range of about 100 dB per second to about 1000 dB per second. When the signal no longer exceeds the threshold, the gain is increased back to unity gain.
While various embodiments of the invention have been described, it will be apparent to those of ordinary skill in the art that many more embodiments and implementations are possible within the scope of the invention. Accordingly, the invention is not to be restricted except in light of the attached claims and their equivalents.
This application is a continuation application that, pursuant to 35 U.S.C. §120, claims the priority of U.S. patent application Ser. No. 11/305,498, “DISTORTION COMPENSATION” filed Dec. 15, 2005, the entire contents of which are incorporated by reference.
Number | Date | Country | |
---|---|---|---|
Parent | 11305498 | Dec 2005 | US |
Child | 13229125 | US |