Skip to content

Commit 5334612

Browse files
authored
Merge pull request #131 from zhigang-wu/topic/state-machine-change1
component: draw the state machine flow chart
2 parents 40bf6b7 + d0aa5bf commit 5334612

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)