Skip to content

Commit 5bd2b3d

Browse files
singalsukv2019i
authored andcommitted
Audio: EQIIR: Tune: Add missing include to generated C header
The exported header file is missing the include for stdint.h for the used uint32_t type. Without it some builds fail to warning. Also the copyright text is updated. This patch also adds static const to the array declaration. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com> (cherry picked from commit d8560dc)
1 parent 98b58f3 commit 5bd2b3d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/audio/eq_iir/tune/sof_export_c_eq_uint32t.m

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function sof_export_c_eq_uint32t(fn, blob8, vn, justeq)
1111

1212
% SPDX-License-Identifier: BSD-3-Clause
1313
%
14-
% Copyright (c) 2021, Intel Corporation. All rights reserved.
14+
% Copyright (c) 2021-2025, Intel Corporation.
1515

1616
% Write blob
1717
fh = fopen(fn, 'w');
@@ -23,9 +23,10 @@ function sof_export_c_eq_uint32t(fn, blob8, vn, justeq)
2323
year = datestr(now, 'yyyy');
2424
fprintf(fh, '/* SPDX-License-Identifier: BSD-3-Clause\n');
2525
fprintf(fh, ' *\n');
26-
fprintf(fh, ' * Copyright(c) %s Intel Corporation. All rights reserved.\n', year);
26+
fprintf(fh, ' * Copyright(c) %s Intel Corporation.\n', year);
2727
fprintf(fh, ' */\n');
2828
fprintf(fh, '\n');
29+
fprintf(fh, '#include <stdint.h>\n\n');
2930

3031
% Pad blob length to multiple of four bytes
3132
n_orig = length(blob8);
@@ -53,7 +54,7 @@ function sof_export_c_eq_uint32t(fn, blob8, vn, justeq)
5354
numbers_remain = n_new - numbers_in_line * full_lines;
5455

5556
n = 1;
56-
fprintf(fh, 'uint32_t %s[%d] = {\n', vn, n_new);
57+
fprintf(fh, 'static const uint32_t %s[%d] = {\n', vn, n_new);
5758
for i = 1:full_lines
5859
fprintf(fh, '\t');
5960
for j = 1:numbers_in_line

0 commit comments

Comments
 (0)