forked from thesofproject/sof
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Audio: Multiband-DRC: Fix paths after move of scripts
The paths to topology and sof-ctl blobs are updated. The paths to other setup scripts (common, crossover, drc, eq) are set with a new helper function multiband_drc_paths.m. Signed-off-by: Seppo Ingalsuo <[email protected]>
- Loading branch information
Showing
4 changed files
with
45 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
function drc_coefs = drc_gen_quant_coefs(num_bands, sample_rate, params); | ||
|
||
addpath ../drc | ||
|
||
for i = 1:num_bands | ||
coefs = drc_gen_coefs(params(i), sample_rate); | ||
drc_coefs(i) = drc_generate_config(coefs); | ||
end | ||
|
||
rmpath ../drc | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
function multiband_drc_paths(enable) | ||
|
||
% multiband_drc_paths(enable) | ||
% enable - set to true to enable needed search path | ||
% set to false to disable the search paths | ||
% | ||
|
||
% SPDX-License-Identifier: BSD-3-Clause | ||
% | ||
% Copyright (c) 2024, Intel Corporation. All rights reserved. | ||
|
||
common = '../../../../tools/tune/common'; | ||
crossover = '../../../../tools/tune/crossover'; | ||
drc = '../../../../tools/tune/drc'; | ||
eq = '../../../../tools/tune/eq'; | ||
# After #9215 merge use this: | ||
# crossover = '../../crossover/tune'; | ||
# After #9188 merge use this: | ||
# drc = '../../drc/tune'; | ||
# After #9187 merge use this: | ||
# eq = '../../eq_iir/tune'; | ||
if enable | ||
addpath(common); | ||
addpath(crossover); | ||
addpath(drc); | ||
addpath(eq); | ||
else | ||
rmpath(common); | ||
rmpath(crossover); | ||
rmpath(drc); | ||
rmpath(eq); | ||
end | ||
end |