summaryrefslogtreecommitdiff
path: root/include/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2022-06-07 11:52:06 +0100
committerMark Brown <broonie@kernel.org>2022-06-07 11:52:06 +0100
commita8b1b9ce5d48bada80868d0ba8d1ee00157f01ee (patch)
tree2543df0e78b35086d6d67e883fe1476bee4233cd /include/sound
parentac8a2ea48001a4c336fbaaa977642d5ad79cdbd8 (diff)
parent97076475e2fdf471348b9ce73215cdbceeb4390f (diff)
downloadlwn-a8b1b9ce5d48bada80868d0ba8d1ee00157f01ee.tar.gz
lwn-a8b1b9ce5d48bada80868d0ba8d1ee00157f01ee.zip
ALSA: hda: cirrus: Add initial DSP support and firmware loading
Merge series from Vitaly Rodionov <vitalyr@opensource.cirrus.com>: The CS35L41 Amplifier contains a DSP, capable of running firmware. The firmware can run algorithms such as Speaker Protection, to ensure that playback at high gains do not harm the speakers. This exports some interfaces to allow more use of this DSP by the HDA version of the driver.
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/cs35l41.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/cs35l41.h b/include/sound/cs35l41.h
index 8972fa697622..a66ef37184fd 100644
--- a/include/sound/cs35l41.h
+++ b/include/sound/cs35l41.h
@@ -881,6 +881,9 @@ void cs35l41_configure_cs_dsp(struct device *dev, struct regmap *reg, struct cs_
int cs35l41_set_cspl_mbox_cmd(struct device *dev, struct regmap *regmap,
enum cs35l41_cspl_mbox_cmd cmd);
int cs35l41_write_fs_errata(struct device *dev, struct regmap *regmap);
+int cs35l41_enter_hibernate(struct device *dev, struct regmap *regmap,
+ enum cs35l41_boost_type b_type);
+int cs35l41_exit_hibernate(struct device *dev, struct regmap *regmap);
int cs35l41_init_boost(struct device *dev, struct regmap *regmap,
struct cs35l41_hw_cfg *hw_cfg);
bool cs35l41_safe_reset(struct regmap *regmap, enum cs35l41_boost_type b_type);