Skip to content

Commit

Permalink
src_lite: add module
Browse files Browse the repository at this point in the history
Addition of SRC Lite module,
which only supports a subset of conversions
supported by the SRC module.

Purpose of SRC Lite module is memory optimization.
Code of SRC Lite is drastically reduced and requires
significantly less memory. When needed one of
defined conversions, driver can choose SRC Lite
module instead of SRC module to optimize memory utilization.

48 -> 16kHz
44.1 -> 16 kHz
32 -> 16 kHz
44.1 -> 48

Signed-off-by: Fabiola Kwasowiec <[email protected]>
  • Loading branch information
fkwasowi committed Oct 24, 2023
1 parent 1fc1d28 commit f8ddb6f
Show file tree
Hide file tree
Showing 120 changed files with 366 additions and 197 deletions.
1 change: 1 addition & 0 deletions app/boards/intel_adsp_ace15_mtpm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ CONFIG_IPC_MAJOR_4=y

CONFIG_COMP_SRC=y
CONFIG_COMP_SRC_IPC4_FULL_MATRIX=y
CONFIG_COMP_SRC_LITE=y
CONFIG_COMP_DRC=y
CONFIG_COMP_CROSSOVER=y
CONFIG_COMP_MULTIBAND_DRC=y
Expand Down
12 changes: 12 additions & 0 deletions src/audio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,18 @@ config COMP_SRC
help
Select for SRC component

config COMP_SRC_LITE
bool "SRC_LITE component"
default y
help
Select for SRC_LITE component
which only supports a subset of conversions
supported by the SRC module:
48 -> 16kHz
44.1 -> 16 kHz
32 -> 16 kHz
44.1 -> 48

config COMP_STUBS
bool "Build all selected third-party (3P) components with stubs"
default n
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_10_21_2500_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_10_21_2500_5000_fir[480] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_10_21_3455_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_10_21_3455_5000_fir[640] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_10_21_4535_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_10_21_4535_5000_fir[2320] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_10_9_4535_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_10_9_4535_5000_fir[1080] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_16_21_4319_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_16_21_4319_5000_fir[1472] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_16_21_4535_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_16_21_4535_5000_fir[2048] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_16_7_4082_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_16_7_4082_5000_fir[896] = {
Expand Down
1 change: 0 additions & 1 deletion src/audio/src/coef/src_ipc4_int32_1_2_2268_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"
#include <stdint.h>

const int32_t src_int32_1_2_2268_5000_fir[36] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_1_2_2500_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_1_2_2500_5000_fir[40] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_1_2_2721_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_1_2_2721_5000_fir[44] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_1_2_3401_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_1_2_3401_5000_fir[60] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_1_2_3887_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_1_2_3887_5000_fir[84] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_1_2_4535_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_1_2_4535_5000_fir[192] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_1_3_2268_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_1_3_2268_5000_fir[52] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_1_3_4535_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_1_3_4535_5000_fir[260] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_1_4_1512_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_1_4_1512_5000_fir[52] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_1_4_2268_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_1_4_2268_5000_fir[60] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_1_4_4535_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_1_4_4535_5000_fir[332] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_1_6_1134_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_1_6_1134_5000_fir[68] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_20_21_1250_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_20_21_1250_5000_fir[320] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_20_21_2500_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_20_21_2500_5000_fir[560] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_20_21_3125_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_20_21_3125_5000_fir[640] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_20_21_4167_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_20_21_4167_5000_fir[1200] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_20_21_4535_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_20_21_4535_5000_fir[2080] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_20_7_2976_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_20_7_2976_5000_fir[560] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_10_2500_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_21_10_2500_5000_fir[504] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_10_3455_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_21_10_3455_5000_fir[756] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_10_4535_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_21_10_4535_5000_fir[2520] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_16_4319_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_21_16_4319_5000_fir[1596] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_16_4535_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_21_16_4535_5000_fir[2436] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_20_1250_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_21_20_1250_5000_fir[420] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_20_2500_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_21_20_2500_5000_fir[504] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_20_3125_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_21_20_3125_5000_fir[672] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_20_4167_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_21_20_4167_5000_fir[1260] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_20_4535_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_21_20_4535_5000_fir[2268] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_2_3239_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_21_2_3239_5000_fir[672] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_32_4535_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_21_32_4535_5000_fir[3612] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_40_2381_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_21_40_2381_5000_fir[924] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_40_3968_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_21_40_3968_5000_fir[1680] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_4_1080_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_21_4_1080_5000_fir[336] = {
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_4_3239_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include "../src.h"

#include <stdint.h>

const int32_t src_int32_21_4_3239_5000_fir[672] = {
Expand Down
Loading

0 comments on commit f8ddb6f

Please sign in to comment.