diff options
author | Simon Trimmer <simont@opensource.cirrus.com> | 2023-07-21 15:21:17 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-07-24 00:40:21 +0200 |
commit | f32a2bcbc092d60ba8a1b00a22607b220d53a25e (patch) | |
tree | 618e51100e07d65b8845787faff3650326cf9222 /include/sound | |
parent | ASoC: cs35l56: Move part of cs35l56_init() to shared library (diff) | |
download | linux-f32a2bcbc092d60ba8a1b00a22607b220d53a25e.tar.xz linux-f32a2bcbc092d60ba8a1b00a22607b220d53a25e.zip |
ASoC: cs35l56: Make common function for control port wait
Move the waits for CS35L56_CONTROL_PORT_READY_US into a common
function, and also allow a wider range of allowed wait times.
Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230721132120.5523-9-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/cs35l56.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/cs35l56.h b/include/sound/cs35l56.h index 0d6cdfb6107b..79e117abee06 100644 --- a/include/sound/cs35l56.h +++ b/include/sound/cs35l56.h @@ -275,6 +275,7 @@ extern const unsigned int cs35l56_tx_input_values[CS35L56_NUM_INPUT_SRC]; int cs35l56_set_patch(struct cs35l56_base *cs35l56_base); int cs35l56_mbox_send(struct cs35l56_base *cs35l56_base, unsigned int command); int cs35l56_wait_for_firmware_boot(struct cs35l56_base *cs35l56_base); +void cs35l56_wait_control_port_ready(void); void cs35l56_wait_min_reset_pulse(void); void cs35l56_system_reset(struct cs35l56_base *cs35l56_base, bool is_soundwire); int cs35l56_irq_request(struct cs35l56_base *cs35l56_base, int irq); |