Commit 5be12d0
committed
case-lib: apause: Make sure the PCM is running before pausing
This change addresses the following error seen when doing pause with the
multiple-pause-resume test:
aplay: do_pause:1586: pause push error: File descriptor in bad state
When an xrun happens during the test, the application tries to recover
from the xrun by preparing and restarting the stream. There could be a
race between when this happens and when the script tries to pause the
stream. To avoid this, make sure that the stream state is RUNNING before
going ahead with the pause.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>1 parent 5124961 commit 5be12d0
1 file changed
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
110 | 133 | | |
111 | 134 | | |
112 | 135 | | |
| |||
218 | 241 | | |
219 | 242 | | |
220 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
221 | 263 | | |
222 | 264 | | |
223 | 265 | | |
| |||
0 commit comments