summaryrefslogtreecommitdiff
path: root/include/sound
diff options
context:
space:
mode:
authorVitaly Rodionov <vitaly.rodionov@cirrus.com>2022-06-30 03:23:25 +0300
committerTakashi Iwai <tiwai@suse.de>2022-07-14 12:22:55 +0300
commit2e81e1fffd53ba108481f2f14388b628884efe61 (patch)
tree3b8ebaf3fcd21dd2bdbf40838c8a383de98d4a47 /include/sound
parent22d5cbd273a2ca90ba026ec82f0b9c3e984b0c1c (diff)
downloadlinux-2e81e1fffd53ba108481f2f14388b628884efe61.tar.xz
ALSA: hda: cs35l41: Add initial DSP support and firmware loading
This patch adds support for the CS35L41 DSP. The DSP allows for extra features, such as running speaker protection algorithms and hibernations. To utilize these features, the driver must load firmware into the DSP, as well as various tuning files which allow for customization for specific models. [ Slightly simplified Kconfig changes by tiwai ] Signed-off-by: Vitaly Rodionov <vitaly.rodionov@cirrus.com> Signed-off-by: Vitaly Rodionov <vitalyr@opensource.cirrus.com> Link: https://lore.kernel.org/r/20220630002335.366545-5-vitalyr@opensource.cirrus.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/cs35l41.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sound/cs35l41.h b/include/sound/cs35l41.h
index 8972fa697622..8887087815a7 100644
--- a/include/sound/cs35l41.h
+++ b/include/sound/cs35l41.h
@@ -665,6 +665,10 @@
#define CS35L41_BST_EN_DEFAULT 0x2
#define CS35L41_AMP_EN_SHIFT 0
#define CS35L41_AMP_EN_MASK 1
+#define CS35L41_VMON_EN_MASK 0x1000
+#define CS35L41_VMON_EN_SHIFT 12
+#define CS35L41_IMON_EN_MASK 0x2000
+#define CS35L41_IMON_EN_SHIFT 13
#define CS35L41_PDN_DONE_MASK 0x00800000
#define CS35L41_PDN_DONE_SHIFT 23