aboutsummaryrefslogtreecommitdiff
path: root/sound/soc/intel/boards/sof_sdw_amp_coeff_tables.h
diff options
context:
space:
mode:
authorGravatar Shuming Fan <shumingf@realtek.com> 2022-11-09 17:13:06 +0800
committerGravatar Mark Brown <broonie@kernel.org> 2022-11-10 20:42:23 +0000
commit1b435e405d63155d2391c27054cf98237d11d0a4 (patch)
tree1a1daa5295d0f710889a9f412275fa800ec6ee87 /sound/soc/intel/boards/sof_sdw_amp_coeff_tables.h
parentASoC: rt1316-sdw: get BQ params property and apply them (diff)
downloadlinux-1b435e405d63155d2391c27054cf98237d11d0a4.tar.gz
linux-1b435e405d63155d2391c27054cf98237d11d0a4.tar.bz2
linux-1b435e405d63155d2391c27054cf98237d11d0a4.zip
ASoC: Intel: sof_sdw_rt1308: add BQ params for the Dell models
The Dell SKU 0A5D/0A5E/0990/098F model needs the BQ params for the tweeter/woofer. Signed-off-by: Shuming Fan <shumingf@realtek.com> Reviewed-by: Pierre-Louis Bossart pierre-louis.bossart@linux.intel.com Link: https://lore.kernel.org/r/20221109091306.17221-1-shumingf@realtek.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards/sof_sdw_amp_coeff_tables.h')
-rw-r--r--sound/soc/intel/boards/sof_sdw_amp_coeff_tables.h162
1 files changed, 162 insertions, 0 deletions
diff --git a/sound/soc/intel/boards/sof_sdw_amp_coeff_tables.h b/sound/soc/intel/boards/sof_sdw_amp_coeff_tables.h
new file mode 100644
index 000000000000..bb90a5922fd2
--- /dev/null
+++ b/sound/soc/intel/boards/sof_sdw_amp_coeff_tables.h
@@ -0,0 +1,162 @@
+/* SPDX-License-Identifier: GPL-2.0-only
+ */
+
+/*
+ * sof_sdw_amp_coeff_tables.h - related coefficients for amplifier parameters
+ */
+
+#ifndef SND_SOC_SOF_SDW_AMP_COEFF_H
+#define SND_SOC_SOF_SDW_AMP_COEFF_H
+
+#define RT1308_MAX_BQ_REG 480
+
+static const u8 dell_0a5d_bq_params[] =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