Skip to content

Commit d0aa5bf

Browse files
author
Wu Zhigang
committed
component: draw the state machine flow chart
this flow chart diagram only cover the right flow. if there is no event between two states, that means you will hit the error flow during state transfer. Signed-off-by: Wu Zhigang <zhigang.wu@linux.intel.com>
1 parent 1f1c9ed commit d0aa5bf

1 file changed

Lines changed: 23 additions & 8 deletions

File tree

src/include/sof/audio/component.h

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,31 @@
4949
*
5050
* States may transform as below:-
5151
*
52-
* 1) i.e. Initialisation to playback and pause/release
53-
* init --> setup --> prepare --> active <-> paused --+
54-
* ^ |
55-
* +-----------------------------+
5652
*
57-
* 2) i.e. Suspend
53+
* -------------
54+
* pause | | stop/xrun
55+
* +-------------| ACTIVITY |---------------+
56+
* | | | | prepare
57+
* | ------------- | +-----------+
58+
* | ^ ^ | | |
59+
* | | | | | |
60+
* v | | v | |
61+
* ------------- | | ------------- |
62+
* | | release | | start | | |
63+
* | PAUSED |-----------+ +-------------| PREPARE |<-------+
64+
* | | | |
65+
* ------------- -------------
66+
* | ^ ^
67+
* | stop/xrun | |
68+
* +--------------------------------------+ |
69+
* | prepare
70+
* ------------- |
71+
* | | |
72+
* ----------->| READY |------------------+
73+
* reset | |
74+
* -------------
75+
*
5876
*
59-
* setup --> suspend --> setup OR
60-
* prepare --> suspend -> prepare OR
61-
* paused --> suspend --> paused
6277
*/
6378

6479
#define COMP_STATE_INIT 0 /* component being initialised */

0 commit comments

Comments
 (0)