Академический Документы
Профессиональный Документы
Культура Документы
Texas
INSTRUMENTS
Firmware Description
PurePath Digital Audio Processors
1. Loudness Compensation
Loudness compensation employs a, coefficient-programmable, biquad filter and the loudness gain, g, whose
output is only a function of the volume control setting. The biquad filter inputs are the channel processed audio
data stream that also feeds the volume gain-control mixer. The biquad output feed a gain control mixer whose
other input is the volume control setting after processing by the loudness gain, g.
Loudness compensation allows a given spectral segment of the audio data stream (as determined by the biquad
filter coefficients) to be given a delta adjustment in volume as determined by the programmable loudness gain, g.
The output of the function block f(volume_setting) is expressed in terms of the programmable I2C coefficients as:
where:
LG = logarithmic gain = 5.23 format number
LO = logarithmic offset = 25.23 format number
G = gain = 5.23 format number
O = offset = 25.23 format number
If G is set to 0.0 and O is set to 1.0, then the biquad-filtered audio is directly added to the volume level adjusted
audio.
Typically, LG and LO are used to derive the desired loudness compensation function.
G is used to turn loudness compensation on and off.
O is used to enable and disable the biquad filter output when automatic volume tracking is turned off.
g = f(volume_setting) = √volume_setting
This is accomplished by setting g to 1/sqrt(volume-_setting) so the total gain of the system, volume_setting*g, will
be sqrt(v).
The output of the soft volume/loudness compensation block then will be:
Volume_setting
Audio Out
Audio In
F(s) Biquad
Loudness gain = g
If loudness is enabled, to obtain a total cut (−∞ dB), it must be disabled by disabling it by setting the parameter G
to zero. This requirement is discussed in more detail in the subsequent paragraphs. Loudness compensation
tracks the volume control setting to allow spectral compensation. An example of loudness compensation would be
a boost in bass frequencies to compensate for weak perceived bass at low volume levels. Both linear and log
control laws can be implemented for volume gain tracking, and a dedicated biquad filter can be used to achieve
spectral discernment.
The following plot is for Example 1. The various plots result from a change in the volume.
The following plot is for Example 2. Notice that the plot is shifted from 100 Hz to 60 Hz since fc is set to 60
Hz from the Example 1 example. The various plots result from a change in the volume.
Example 3 demonstrates the loudness function. The various plots result from a change in the volume.
• fc = 100 Hz;
• bw = 100 Hz;
• LG = -0.5
• LO = 0
• G=0
• O=2
Example 4 demonstrates the loudness function using the following properties. The various plots result
from a change in the volume.
• fc = 100 Hz;
• bw = 100 Hz;
• LG = -0.75
• LO = 0
• G=1
• O=0
Example 5 demonstrates the loudness function using the following properties. The various plots result
from a change in the volume.
• fc = 100 Hz;
• bw = 100 Hz;
• LG = -0.25
• LO = 0
• G=1
• O=0
Example 6 demonstrates the loudness function using the following properties. The various plots result
from a change in the volume.
• fc = 100 Hz;
• bw = 100 Hz;
• LG = -0.5
• LO = 1
• G=1
• O=0
Example 7 demonstrates the loudness function using the following properties. The various plots result
from a change in the volume.
• fc = 100 Hz;
• bw = 100 Hz;
• LG = -0.5
• LO = -1
• G=1
• O=0