summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/nau8821.h
diff options
context:
space:
mode:
authorSeven Lee <wtli@nuvoton.com>2023-11-07 04:52:30 +0100
committerMark Brown <broonie@kernel.org>2023-11-13 01:44:24 +0100
commit91d1a18b6381abd7a0137449fe345924072e4a32 (patch)
treeea4f3928d117d152f9f4a3eb7f46383e4bab6cde /sound/soc/codecs/nau8821.h
parentASoC: dt-bindings: nau8821: Add DMIC slew rate. (diff)
downloadlinux-91d1a18b6381abd7a0137449fe345924072e4a32.tar.xz
linux-91d1a18b6381abd7a0137449fe345924072e4a32.zip
ASoC: nau8821: Add slew rate controls.
The patch supports DMIC clock slew rate controls. Signed-off-by: Seven Lee <wtli@nuvoton.com> Link: https://lore.kernel.org/r/20231107035230.1241683-3-wtli@nuvoton.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/nau8821.h')
-rw-r--r--sound/soc/codecs/nau8821.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/nau8821.h b/sound/soc/codecs/nau8821.h
index 00a888ed07ce..62eaad130b2e 100644
--- a/sound/soc/codecs/nau8821.h
+++ b/sound/soc/codecs/nau8821.h
@@ -236,6 +236,8 @@
#define NAU8821_DMIC_SRC_MASK (0x3 << NAU8821_DMIC_SRC_SFT)
#define NAU8821_CLK_DMIC_SRC (0x2 << NAU8821_DMIC_SRC_SFT)
#define NAU8821_DMIC_EN_SFT 0
+#define NAU8821_DMIC_SLEW_SFT 8
+#define NAU8821_DMIC_SLEW_MASK (0x7 << NAU8821_DMIC_SLEW_SFT)
/* GPIO12_CTRL (0x1a) */
#define NAU8821_JKDET_PULL_UP (0x1 << 11) /* 0 - pull down, 1 - pull up */
@@ -573,6 +575,7 @@ struct nau8821 {
int jack_eject_debounce;
int fs;
int dmic_clk_threshold;
+ int dmic_slew_rate;
int key_enable;
};