diff options
author | Jerome Brunet <jbrunet@baylibre.com> | 2024-04-26 18:29:41 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-04-29 17:48:50 +0300 |
commit | a5a89037d080e0870d7517c61f8b2123d58ab33b (patch) | |
tree | 9cdcc233aa9a99f30f1de159aa2456416540c8b6 /sound/soc/meson/axg-tdm.h | |
parent | f949ed458ad15a00d41b37c745ebadaef171aaae (diff) | |
download | linux-a5a89037d080e0870d7517c61f8b2123d58ab33b.tar.xz |
ASoC: meson: axg-tdm: add continuous clock support
Some devices may need the clocks running, even while paused.
Add support for this use case.
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20240426152946.3078805-5-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/meson/axg-tdm.h')
-rw-r--r-- | sound/soc/meson/axg-tdm.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/meson/axg-tdm.h b/sound/soc/meson/axg-tdm.h index 42f7470b9a7f..daaca10fec9e 100644 --- a/sound/soc/meson/axg-tdm.h +++ b/sound/soc/meson/axg-tdm.h @@ -58,12 +58,17 @@ struct axg_tdm_stream { unsigned int physical_width; u32 *mask; bool ready; + + /* For continuous clock tracking */ + bool clk_enabled; }; struct axg_tdm_stream *axg_tdm_stream_alloc(struct axg_tdm_iface *iface); void axg_tdm_stream_free(struct axg_tdm_stream *ts); int axg_tdm_stream_start(struct axg_tdm_stream *ts); void axg_tdm_stream_stop(struct axg_tdm_stream *ts); +int axg_tdm_stream_set_cont_clocks(struct axg_tdm_stream *ts, + unsigned int fmt); static inline int axg_tdm_stream_reset(struct axg_tdm_stream *ts) { |