Skip to content

Conversation

@tlauda
Copy link
Contributor

@tlauda tlauda commented May 15, 2019

Set of patches to cleanup audio components:

  • Put multifile components in directories.
  • Fix checkpatch errors.
  • Remove check for MODULE_TEST definition.

Copy link
Contributor

Choose a reason for hiding this comment

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

Would be better to not handle f.e. volume.c on 2 different levels for different builds. We should have some kind of function here that is called in subdirs maybe. I can refactor that part later. We can merge it like it is now cos it's step in the good direction and it's better to have smaller PRs anyway.

Copy link
Member

@plbossart plbossart left a comment

Choose a reason for hiding this comment

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

looks good, minor comment on memcpy changes below

@tlauda tlauda force-pushed the topic/audio-comp-cleanup branch from 490fedc to 11c6585 Compare May 16, 2019 09:08
Copy link
Member

@plbossart plbossart left a comment

Choose a reason for hiding this comment

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

Nice clean-up.

Side comment: The use of 'assert' is questionable in an audio firmware. we should have a discussion on this, other firmware groups explicitly forbid this. Either an error check is needed or it's not. Even in previous host-based programs asserts were considered as evil.

@jajanusz
Copy link
Contributor

@tlauda Please fix ut

tlauda added 4 commits May 17, 2019 12:19
This patch moves multifile components to separate
directories. All component headers are also moved to
include/sof/audio.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
Fixes checkpatch errors in audio components.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
Replaces memcpy calls with memcpy_s calls
in audio processing components.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
Removes preprocessor checks for MODULE_TEST.
It was used by testbench, when the FW traces
were very limited. It's no longer needed.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
@tlauda tlauda force-pushed the topic/audio-comp-cleanup branch from 11c6585 to f2b5f58 Compare May 17, 2019 10:23
@jajanusz jajanusz merged commit 9417d21 into thesofproject:master May 17, 2019
@tlauda tlauda deleted the topic/audio-comp-cleanup branch November 22, 2019 11:24
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.

3 participants