Skip to content

Audio: MFCC: Fix 64 bit build issue#9390

Merged
kv2019i merged 1 commit intothesofproject:mainfrom
singalsu:mfcc_fix_sparse_64bit_issues
Aug 22, 2024
Merged

Audio: MFCC: Fix 64 bit build issue#9390
kv2019i merged 1 commit intothesofproject:mainfrom
singalsu:mfcc_fix_sparse_64bit_issues

Conversation

@singalsu
Copy link
Collaborator

@singalsu singalsu commented Aug 22, 2024

The comp_err() trace in mfcc_init() causes an error:

sof/src/audio/mfcc/mfcc.c: In function 'mfcc_init': sof/src/include/sof/audio/component.h:160:20:
error: format '%u' expects argument of type 'unsigned int',
but argument 4 has type 'size_t' {aka 'long unsigned int'}
[-Werror=format=]

@singalsu singalsu force-pushed the mfcc_fix_sparse_64bit_issues branch from 33709f1 to a754a22 Compare August 22, 2024 08:19
@singalsu singalsu marked this pull request as ready for review August 22, 2024 09:29
Copy link
Contributor

@LaurentiuM1234 LaurentiuM1234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be worth splitting into two commits as these are 2 separate issues?

Copy link
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please submit as two commits

int waiting_fill:1; /**< booleans */
int prev_samples_valid:1;
bool waiting_fill:1; /**< booleans */
bool prev_samples_valid:1;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's also #9385 that's fixing this bug, and it was submitted a bit earlier, but this commit fixes an additional error. Same comment as there - let's just make both these fields bool without bit-picking.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cujomalainey I think I will drop this from PR and leave it for your PR to address.

The comp_err() trace in mfcc_init() causes an error:

sof/src/audio/mfcc/mfcc.c: In function 'mfcc_init':
sof/src/include/sof/audio/component.h:160:20:
  error: format '%u' expects argument of type 'unsigned int',
  but argument 4 has type 'size_t' {aka 'long unsigned int'}
  [-Werror=format=]

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
@singalsu singalsu force-pushed the mfcc_fix_sparse_64bit_issues branch from a754a22 to dcf7a03 Compare August 22, 2024 13:40
@singalsu singalsu changed the title Audio: MFCC: Fix sparse and 64 bit build issues Audio: MFCC: Fix 64 bit build issue Aug 22, 2024
@kv2019i kv2019i merged commit 66da07c into thesofproject:main Aug 22, 2024
@singalsu singalsu deleted the mfcc_fix_sparse_64bit_issues branch August 23, 2024 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants