Skip to content

Commit

Permalink
Audio: DRC: Add HiFi4 implementation of DRC
Browse files Browse the repository at this point in the history
Add HiFi4 implementation of DRC.

Signed-off-by: Andrula Song <[email protected]>
  • Loading branch information
andrula-song committed Nov 15, 2023
1 parent a8db157 commit 9d21ce9
Show file tree
Hide file tree
Showing 7 changed files with 926 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/audio/drc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
add_local_sources(sof drc.c)
add_local_sources(sof drc_generic.c)
add_local_sources(sof drc_hifi3.c)
add_local_sources(sof drc_hifi4.c)
add_local_sources(sof drc_math_generic.c)
add_local_sources(sof drc_math_hifi3.c)
2 changes: 2 additions & 0 deletions src/audio/drc/drc_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ void drc_compress_output(struct drc_state *state,

#endif /* DRC_GENERIC */

#if DRC_GENERIC || DRC_HIFI3
/* After one complete division of samples have been received (and one division of
* samples have been output), we calculate shaped power average
* (detector_average) from the input division, update envelope parameters from
Expand Down Expand Up @@ -782,3 +783,4 @@ const struct drc_proc_fnmap drc_proc_fnmap[] = {
};

const size_t drc_proc_fncount = ARRAY_SIZE(drc_proc_fnmap);
#endif
Loading

0 comments on commit 9d21ce9

Please sign in to comment.