aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2022-04-20 14:22:08 +0100
committerMark Brown <broonie@kernel.org>2022-04-20 14:22:08 +0100
commit2ad1e059cb3c2c53dc639e4f816daddcfc0e91fd (patch)
treeff2f7b09d53c76cc4c2e8c4de784d4a8b41e82b0 /include/sound
parentASoC: SOF: add INTEL_IPC4 plumbing (diff)
parentASoC: soc-pcm: improve BE transition for TRIGGER_START (diff)
downloadlinux-dev-2ad1e059cb3c2c53dc639e4f816daddcfc0e91fd.tar.xz
linux-dev-2ad1e059cb3c2c53dc639e4f816daddcfc0e91fd.zip
ASoC: soc-pcm: improve BE state transitions
Merge series from Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>: With additional tests with the introduction of a 'deep-buffer' PCM device mixed with the regular low-latency path, we came up with two improvements in the BE state machine and transitions. The short explanation is that the BE cannot directly use the trigger commands provided by the FE, and a translation is needed to deal with paused states.
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/soc-dpcm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/soc-dpcm.h b/include/sound/soc-dpcm.h
index 75b92d883976..5b689c663290 100644
--- a/include/sound/soc-dpcm.h
+++ b/include/sound/soc-dpcm.h
@@ -103,6 +103,8 @@ struct snd_soc_dpcm_runtime {
int trigger_pending; /* trigger cmd + 1 if pending, 0 if not */
int be_start; /* refcount protected by BE stream pcm lock */
+ int be_pause; /* refcount protected by BE stream pcm lock */
+ bool fe_pause; /* used to track STOP after PAUSE */
};
#define for_each_dpcm_fe(be, stream, _dpcm) \