Skip to content

Commit a9702cc

Browse files
singalsulgirdwood
authored andcommitted
Audio: DCblock: Fix blob export paths after move
The paths for exported blobs for topology and for sof-ctl need to be fixed after directory move. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent b647d9a commit a9702cc

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

src/audio/dcblock/tune/example_dcblock.m

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,16 @@ function example_dcblock()
3131
function dcblock_blob_calculate(prm)
3232

3333
% Set the parameters here
34-
tplg1_fn = sprintf("../../topology/topology1/m4/dcblock_coef_%s.m4", prm.id); % Control Bytes File
35-
tplg2_fn = sprintf("../../topology/topology2/include/components/dcblock/%s.conf", prm.id);
34+
sof_tools = '../../../../tools';
35+
sof_tplg = fullfile(sof_tools, 'topology');
36+
sof_ctl = fullfile(sof_tools, 'ctl');
37+
tplg1_fn = sprintf("%s/topology1/m4/dcblock_coef_%s.m4", sof_tplg, prm.id); % Control Bytes File
38+
tplg2_fn = sprintf("%s/topology2/include/components/dcblock/%s.conf", sof_tplg, prm.id);
3639
% Use those files with sof-ctl to update the component's configuration
37-
blob3_fn = sprintf("../../ctl/ipc3/dcblock/coef_%s.blob", prm.id); % Blob binary file
38-
alsa3_fn = sprintf("../../ctl/ipc3/dcblock/coef_%s.txt", prm.id); % ALSA CSV format file
39-
blob4_fn = sprintf("../../ctl/ipc4/dcblock/coef_%s.blob", prm.id); % Blob binary file
40-
alsa4_fn = sprintf("../../ctl/ipc4/dcblock/coef_%s.txt", prm.id); % ALSA CSV format file
40+
blob3_fn = sprintf("%s/ipc3/dcblock/coef_%s.blob", sof_ctl, prm.id); % Blob binary file
41+
alsa3_fn = sprintf("%s/ipc3/dcblock/coef_%s.txt", sof_ctl, prm.id); % ALSA CSV format file
42+
blob4_fn = sprintf("%s/ipc4/dcblock/coef_%s.blob", sof_ctl, prm.id); % Blob binary file
43+
alsa4_fn = sprintf("%s/ipc4/dcblock/coef_%s.txt", sof_ctl, prm.id); % ALSA CSV format file
4144

4245
endian = "little";
4346

0 commit comments

Comments
 (0)