1function [bytes, nbytes] = dcblock_get_abi(setsize)
2
3%% Use sof-ctl to write ABI header into a file
4abifn = 'dcblock_get_abi.bin';
5cmd = sprintf('sof-ctl -g %d -b -o %s', setsize, abifn);
6system(cmd);
7
8%% Read file and delete it
9fh = fopen(abifn, 'r');
10if fh < 0
11	error("Failed to get ABI header. Is sof-ctl installed?");
12end
13[bytes, nbytes] = fread(fh, inf, 'uint8');
14fclose(fh);
15delete(abifn);
16
17end
18