Commit 5f37be3
Eric Laurent
Issue 4345021: Audio routed to multiple devices...
There is a possiblility that the condition on which RecordThread::checkForNewParameters_l()
waits after updating the command completion status is never signalled.
This happens if the thread executing ThreadBase::setParameters() has timed out waiting
for the status (for instance if the audio HAL takes too long to execute the setParameters()
command. Then the RecordThread is stuck forever.
The fix consists in waiting for the condition with a timeout in RecordThread::checkForNewParameters_l().
Change-Id: I7fc671bc2fc43ba4acb65a2beb33ee05742f091e1 parent 1cd955b commit 5f37be3
1 file changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| |||
1032 | 1034 | | |
1033 | 1035 | | |
1034 | 1036 | | |
1035 | | - | |
| 1037 | + | |
1036 | 1038 | | |
1037 | 1039 | | |
1038 | 1040 | | |
| |||
2349 | 2351 | | |
2350 | 2352 | | |
2351 | 2353 | | |
2352 | | - | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
2353 | 2357 | | |
2354 | 2358 | | |
2355 | 2359 | | |
| |||
2828 | 2832 | | |
2829 | 2833 | | |
2830 | 2834 | | |
2831 | | - | |
| 2835 | + | |
| 2836 | + | |
| 2837 | + | |
2832 | 2838 | | |
2833 | 2839 | | |
2834 | 2840 | | |
| |||
4669 | 4675 | | |
4670 | 4676 | | |
4671 | 4677 | | |
4672 | | - | |
| 4678 | + | |
| 4679 | + | |
| 4680 | + | |
4673 | 4681 | | |
4674 | 4682 | | |
4675 | 4683 | | |
| |||
0 commit comments