Skip to content

Commit

Permalink
Merge pull request #131 from zhigang-wu/topic/state-machine-change1
Browse files Browse the repository at this point in the history
component: draw the state machine flow chart
  • Loading branch information
lgirdwood committed Jul 20, 2018
2 parents 40bf6b7 + d0aa5bf commit 5334612
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions src/include/sof/audio/component.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,31 @@
*
* States may transform as below:-
*
* 1) i.e. Initialisation to playback and pause/release
* init --> setup --> prepare --> active <-> paused --+
* ^ |
* +-----------------------------+
*
* 2) i.e. Suspend
* -------------
* pause | | stop/xrun
* +-------------| ACTIVITY |---------------+
* | | | | prepare
* | ------------- | +-----------+
* | ^ ^ | | |
* | | | | | |
* v | | v | |
* ------------- | | ------------- |
* | | release | | start | | |
* | PAUSED |-----------+ +-------------| PREPARE |<-------+
* | | | |
* ------------- -------------
* | ^ ^
* | stop/xrun | |
* +--------------------------------------+ |
* | prepare
* ------------- |
* | | |
* ----------->| READY |------------------+
* reset | |
* -------------
*
*
* setup --> suspend --> setup OR
* prepare --> suspend -> prepare OR
* paused --> suspend --> paused
*/

#define COMP_STATE_INIT 0 /* component being initialised */
Expand Down

0 comments on commit 5334612

Please sign in to comment.