mirror of https://github.com/thesofproject/sof.git
Tools: Tune: DRC: Add calculation of blob for speaker processing
This patch adds generation of a blob that applies about 10 dB gain with compression and additional post gain of 3 dB for strong loudness boost effect. The drc_gen_coefs.m script is changed to display the master linear gain as decibels to help achieve suitable gain when setting parameters. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
parent
18f170352d
commit
3d083e7ca7
|
@ -29,6 +29,7 @@ coefs.ratio_base = y0 * (coefs.knee_threshold ^ (-coefs.slope));
|
|||
% Calculate makeup gain coefficients
|
||||
full_range_makeup_gain = (1 / coefs.ratio_base) ^ 0.6; % Empirical/perceptual tuning
|
||||
coefs.master_linear_gain = db2mag(params.post_gain) * full_range_makeup_gain;
|
||||
coefs.master_linear_gain_db = 20*log10(coefs.master_linear_gain);
|
||||
|
||||
% Calculate attack time coefficients
|
||||
attack_time = max(0.001, params.attack);
|
||||
|
|
|
@ -31,6 +31,14 @@ drc_coefs_and_config_export(params, 'passthrough');
|
|||
params.enabled = 1;
|
||||
drc_coefs_and_config_export(params, 'enabled');
|
||||
|
||||
% Export experimental configuration for a small speaker
|
||||
params.enabled = 1;
|
||||
params.threshold = -25;
|
||||
params.knee = 15;
|
||||
params.ratio = 10;
|
||||
params.post_gain = 3;
|
||||
drc_coefs_and_config_export(params, 'generic_notebook_speaker');
|
||||
|
||||
rmpath ../common
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue