aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Brown2022-04-20 14:22:08 +0100
committerMark Brown2022-04-20 14:22:08 +0100
commit2ad1e059cb3c2c53dc639e4f816daddcfc0e91fd (patch)
treeff2f7b09d53c76cc4c2e8c4de784d4a8b41e82b0 /include
parent7ed1bf73345a3fe5439f50c1d0fb24bfede417b0 (diff)
parent374b50e234a3e2f92bb881a814218f9740e85dcc (diff)
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')
-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) \