From 895abe605a25d2ae9d893f86a6581944167f4ac8 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Mon, 30 Mar 2020 15:26:07 +0300 Subject: [PATCH] Tools: Topology: Add IIR example coefficients This patch adds IIR responses band-pass, bass-boost, loudness, and pass-through for inclusion to topology. Signed-off-by: Seppo Ingalsuo --- tools/topology/m4/eq_iir_coef_bandpass.m4 | 22 +++++++++++++++ tools/topology/m4/eq_iir_coef_bassboost.m4 | 22 +++++++++++++++ tools/topology/m4/eq_iir_coef_loudness.m4 | 33 ++++++++++++++++++++++ tools/topology/m4/eq_iir_coef_pass.m4 | 18 ++++++++++++ 4 files changed, 95 insertions(+) create mode 100644 tools/topology/m4/eq_iir_coef_bandpass.m4 create mode 100644 tools/topology/m4/eq_iir_coef_bassboost.m4 create mode 100644 tools/topology/m4/eq_iir_coef_loudness.m4 create mode 100644 tools/topology/m4/eq_iir_coef_pass.m4 diff --git a/tools/topology/m4/eq_iir_coef_bandpass.m4 b/tools/topology/m4/eq_iir_coef_bandpass.m4 new file mode 100644 index 000000000..ffdff07cd --- /dev/null +++ b/tools/topology/m4/eq_iir_coef_bandpass.m4 @@ -0,0 +1,22 @@ +# Band-pass, created with example_iir_eq.m 30-Mar-2020 +CONTROLBYTES_PRIV(DEF_EQIIR_PRIV, +` bytes "0x53,0x4f,0x46,0x00,0x00,0x00,0x00,0x00,' +` 0x74,0x00,0x00,0x00,0x00,0xe0,0x00,0x03,' +` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x74,0x00,0x00,0x00,0x02,0x00,0x00,0x00,' +` 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,' +` 0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x8e,0x6f,0xa8,0xc5,' +` 0xb3,0x81,0x14,0x7a,0xae,0x14,0xa0,0x1e,' +` 0xa5,0xd6,0xbf,0xc2,0xae,0x14,0xa0,0x1e,' +` 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,' +` 0x3e,0xac,0x84,0xe6,0xc3,0x9a,0xfd,0x46,' +` 0xcf,0x1e,0x51,0x02,0x9d,0x3d,0xa2,0x04,' +` 0xcf,0x1e,0x51,0x02,0xfc,0xff,0xff,0xff,' +` 0x85,0x5e,0x00,0x00"' +) diff --git a/tools/topology/m4/eq_iir_coef_bassboost.m4 b/tools/topology/m4/eq_iir_coef_bassboost.m4 new file mode 100644 index 000000000..c62daf0d5 --- /dev/null +++ b/tools/topology/m4/eq_iir_coef_bassboost.m4 @@ -0,0 +1,22 @@ +# Bass boost, created with example_iir_eq.m 30-Mar-2020 +CONTROLBYTES_PRIV(DEF_EQIIR_PRIV, +` bytes "0x53,0x4f,0x46,0x00,0x00,0x00,0x00,0x00,' +` 0x74,0x00,0x00,0x00,0x00,0xe0,0x00,0x03,' +` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x74,0x00,0x00,0x00,0x02,0x00,0x00,0x00,' +` 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,' +` 0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0xf1,0xbc,0x5a,0xc0,' +` 0x8f,0x02,0xa5,0x7f,0x83,0xae,0xfc,0x1f,' +` 0xfa,0xa2,0x06,0xc0,0x83,0xae,0xfc,0x1f,' +` 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,' +` 0x6f,0x82,0x53,0xc2,0x3e,0x77,0xa1,0x7d,' +` 0x1f,0x86,0xa2,0x09,0xe8,0xa3,0x18,0xec,' +` 0x7d,0x5c,0x4a,0x0a,0xfe,0xff,0xff,0xff,' +` 0x06,0x6d,0x00,0x00"' +) diff --git a/tools/topology/m4/eq_iir_coef_loudness.m4 b/tools/topology/m4/eq_iir_coef_loudness.m4 new file mode 100644 index 000000000..ae419f260 --- /dev/null +++ b/tools/topology/m4/eq_iir_coef_loudness.m4 @@ -0,0 +1,33 @@ +# Loudness effect, created with example_iir_eq.m 30-Mar-2020 +CONTROLBYTES_PRIV(DEF_EQIIR_PRIV, +` bytes "0x53,0x4f,0x46,0x00,0x00,0x00,0x00,0x00,' +` 0xcc,0x00,0x00,0x00,0x00,0xe0,0x00,0x03,' +` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0xcc,0x00,0x00,0x00,0x04,0x00,0x00,0x00,' +` 0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,' +` 0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,' +` 0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,' +` 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x9e,0x73,0x13,0x20,' +` 0x00,0x00,0x00,0x00,0xb2,0x7f,0x00,0x00,' +` 0x03,0x00,0x00,0x00,0x03,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x1c,0x5a,0xff,0xc0,0xb4,0xc1,0xff,0x7e,' +` 0x9f,0xb7,0xb4,0x11,0x2d,0x0a,0x35,0xdc,' +` 0x90,0xb0,0x16,0x12,0x00,0x00,0x00,0x00,' +` 0x00,0x40,0x00,0x00,0x21,0xf8,0xd5,0xc4,' +` 0xf0,0x6b,0x14,0x7b,0x27,0xb8,0x9d,0x0e,' +` 0xb9,0x24,0x18,0xe1,0xa9,0xf7,0x54,0x10,' +` 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,' +` 0xff,0xaf,0xc0,0xf4,0x17,0xa2,0x2d,0xf6,' +` 0x35,0xa4,0x1f,0x04,0x58,0x87,0x20,0xf9,' +` 0xb9,0x3e,0xcb,0x15,0xfc,0xff,0xff,0xff,' +` 0x7c,0x63,0x00,0x00"' +) diff --git a/tools/topology/m4/eq_iir_coef_pass.m4 b/tools/topology/m4/eq_iir_coef_pass.m4 new file mode 100644 index 000000000..3c8d408ca --- /dev/null +++ b/tools/topology/m4/eq_iir_coef_pass.m4 @@ -0,0 +1,18 @@ +# Pass-through, created with example_iir_eq.m 30-Mar-2020 +CONTROLBYTES_PRIV(DEF_EQIIR_PRIV, +` bytes "0x53,0x4f,0x46,0x00,0x00,0x00,0x00,0x00,' +` 0x58,0x00,0x00,0x00,0x00,0xe0,0x00,0x03,' +` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x58,0x00,0x00,0x00,0x02,0x00,0x00,0x00,' +` 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0xff,0xff,0xff,0xff,' +` 0xff,0xff,0xff,0xff,0x01,0x00,0x00,0x00,' +` 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,' +` 0x00,0x00,0x00,0x00,0x9e,0x73,0x13,0x20,' +` 0x00,0x00,0x00,0x00,0xb2,0x7f,0x00,0x00"' +)