diff options
author | Eric Laurent <elaurent@google.com> | 2011-01-18 13:50:39 -0800 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2011-01-18 14:30:12 -0800 |
commit | 0c5bf19e1535772bf837800536a2dbb25790964e (patch) | |
tree | 85e6abaeb3195830cfd7ece16554e450b78a8dfe /libsensors/AkmSensor.h | |
parent | e93175d679a044f242962730ade8d133570c4ab1 (diff) | |
download | device_samsung_crespo-0c5bf19e1535772bf837800536a2dbb25790964e.zip device_samsung_crespo-0c5bf19e1535772bf837800536a2dbb25790964e.tar.gz device_samsung_crespo-0c5bf19e1535772bf837800536a2dbb25790964e.tar.bz2 |
Fix issue 3305305.
The problem is that when the voice search tone is started, audio capture
is still active and the output stream write function needs to place
the input stream in standby to reconfigure the kernel driver.
To do so it has to acquire the input stream mutex but as the input stream thread
holds the lock most of the time while sleeping in the driver waiting for more data,
this is very difficult and can take several seconds.
The fix consists in forcing a sleep in the next read() when another function needs
to acquire the input stream lock.
The same change is done for output stream write() function.
Also removed the workaround for issue 3201189 in setMode() (thread priority bump) as this
change addresses the same problem.
Change-Id: I3a5e672717752f83dfedce822a18748b165b0a5a
Diffstat (limited to 'libsensors/AkmSensor.h')
0 files changed, 0 insertions, 0 deletions