Commit a9f04af
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 a subsequent pause.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>1 parent 6007edd commit a9f04af
1 file changed
+43
-0
lines changed| 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 | + | |
| 263 | + | |
221 | 264 | | |
222 | 265 | | |
223 | 266 | | |
| |||
0 commit comments